Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: How to make smalltalk?. Parent comment
How to make a Smalltalk VM.
1) Implement a loop containing a 256 case case-statement. Get ahold of documentation of the Smalltalk bytecodes, then start implmenting each one.
2) Code up method loookup. (Really, you've done this if you've done step 1, but it deserves mention.)
3) Add code for loading and saving an image.
4) Add a library for Garbage Collection: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
Done! You don't need a Smalltalk compiler in your VM. It's all Smalltalk objects in the image!
There are no comments on this comment yet.
How to make a Smalltalk VM.
1) Implement a loop containing a 256 case case-statement. Get ahold of documentation of the Smalltalk bytecodes, then start implmenting each one.
2) Code up method loookup. (Really, you've done this if you've done step 1, but it deserves mention.)
3) Add code for loading and saving an image.
4) Add a library for Garbage Collection: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
Done! You don't need a Smalltalk compiler in your VM. It's all Smalltalk objects in the image!