4 ms·
Funnily enough java has both insanely fast compile times, and hot swapping, while being more expressive than Go.
by kaba0 2y ago
Funnily enough java has both insanely fast compile times, and hot swapping, while being more expressive than Go.
- DanielHB 2y agoI wouldn't call the compile times super fast, but they were not that bad. I brought up the hot code swap thing because I did use it a lot when I was doing Java development.
- kaba0 2y agoThe compile itself is very fast, but the build tools tend to think a bit when not hot/do some additional stuff besides building. But the actual time spent in `javac` is very short (partially because it only outputs very high level byte code)
- DanielHB 2y agoSeems reasonable, maybe it was just my project but it took around 3 minutes to recompile + run. I guess actually starting the application took a decent time as well. To be fair it was 10+ years ago with a pretty crappy laptop even for the time. Hot code swap was super fast though!
- throwaway894345 2y agoJava's compile times are "insanely fast" because it's not actually compiling to native code, it's compiling to JVM byte code which is actually compiled at runtime. And it is one of the rare languages that manages to be more expressive than Go while also being quite a lot less ergonomic. (:
- kaba0 2y agoGo is significantly more verbose and just recently can one implement a goddamn map without hardcoding it in the compiler. Besides all the beautiful if err unreadable “error handling” that makes it all too easy to silently ignore errors, and design mistakes like defer being function scoped, it’s hardly something I would call ergonomic.
- throwaway894345 2y agoI'm not claiming it's ergonomic (I don't think it is especially ergonomic, as I indicated in my previous comment), I'm claiming it's more ergonomic than Java. That said, it's always struck me as silly that people associate ergonomics with character counts. I don't think code golf is especially ergonomic either.