5-post design walkthrough of a branch-free 8-bit/word color-forth variant for code generation: ~62 dict entries/page with paging, call/return inlined by the compiler, branch-free compile + branch-free execution, lookup-table pre-compile writes unaligned 8-bytes. Intended for tiny self-contained chunks that include their own codegen. Whitney-esk in single-char vars, non-Whitney in no higher-order arrays.
1.9 KiB
title, author, handle, post_url, post_id, timestamp, post_count, reply_count, repost_count, like_count, view_count
| title | author | handle | post_url | post_id | timestamp | post_count | reply_count | repost_count | like_count | view_count |
|---|---|---|---|---|---|---|---|---|---|---|
| A language that you author in a compressed space directly. So Whitney-esk in usi | NOTimothyLottes | @NOTimothyLottes | https://x.com/NOTimothyLottes/status/2079746130309415185 | 2079746130309415185 | 2026-07-22 01:51:31 | 5 | 0 | 0 | 2 | 318 |
@NOTimothyLottes — A language that you author in a compressed space directly. So Whitney-esk in usi
Post 1 (2026-07-22 01:35:49)
Working through rough draft of assembly for a different idea for a micro macro-forth.
- 8-bit/word (color to relay meaning)
- Roughly 62 useful dictionary entries/page
- Supports paging (to extend dictionary)
- Supports call/return - but compiler inlines everything ...
Post 2 (2026-07-22 01:40:23) — reply to Post 1
- Compile step is branch-free
- Compiles to branch-free x86-64 source
- Which is then executed
Noticed that I can pre-compile all the dictionary words into a lookup table. So actual compile just writes unaligned 8-bytes but only advances the write pointer by the actual size
Post 3 (2026-07-22 01:43:56) — reply to Post 2
The interesting bits about this micro project was factoring out all branches, using branch-free interpreter loop to inline all calls so later execution is linear. Got messy doing a branch free software return stack. But costs are relatively low (40 ops/character)
Post 4 (2026-07-22 01:46:15) — reply to Post 3
Intended usage would be for tiny-gramming programs in self contained chunks that include their own code generation (effectively a macro-forth used to generate machine code).
Post 5 (2026-07-22 01:51:31) — reply to Post 4
A language that you author in a compressed space directly. So Whitney-esk in using lots of single character variables (or double character with page characters) -BUT- very non-Whitney in that it has no higher order array constructs
