-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIP-73 - Generic Comment #1233
base: master
Are you sure you want to change the base?
NIP-73 - Generic Comment #1233
Conversation
6a40f31
to
75b02b3
Compare
+1. Thread roots and replies should always be different kinds. This "Comment" kind could be for replies only. The thread root is usually the main content kind in each NIP. Then it would be similar to reactions. They can react to anything but they never start anything by themselves. I also think we should migrate Kind 1 to use this kind as reply in the future. Kind 1 should be for root posts only. |
It would be great if clients start posting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
We should deprecate nip10 root and reply markers and refer to this nip, so people are aware that kind 1 shouldn't be used for replies
I also think we should migrate Kind 1 to use this kind as reply in the future. Kind 1 should be for root posts only.
100% agree. Kind 1 being root and reply is extremely inefficient
Juggernauts, mavericks, all of you. This is a seriously breaking change breaking tons of existing software. |
But is it better or worse? |
Strong words for something that existing clients can just completely ignore. If devs feel like their clients don't show enough content they can opt-in to querying this kind, like they do with every other event kind. We also have to be realistic. Kind 1 sucks because it is overloaded. There have been multiple PRs that address this issue. At some point client devs will just use a different kind for replies, because it's easier to work with and is more bandwidth efficient, which is an important point since the majority of potential nostr users will use mobile clients that have bandwidth constraints. |
@dluvian the the bar for adding something to the nips repo has never been "will the overlords allow it", but "do two clients implement it". So if you can point to two clients that have added this, we can merge it. But it's also fine to have the conversation here and debate whether it's a good idea. I'm against it until we have a system for managing breaking changes. I think there are things we can do, but let's solve that before we break the experience in all existing clients. |
I made a mistake. This it isn't what I initially thought. Reading it again after a good nights sleep and I understand better what this is. If you need to comment on a patch, or on a bid, or on a relay list, this event makes it possible. My initial read was that all kind-1 replies would be replaced with these comments, and only kind-1 thread roots would remain kind-1, which is why I made the previous comment. But that's not the case. EDIT: And I got that impression from comments earlier in this thread, which were I'd say "aspirational" and not reflecting the NIP as it is proposed. |
But please explain why kind-1 notes cannot already be used to do this, and how a new kind improves things. I fail to see how it improves things versus kind-1. |
It is currently impossible to make a filter that only brings kind1 root posts. You have to download all new posts and replies and then filter the replies out. It's extremely wasteful. |
@mikedilger Also, this thread you are in is a good example of the current situation: diverse apps are indiscriminately using If we do nothing, more and more bogus events will get downloaded only to be discarded right away. A bandwidth waste to wsay the least. |
I agree root posts being of a different kind would be better. But it seems like a change that is too late to make. I'm adding it to mikedilger/nostr-next#31 |
But why? Not improving the protocol in fear of a migration process feels wrong. Especially since nostr is still relatively small, we should just bite the bullet if it's worth it. Consider that right now we can't:
|
Talking about the specifics here, I am failing to see how the new role-based tag structures ( Is this,
better than this?
|
Maybe what's missing is the clarification of the "schema" in value 1. We could specify the chars before the first
Parse the schema first and then send the rest of the value to the appropriate decoder if you support that. Do the same structure for replies. Then over time these letters can be expanded to words to represent more objects that can be root or reply. |
As you know, relays won't filter by marker. That's why the marker meaning became the indexable tag. "root" became "o", "reply" became "r" (mention became "q" - "The q tag ensures quote reposts are not pulled and included as replies in threads"). There's further explantion in the NIP at the threads section (there are two "This tag is useful to...")
I'm not sure about
|
The hashtag root comment will only show in UIs that follow the hashtag itself. Meaning, you can post into #bitcoin without notifying your followers on the regular kind 1 feed. Only people following #bitcoin would see your post. That is a great new feature to boost the use of hashtag-exclusive content. Same for geolocation as in #1170
I think these prefixes that define how the rest of the value is encoded are required. |
Makes total sense. Some time ago before this PR I also thought of location-based public chats. |
22.md
Outdated
**It must have a `k` tag** pointing to the kind of the subject being commented on. | ||
Its value has a prefix: `"n:"` for nostr subjects and other prefixes (listed in a section ahead) | ||
for things that aren't nostr events. | ||
|
||
For example, when commenting on a `kind:30023`, the `k` tag is set to "n:30023". | ||
When replying to another `kind:1111`, the `k` tag is set to "n:1111". | ||
|
||
The `k` tag is useful to fetch top-level comments about events of specific types, for example, | ||
by filtering with `{ "#k": ["n:30023"], "kinds": [1111] }`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see the point of trying to get top level replies only, and we should just keep a tag that specifies the top level note's kind.
Could we not implement non-existence filters and check for the existence for r
for this arguably nonexistent use case if we really need to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunatelly, non-existence filters are a dream that will never come true, according to previous 3 or so discussions about it on this repo.
On the lowercase k
tag, check previous response. Can also see it being used to hook up on { "#k": ["#:t"] }
filter to check for trending hashtags, cause the uppercase version would bring many more events. More on the hashtag use case for context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunatelly, non-existence filters are a dream that will never come true, according to previous 3 or so discussions about it on this repo.
Which ones?
They can happen without much performance penalty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly wouldn't dismiss it based off of those opinions. You don't actually need a tag exists/doesn't exist index, as 99.99% of tag nonexistence queries come attached with other indexable fields (kind, other tags, author).
I will make a PR soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe @mikedilger said the same thing at #683.
The caveat is relay may end up returning less events than the requested (even if there were more on DB) - of course considering client didn't request with a bizarre limit like {limit: 10000}
to start with.
Clients would lose the ability of figuring out if there are more events to fetch depending on the number of returned events. Like, if client wants chunks of 5 events, it requests 6. If relay returns 6, client knows it should ask for more.
I think this is probably a good idea. |
@mikedilger multiple NIPs have already been defining special kinds for contextual replies because people are very wary of using kind 1 -- as they should be, because kind 1 will show up in all microblogging clients without any context. So having a single generic comment kind solves that. Or we could create dozens of different comment kinds, all with the same format, but using a kind number for each situation. I think there are pros and cons on both sides. |
@pablof7z should we use this kind to reply Wikifreedia posts? :) |
b9d5b77
to
04ecb70
Compare
Agree it is better now. Anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite nice now. I do want to re-iterate that support for NIP-10 replies can never really be dropped, but this is a big enough improvement to have two ways of doing things. I'd be ok with seeing incremental adoption of this new kind, but I hope people take care not to break old clients that don't yet support it, especially with the microblogging use case.
73.md
Outdated
If the parent item is an event, a `p` tag set to the parent event's author SHOULD be added. | ||
|
||
```json | ||
["p", "<pubkey>"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relay hint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Don't merge this without renumbering the file. It currently overwrites an existing NIP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will implement this; I hope kind:1
-centric clients REQ for this kind; my fear with going off kind-1 is that the other stuff, which is one of the important things that make nostr special, can get it's discoverability greatly reduced (the "Is this Lana del Rey?" case)
Let's see how this goes.
And dont merge without 2+ clients using this in production |
That is the goal. |
@fiatjaf @arthurfranca @staab if we replace NIP-73 and remove the Also if NIP-73 disappears - how are clients supposed to reference external content ids in non-kind-1111 events? Generic comments are not the only thing where this is useful. A simple example is a long form article that wants to reference these ids but there are many more. I think you're correct that it doesn't matter if we remove the Wouldn't it be better to keep this Generic Comment as a new NIP and just have a note that the NIP-73 external content ids can be used in the |
I published a plugin to the Chrome webstore making use of this new NIP: https://chromewebstore.google.com/detail/sitechattr/oailcfmjgnkmpieilanaidbpgbjklafc |
@MerryOscar how have you been using the Also nothing prevents using the schemes defined here in other events, NIP-73 continues to hold the table of the canonical way of referencing external content. |
@fiatjaf I'm definitely onboard with this NIP and we plan to switch the podcast comments in Fountain from kind My concern / frustration with replacing NIP-73 and the
By overwriting NIP-73 it breaks all of the above.
that is not what this nip describes or was intended to describe - it describes a way to leave a generic comment that may or may not include a reference to an external content id What's the downside to keeping the NIP-73 From my perspective the |
Also - if people think it's beneficial to overwrite NIP-73 with this NIP - why not use Having said that I still think it's useful to have the |
I'm happy with using the I think a table in NIP-73 can serve other kinds that aren't comments too if they are referencing external events. We could have a different NIP, but then this one will have to reference that such that the references have the same format, and then I feel it's just more completely for the readers and more work for the nippers. Maybe we can do a single NIP for now and migrate the table of definitions later if necessary? |
+1 on using This schema should be used for any external reference for root + parents of any event kind, not just |
I still think they should be separate NIPs because it makes things much clearer where to look for the documentation - but at least if the
Another example is the Audio Track NIP which already references NIP-73 and has partial support. |
I've created a PR to expand the existing NIP-73 with the full list of ids and also included the My preference would be to keep the existing NIP-73 separate from the Generic Comment NIP - but if everyone else thinks they should be combined then that's fine too. I guess either way the actual structure of the kind One other thing - if we are going to combine them there are some missing pieces from the original NIP-73 that would be deleted with the current draft of this PR: book isbns without hyphens:
movie isans without the version part:
|
I agree with Oscar, these should be separate NIPs. |
I'm ok either way. Someone please decide and inform me. |
PR #1508 moves the table and aligns the identifiers with this. We can delete it from here and just point to NIP-73. |
Please read here