4 ms·
A year (or two) ago, I wrote a simple virtual machine [1] of my own. Fun time. Interesting exercise. Wish I had courage to post it here and get feedback from th
by proxyswapi 12y ago
A year (or two) ago, I wrote a simple virtual machine [1] of my own. Fun time. Interesting exercise. Wish I had courage to post it here and get feedback from the HN. Anyways, yours is much cleaner and concise code. Kudos.
[1] https://github.com/swapi/z9 https://github.com/swapi/z9
- tekknolagi 12y agoDefinitely post it! I've written muuuuch worse and it's still public :D Check out http://github.com/tekknolagi/gecho http://github.com/tekknolagi/gecho — shudder
- proxyswapi 12y agoPosted my reply on wrong comment (Got confused between akkartik and tekknolagi) :). Anyways, thanks for sharing. Are you planning to add memory management opcodes (Allocate memory, free memory)? I see DBS, DBG instruction, but it is like key-value store (since it uses carp_ht internally).
- tekknolagi 12y agoUmm perhaps. Could you give a use case? Not sure how/why.