News for hackers. Stuff that matters.
Re:A CPU that runs entirely on GPU by robertcprice1 on Wednesday March 04, 2026 @07:29AM (#47246537)
Please tell me what you had in mind so I can try something different!
Re:A CPU that runs entirely on GPU by anthk on Wednesday March 04, 2026 @07:58AM (#47246795)
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.
Re:A CPU that runs entirely on GPU by Retr0id on Wednesday March 04, 2026 @09:05AM (#47247518)
I was imagining something more like Xeon Phi