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

You are a level too high in the stack - what is happening behind the scenes when you execute any of those?



As long as this gets type-checked at compile time, the types info can be erased during compilation and be absent at runtime.

Since traits / interfaces can't have their methods overridden, you don't need the dynamic dispatch, per-instance VMT, and such; you can have fixed offsets in a method table per class, both in userland and in kernel. (Some of the indirect calls can probably be made direct if the class is exactly known at compile time.)


If it were my design, IPC (auto-generated) to a corresponding method in the kernel.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: