News for hackers. Stuff that matters.
Re:Yarn – A small embeddable VM with a custom instruction set by vmorgulis on Sunday February 28, 2016 @12:31PM (#11191488)
Very cool and promising!

It reminds the Moxie processor:

http://moxielogic.org/blog/

https://github.com/atgreen/moxiedev

The author even wrote a backend for GCC.

Your demo from Twitter should compile to JS with emscripten.

Re:Yarn – A small embeddable VM with a custom instruction set by WetDesertRock on Sunday February 28, 2016 @12:45PM (#11191568)
Oh interesting, I'll look more into that.

Yeah, it should compile to JS, I'll probably look into doing that at a later point in time.

Re:Yarn – A small embeddable VM with a custom instruction set by vmorgulis on Sunday February 28, 2016 @12:59PM (#11191644)
It's simple once the emscripten SDK is installed ("emcc main.c -o main.js/html").

https://kripken.github.io/emscripten-site/docs/tools_referen...