I like when the reality of the protocol forces us to think about better ways to represent things like follow counts. Trying to copy centralized concepts is not going to work on a decentralized network. Luckily realizations like this will push us in a much better direction: measuring meaningful connections between individuals and displaying that instead. View quoted note →
jb55
_@jb55.com
npub1xtsc...kk5s
I made damus, npubs, and zaps ⚡️
Independent bitcoin core and lightning dev.
Owner of the oldest still running lightning node.
💍nostr:npub1l0gxx3qq9ex5lpurnfmqhfdrx27xfgj24sx6kqmk3r8a5cne63zspx78fx
eigencentrality + web of trust View quoted note →
the future of damus is a marketplace of turing complete, sandboxed edge algorithms powered by nostrdb. edge algorithms means no relay overhead. efficient, private, scalable, where new algorithms can be created, shared and sold without limits.
I just figured out a solid plan on how to make this happen. I’ve started building it today. This may be bigger than zaps 💥
For example: once I add WoT scoring to nostrdb, nostrscript query filters will be able to do queries such as:
{give me all the notes of kind 1 with wot > 5}
the nostrscript is a simple wasm function:
{wot_score(note.pubkey) > 5}
Paired with a query: {“kinds”: [1]}
which can be jit compiled and run alongside the nostr query. Possibilities are endless really.
Maybe you could represent this as:
{“kinds”: [1], “reducer”: “nscriptabcdef…”} View quoted note →
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.