Live data from Hacker News

Oracle Contributing GraalVM Community Edition Java Code to OpenJDK

graalvm.org

1–10 of 141 posts

Re: Oracle Contributing GraalVM Community Edition Java Code to OpenJDK

#3
post #2

Maybe we will soon see the Java Virtual Machine implemented wholly in (a subset of) Java...

It's a good point, after so long why the JVM is not written in Java actually?

For example the Go runtime and I think C# as well are written in their respective language.

https://github.com/golang/go/tree/master/src/runtime

https://github.com/dotnet/runtime

Re: Oracle Contributing GraalVM Community Edition Java Code to OpenJDK

#5
post #3
post #2

Maybe we will soon see the Java Virtual Machine implemented wholly in (a subset of) Java...

It's a good point, after so long why the JVM is not written in Java actually? For example the Go runtime and I think C# as well are written in their respective language. https://github.com/golang/go/tree/master/src/runtime https://github.com/dotnet/runtime

Maybe it's my ignorance of the Java ecosystem or a lack of imagination but how could a language that requires a heavy runtime be written in itself? Wouldn't you need a runtime for the runtime, and then a runtime for the runtime for the runtime and then...?

I can't quite imagine how you'd bootstrap something like that.

Re: Oracle Contributing GraalVM Community Edition Java Code to OpenJDK

#6
post #5
post #3

Earlier quoted context omitted.

It's a good point, after so long why the JVM is not written in Java actually? For example the Go runtime and I think C# as well are written in their respective language. https://github.com/golang/go/tree/master/src/runtime https://github.com/dotnet/runtime

Maybe it's my ignorance of the Java ecosystem or a lack of imagination but how could a language that requires a heavy runtime be written in itself? Wouldn't you need a runtime for the runtime, and then a runtime for the runtime for the runtime and then...? I can't quite imagine how you'd bootstrap something like that.

You implement the runtime itself in Java, and you use that runtime to run your runtime.

Re: Oracle Contributing GraalVM Community Edition Java Code to OpenJDK

#8
post #3
post #2

Maybe we will soon see the Java Virtual Machine implemented wholly in (a subset of) Java...

It's a good point, after so long why the JVM is not written in Java actually? For example the Go runtime and I think C# as well are written in their respective language. https://github.com/golang/go/tree/master/src/runtime https://github.com/dotnet/runtime

Java isn't as performant as C++.

BTW, how do you implement a garbage collector with a garbage-collected language?

Re: Oracle Contributing GraalVM Community Edition Java Code to OpenJDK

#9
post #5
post #3

Earlier quoted context omitted.

It's a good point, after so long why the JVM is not written in Java actually? For example the Go runtime and I think C# as well are written in their respective language. https://github.com/golang/go/tree/master/src/runtime https://github.com/dotnet/runtime

Maybe it's my ignorance of the Java ecosystem or a lack of imagination but how could a language that requires a heavy runtime be written in itself? Wouldn't you need a runtime for the runtime, and then a runtime for the runtime for the runtime and then...? I can't quite imagine how you'd bootstrap something like that.

Graal supports AOT compilation, so you can write the runtime in java and AOT compile it to a given arch. thats what the thread is talking about

Re: Oracle Contributing GraalVM Community Edition Java Code to OpenJDK

#10
post #5
post #3

Earlier quoted context omitted.

It's a good point, after so long why the JVM is not written in Java actually? For example the Go runtime and I think C# as well are written in their respective language. https://github.com/golang/go/tree/master/src/runtime https://github.com/dotnet/runtime

Maybe it's my ignorance of the Java ecosystem or a lack of imagination but how could a language that requires a heavy runtime be written in itself? Wouldn't you need a runtime for the runtime, and then a runtime for the runtime for the runtime and then...? I can't quite imagine how you'd bootstrap something like that.

No.

See Scheme48 or Go. There are some ways around that bootstrap problem.

Post reply on HN