Live data from Hacker News

Rise and fall of JVM languages

blog.frankel.ch

1–10 of 233 posts

Re: Rise and fall of JVM languages

#3
post #2

I'm not a Java guy, but I'm still wondering why nobody every wrote a JVM with near-zero startup time.

It's largely to do with standard library class loading. The only way to avoid this is an alternate compilation model, like GCJ (and other native code compilers) or Dalvik.

Re: Rise and fall of JVM languages

#4
post #2

I'm not a Java guy, but I'm still wondering why nobody every wrote a JVM with near-zero startup time.

Presumably it isn't easy to start everything the JVM needs & does in effectively no time. Although to be fair it actually is fairly quick for a "hello world" type program - much of the startup time of Java programs tends to be loading bytecode of their dependencies rather than starting the JVM itself.

Re: Rise and fall of JVM languages

#6
post #4
post #2

I'm not a Java guy, but I'm still wondering why nobody every wrote a JVM with near-zero startup time.

Presumably it isn't easy to start everything the JVM needs & does in effectively no time. Although to be fair it actually is fairly quick for a "hello world" type program - much of the startup time of Java programs tends to be loading bytecode of their dependencies rather than starting the JVM itself.

Isn't it possible to do lazy-loading in the JVM?

Re: Rise and fall of JVM languages

#7
post #2

I'm not a Java guy, but I'm still wondering why nobody every wrote a JVM with near-zero startup time.

A few years back I built a system that ran in the background and spun up fresh JVMs, which it then kept in readiness. When you wanted to start something, it would use the waiting one so you avoided the slowdown. Well, it was still pretty slow...

Re: Rise and fall of JVM languages

#8
post #2

I'm not a Java guy, but I'm still wondering why nobody every wrote a JVM with near-zero startup time.

Well I am a Java guy and have two points to make.

First. What are you even talking about?

  Quiet:test user$ time java Test
  Test
  
  real	0m0.104s
  user	0m0.074s
  sys	0m0.028s
  Quiet:test user$
That's on a current MBP 13" top end.

And second: Who cares? What us "Java guys" do with Java, well, it doesn't matter in the slightest that it takes half a second to start. Because, we deploy to running processes. "We" power things like Hadoop clusters. The startup time is meaningless in "our realm" and frankly, I think if you're wondering about java for something like command line tools, it's just the wrong tool for the job for many reasons. And if you're looking at GUI apps, it's still better than Electron :P

So seriously, Hacker News, what is the obsession with this?

Re: Rise and fall of JVM languages

#9
I'm surprised to see that Groovy slightly beats Kotlin in on that graph. I really underestimated Groovy popularity, or overestimated Kotlin.

I've yet to work with Kotlin but did like Groovy some years ago. Never used it professionaly though, only for play-projects.

Re: Rise and fall of JVM languages

#10
post #6
post #4

Earlier quoted context omitted.

Presumably it isn't easy to start everything the JVM needs & does in effectively no time. Although to be fair it actually is fairly quick for a "hello world" type program - much of the startup time of Java programs tends to be loading bytecode of their dependencies rather than starting the JVM itself.

Isn't it possible to do lazy-loading in the JVM?

The JVM does do lazy-loading.
Post reply on HN