News for hackers. Stuff that matters.
Re:Fast memcpy, A System Design by nerpderp82 on Monday December 19, 2022 @10:03PM (#34061021)
If the heap were treated like a typed database, with transaction semantics, many of our problems with disappear. Layout should not be an implementation detail. I know Wasm won't solve this explicitly, but at least have a chance while everything is being redefined.
Re:Fast memcpy, A System Design by robotresearcher on Monday December 19, 2022 @10:33PM (#34061210)
Wouldn’t that move the data transformation costs from at I/O time to all the time?
Re:Fast memcpy, A System Design by monocasa on Tuesday December 20, 2022 @02:20AM (#34062686)
Not if the encoding can simply be consumed in place, needing only a validation pass if it's coming from an untrusted source. Cap'n Proto is pretty close to that for one example.