Re:Diving into Go by building a CLI application
by vips7L on Wednesday May 27, 2020 @08:03AM
(#23321977)
Java has made some strides with startup time. It's still a little bit slower than python when loading the full vm.
Re:Diving into Go by building a CLI application
by apta on Wednesday May 27, 2020 @10:12PM
(#23332669)
> But startup time is still not interactively-fast, so for CLIs it's sorta a no
They're working on it, for example: https://openjdk.java.net/jeps/310
Re:Diving into Go by building a CLI application
by Groxx on Friday May 29, 2020 @04:55PM
(#23355432)
They've been working on it for quite a while, yeah :) I appreciate it and they've made quite a lot of progress... but it's still nowhere near Go, and I mostly doubt it ever will be.
# time ./hellogo
hello world
real 0m0.005s
user 0m0.001s
sys 0m0.005s
It's probably "good enough" for many cases nowadays tho, yes, e.g.: https://cl4es.github.io/2019/11/20/OpenJDK-Startup-Update.ht...
Re:Diving into Go by building a CLI application
by apta on Saturday May 30, 2020 @12:23AM
(#23358452)
You might want to check out: https://quarkus.io/
Beyond that, dunno - I usually reach for Python since I've written it professionally for a few years and it's pleasantly terse. But it's a fair bit of work to make actually fast and I don't generally think it's worth that effort. Go is much easier there... as long as it's kept simple.
I have some strong hope for Rust, but I think it's fair to label it as "still maturing", though it's already very far of ahead many langs in some areas. And I just don't have much experience with it yet, so have no real conclusions ¯\_(ツ)_/¯