Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Go for Java platform?

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?

like image 832
Alf Avatar asked Aug 09 '12 11:08

Alf


People also ask

Is Go based on 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.

Does Go run on JVM?

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.

Is Go better than Java for Microservices?

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.

Will Golang replace Java?

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.


2 Answers

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 […]

like image 94
Vebjorn Ljosa Avatar answered Sep 22 '22 02:09

Vebjorn Ljosa


You should check JGO website: http://jgo.herokuapp.com/

And the JGO Docs: http://jgo.herokuapp.com/api/

like image 44
Thomas Modeneis Avatar answered Sep 20 '22 02:09

Thomas Modeneis