Really cool proof of concept! I would really enjoy seeing more projects like this!
Really cool proof of concept! I would really enjoy seeing more projects like this!
Java 1.2 (1998) used a JIT and a generational collector. It was probably faster than today's Ruby, Python, or PHP.
What was slow was start up. Applets in particular were really horrible since they completely froze the browser for several seconds.
If I remember correctly, this was finally fixed many years later with some version of Java 6.0.
About that time, I needed to decide whether to use Java or Delphi (an ahead-of-time Pascal compiler) for a new project. I was worried about garbage collection overhead. So, I designed a trivial benchmark wherein an array of simple objects was constructed in a loop (as we revisit each slot in the array, we replace the old object with a new one). Java came out ahead. The superiority of GC, along with platform independence, convinced me to go with Java.
PS. I can't swear to it that you could do a decent lazy delete or free and get better performance in C or C++, but it doesn't sound absurd on its face. What the standard library could not do is run its own background thread and update memory structures asynchronously, the way some advanced GCs do. But the whole problem can be avoided by doing fewer allocations in the first place, and performance will be consistently good no matter what the platform.
Why did you spell it in all-caps here?
JAVA = Just Another Vague Acronym.
That and you need to use xml for everything to be enterprise.