Email or username:

Password:

Forgot your password?
Top-level
Peter Zingg :verified:

@J12t I translated (by hand, not using ChatGPT) the go-fed library (which has C2S and S2S) into Elixir, and ran it against a checklist of tests I found in an activitypub.rocks thread, but 1. there needs to be an MVP or consensus on clients to decide what is standard and what is overridable and 2. I now prefer the architecture that @nutomic ‘s S2S Rust library builds over go-fed’s/my own.

github.com/pzingg/fedi/blob/ma

2 comments
Johannes Ernst

@pzingg @nutomic in a nutshell, what is that architecture? Perhaps a pointer?

Peter Zingg :verified:

@J12t @nutomic From what I could see, you get two type-safe structs for each AP object type, one is the database representation that can be persisted and the other is the JSON-LD representation that comes off HTTP and can be hydrated. Then you add logic / actions on top of these. It’s clearly defined in the Rust library with an “Object” trait that handles going back and forth between DB and JSON-LD. Also Lemmy is a real product; I was just trying to learn AP.

Go Up