by yjftsjthsd-h · 1w ago · 0 comments
What does that mean? Like... small stdlib with everything moved to extra libraries? Languages don't really have a ring 0 so I'm not sure how to read this even though it feels like a maybe-interesting take
Instead, (parts of) programs should be restrictable to pure computation by denying any external resource access by default, unless explicitly granted or approved more (to the minimum they need, following the principle of least authority).
See: https://en.wikipedia.org/wiki/E_(programming_language) or any of the languages listed here: https://en.wikipedia.org/wiki/Object-capability_model#Langua...
Having a microkernel OS isn't really sufficient if you want to "hollow out the attack surface" well, because many programs (including imported libraries) consist of hundreds of thousands of lines of code made by hundreds or thousands of people (and now also AI). So programs should be internally compartmentalizable as well. Only this, imported libraries being able to sandbox their imported libraries and so on recursively truly reduces the possible effects of vulnerabilities to a minimum.
And only programming languages (or virtual machines i guess) can achieve these types of guarantees in a platform independent way.
What counts is not the mental model programmers build in their minds. It's the machine code that executes inside CPUs.
Case in point: https://hforsten.com/redefining-the-number-2-in-python.html
Add a zillion past, present and future supply chain attacks as examples too