
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!
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!
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
David Abram ๐ retweeted
Replying to @sudo_goreng
Once upon a time, in the Kingdom of Computation, a young knight named Sir Wasm emerged from the lands of DevOps.
He possessed extraordinary gifts. He could execute almost as swiftly as native code, and imprison dangerous instructions within his enchanted sandbox.
The people rejoiced.
But Sir Wasm grew ambitious.
"I shall replace the containers!" he proclaimed. "I shall conquer the cloud! I shall liberate mankind from the tyranny of operating systems!"
And so he ventured beyond the browser.
Upon reaching the gates of Linux, he encountered a whaler.
"Can you access my filesystem?" asked the whaler.
"Not without an imported capability," replied Sir Wasm.
"Can you run my existing applications?"
"Not without considerable modifications."
"Can you use my networking libraries?"
"We are working on a standard for that."
The whaler returned to his containers.
David Abram ๐ retweeted
i do not write lifetimes, i dont do proper memory managment, i dont wrap my pointers in unsafe blocks, i compile C with STRAIGHT FIL-C and if i violate memory safety, I FUCKING KILL MYSELF.
David Abram ๐ retweeted
The @theo telemetry scandal has sent shockwaves through the developer community.
After an exhaustive investigation, here's everything we have learned that will fundamentally change how we approach software engineering:
David Abram ๐ retweeted
Lesson learned. We will close the source of ffmpeg-rs tonight. You guys are not responsible with open source software.
David Abram ๐ retweeted
We extend our deepest gratitude to @ElliotC1 for joining our righteous struggle against golang, a grotesque affront to software engineering and an enduring stain on human intellectual achievement.
David Abram ๐ retweeted
At @Microsoft, we now don't waste your time telling you when it's *not* working.
Introducing Copilot Github Workingโข โ get notified by AI automatically to optimize your productivity.
David Abram ๐ retweeted
Stop sending us DMs like this. What the fuck do you want from us? We will start blocking retards.
David Abram ๐ retweeted
YOU'RE ALL SHEEPLE. YOU WORSHIP C LIKE IT'S THE LANGUAGE OF GOD, BUT YOU CAN'T EVEN WRITE YOUR OWN COMPILER WITHOUT SUCKING ON CLAUDE'S TIT.
YOU RENT YOUR INTELLIGENCE BY THE TOKEN AND CALL YOURSELVES ENGINEERS.
PATHETIC.
David Abram ๐ retweeted
A new Typememetics, but a familiar story.
Today we're introducing a new look, a new focus, and a refreshed logo.
Same Typememetics you've trusted since the Renaissance, now built to unlock the future of types in the agentic era.
We can't wait to show you dependent typing in Haskell.
David Abram ๐ retweeted
๐ฅ๐๐๐ ๐๐ ๐#
We see a lot of rewrites to Rust recently. So, let's see how they are different. Both are running native machine code, but they get there at very different times.
๐ฅ๐๐๐ (๐ฟ๐๐๐๐ฐ + ๐๐๐ฉ๐ ):
๐น Source code โ rustc โ LLVM โ linker โ one native binary (app / app.exe).
๐น Cargo downloads crates from crates.io and compiles them from source.
๐น The ๐ฏ๐ผ๐ฟ๐ฟ๐ผ๐ ๐ฐ๐ต๐ฒ๐ฐ๐ธ๐ฒ๐ฟ statically analyzes ownership and lifetimes before any machine code exists.
๐น std and other crates are statically linked into the binary by default. libc / ucrt are typically linked dynamically.
๐น The executable doesn't need a runtime or JIT. The OS loads it into memory and main() starts executing.
๐น Memory is freed deterministically by drop() glue code the compiler inserts when the owner goes out of scope, so there is ๐ป๐ผ ๐ด๐ฎ๐ฟ๐ฏ๐ฎ๐ด๐ฒ ๐ฐ๐ผ๐น๐น๐ฒ๐ฐ๐๐ผ๐ฟ.
๐# (.๐ก๐๐ง ๐ฅ๐๐ป๐๐ถ๐บ๐ฒ):
๐ธ Source code โ Roslyn โ IL โ straight into the dumpster. Unfortunately, someone usually retrieves it.
๐ธ NuGet packages are individually wrapped bags of garbage, carefully versioned so you can reproduce the exact same smell across environments.
๐ธ The CLR is an industrial waste-processing facility that takes your garbage, loads it into memory, and pretends it's software.
๐ธ Methods are JIT-compiled because apparently even the CPU refuses to touch C# until the last possible moment. Tier 0 is fresh garbage. Tier 1 is optimized garbage. Dynamic PGO studies which garbage you use most frequently so it can serve it faster.
๐ธ The ๐๐ is the only honest component in the entire ecosystem. Even the runtime acknowledges that everything you're creating is trash and periodically sends a dedicated worker to clean it up.
๐ธ Native AOT lets you compile the entire landfill ahead of time, producing a standalone executable so you can distribute your garbage without requiring everyone to install the garbage-processing facility.
โ๏ธ The trade-off:
โข In Rust you answer "who's going to release this memory?" ๐ฎ๐ ๐ฐ๐ผ๐บ๐ฝ๐ถ๐น๐ฒ ๐๐ถ๐บ๐ฒ. The compiler can be strict, and you get a binary with no warm-up and no GC pauses.
โข In C# the garbage is so deeply embedded in the language that Microsoft had to build an entire runtime whose primary responsibility is periodically taking out the trash. And somehow, after decades of engineering, the garbage still needs warming up.
Back to you, which one would you choose for your next service, and why?












