Ricardo Forth: A Forth dialect implemented in C, Javascript, asmjs and WebAssembly

hi!

you may find this project interesting:

A Forth dialect implemented in C, Javascript, WebAssembly and compiled from
C to asm.js and WebAssembly.

This project is based on the 1992 IOCCC <http://ioccc.org/> entry buzzard.2
<http://ftp.funet.fi/pub/doc/IOCCC/1992/buzzard.2.orig.c> (design notes:
buzzard.2.design <http://ftp.funet.fi/pub/doc/IOCCC/1992/buzzard.2.design>),
prettified and then compiled to:

   -

   asmjs <http://asmjs.org/spec/latest/> using emscripten
   <http://kripken.github.io/emscripten-site/>
   -

   WebAssembly <https://webassembly.github.io/> using Binaryen
   <https://github.com/WebAssembly/binaryen/>

Also reimplemented by translating the C code into Javascript and WebAssebly.

check the site for links to online versions where you can try the different
versions: https://marianoguerra.github.io/ricardo-forth/

the part you may find interesting is this one :)
https://github.com/marianoguerra/ricardo-forth/blob/master/src/first.wast

here are the slides of a presentation I gave today:

https://marianoguerra.github.io/ricardo-forth/resources/slides.html#/webassembly

let me know if you have any questions.

Received on Wednesday, 10 August 2016 22:06:29 UTC