we all know floating point numbers can be treacherous, but what are specific examples of when they've betrayed you?
so far I have:
* money calculations where you need to get the exact correct answer
* twitter's tweet IDs are bigger than 2^53 and can't be represented as a Javascript number, you have to use a string
* implementing numerical algorithms (like matrix multiplication) (I've never done this)
I'm surprised by this. Each post has a replies collection that you can fetch. Fetching collections is slightly annoying (because they're usually paginated and paginated collections in ActivityPub work by each page providing the link to the next page), but is not too bad.
Is this more annoying than I realize or does that simply not work?
There's no fixed URL. The URL can be read from the `replies` field of the post itself: https://paste.sr.ht/~robryk/40f933d4009d3ee0ade413ae7c0163da5db74dc8
@b0rk It's not a Mastodon, but an ActivityPub API.
@robryk thanks, that looks promising! I haven't learned about ActivityPub APIs yet
The appropriate part of the spec for this particular thing is https://www.w3.org/TR/activitystreams-core/#collections, in case it's helpful (it describes all the weird quirks where field can be a string with the url of the object, a Link object that describes the same, or the object inlined which then might or might not have a canonical URL of its own...).
@robryk what's the specific api endpoint you're talking about? if it's `GET /api/v1/statuses/:id/context`, it didn't work for me (no pagination)