2 ms·
This is why I made a BASIC-like language with 4GL-style utility functions that extracted to C. I knew effects of each one. BASIC didn't have C's issues and comp
by nickpsecurity 11y ago
This is why I made a BASIC-like language with 4GL-style utility functions that extracted to C. I knew effects of each one. BASIC didn't have C's issues and compiled pretty directly. Compiled fast, too.
Not recommending this route today as I just happened to start with BASIC. More like combining a simple, easy-to-compile, safe-by-default language w/out GC and with macros that extracts to portable C. Should make programming in C easier while providing all the benefits of C as my system did.
I've been eyeballing Nim language for this since HN commenters pointed out it's close to the goal already:
https://github.com/nim-lang/Nim/wiki/Nim-for-C-programmers https://github.com/nim-lang/Nim/wiki/Nim-for-C-programmers
Someone might even be using a subset of it as a high-level C language. I'd be interested to know if anyone reading is doing something like that. Plus any other language besides Nim that can closely map and extract to C without its issues.