Why Nostr? What is Njump?
2025-05-30 20:58:26
in reply to

mleku on Nostr: btw, i'm just gonna say it again but the slavish use of websockets in nostr protocol ...

btw, i'm just gonna say it again but the slavish use of websockets in nostr protocol also introduces hellish problems for single- and few-threaded client apps like web apps, javascript is terrible at concurrency and that's partly because most websites don't use websockets, and that's why they are so bad at handling this, even with the 3 years of work of nostr client library devs on this task, it's just like trying to use a hacksaw to cut through a log, who would do that?

the inertia of continuing to use websockets and not extend to enable HTTP for clients is only going to see this get worse because i don't see the broader web dev community solving for something they don't ever use, even if it's theoretically possible to do it, the code just hasn't been nearly refined enough, and i would suggest that probably it needs native code to really do it properly

i write concurrent code all the time but i avoid it as much as possible because of how easy it is to get it wrong when a single or couple of threads works fine... and most of that concurrency is hidden within HTTP libraries in Go so you don't even see this, the go devs have ironed out most of the lumps in it, unlike javascript websocket libraries
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku