JVM provides great performance - it's on the one hand. Golang sounds like a new paradigm and extremely productive - on the other hand. If we could bring together the best of two worlds - JVM performance and golang productivity - we could get a lot of benefits. Does anyone know any project that provides golang implementation in java?
Go is a statically typed, compiled programming language. It is an open-sourced language maintained by Google. Like Java, Go is also a server-side programming language. It is a part of the C-Family programming languages, so it shares similar syntax.
Go does not provide any VM such as Java JVM. This language only compiles to metal like c++/c. It combines both the interpretation and compilation approach.
Golang is popular among developers because of its simple design. Go promotes clear, readable code while at the same time ensuring safe and reliable execution. With Java, you'll need additional resources to achieve these kinds of objectives, whereas with Go, they're built right in.
No, it is not likely that Golang will replace Java. Golang is a newer language that has gained popularity in recent years, while Java is a more established language that is still widely used today. They both have their strengths and weaknesses just like any programming language.
It may be difficult to make a good JVM implementation of Go. Rob Pike, who is one of Go's creators, spoke about this on episode 0.0.3 of the Changelog podcast:
[timecode 17:05] For instance, it is quite difficult to implement Go's interface model using a JVM: you might have to add a bytecode to deal with some of the type stuff. So for some of these existing systems [(JVM and CLR)] it's not quite obvious how Go would run with them […]
You should check JGO website: http://jgo.herokuapp.com/
And the JGO Docs: http://jgo.herokuapp.com/api/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With