« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next

De, Waforth might be a good fit for your upcoming project? 

By: Fiz in 6TH POPE | Recommend this post (1)
Fri, 19 Aug 22 12:53 AM | 31 view(s)
Boardmark this board | 6th Edition Pope Board
Msg. 34704 of 60008
Jump:
Jump to board:
Jump to msg. #

http://github.com/remko/waforth

WAForth is a small but complete bootstrapping Forth interpreter and dynamic compiler for WebAssembly. You can see it in action in an interactive Forth console, and in a Logo-like Turtle graphics language.

WAForth is entirely written in (raw) WebAssembly, and the compiler generates WebAssembly code on the fly. The only parts for which it relies on external (JavaScript) code is to dynamically load modules (since WebAssembly doesn't support JIT yet), and the I/O primitives to read and write a character to a screen.

The WebAssembly module containing the interpreter, dynamic compiler, and all built-in words comes down to 14k (7k gzipped), with an extra 15k (7k gzipped) for the JavaScript wrapper, web UI, and encoding overhead.

WAForth implements all ANS Core Words (and passes Forth 200x Test Suite core word tests), and many ANS Core Extension Words. You can get the complete list of supported words from the interactive console.

Back to the future!




» You can also:
« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next