Oddbean new post about | logout
 oof, just been putting together my version of how the NWC nip-47 API should be implemented in Go

sorry, not sorry, i'm not going to use the stupid `encoding/json` generic, overkill, expensive JSON codec when i have already written a perfect one for event and filters and i can mostly copy paste from that into hand written codecs for each kind of message that will not waste memory or rape your kittens like most json codecs do (very gratuitously)

more important work was the initial step of enumerating all the things, which are repeated repeatedly in the spec, several messages are basically the same as other messages, so i just wrapped them all up in an actual sane, complete set of symbols and structs

and for now, i need a fucking break, this was maybe 2 hours of fun, hard focus, and i loved it, and if you don't like it, fuck you

the best part is that i would have taken 4 hours to do it but Intellij's machine learning actually works and i didn't have to type more than about half of the code

all y'all twits using your intel nvidia microsoft garbage, no wonder you love all these convenient expressive languages and microsoft's shitty IDE to write your shitty code

because you are shitty

shitty likes shitty

quality likes Ryzen and Radeon and Go and fuck you all