Hacker News new | ask | show | jobs
by conradludgate 945 days ago
Having a memory safe language in the kernel is very serious. More and more C programmers I speak to say they realise with Rust they will likely never work with C again full time.

Yes Rust helps bring in the next generation of Linux devs. It needs to to survive. But it's not because young people like Rust, it's because C developers like rust too.

Yes, Rust has unsafe and unsafe rust is trickier to get right, but you use it opt in and it's only a small amount if the code. Zig is still having unsoundness bugs in relatively simple code

2 comments

> More and more C programmers I speak to say they realise with Rust they will likely never work with C again full time.

Speaking as someone going the other way, just started working with C full time.

Yes. Oh Dog, Yes!

Data structures that rely on the memory layout semantics of the C compiler and casting void * is very cool, very 1990s, and does my head in!

I don't have much experience and I see C as something I would never be able to touch as they seem quite high level for me with the manipulation of memory and stuff.

And from what I see, Rust can sort of make it easier by making you think about the lifetime of the memory while coding and that's why I really wanted to learn Rust