💾 Archived View for friends.riverside.camp › ~clarity › wiki › clairth.gmi captured on 2024-07-08 at 23:29:49. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
Clairth
Clairth is my attempt at writing a Forth. It's still very much in its infancy and I'm not committed to finishing it as a project, but here's the things I'd like it to include:
- Exclusively targeting M1 ARM on MacOS. Given that this is a personal project I want to focus on really understanding my own computer rather than on portability.
- Not ANS compliant: I don't actually care about being able to run other people's code and would like the opportunity to rethink the standard dictionary
- STATEless: always compile by default to make code more consistent
- JIT assembly generation and word inlining
- A type inference system, used to enable word overloading by compile-time pattern matching on the stack (I've never seen this done in a forth!)
- Ability to hack into dictionary resolution to allow for quoted strings without spaces, namespacing, and possibly glyphs
- Symbols
- A vocabulary to integrate with the MacOS GUI libraries to make live-editable native apps
Forth
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Written April 16, 2024