Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I literally made it to the third sentence. How is using something other than C going to fix ABI? Isn't it literally the same problem? Do other languages super mangle their symbols so there's no breakages anymore?

Memory safety etc is a complaint about C but worrying about ABI breaking is literally what you'll always get when you do anything other than assembly[0]. The author laments that Rust and Swift must speak to C but that isn't because of the K&R controlled cabal, albeit it might have been the initial reason. Today the reason everything must talk to C is because operating systems are written in C and expose their API and ABI in C. Write an OS in Rust or Swift (lol) and then get mass adoption and then you won't have to worry about interfacing with C anymore.

They do eventually touch on that, but as long as OS'es are in C then you need C. There unfortunately is no alternative.

[0] I mean technically, you have "ABI breaks" in ASM too, it's just the program goes it's merry way being zombie like until a seg fault happens or worse.



Please read the post, this is not the “ooh we need to mangle stuff and this sucks” blog post you think it is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: