logoalt Hacker News

GrowingSidewaysyesterday at 2:33 PM4 repliesview on HN

Why not compile to rust or assembly? C seems like an odd choice.

In fact why not simply write rust to begin with?


Replies

xnaclyyesterday at 2:42 PM

Assembly requires way more work than compiling to, say C. Clang and gcc do a lot of the heavy lifting regarding optimisation, spilling values to the stack, etc

show 1 reply
ndryesterday at 2:39 PM

At times people think C is better. See recent discussion about https://sqlite.org/whyc.html

show 1 reply
dfoxyesterday at 3:26 PM

If I understand the history correctly then it started as a set of C preprocessor macros.

kuttel2yesterday at 2:45 PM

[flagged]

show 1 reply