Expand description
The flat personality: nub’s reference Personality /
GuestPersonality pair.
nub is personality-generic, and until now the only personality was JAVM — 2,700 lines of capability semantics, which makes it a poor answer to “what does a personality actually have to provide?”. Flat is that answer: one program, one frame, no capability graph, no sub-VM calls, no yields. A program is published by content hash and invoked by content hash, and that is the whole object model.
It exists for two reasons:
- It is the executable documentation. The README’s “Building a personality” section used to point at another repository.
- It makes nub’s own JIT measurable. Executing recompiled code
needs the ring-0 substrate in
nub-arch-x86, which needs aGuestPersonality. Without one, nub could measure how fast it compiles and never how fast the result runs.
§Layout
Modules§
- hash
- Content-addressing for the flat personality.