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)
downloading mastodon replies to a post is surprisingly hard, I ended up just downloading all my mentions and statuses and then writing a recursive CTE in SQL to get all of the replies to a given post.
There's a `/context` endpoint that returns replies to a status but it doesn't return all of them and it doesn't seem to support pagination.
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