Re:.NET 6 Released
by azth on Monday November 08, 2021 @02:09PM
(#29152974)
You should also be able to do this in Java with jlink.
[ Parent
| on HN ]
yes but then you have to write your program in java
Yes, arguably a better decision than writing it in golang to begin with.
Go is better than Java any day of any week if startup time or memory footprint are of any concern to you at all.
Also Java is OO which is... terrible to say the least.
Java has had AOT compilation since around 2000, just not as free beer.
In 2021, the AOT free beer exists, as do JIT caches.
As for OO model, I rather be able to understand which interfaces a type implements by looking at it, instead of producing compiler errors, or have a type by accident supporting a single method interface with complete different semantics.
GraalVM is a thing (see: www.quarkus.io for an example) if fast startup and low memory usage are a requirement.
Not sure what the OO rant is about, it's awesome. It's not like golang isn't (poorly implemented) OO as well (minus explicit inheritance, which embedding is somewhat similar as well).
and now you have two problems
Three problems, since POM.XML is probably involved somehow.