What is Nostr?
jb55 / Will
npub1xts…kk5s
2024-05-18 21:13:28

jb55 on Nostr: Pairing a nostr query with a nostrscript(wasm) filter makes a lot of sense: the ...

Pairing a nostr query with a nostrscript(wasm) filter makes a lot of sense: the nostrscript can be jit-compiled and cached, and the query plan is determined from the base nostr query so that the results can start returning instantly and efficiently. I think I just came up with a new kind of database powered by nostr 🤔

Arbitrary but fast sandboxed code execution to query a database sounds really cool, and it can be really fast, fast as strfry.

What if instead of just filtering, we pass a reducer, so you could effectively do map-reduce over nostr data 🤔 this can be used for counting and grouping nostr notes in arbitrary ways, directly from a query, efficiently. Holy shit.
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s