News for hackers. Stuff that matters.
Re:Jacobin: Minimal JVM written in Go and capable of running... by jerf on Thursday August 24, 2023 @02:57PM (#37253078)
You have to distinguish between the implementation and the interface from the Java point of view. In Go, you'd use goroutines. Even if you want to use an OS thread you use a goroutine and then pin it to an OS thread, and there's no reason to do that in this case.

However, inside Java it may look like the original Threading API. In that case you'd have a JVM running the Thread abstraction in Java on top of green threads in Go, while not supporting Java green threads, and there's no contradiction or even anything weird going on. Perfectly normal.

Re:Jacobin: Minimal JVM written in Go and capable of running... by returningfory2 on Thursday August 24, 2023 @03:32PM (#37253517)
Right right, but I wonder if there is some weird edge case where some Java program relies on threads being real OS threads...like, for sure Java threads being OS threads is an observable feature of a running Java program (you can see it in htop!). And maybe someone has built a Java based system somewhere that uses that...