Why Nostr? What is Njump?
2024-08-25 22:05:12
in reply to

mleku on Nostr: in my hobby relay rewriting work at the moment i'm literally in the midst of ...

in my hobby relay rewriting work at the moment i'm literally in the midst of implementing a correct and nicely constructed subscription handler

the stuff that fiatjaf wrote uses 3 separate libraries for no reason and doesn't integrate the websockets and subscriptions more cleanly... subscriptions are attached to specific sockets so if the socket closes the sub needs to die and query processing not check the filter anymore...

you can go look at some of his repos now, i forget which one, where he actually says that if you "don't use this properly" you end up with a massive resource leak... yeah, nicholascageduhmeme.jpg and it is so bad that i'm rewriting my whole relay engine from the ground up because fixing it made me pull in his incredible garbage spaghetti mess of way too many imports and disconnected stuff and unsafe use of concurrency and complicated context programming and his phobia about badger and mutexes lol

let's just say that it is all written almost exactly the way i wouldn't

so yeah that's why i spotted that i figured you must be writing some subscription handling code, i will likely have some commentary about the subject in coming weeks
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku