Re:Rust Dependencies Scare Me
by 0cf8612b2e1e on Friday May 09, 2025 @05:23PM
(#43941003)
Is there anything in existence which has a version of this idea? It makes a ton of sense to me, but you are right that it would be practically impossible to do in a current language.
[ Parent
| on HN ]
Wasm + wasi let you define hard boundaries between components with explicit interfaces, might be loosely along these lines?
Yes, but you can't enforce this at the language level if your objective is security (at least not for natively-compiled languages). You need OS-level support for capabilities, which some OSes do provide (SeL4, Fuchsia). But if you're in a VM rather than native code then you can enforce capabilities, which is what Wasm does with WASI.
Austral, for example? https://austral-lang.org/spec/spec.html#rationale-cap
Re:Rust Dependencies Scare Me
by crabmusket on Friday May 09, 2025 @07:20PM
(#43941848)
Austral is a really cool experiment and I love how much effort was put into the spec which you've linked to. It explains the need for capabilities and linear types, and how they interact, really well.
Re:Rust Dependencies Scare Me
by metaltyphoon on Friday May 09, 2025 @05:56PM
(#43941278)
.NET Framework, windows only, (non .NET, aka .NET Core)
Capslock for go