Replying to Avatar Water Blower

nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn

https://www.youtube.com/watch?v=R-5DHymkfzw

Very insightful. I love Rich Hicky's talks as well. Never written any clojure but it influenced me deeply.

If we treat relay as stateful objects and DVM as methods, should we just have a "function call" NIP?

You must know Datomic right? Datomic is a really interesting database but since it's close sourced, we can't play around and learn it's implementation.

Do you think we can implement something like Datomic in a Nostr relay?

Database as a value or relay as a value.

Following up with this talk, since an event is immutable. It makes no sense to have a stream of immutable data of 1 item.

put in programming term:

get(event_id) -> stream makes no sense

get(event_id) -> event | nothing makes sense

Then, we should just have

http get/post for read/write a single event.

Web Socket everything is overrated.

The only use case that might justify stream of 1 event is that at the moment of querying, the event is not in the relay, but in the future the event might be published to this relay by other clients or relays.

But, in order for a user to even know the ID of an event, the event has to exist in some relay before the time of sharing.

http get(nevent) always makes more sense.

Reply to this note

Please Login to reply.

Discussion

No replies yet.