3 ms·
I agree, that's the right way to do it (not required for a batch compiler, though, because there are no edits). Text ropes work that way as well - contents are
by jstimpfle 5y ago
I agree, that's the right way to do it (not required for a batch compiler, though, because there are no edits). Text ropes work that way as well - contents are stored in a tree, and absolute coordinates are computed from relative coordinates using an associative operation (monoid).
- duped 5y agoI have yet to see a batch compiler that wasn't hacked into some context where it's used as anything but a batch compiler!