Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The linear address space is the root reason why any language with FFI support will be inherently unsafe, unfortunately. Any errant pointer from C can accidentally (or intentionally) corrupt objects in the safe language. It's a difficult problem to solve.

Vale's "Fearless FFI" designs [0] says we could sandbox entire third-party libraries using a WebAssembly compilation step, which might work well. Sometimes I wonder what would happen if we made an entire OS using Vale, and what kind of security improvements it might bring.

[0] https://verdagon.dev/blog/fearless-ffi



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: