Hacker News new | ask | show | jobs
by sneakinsnake 785 days ago
Can the same outcomes be achieved using C or C++?
3 comments

Of course. You can't do anything fundamentally in Rust that you couldn't do in C or C++ or Assembly. You can just do it a lot easier and with fewer bugs.
I think Rust+C is way more effective (and by that i mean easy to write) than Rust or C alone, and i would bet that "Rust-written" in the title really mean "Rust+C".
It's BPF-based so I imagine the meaningful part is already written in C.
> Languages

C 91.3%

Rust 8.1%

Other 0.6%

It can even be done in BASIC for that matter, provided there is a compiler toolchain that supports eBPF as target.

Yes, it can be done in C and C++.