5 ms·
What language other than C would allow code to be used from all mainstream languages/frameworks? This is a critical requirement for a lib like openssl, having N
by mixedbit 13y ago
What language other than C would allow code to be used from all mainstream languages/frameworks? This is a critical requirement for a lib like openssl, having N such libs for N languages would be a nightmare.
- TillE 13y agoWrite it in safe, modern C++, with an extern C API. I'm sure that leaves out a few rare cases on embedded platforms where they only have a C compiler, but they could continue using existing libraries.
- mixedbit 13y agoI can't see why C++ would be any safer than C. For example Heartbleed like bugs in C++ are still very much possible.
- amalcon 13y agoIt's possible to define a subset of C++ that can be statically verified to not have this sort of problem. This can also be done with C, but it's more difficult. There are actually people who write in overrun-proof subsets of C++.
- christopherl 13y agoWow, I wish posts like yours weren't so rare. There is way too much undeserved hate heaped on C++ due to (imo) C programmers that pretend to code C++.
- michh 13y agoSomething that compiles to C? Or can compile to C at a slight performance penalty for unsupported platforms?