3 ms·
GitHub repository: https://github.com/stephenrkell/liballocs https://github.com/stephenrkell/liballocs I read the paper imagining a kind of COM implementation
by mappu 7y ago
GitHub repository: https://github.com/stephenrkell/liballocs https://github.com/stephenrkell/liballocs
I read the paper imagining a kind of COM implementation (apartments/marshalling/...)? But the Github readme makes it seem more like a kind of tagged malloc wrapper.
- stephenrkell 7y agoOuch. :-) There's a lot more to it than that, though wrapping malloc is certainly one part of it. (Reminds me I should finish my blog post on why wrapping malloc reliably is way harder than it should be.) But the key idea is to avoid introducing new abstractions -- anything that liballocs formalises should be commonly "lurking" in there already. So types and allocators are OK, but apartments would not be. It's not a new programming model... the newness should be at the meta-level only, i.e. ways of describing what existing code already does.