logoalt Hacker News

pjc50today at 11:48 AM4 repliesview on HN

One of these days I want to do a "typesafe macro assembler" that actually is the language people think that C is.


Replies

rfgplktoday at 3:12 PM

I'm actually working on something similar to this. Basically works as an additional preprocessed layer over C++. You can get some crazy results, but it's tricky to integrate with existing build tools without causing havoc.

bcjdjsndontoday at 12:52 PM

You could call it rust and just rename the remaining UB as "unsafe" and call the problem solved

pjmlptoday at 2:29 PM

It already exists, MASM and TASM, and related derivatives, with high level control flow pseudo instructions and less UB.

trumpdongtoday at 1:03 PM

You could even give it identical syntax to C!