logoalt Hacker News

apitmanyesterday at 5:40 AM8 repliesview on HN

I use Rust and C at work. I quite enjoy Rust, but I currently have no reason to believe C won't outlive it, by a lot.


Replies

pjmlpyesterday at 6:46 AM

Until specific industry standards like POSIX, all Khronos APIs, UNIX like systems get rewriten into something else, it is going to stay around.

Hence why it should be a priority for WG14 to actually improve C's safety as well, unfortunately most members don't care, otherwise we would at least already have either fat pointers, or libraries like SDS on the standard by now.

show 3 replies
gritzkoyesterday at 9:40 AM

Correct me if I am wrong, but C is the “greatest common denominator” for several decades already. Java, .NET, go, Rust are very much ecosystems-in-themselves. From the practical standpoint, they can not use each other’s code, but they all can use C libs.

show 1 reply
po1ntyesterday at 5:50 AM

Well, Fortran is still used somewhere too

show 1 reply
hu3yesterday at 6:46 AM

And I think Zig will gradually eat a large piece of the C pie that would otherwise be eaten by Rust.

show 3 replies
mustache_kimonoyesterday at 7:00 AM

> I currently have no reason to believe C won't outlive it, by a lot.

My reaction is kind of: "So what?" I really don't care about the relative lives of languages and don't really understand why anyone would. Unless I am wrong, there is still lots of COBOL we wish wasn't COBOL? And that reality doesn't sound like a celebration of COBOL?

IMHO it would be completely amazing if magically something 10x better than Rust came along tomorrow, and I'd bet most Rust people would agree. Death should be welcomed after a well lived life.

To me, the more interesting question is -- what if efforts like c2rust, Eurydice, TRACTOR and/or LLMs make translations more automatic and idiomatic? Maybe C will exist, but no one will be "writing" C in 20 years? Perhaps C persists like the COBOL zombie? Perhaps this zombification is a fate worse than death? Perhaps C becomes like Latin. Something students loath and are completely bored with, but are forced to learn simply as the ancient interface language for the next millennia.

Is that winning? I'd much rather people were excited about tech/a language/a business/vibrant community, than, whatever it is, simply persisted, and sometimes I wish certain C people could see that.

show 7 replies
ahartmetzyesterday at 5:16 PM

Unless something similar to but better than Rust comes along soon, I expect both Rust and C to live "forever".

show 1 reply
Wowfunhappyyesterday at 5:45 PM

It also feels to me like Rust is trying to replace C++ more-so than C.

show 1 reply
testdelacc1yesterday at 8:03 AM

Neither needs to outlive the other to be individually useful.

The way I see it, the longer something is actively used, the greater the chance it’s going to stick around. I’m bullish on rust but I’m equally bullish that C will last a long, long time.

But it’s not an either-or here. Both are good at certain things and can coexist. Like they’re coexisting in the Linux kernel for example.