cforth
waforth
cforth | waforth | |
---|---|---|
1 | 6 | |
142 | 451 | |
- | - | |
6.7 | 7.0 | |
about 1 month ago | 2 months ago | |
C | WebAssembly | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cforth
-
WAForth (WASM-based ANS Forth) supports interactive "notebooks" in VSCode
Yes I wrote a paper but I probably can't find it. The easiest place to look would be in the Open Firmware source. https://github.com/MitchBradley/openfirmware/blob/master/forth/kernel/kernel.fth#L771 The magic is all in +level and -level. Search for those in kernel.fth to see other places they are used to achieve a similar effect, e.g. in abort" For an alternative but effectively equivalent formulation, see: https://github.com/MitchBradley/cforth/blob/master/src/cforth/forth.c#L652 and https://github.com/MitchBradley/cforth/blob/master/src/cforth/control.fth I was very pleased when interpreted conditionals reduced to +LEVEL and -LEVEL plus a temporary compilation buffer. It was one of those "Yes!" moments. I thought of doing temporary compilation at HERE, but that would have prevented usages like:
waforth
-
Show HN: TinyWasm – A tiny WebAssembly Runtime written in Rust
Super nice project! I also spent the last month writing a WASM interpreter ( https://github.com/rrampage/wart ) using Java 21. I started it as an excuse to try out the pattern matching in switch / sealed classes in Java. It kind of snowballed in scope and can now run Doom and Waforth ( https://github.com/remko/waforth )! Have not yet tried compiling it to WASM and running it as a meta-circular interpreter.
-
Bunch of questions about forth
Concerning the point 8. There is an online Forth system demo Thurtle (in the browser) with turtle graphics, which is based on WAForth.
-
A Dynamic Forth Compiler for WebAssembly
There's a note on the page from 2022-08-19, that a lot has been added to it. It also links to the github page[1] for the up-to-date changes.
I am a Lisp, April, APL/J/BQE, and Forth[2] aficionado. I did some file munging programs in Factor back in 2012 at my job to sort through theater attendance logs in Word to compile statistics.
[1] https://github.com/remko/waforth
[2] https://factorcode.org/
- WAForth (WASM-based ANS Forth) supports interactive "notebooks" in VSCode
What are some alternatives?
micropolis - Automatically exported from code.google.com/p/micropolis
forthlisp - A Small Lisp in Forth
discussion - Discussion repository for Forth enthusiasts.
JS-Monster - JavaScript is a BEAST, JS Monster portrays that awesomeness with a mascot inspired by the JS logo.
wasker - Wasm compiler for running Wasm on your favorite kernel
sandspiel - Creative cellular automata browser game
xxhash-wasm - A WebAssembly implementation of xxHash
owi - WebAssembly Swissknife
openfirmware - Open Firmware (IEE1275-1994) implementation by its inventor.
ESP32forth - FORTH developments for ESP32
raillisp - A fast and portable lisp implemented in forth