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

There also can and should be mechanical checks on libraries, to reduce the number of things that need heavy ongoing human review.

E.g. if a library provides a pure function, does it matter if the owner changes? It's still pure. If it becomes not-pure, yes that's immediately concerning, but in the meantime its ability to do anything nefarious is infinitely smaller than most current module systems allow, and your review-budgets should probably be spent elsewhere.




Some kind of capability system would be interesting, but to work within function level it would need some pretty sophisticated support from the type system.

On package level it might be easier? But then again you need to have quite fine-grained capabilities to describe what a package should be able to do. Of course, in Rust all unsafe code would need to be out (and it would be its own capability), but it still leaves exploiting the compiler bugs. For malicious changes that would of course be the vector to exploit and it might be very difficult to automatically detect them.




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

Search: