PostsBlogReposAbout
Samuel4 Nov 2025
live footage of me and @esb.lol learning about javascript’s sparse array behaviour
The Garden of Earthly Delights by Hieronymous Bosch 6 5 69
Samuel4 Nov 2025
JS: oh? you think arr.every(x => !!x).map(…) is safe? think again fucko
3 13
Samuel
@samuel.fm
anyway found a nasty little crash caused by sparse arrays and implicit reliance on the order of things rendering
Prevent sparse arrays in snapToOffsets by mozzius · Pull Request #9329 · bluesky-social/social-app
I accidentally introduced something quite stupid in #7128 - it would lay out all the interest tabs, and then when all the tabs had been all laid out, it would set the offsets to snapToOffsets. Howe...
github.com
3
4 November 2025 at 4:52 pmView on Bluesky