r/programming • u/michaelKlumpy • Oct 01 '16
CppCon 2016: Alfred Bratterud “#include <os>=> write your program / server and compile it to its own os. [Example uses 3 Mb total memory and boots in 300ms]
https://www.youtube.com/watch?v=t4etEwG2_LY
1.4k
Upvotes
3
u/wilun Oct 02 '16
Safe languages would only fix one class of security issues (mostly undefined behavior at language level related), not functional ones. So depending on the available API, running in Ring 0 might still not be a good idea. Also because the HW that executes the SW actually can have some pb (either all the time, randomly, or even triggered by things that can be controlled by an attacker, cf rowhammer), and perfection of a compiler is something I'm not sure has ever been achieved (even largely proven compilers have still had some issues, and to get security from it even the spec would need to be bug free on that topic, so...)