saaash
banner
sashunyaha.bsky.social
saaash
@sashunyaha.bsky.social
also accidentally got this effect:
February 4, 2026 at 9:02 AM
[SPOILER] I've spent way too much time implementing the simplex algorithm and found out that some optimal solutions are fractional. Now I need another algorithm to walk it back a little toward the integers.
December 18, 2025 at 3:05 PM
apparently the bug somehow only happens on the itchio page and we can't reproduce it on native or a debug web build. i feel a little vindicated now
June 10, 2025 at 5:35 AM
You can also close the least recently used tab if their numbers exceeds n. I set it to 5. You don't need much more than that imo.
January 18, 2025 at 2:29 PM
I did it! The trick turned out to be using another layer of commutators. I first swapped triples, like in the previous picture, then rotated the middle layer, swapped triples in reverse, and got this:
January 12, 2025 at 12:28 PM
it's possible but hard. i keep messing up extra parts.
January 10, 2025 at 1:29 PM
I'm trying to isolate the middle parts (so that it only swaps the centers instead of whole "lines" on that image), but I think it might not be possible.
January 9, 2025 at 12:01 PM
^ (yes, that's the solution to the second part. it's o(log n))
December 13, 2024 at 8:12 PM
0.007884979248046875 seconds
December 13, 2024 at 3:13 PM
I just looked up the right solution and apparently it's constant time. Mine is O(log(n)) and hundreds of lines of code, so... it sucks!
But here it is anyway: github.com/sufftea/aoc2...
aoc2024/day13/part2.py at main · sufftea/aoc2024
Contribute to sufftea/aoc2024 development by creating an account on GitHub.
github.com
December 13, 2024 at 2:10 PM
wait, it was a oneliner in python? give me a break...

i almost went insane writing this
December 13, 2024 at 1:45 PM
Didn't know about it..
I used some modular arithmetic to find an equation that spits out solutions that work for the x axis, and then used binary search to try them out until I find one that also matches on y.
December 13, 2024 at 1:25 PM
but i did it.
used a mixture of modular arithmetic and binary search.
December 13, 2024 at 1:16 PM