Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Moving topics/contexts between communities

Technical Discussion
7 2 1

Gli ultimi otto messaggi ricevuti dalla Federazione
  • If we're going to be publishing activities regarding resolvable context collections then it may be time to introduce a new object type.

    It would be backwards compatible with f228 OrderedCollections... using the new type would signify support for the various activity types perhaps...?

    Edit: if this is what you were proposing with client managed collections, then my apologies 😅 the naming threw me off

    read more

  • Another solution: introduce a new object class, client-managed collections. These collections should have a property that differentiates them from server-managed collections, e.g. isClientManaged: true. And they shouldn't be paginated.

    I think this would be compatible with client-side signing.

    But companion object solution seems to be cleaner.

    read more

  • @julian that might be it, yeah. languages outside of javascript generally don't make a distinction between null and undefined, and even in javascript these are used inconsistently. for example localStorage.getItem will return null for a missing key. practically speaking, the "intentionally" distinction is a distinction without a difference in most processing contexts.

    read more

  • trwnh@mastodon.social undefined and perhaps that's why we're disagreeing on our interpretations of how these values should be handled.

    null in JavaScript is very explicitly a declaration that there is no value or "intentionally empty".

    null and undefined are two separate things here at least.

    read more

  • @julian what does js return instead? in most cases i'm familiar with, programming languages use null or nil or None for anything that doesn't have a value, or any reference which doesn't point anywhere. hence a null pointer exception when you try to dereference a null. if you try to get a value for a key that isn't in the dictionary, you get null by default because there is no value for a missing key. how would you consume a null value? if you have nothing to say, why say anything?

    read more

  • trwnh@mastodon.social I'm coding in js, which has all sorts of footguns, but even that won't return null when I attempt to access the non-existent property of an object... 😛

    read more

  • @julian this wouldn't be your AP lib, it would be your programming language itself

    read more

  • trwnh@mastodon.social as someone working on the consuming side, that is not correct.

    If my AP lib automatically assumed null when requesting an object property that didn't exist I'd consider that a bug.

    read more
Post suggeriti
  • 0 Votes
    61 Posts
    12 Views
    @nelfan @yala @mobilizon Exactly :)And that's really the magic of the Fediverse and ActivityPub. Right now, you're posting on a server running GotoSocial, and I'm posting on a server running Mastodon, but our conversation is seamless.Atlas work with Mobilizon in a similar way (though a slightly different mechanism). Think of the "map" in my demo as a search page - displaying ActivityPub posts from all sites that the admins choose to index.
  • 0 Votes
    4 Posts
    12 Views
    @julian It works, I answered you in the community forum.
  • 0 Votes
    1 Posts
    6 Views
    »The Case for Alien Life on Saturn’s Moon Just Got a Boost« https://www.404media.co/the-case-for-alien-life-on-saturns-moon-just-got-a-boost-2/?Fedizen.EU #Fedizen #Fediverse #ActivityPub #News
  • 0 Votes
    1 Posts
    7 Views
    Apologies in advance if I misrepresented anybody or missed any crucial bits of information. Jesse Karmani (jesseplusplus@mastodon.social), Ted Thibodeau Jr. (tallted@mastodon.social, and Julian Lam (julian@activitypub.space) in attendance Julian provided an update on adoption of FEP 7888 Both Piefed and Lemmy have adopted 7888, and will begin publishing resolvable context collections in their next release Jesse opened a PR to Mastodon, which received preliminary approval from Gargron@mastodon.social (ed. it was later merged, rolled back, updated, a new PR opened, which was then merged) This PR is the first of two planned pull requests. The first generates the outgoing context (the same as what Lemmy/Piefed have done recently) The seconds handles incoming contexts and backfills Jesse was asked whether it would conflict with existing reply-tree crawling methods, but the two are complementary. She expects additional discussion before the PR is opened. Julian noted that it would be helpful if statistics/analytics were gathered by the Mastodon team to see how conversation contexts and backfill works at scale; admits that existing implementations and testing has been small scale and may not reflect real-world usage. Julian noted that Lemmy's implementation (nutomic@lemmy.ml) does not paginate their resolvable context implementation. All objects are listed in one OrderedCollection Jesse noted that she followed Mastodon's pagination convention for collections. Context inheritance Julian asked for opinions on whether contexts were inherited in existing implementations. Notes that NodeBB inherits parent context, but checks further up the known parent chain for further contexts Julian admits that not everybody can and should do this, is also not sure anymore whether NodeBB actually does this. Julian notes the ideal implementation would be every object referencing their immediate parent, which would lead to the entire collection referring to the same context collection. Jesse: Decodon inherits immediate parent context only Ted: notes that this is a reinvention of inReplyTo Julian and Jesse note that there are marked differences between crawling the reply chain. A short discussion about how netnews and usenet handled reply chains was had. Julian notes that Lemmy will not inherit context. Every object will point back to its own server's context collection. This was a conscious decision by Nutomic as each instance is meant to consider its own representation of remote content as the canonical representation ActivityPub.Space Julian made a short shout-out to a new site called ActivityPub.Space, meant to be a hub for AP development discussions ("A federated space for ActivityPub discussions so that they don’t just get lost in ephemeral replies") A short double-back to NNTP and how they approach "eventual consistency" Ted: “Cloud of NNTP servers are all hosts of articles and replies.” Strictly speaking it’s not a reply tree as replies can be inReplyTo multiple parents