Logo

» About

» Downloads

» GitHub

» GitLab

Mottek Blog

» Mottek

» Archive

2024 2023 2022 2020 2019 2018 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2004 2003

RSS

At 10:28, Janus became self aware

At 10:28, Janus became self aware

Janus and CoreForth-0 are now finally able to compile each other - what’s up and what’s down is a bit tricky to name in meta compilation. Janus was so far more strictly speaking a cross compiler, but with the p3216 target, Janus can now generate a binary for the p3216 virtual machine which in turn can be used to compile itself. In theory, that allows the retirement of GForth as the Forth system used to run, provided that the p3216 virtual machine and the Forth binary are available.

The changes needed for Janus were pretty minimal, and the changes to CoreForth were mostly to support whatever Janus uses to produce target images, including file handling and string handling. CoreForth got a bit closer to Forth 2012 with that, but compliance is not a target so far. Rather, one of the goals was to move to the p3216 virtual machine which can be quite easily extended - it doesn’t have an FFI, but the ‘system call’ interface is simple enough to add whatever Rust supports.

2022-12-13