A net art piece that moves to a new URL whenever someone views it
permanent-redirect.xyz3 pointsby joshAg0 comments
[1]: https://news.ycombinator.com/item?id=44381297
[2]: https://arxiv.org/pdf/2506.19244
[3]: https://www.quantamagazine.org/a-new-pyramid-like-shape-always-lands-the-same-side-up-20250625/ Int -> Int
It's now String -> String -> Int -> Int
because it needs a registry and an image. Maybe it's String -> String -> String -> String -> Int -> Int
because there's a username and password required to access the registry. Icky, but if we make a few types like data Registry {
user :: String,
password :: String,
url :: String
}
that becomes Registry -> String -> Int
But we could make it better by doing something like data Foo {
reg:: Registry,
image :: String
}
and now the function can be Foo -> Int -> Int
This doesn't fix the image not actually existing in the registry, but at least now we know that the two functions aren't composable, and when it fails because the image doesn't exist we can hopefully trace through to see who the caller is that's giving it incorrect data.