buster
axionbuster.com
buster
@axionbuster.com
constant, yet volatile
i really like this example from heftia
December 27, 2024 at 6:40 PM
TIL a purely functional double-ended queue with worst-case constant time access to either end is possible and that listing monads explicitly in such a data structure can improve the time complexity of certain operations (such as list concatenation) by changing assoc. of (>>=)
December 27, 2024 at 5:50 PM
TIL §§ (sections) is the plural of § (section)
December 24, 2024 at 3:13 PM
Reposted by buster
December 23, 2024 at 2:49 PM
Reposted by buster
@wunidz.bsky.social here ya go. Not the easiest on the eyes but it's what I could make

drive.google.com/file/d/1udxh...
result.mp4
drive.google.com
December 21, 2024 at 9:40 PM
i feel so sad when a fellow man says “there are no femcels,” because that means he’s not often had the experience of girls-you’ve-just-met trying to cling onto him and do weird “cutesy” things hoping it’ll actually make them look cute. i always wonder if/how they get bf at all
December 22, 2024 at 1:13 AM
can anyone explain how this works?
December 21, 2024 at 10:39 PM
Reposted by buster
December 21, 2024 at 3:40 PM
undefined behavior can really do anything
December 21, 2024 at 4:59 AM
what is so “least” about a least fixed point? in what order?
December 21, 2024 at 1:39 AM
DDA line drawing algorithm, dimension-independent, lazy, infinite

original algorithm is from Wikipedia (for 2D, in C)

image: magnified image output, (0, 0) to (10, 5)
December 20, 2024 at 8:49 PM
to build a list in the correct order in Haskell, choose one of three ways:

1. use a writer monad
2. build it in the reverse order, and then reverse it back
3. instead of using a list as an accumulator, use a function of type (a -> [a]) as the accumulator.
December 20, 2024 at 5:41 PM
the usefulness of MultiWayIf in Haskell programming cannot be overstated

(but you could hack it using case () of _ | condition1 -> expression1; _ | condition2 -> expression2; ...)
December 20, 2024 at 5:08 PM
“is this object oriented mathematics?”
December 20, 2024 at 4:25 PM
fuck the gang of four, stand edward kmett… seriously
December 20, 2024 at 4:10 PM
if you have an array with four (4) elements -- a product type -- then its index could be one of four (4) choices -- a sum type

indexing is to logarithms as functions are to exponentials
December 20, 2024 at 3:02 AM
Reposted by buster
at santa-scale it probably has to be done by separate nodes in a distributed system
December 18, 2024 at 10:26 PM
there's a whole community on the internet accumulating knowledge about teaching, metathinking and problem solving

amazing
December 20, 2024 at 1:21 AM
digging this aesthetic
December 20, 2024 at 12:57 AM
when i was 22, i was rotting in bed

when Twan van Laarhoven was 22, he published in a blog post an innovation that would be later named after himself ... van Laarhoven lenses

also, scary to think that he's nearly 40 now

time flies like a banana
fruit flies like an arrow
December 20, 2024 at 12:27 AM
Reposted by buster
If one has to use CPP in Haskell, doing it in the cabal file as a way to conditionally include modules instead of sprinkling #ifdef/#endif across the code-base feels much cleaner to me. A small amount of code duplication is better than slicing and dicing code to the point it becomes unreadable.
December 18, 2024 at 5:49 PM