We run high-load web services in something-other-than-c with managed memory and checked array access. It is native, 8/9 as fast as C, and it works. We will never have the budget to pay for the additional 1/9th that C would afford us, in terms of security concerns. Yet, everyday, I have to field questions about why our low-level, network-facing system code is not written in C... old prejudices die hard.
Have you ever been asked to switch down into Assembler mid-function in C to solve timing issues in the hardware? I have... but that was 20 years ago!
Building on Rock, Not Sand
11–20 of 112 posts
Re: Building on Rock, Not Sand
#12Talk is cheap; show me the code. There's a lot of talk about rewriting some crucial pieces in Rust but no actual work to follow it.
Re: Building on Rock, Not Sand
#13Re: Building on Rock, Not Sand
#14We run high-load web services in something-other-than-c with managed memory and checked array access. It is native, 8/9 as fast as C, and it works. We will never have the budget to pay for the additional 1/9th that C would afford us, in terms of security concerns. Yet, everyday, I have to field questions about why our low-level, network-facing system code is not written in C... old prejudices die hard.
Re: Building on Rock, Not Sand
#15I also have to point out that these pesky C buffer overflows are trivial to avoid in C++: just use std::vector::at.
Re: Building on Rock, Not Sand
#16Would it not be great to have a language as powerful as Rust but with the ease of Go?
Anyhow, must be like CAP. You can't have everything in a language.
Re: Building on Rock, Not Sand
#17On the other hand, it probably is less effort to rewrite PolarSSL in Rust than doing that proof.
Re: Building on Rock, Not Sand
#18Nothing comes for free. I expect to have to trade something for security. It seems we have to trade speed and size. Ok, it shouldn't matter to us: this should not be developers' call. Instead it should go into a costs benefit matrix with plenty of other technical and not technical stuff. Developers will advise on their part of the matrix, marketers on their own, etc. Managers will make the decision and be held respon…
Why do you think so?
Re: Building on Rock, Not Sand
#19Another rust proponent lecturing the world on how they should rewrite everything in rust. yawn
http://robert.ocallahan.org/2017/09/rr-50-released.html http://robert.ocallahan.org/2017/07/confession-of-cc-program...
Re: Building on Rock, Not Sand
#20Note that you can write safe C code. seL4 is written in C! (And verified in Isabelle.) If that is too hard core, PolarSSL is a normal looking C code, which still has been proved to lack any buffer overflow. https://trust-in-soft.com/polarssl-verification-kit/ has details. On the other hand, it probably is less effort to rewrite PolarSSL in Rust than doing that proof.
That's different from directly writing C...