3 ms·
There is no such language as C/C++. The alternative for people using this approach is running in a kernel module, or a kernel-bypass setup with root permission
by ncmncm 7y ago
There is no such language as C/C++.
The alternative for people using this approach is running in a kernel module, or a kernel-bypass setup with root permissions. Grown-up stuff. Eliminating most of the kernel, and using C++ not C is a very substantial improvement over status quo.
- klyrs 7y ago> There is no such language as C/C++. This is a really weird hill to die on; I see you've made the same comment several times in this thread. C and C++ fit hand in glove, and lots of folks use them in conjunction. I don't think anybody here has the misconception that C/C++ is a single language, unless perhaps they don't know either.
- ncmncm 7y agoThe point is that the practices that almost unavoidably lead to bugs in C code are not even tempting in modern C++. So, if you are interested in correctness and memory safety, stepping to modern C++ provides more value for time invested than the sum of most other choices. Equating the two is extremely common, even by people who are certainly equipped to know better. When you feel a need to tar C++ as if it were C, you signal the weakness of your argument before you have even expressed it.
- klyrs 7y ago> you signal the weakness of your argument before you have even expressed it. Please turn down your flamethrower, that style of conversation is not welcome here.
- ncmncm 7y agoWriting "C/C++", in contexts where it is implied they have the same failure modes, is provocative. Don't like response, don't provoke. It is fine when talking about ABI or object-code generation.
- paulddraper 7y ago"Modern C++" is a term that mostly just means "C++ sans the C parts". So yeah, it's different than C.
- imtringued 7y agoC/C++ means either C or C++. Most compilers allow your project to contain both C and C++ source code at the same time.
- ncmncm 7y agoOr Rust and C. Rust calls C libraries easily. So, is it Rust, or is it C/Rust? You choose. The failure modes of Rust code are very different from C's, but calling C libraries, as is usually a practical necessity in production, exposes you to all of them. Switching to modern C++ nets 90% of the benefit (plus other benefits Rust lacks, and may always lack) for 10% of the cost and 0% of the hump. So, is it C/Rust and C/C++, or Rust and C++?
- paulddraper 7y agoObviously it's Rust/C/C++/Python/Ruby/Java/Kotlin/Scala/JavaScript/TypeScript/Perl/Haskell/OCaml/Lisp/Racket The "/" symbol is an infinitely extensible shorthand for a union.