Email or username:

Password:

Forgot your password?
Laxystem (Masto/Glitch)

Yesterday I implemented a #JsonLd algorithm myself (instead of delegating to Titanium)!

No, it doesn't mean I'll implement all the other ones myself --- but, I'm very tempted to do so. The algorithm (although I've skipped two short non-important steps for now) is only 15~20 lines! For comparison, the same algorithm (which is the document loafer one btw) is 150~250 lines in Titanium.

#Kotlin is awesome!

#ProjectGimli

7 comments
silverpill

@laxla Do you really need it? JSON-LD is not required for federation, and may even be harmful because some fediverse servers don't produce valid JSON-LD (at least that's what I heard - I don't do JSON-LD processing myself)

Laxystem (Masto/Glitch)

@silverpill yes. I find it much more reliable to expand everything before serialization.

Laxystem (Masto/Glitch)

@silverpill personally, I agree with @mikedev; don't support the ActivityPub spec word-by-word, I don't support you (said on Mastodon; oh, the irony).

Creating invalid JsonLD is therefore from my POV a bug in other software, not a design issue with mine.

Mike Macgirvin (dev)
I do actually try to support it word-for-word. Because somebody has to - or this is just going to be (or already is) going to be total chaos. That said, we started out with a lot more capability than this primitive "protocol" could provide and it has taken a number of years to figure out how to provide the zot 2012 feature set over 2018 ActivityPub -- in 2024. And that migration is ongoing; because we're hindered by the even more backward Twitter clones that took over the space and act like they own it and which refuse to play nicely with others.
I do actually try to support it word-for-word. Because somebody has to - or this is just going to be (or already is) going to be total chaos. That said, we started out with a lot more capability than this primitive "protocol" could provide and it has taken a number of years to figure out how to provide the zot 2012 feature set over 2018 ActivityPub -- in 2024. And that migration is ongoing; because we're hindered by the even more backward Twitter clones that took over the space and act like they...
Laxystem (Masto/Glitch)

@mikedev btw, does (streams) have a documentation page for all non-AP-spec features it supports? Will be useful.

Mike Macgirvin (dev)
There's a FEDERATION.md at the repository root that's only slightly out of date. I'll update it again when I get a chance.
Mike Macgirvin (dev)
The FEDERATION.md was just updated and I removed mention of some of the historical hacks which have been since been standardised.  Still a couple of rough edges, but I've got a lot going on at the moment.  Look in the dev branch of the streams repository for the latest:

https://codeberg.org/streams/streams/src/branch/dev/FEDERATION.md
Go Up