100 points · by anonsivalley652 · 6y ago · 50 comments
From a high level view, I don't really what's really different for RIOT OS
https://news.ycombinator.com/item?id=19016945
But asking questions is not spreading FUD in my book
And I would argue that Arduino support nowadays is a negative, not a positive. Arduino support means that you are going to do a bunch of things to support 8 and 16 bit systems that look absolutely silly on 32 bit systems. And, it's not even clear that Arduino systems are actually cheaper or lower power than ARM Cortex-M4 systems anymore--which negates the advantage of Arduinos.
[citation required]
(Edit: link is for the curious. Reposts are fine after a year or so: https://news.ycombinator.com/newsfaq.html.)
Btw, would it be a bother to suggest a tweak to the submit action's link uniqueness check to prevent dupe items differing only in URI scheme?
// Crunchy pseudo-LISP below
(defun flip_scheme (url)
(sed "s/^https/@ttp/;s/^http/@ttps/;s/^@/h/" url)
)
// after sanitization/normalization at the point of checking for dupe items
// instead of
// (has_url url)
(if (has_url url)
(return (redirect 301 "Moved permanently" (item_for_url url))
)
(let flipped (flip_scheme url))
(if (has_url flipped)
(return (redirect 301 "Moved permanently" (item_for_url flipped)))
)https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
... but it's beginning to look like maybe we need to.
But there is also a PR for IPv4 in GNRC: https://github.com/RIOT-OS/RIOT/pull/12988
Note that I said "the most vanilla of ARM platforms." If you're using a Cortex R microcontroller like a TMS570 or RM4, using Rust means that you're now missing out on the functional-safety-standards-compliant diagnostics library and various other tooling provided by TI that is a key part of the product, but hey, at least you have a compiler. If you're using 8051, a lower-end PIC, RX, RL78, RH850, 68k, etc, you don't have a compiler at all. That's a pretty dire situation.
None of this is to say that the situation can't be different in 10-20 years, but Rust is nowhere near as universally useful as C is in the embedded landscape, and that counts for a lot.
https://www.cvedetails.com/vulnerability-list/opmemc-1/memor...
https://msrc-blog.microsoft.com/2019/07/16/a-proactive-appro...
Which are reaching the tipping point of enough is enough.
Which is why Android 11 will now require memory tagging hardware for C and C++ code, when running on ARM.
https://security.googleblog.com/2019/08/adopting-arm-memory-...
https://source.android.com/devices/tech/debug/tagged-pointer...
And no, it doesn't need to be Rust, in fact NVidia has decided to dump C and C++ for security critical firmware, betting on Ada,
https://blogs.nvidia.com/blog/2019/02/05/adacore-secure-auto...
While F-Secure is using bare metal Go for their Foundry, https://www.f-secure.com/en/consulting/foundry
Speaking of seL4, Genode OS is now using Ada alongside seL4,
Now does seL4 support properly modern CPUs: multiple cores, with different power settings? This I don't know.
And what about Spectre?
seL4 may give you a formally verified kernel. However, formal verification is a dark art with very few high priests that actually understand it on the planet. Unless it becomes commoditised, it's not going to be popular. There has been some work towards that but it's still high-priest land.
Unless a significant portion of the software that runs on top of that microkernel is also formally verified, there's always risk of many sorts.
Oh and don't forget the fact that the hardware itself is likely not formally verified so open to attack.
That's a very absolutist way of thinking and therefore not very practical I confess - but hey I was playing devil's advocate.
If the Sealed Rust initiative succeeds then we may have a general purpose formal provability story at the Rust-LLVM-IR boundary thanks to the RustBelt project. That, in theory, will open the door to provably correct kernels and full stacks which I think is the right way to attack the problem.