|
|
|
|
|
by johnisgood
154 days ago
|
|
Concatenative languages like Factor and Forth are very token-efficient in theory. Theoretically optimal for raw lexical density. No parentheses, no commas, no argument delimiters, just whitespace-separated words, but stack shuffling can add overhead for complex data flow, unless you use "locals" in Factor, for example. C is surprisingly efficient as well. Minimal keywords, terse syntax, single-character operators. Not much boilerplate, and the core logic is dense. I think the worst languages are Java, C#, and Rust (lifetime annotations, verbose generics). In my opinion, C or Go for imperative code, Factor / Forth if the model knows them well. |
|