by cryptos · 10y ago · 0 comments
> Go differs from Java in several ways
> Programs compile to machine code. There's no VM.
This tries to imply that having a VM is a bad thing.
> Simple, concise syntax
The syntax is simple, but not overly concise. For example the lack of generics leads to a lot of repetition.
> Statically linked binaries
You can have them with Java, too.
> Built-in strings (UTF-8)
Should this suggest that Java doesn't have trings?
> Built-in generic maps and arrays/slices
Yeah! Some of the most awesome things about Go is the limited set of data structures and the limitation of generics for exactly this few structures.
> Built-in concurrency
It is questionable whether this is good or not. There are a lot of good concurrency libs for the JVM.
> Sometimes this means writing out a loop instead of invoking an obscure function.
This is completely strange! The lack of abstraction is sold as a good thing. Actually a lack of abstraction leads to redundant and error prone code.
What net value add a VM (appart something more to handle) ?
> Should this suggest that Java doesn't have trings?
as long as you stick with basic multilingual plane you can consider that java strings are ok
> It is questionable whether this is good or not. There are a lot of good concurrency libs for the JVM.
Concurrency in the JVM is hard to have right
Maybe with the upcoming AOT compiler in Java 10, more people will become aware of it.
Sadly it appears to be a commercial feature.
Is there a widely available FOSS implementation of this?