Live data from Hacker News

Command-line apps with Clojure and GraalVM: 300x better startup times

astrecipes.net

11–20 of 66 posts

Re: Command-line apps with Clojure and GraalVM: 300x better startup times

#11
post #8

To the author: https://www.youtube.com/watch?v=OonDPGwAyfQ In other words, thank you for the content, but this could really use some proofreading.

wow, that video was amazing! forwarded to some writer/editor friends. thanks!

Re: Command-line apps with Clojure and GraalVM: 300x better startup times

#13
post #2

Generally speaking, startup times for Java / JVM based apps should be worked on next by the teams behind it; in the container age, fast startup is a good thing. I know the JVM itself starts up fast enough, but then going with e.g. Spring on top of that just adds a minute of startup time - and I've no clue what it's doing, I wouldn't think loading config, registering services and opening up a servlet thingy would take…

Long JVM startup time is a big reason why I went with Elixir instead of Clojure when I decided to move off Ruby to do webdev. (Another reason was easily triggering nasty Java stacktraces.)

My Elixir test suites fire up instantly and finish in seconds (if that) and this fast-as-possible feedback loop is extremely important to stay productive, IMHO.

Re: Command-line apps with Clojure and GraalVM: 300x better startup times

#14
post #12
post #8

To the author: https://www.youtube.com/watch?v=OonDPGwAyfQ In other words, thank you for the content, but this could really use some proofreading.

BTW - CLI-matic uses your excellent Orchestra.

That's both superb and encouraging. Thank you.

Re: Command-line apps with Clojure and GraalVM: 300x better startup times

#15
post #2

Generally speaking, startup times for Java / JVM based apps should be worked on next by the teams behind it; in the container age, fast startup is a good thing. I know the JVM itself starts up fast enough, but then going with e.g. Spring on top of that just adds a minute of startup time - and I've no clue what it's doing, I wouldn't think loading config, registering services and opening up a servlet thingy would take…

I've found cdi starts much faster than Spring these days! Glad to see it catching steam

Re: Command-line apps with Clojure and GraalVM: 300x better startup times

#18
post #8

To the author: https://www.youtube.com/watch?v=OonDPGwAyfQ In other words, thank you for the content, but this could really use some proofreading.

Thank You. This is a good video to drive the massage.

Nothing like a good massage!

Re: Command-line apps with Clojure and GraalVM: 300x better startup times

#19
post #2

Generally speaking, startup times for Java / JVM based apps should be worked on next by the teams behind it; in the container age, fast startup is a good thing. I know the JVM itself starts up fast enough, but then going with e.g. Spring on top of that just adds a minute of startup time - and I've no clue what it's doing, I wouldn't think loading config, registering services and opening up a servlet thingy would take…

There was an interesting London Java Community meetup[1] this week covering this topic. Matthew Gilliard demonstrated Class Data Sharing[2] and Application Class Data Sharing[3] and its impact on JVM startup times.

My work proxy is making it a pain to find the presentation, I'll try again at home.

[1] - https://www.meetup.com/Londonjavacommunity/events/252118399/

[2] - https://docs.oracle.com/javase/8/docs/technotes/guides/vm/cl...

[3] - http://openjdk.java.net/jeps/310

Re: Command-line apps with Clojure and GraalVM: 300x better startup times

#20
post #2

Generally speaking, startup times for Java / JVM based apps should be worked on next by the teams behind it; in the container age, fast startup is a good thing. I know the JVM itself starts up fast enough, but then going with e.g. Spring on top of that just adds a minute of startup time - and I've no clue what it's doing, I wouldn't think loading config, registering services and opening up a servlet thingy would take…

Long JVM startup time is a big reason why I went with Elixir instead of Clojure when I decided to move off Ruby to do webdev. (Another reason was easily triggering nasty Java stacktraces.) My Elixir test suites fire up instantly and finish in seconds (if that) and this fast-as-possible feedback loop is extremely important to stay productive, IMHO.

The editor based REPL is how the Clojure folks stay productive (as opposed to running tests at the command line). Using a keyboard shortcut to eval any expression in your code is really great.

The stacktraces are still often terrible though =/

Post reply on HN