Remix.run Logo
anthk 4 hours ago

Begin reimplementing a subleq/muxleq VM with GPU primitive commands:

https://github.com/howerj/muxleq (it has both, muxleq (multiplexed subleq, which is the same but mux'ing instructions being much faster) and subleq. As you can see the implementation it's trivial. Once it's compiled, you can run eforth, altough I run a tweked one with floats and some beter commands, edit muxleq.fth, set the float to 1 in that file with this example:

     1 constant opt.float 
The same with the classic do..loop structure from Forth, which is not enabled by default, just the weird for..next one from EForth:

     1 constant opt.control

and recompile:

     ./muxleq ./muxleq.dec < muxleq.fth > new.dec
run:

       ./muxleq new.dec
Once you have a new.dec image, you can just use that from now on.
3 hours ago | parent [-]
[deleted]