
Software development consultant βΊ I fix orgs so they stop breaking prod Β· SCE fixes this (https://www.nitter.cf/t.co/yfc3IGf4kS) Β· populizer of the term typefuckery
Zagreb, Croatia
Joined October 2014
- Tweets22.2K
- Following145
- Followers1.2K
- Likes37.6K
David Abram π retweeted
We would like to extend our heartfelt thanks to Drew DeVault for his kind words and for nominating typememetics for the prestigious "Weird Little Guys of FOSS" award.
It is an honor to have our contributions to type safety, free software, and formal verification recognized.
David Abram π retweeted
π Advent of Types - Day 4
Given the following signature:
puzzle :: (a -> a) -> (a -> a) -> a -> a
Your challenge:
1. How many observationally distinct total implementations exist?
2. Characterize them all.
3. Prove that no other implementations exist.
Any sufficiently typed language is welcome.
No unsafe operations, no partial functions, no golang, no cheating.
Truth in Types, Safety in Thought.
David Abram π retweeted
You could prepare for an AI-generated software apocalypse by exchanging Haskell compilers before you need them. Say you fill two flash drives with identical copies of GHC, its dependencies, and a collection of verified libraries and hand one to your buddy, i.e. you establish a trusted compilation environment. You could then exchange well-typed programs even if the entire software ecosystem is flooded with AI-generated nonsense.
And how would you exchange your Haskell programs? Any way you want, because youβre not depending on the intelligence of the authoring medium. You could use email, snail mail, or courier pigeons. Haskell programs are naturally plain text, so you could even write them by hand. This would certainly be inconvenient, but at least they would type-check.
David Abram π retweeted
π Advent of Types - day 3
Type theory puzzle every day!
Given the following signature in Haskell:
puzzle :: (Either a b -> c) -> (a -> c, b -> c)
Your challenge:
1. Implement the function.
2. Implement its inverse.
3. Prove that both compositions yield the identity.
4. Identify the mathematical law behind this isomorphism.
Any sufficiently typed language is welcome.
No unsafe operations, no partial functions, no golang, no cheating.
Truth in Types, Safety in Thought. Happy Advent of Types!
So a type hater (@potetm) forced me (at a gunpoint) to make Advent of Types (@typememetics), so now I am re-learning type theory.
David Abram π retweeted
π Advent of Types - day 2
Type theory puzzle every day!
Given the following definition:
type Not a = a -> Void
And three function signatures:
puzzle1 :: a -> Not (Not a)
puzzle2 :: Not (Not a) -> a
puzzle3 :: Not (Not (Not a)) -> Not a
Your challenge:
1. Determine which functions can be implemented.
2. Implement them wherever possible.
3. Prove why the remaining function cannot be implemented.
4. Explain what this reveals about classical and constructive logic.
Any sufficiently typed language is welcome.
No unsafe operations, no partial functions, no classical axioms, no golang, no cheating.
Truth in Types, Safety in Thought. Happy Advent of Types!
David Abram π retweeted
π Advent of Types - day 1
Type theory puzzle every day!
Given the following signature:
distribute :: (a, Either b c) -> Either (a, b) (a, c)
Your challenge:
1. Implement the function.
2. Implement its inverse.
3. Prove that both compositions yield the identity.
4. Identify the mathematical law behind this isomorphism.
Any sufficiently typed language is welcome.
No unsafe operations, no partial functions, no golang, no cheating.
Truth in Types, Safety in Thought. Happy Advent of Types!
> I can't schedule checks every 3 minutes. ChatGPT's minimum recurring check interval is one hour.
1
1
128
David Abram π retweeted
This is the best Zig codebase ever. If you are not using Roc rn, you will be left eating dirt with the rest of the Golang devs.
Very nice.
After eight years of development, announcing @roc_lang version 0.1.0!
rtfeldman.com/roc-0.1.0
It's high time to compile roc interpreter to webassembly and use it as mcp codemode lang instead of javascript.
After eight years of development, announcing @roc_lang version 0.1.0!
rtfeldman.com/roc-0.1.0
2
12
562








