3 ms·
fun fact, you can easily write c in any language you want through the power of macros https://github.com/farant/rhubarb/blob/main/include/latina.h https://git
by water_badger 7mo ago
fun fact, you can easily write c in any language you want through the power of macros
https://github.com/farant/rhubarb/blob/main/include/latina.h https://github.com/farant/rhubarb/blob/main/include/latina.h
edit:
oh, maybe you can’t do full unicode. that’s too bad!
- xodn348 7mo agoHa, neat trick. But macro substitution and a purpose-built language are very different — Han has a full pipeline (lexer → parser → AST → interpreter + LLVM codegen) designed around Korean from the ground up. Error messages, REPL, LSP hover docs are all in Korean. You can't get that from #define 만약 if.
- water_badger 7mo agoyeah, making a whole language is way more impressive! anecdotally it is also interesting to use with ai because apparently it is "harder to be on autopilot" based on a huge pre-existing corpus of code when you write it in a different language. could activate different reasoning regions somehow. (i just appreciate what can be trivially accomplished in c even if it's kind of janky after spending way too much time in the JS preprocessor mines...)