Re:Ask HN: “Write your own” or “Build your own” software pro...
by slaydemons on Thursday March 15, 2018 @10:03AM
(#16592913)
Request: Build a JVM (java virtual machine)
[ Parent
| on HN ]
Re:Ask HN: “Write your own” or “Build your own” software pro...
by n_t on Thursday March 15, 2018 @12:41PM
(#16594365)
JVM might be much more involved project but here is a simple virtual machine - https://github.com/skx/simple.vm
Re:Ask HN: “Write your own” or “Build your own” software pro...
by stevekemp on Saturday March 17, 2018 @01:55PM
(#16608143)
That's my project, and it seems to be surprisingly popular, yet something I've never really received any feedback on.
At the time I wrote it I was modeling the opcodes on the Z80, but I guess I simplified once I'd got it working enough to make myself happy. (Lots of toy-virtual machines, of which this definitely is one, don't implement labels or "decompilers".)
Re:Ask HN: “Write your own” or “Build your own” software pro...
by msangi on Thursday March 15, 2018 @02:18PM
(#16595261)
http://craftinginterpreters.com/ part 2 (still a work in progress) will show you how to write a VM and compile a language to its bytecode.
It won't be the JVM but it could be a good start
Re:Ask HN: “Write your own” or “Build your own” software pro...
by zombieprocess on Thursday March 15, 2018 @10:28AM
(#16593104)
This is the closest that I could find - https://github.com/lihaoyi/Metascala
Need to find some time to look more and actually try and work thru it.