Join Nostr
2025-11-10 09:56:36 UTC

mleku on Nostr: i am on day 2 of implementing a fork of #golang called #moxie. so far i have managed ...

i am on day 2 of implementing a fork of #golang called #moxie. so far i have managed to corral claude into successfully building almost every feature that is simple to do in Go without CGO, there is the actual immutable constant memory flag that will be in the full compiler, and the ability to embed dynamic libraries in the binary and load them and use their API via the C<->moxie function signature and basic types mappings.

so, i can now actually write code in moxie, theoretically. but there's a few more steps to go before i'm finished with this first stage bootstrap transpiler:

7. tooling - compile/link/lint/language server etc

8. optimization - adding compile time evaluation where possible, inlining hints to unwrap loops, SIMD where appropriate (hex already is, sha256 will be) profile guided optimization is an automation system that does multiple builds and analyses how the profile runs to increase optimization depth where the payoff is highest.

9. documentation - decent and comprehensive documentation, mostly it is about the transpiler itself and the language, and adapting existing go documentation with the feature changes (mostly removal and unifying things)

after that, i'm done, i can build moxie, and other people can figure it out too.

but i mean to get to the final stage of a fully self hosted compiler, so next step is rewriting moxie in moxie, and compiling that with the transpiler, then the first bootstrap is achieved. after that, then it moves to the code generator and implementing the low level functions because i'll be replicating and modifying the compiler and linker stages.