Hacker News new | past | comments | ask | show | jobs | submit login

Did you consider using cap_std?

https://github.com/bytecodealliance/cap-std

Or if it's deficient in some way, contribute to it perhaps

The idea behind cap-std is being a stdlib for wasm runtimes in the backend. Wasm is supposed to give us sandboxing for free. It would suck to squander that by not having granular capabilities.




This work eschews practicality. The API will be super annoying and no one will want to use it but me. For example, the IO god object is passed to main as a reference rather than by value. I don't think there's any risk of splitting the ecosystem and I don't expect the cap_std project to really be interested in my BS.

That said, I did not know about cap_std until you mentioned it. I might steal the thing where all fs functionality is provided as methods on a `Dir`.


You mean, this work like, your own capability-based std?

No really I think you should use cap std maybe in a project and see if it meets your needs first




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

Search: