|
|
|
|
|
by ludocode
531 days ago
|
|
Author here. I think my opinion would be about the same as the authors of the stage0 project [1]. They invested quite a bit of time trying to get Forth to work but ultimately abandoned it. Forth has been suggested often for bootstrapping a C compiler, and I hope someone does it someday, but so far no one has succeeded. Programming for a stack machine is really hard, whereas programming for a register machine is comparatively easy. I designed the Onramp VM specifically to be easy to program in bytecode, while also being easy to implement in machine code. Onramp bootstraps through the same linker and assembly languages that are used in a traditional C compilation process so there are no detours into any other languages like Forth (or Scheme, which live-bootstrap does with mescc.) tl;dr I'm not really convinced that Forth would simplify things, but I'd love to be proven wrong! [1]: https://github.com/oriansj/stage0?tab=readme-ov-file#forth |
|
https://git.sr.ht/~vdupras/duskos/tree/master/item/fs/doc/co...