DEV Community

Discussion on: Can Rust replace C/C++ as a systems language?

Collapse
 
deciduously profile image
Ben Lovy • Edited

I guess I'm not convinced that unsafe rust is worse than C-via-FFI. You still get to do all the same things, and don't have to futz with an interface layer. Even if a large amount of your code needs unsafe, you can still wrap it up neatly with safe abstractions, which you'd also be doing with a C library.

I don't personally perceive writing unsafe Rust to be much different than writing in C, is that not your experience? If it is significantly easier to implement in C, then it's probably worth it, but that's not been the case for me.

Likewise - your CLJS series is making me want to revist that stack, it's been a while.