hhmx.de

Evan Prodromou

Evan Prodromou (@evan@cosocial.ca)

Föderation EN Mo 29.07.2024 00:07:10

@trwnh if your pages are like "first twenty items" or "start index plus 50 items", yes. That is the worst way to do paging. Removing an item from one page should not affect other pages. Treating pages like first class objects fixes most of these problems.

Erin 💽✨

Erin 💽✨ (@erincandescent@akko.erincandescent.net)

Föderation EN Mo 29.07.2024 00:09:53

@evan @trwnh they don’t even need to be reified, they can be purely computed. But they need to be computed off of a stable monotonically incrementing identifier

Which I think is how Mastodon pages work today

Evan Prodromou

Evan Prodromou (@evan@cosocial.ca)

Föderation EN Mo 29.07.2024 02:18:44

@erincandescent @trwnh I like keeping it simple: a collection is a doubly linked list of pages, and a page is an array of items. Add items to the first page until it's at some max size, and then insert a new page at the front. Easy peazy lemon squeezy.

Evan Prodromou

Evan Prodromou (@evan@cosocial.ca)

Föderation EN Mo 29.07.2024 02:26:42

@erincandescent @trwnh Anyway, I think we got way off your original point, a, which is that ActivityPub is really good for Web publishing. I disagree with your thoughts about other uses -- I especially like social games, but there's a whole chapter of my book on future applications -- but I agree that the CRUD cycle is handled pretty well.

infinite love â´³

infinite love â´³ (@trwnh@mastodon.social)

Föderation EN Mo 29.07.2024 08:28:05

@evan @erincandescent i may have not worded myself precisely enough but i am not against other uses; what i am uneasy with is the collapse of every paradigm of communication into a one-size-fits-all application of protocols. like, it would be better to have some consistent identity layer that could be used to not only publish streams of activities, but also to do proper messaging with a predefined audience to which people can be added and removed, and also to join and participate in communities.

infinite love â´³

infinite love â´³ (@trwnh@mastodon.social)

Föderation EN Mo 29.07.2024 08:23:13

@evan maybe the worst way but also the most useful! although i did explore statically generated pages back in 2022 (see socialhub.activitypub.rocks/t/ for that), i find that broadly speaking Collection paging benefits from being treated as a dynamic presentation layer. as a consumer, you often want the examples you cited. nevertheless it should still be possible to do static paging or ahead-of-time optimizations, as in the socialhub thread.