News for hackers. Stuff that matters.
Re:Simple Open-Source Java Virtual Machine in C by cowmix on Tuesday September 19, 2023 @06:24PM (#37577812)
I had a buddy that wrote a Java 1.1 JVM from scratch in C back in late '97. He created it completely from the defined specification from Sun and actually found bugs in the spec. IIRC, the found bugs in the thread(s) specification. I believe his JVM was one of the first clean-room JVM implementation outside of Sun's efforts.
Re:Simple Open-Source Java Virtual Machine in C by version_five on Tuesday September 19, 2023 @07:06PM (#37578308)
I can imagine that the spec would to some extent reflect an attempt to capture the behavior of the jvm they actually wrote, as opposed to being created first and then having Sun implement afterwards? It sounds like an interesting exercise to recreate it based on the spec and see what got missed.
Re:Simple Open-Source Java Virtual Machine in C by kevin_thibedeau on Tuesday September 19, 2023 @07:42PM (#37578621)
Their intent was to have hardware implementations. The basic spec is simple enough to make that tractable.