logoalt Hacker News

0x000xca0xfetoday at 10:20 AM2 repliesview on HN

I'm too young but I imagine assembly programmers were feeling the same when automatic code generation by compilers took over. Very weird.


Replies

iigijshabatoday at 11:48 AM

More that I got confused by the C function returning bool, not as an error value, but as a result, which is my fault for skimming it quickly.

I have taken a closer look at the code, and it seems superficially a somewhat faithful rewrite, not quite idiomatic Rust, but closer than I anticipated at first. I know there are non-LLM rewriting tools for C to Rust, and with a test suite to help, a rewrite to Rust might be greatly helped. The new Rust code does have some drawbacks in some ways, and there are topics I am curious about.

u8080today at 12:19 PM

I guess there also were macro-assemblers before C, so it was a bit more natural.