Hacker News new | past | comments | ask | show | jobs | submit login

What about from scratch?

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!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: