4 ms·
There's a ton of platforms that Rust doesn't not target, or targets but without many guarantees of support. The can be problematic as its closest competitors (C
by saagarjha 6y ago
There's a ton of platforms that Rust doesn't not target, or targets but without many guarantees of support. The can be problematic as its closest competitors (C++, but especially C) generally have much more widespread support.
- tptacek 6y agoThat's a problem, but it's one that's more likely to be worked around (most likely: by maintaining unsafe forks for those platforms) than "creating entire new communities of support for another language" or "redesigning whole projects to make GC tenable". I think you might see some full-system rewrites for serverside components where Go will work out. But I think the projects we're talking about, like I said, have ended up in this position mostly because they can't easily be written in Go, or they already would have been (if only be a competitor).
- saagarjha 6y agoOh, I'm not suggesting that they will use Go–they will use C and I'm just responding to you saying that it is difficult to find situations where Rust is unworkable.
- tptacek 6y agoThe premise of this story is that ISRG is going to secure funding to essentially bribe people (my words, and I think it's a very good project) to not keep critical software in C anymore. My guess is what will happen in the cases where Rust is unworkable is that there will be less-secure forks for the obscure platforms.
- pjmlp 6y agoRust is not the only option. F-Secure has been using TamaGo for bare metal on their secure USB keys. MeadowLabs is using .NET with a tiny C++ hardware glue for IoT. Aicas and PTC are still in business delivering real time bare metal Java stacks. Astrobe is still in business selling Oberon compilers for embedded development. MikroElektronika is still in business selling Pascal and Basic compilers for embedded development. And then there are those 5 surviving Ada compiler vendors, one of them open source. Finally, if there is no way around having to use C, there is no reason not to use C++ instead other that anti-C++ hater religion. Unless we are talking about UNIX clones, thanks to them C will still be around for several decades to come anyway.
- tptacek 6y agoYeah none of that is going to happen. People aren't going to rewrite major open source projects in Oberon, or specially hosted .NET, or custom JVMs, or Ada. ISRG isn't going to arrange funding for things to be rewritten in another memory-unsafe language, so C++ is right out. Stuff is going to get rewritten in Rust. Sorry! That sounds snarky, I know. I promise, I'm not being snarky, and, again: it ain't my first choice (it'll be fine though).
- pjmlp 6y agoIn what concerns Microsoft, the official security guidelines are .NET, Rust and C++ (with Core Guidelines). As for the other platforms, and what Google is paying for, lets see where the bribe drives people into, after all from your point of view Google should rewrite gVisor and everything k8s as well.