Since XML were obsessed with standardizing everything, they had names for the parser types. "Sax parser" vs "Dom parser". Agreed that iterators seem like a nicer interface than callbacks.
I figured it was worth it to just pull the plug and finish up the XML stuff. Wasn't worth another stream (other than the happy hour vod from today). I think i'm quite happy with how it turned out github.com/sphaerophoria/sphwayland-client/blob/3fafa0979321665275dc66b7613445dc3ae63ffb/src/XmlParser.zig There's a lot of interesting stuff in here. Circular buffer reader with a bunch of iteration helpers for non-contiguous slices, vectored reads, 0 allocations, stack array lists, poggies!
12:17 There’s an awesome post on this called “Handles are the better pointers”. Goes more into depth about using arrays and indexes over pointers.
Since XML were obsessed with standardizing everything, they had names for the parser types. "Sax parser" vs "Dom parser".
Agreed that iterators seem like a nicer interface than callbacks.
dang i wish they made it sub parser and dom parser for the bit
I figured it was worth it to just pull the plug and finish up the XML stuff. Wasn't worth another stream (other than the happy hour vod from today). I think i'm quite happy with how it turned out
github.com/sphaerophoria/sphwayland-client/blob/3fafa0979321665275dc66b7613445dc3ae63ffb/src/XmlParser.zig
There's a lot of interesting stuff in here. Circular buffer reader with a bunch of iteration helpers for non-contiguous slices, vectored reads, 0 allocations, stack array lists, poggies!
I prefer to use /usr/bin/rm because xml is the worst thing ever created and it gives me nightmares
Ehh, using old W3 specification is okay because is og, but personally would have used ActionScript specification, more general, simple.