News for hackers. Stuff that matters.
Re:Writing a Memory Allocator for Fast Serialization by trishume on Monday July 03, 2017 @05:37PM (#14691580)
This is a similar approach to what Jonathan Blow demo'd recently in his Jai language. He uses relative offsets from the location of the pointer instead of from the base of the region though. The advantage there is that you don't need to pass around a reference to the current heap, the disadvantage is that copying/moving is harder but that can be mitigated wit compiler support.
Re:Writing a Memory Allocator for Fast Serialization by dryman on Monday July 03, 2017 @06:13PM (#14691842)
Author here. I did think about creating a programming language specialized for serialization. Fortunately, using just C seems to be sufficient for building a POC. Another advantage for using C is it is easier to embed into other languages. OPIC is more library focused, which would benefit for integrating into other languages. Jai language seems to be a application (gaming) focused language, and the language abstraction makes developer faster to code is more important.