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

In Midori, objects are capabilities. This is possible because type safety is enforced and an object's type cannot be forged.

It's easy to imagine a capabilities system built around closures. For example, a capability to send on a socket could be an unforgeable closure that performs that sending. Are there any systems that work this way?




More details on Midori: http://joeduffyblog.com/2015/11/03/blogging-about-midori/ This is the first of several blog posts by one of the authors. I haven't read all of them, but liked what I read so far. Does anyone have other resources with more detail?


As a counterpoint, people would make poor-man objects in ancient Fortran by using array indices instead of addresses to reference the object. And you could use integers and lots of conditionals to represent polymorphism. You'd have to ban all sorts of things to lock out developers from making their own custom object systems.


> objects are capabilities

What does 'a capability' mean? People seem to use the term to mean everything from objects to threads.


In this context, it means the object capability model.

https://en.wikipedia.org/wiki/Object-capability

Which can be used as the foundation of security.

https://en.wikipedia.org/wiki/Capability-based_security

Relevant application in Midori:

http://joeduffyblog.com/2015/11/10/objects-as-secure-capabil...




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

Search: