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.
@sphaerophoria
4 күн бұрын
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!
@blarghblargh
5 күн бұрын
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.
@PennyEvolus
5 күн бұрын
dang i wish they made it sub parser and dom parser for the bit
@spicynoodle7419
6 сағат бұрын
@@PennyEvoluslmao
@PennyEvolus
4 сағат бұрын
@@spicynoodle7419 hehe
@whoman0385
5 күн бұрын
I prefer to use /usr/bin/rm because xml is the worst thing ever created and it gives me nightmares
@Seedwreck
5 күн бұрын
Ehh, using old W3 specification is okay because is og, but personally would have used ActionScript specification, more general, simple.
Пікірлер: 8