203 points · by rainbowmverse · 8y ago · 63 comments
For example, if HN implemented ActivityPub this comment could be directly replied to by users on Mastodon or PeerTube or any other AP service, directly from that interface. Like email, it just works.
IMO it genuinely represents the way we should be thinking about web applications and services.
Still a great tech though. I just wish the authors would think about IRL and not just assume a perfect sphere in a frictionless vaccum.
If HN did implement this then would they have to blacklist bad instances? What is to stop people from spinning up bad instances faster than HN could blacklist? So we'd surely end up with a whitelist which isn't very social.
HN has a very particular culture and that would dilute it.
In practice, it looks like Mastodon also stores / caches local copies of messages and profiles, pretty much as they are received. (Including thumbnails!)
This was very much an experiment in building something that talks ActivityPub Server-to-Server. Chess happened to be a fun, not too difficult idea to get the experiment going. (The chess parts are largely built on existing work, such as chess.js and icons from the same set Wikipedia uses.)
Feel free to ask anything!
Someone will probably come along and build a GUI that works with the toots. It would be a neat browser plugin project. Are you planning to open source this?
By a GUI client, I mean a frontend that you can log in with your Mastodon/Pleroma/AP account in order to play in real time and/or view other players' games. Possibly integratable into AP-compatible clients.
I'm not sure if clients even have functionality to integrate? Most have an 'open in browser' option that I guess could work, but you'd still need a session with the AP provider. (And those APIs probably all differ too!)
One thing that's kind of cool: Each message and game detail page can also be requested as JSON using the Accept header. For messages, ActivityPub actually requires this. But for castling.club, these documents also include SAN and FEN for the chess moves and board states. And there's a JSON-LD vocabulary to describe it: https://castling.club/ns/chess/v0
That's a very technical advantage, I suppose. And how beneficial that is in practice (outside chess) remains to be seen. :)
One of the first programs was a chess board which would stay up-to-date with all of the previous "moves" in a reply chain.
I guess as a (former) shareholder I probably benefited from twitter's switch from trying to knit together amazing primitives like this in favor of becoming an ads-driven behemoth, but the engineer in me is sad about all of the amazing projects that never released.
The wonderful modular world you saw was only delayed, and now it's going to happen with much cheaper CPU, transfer, and storage.
Blog that describes implementing a trivial ActivityPub server: https://blog.joinmastodon.org/
That article does a nice job explaining the very basics.
I think https://activitypub.rocks/ is meant as the landing site, with a list of implementations.
I think it should be possible. For example, federation in Plemora seems lightning fast on a local instance. (Mastodon is a bit heavier and slower it seems. Then again, I’m currently fighting interop issues with Plemora instances.)
So it seems it should be possible to build a decently responsive messenger with ActivityPub.
That may have really helped with HN load too? That and caching. Pretty much everything is served from nginx cache.
But I was tailing the access log at several points, and HN hugs actually didn’t look that bad in terms of request rate. I can imagine a heavier dynamic site having trouble, though.
But I’m not big on Facebook as a whole. In fact, I deleted my account this year.
I hope this wave of federated services grows to be something amazing. There’s certainly a lot of excitement right now!
The board flipping is because they are technically toot detail pages, and in the toots I thought it’d be better to show the board from the side of the player whose turn it is?
Though I’ve also found, while waiting for the other player, planning ahead is also difficult because of this.
Maybe it just needs to show both, side by side, always?
Needs some work, but I guess it works :). https://mastodon.technology/@temporal/100503996824375029
It seems like a good place to start as any. Putting it on top of TCP seems like an optimisation, that can always come later if necessary.
Does anyone know what kind of protocol Wordfeud (Scrabble clone) uses?
Next in your ChessOver episodes, try Chess over XML over TCP with XMPP Pubsub!