Caramel
FounderFreecaramel is a functional language for building type-safe, scalable, and maintainable applications

Cloudflare engineer and indie maker building agent-oriented developer tools, Rust build utilities, and code-quality workflows.
engineering & agents @cloudflare · typed actor maxxing since 2018 · ex @spotify @klarna · street photographer 📸 https://ig.me/u/gomugomuleo
caramel is a functional language for building type-safe, scalable, and maintainable applications
over the last month I've been constrained to fit all my work in a 512GB MacBook Pro, and this has led to 2 nifty little tools that make it feel like a 4TB machine:
🌱 t.co/CLheWOi0yA — twig's are lightweight copy-on-write worktrees for git, and they can get 99% (!!) smaller than regular worktrees!
📦 t.co/jZuBUKzygE — `cargo gc build` now keeps my ./target folder up to 90% (!!) smaller than plain cargo builds!
thanks to issues and comments from folks, I've managed to get these working great on linux and windows too. thanks y'all! 🙂↕️
huh i think this fixes cargo build sizes for agents
my little 512gb disk can finally breathe!
git-twig 0.6 is out 🌱
* install anywhere witj npm i -g git-twig * faster git status * new `git twig adopt` command to tidy up existing worktrees, and make them share disk space * Windows: native support on DevDrive and ReFS, can now install with Scoop * Linux: new multicore cloning and ARM builds
this is making it possible to continuously build several Rust projects on a 512gb disk, and it really does keep my ./target folder at ~70-90% less than without it
needs better support for windows, but its doing great on linux too!
huh i think this fixes cargo build sizes for agents
my little 512gb disk can finally breathe!
sometimes the only way to meaningfully improve on something is to start from first-principles and aim for 1000x
can't wait to share this but if your agents are using a model-checker like tla+/everystate to find bugs in your apps, you're gonna love Spock 🖖
the kind of tooling i'm missing is deterministic and so cheap that i can run it continuously almost at every agent turn.
for code quality i want semantic checks, essentially a graph representing the codebase in small (files) and large (modules, systems), that I can run queries over. from "no single name variable" to transitive properties like "only config.ts can provide default values when reading from ENV"
for system behavior i want models and traces, ideally hooked so deeply that running my tests locally produces system traces i can check against the models as part of the tests.
t.co/V5QgWSogpW making people trip but it’s very real! 📦
okay i want to introduce y'all to Spock but before I do, I want to share a bit about TLA+ and how you use it to design, check, and proof, and eventually verify a running system traces against it.
TLA is Lamport's temporal logic of actions — its a small untyped logic where by specifying an Init and a Next predicate you get to advance time discretely in a system, where each step is defined by Next, and TLA+ chooses from one of many possible combinations.
to actually go over that state space and see if some properties hold, you use a separate tool: TLC — TLC is a java based tool, and we got some amazing drop-in replacements like @mattzcarey's everystate that make it easy to run and insanely fast.
note that TLC can only explore _bounded_ states, so you give it a .cfg file "please run with 3 nodes, 2 keys, 10 messages" , and it runs until it comes back to you with an answer, or you kill it because its been running for hours.
if you want to check your design for _unbounded_ states, you need to use a specific subset of TLA+, include a type-checking predicate, and add another tool: the TLA+ Proof System — this interprets your proofs and translates them to provers like Z3, Zenon, or Isabelle.
but TLAPS performs only partial temporal reasoning, since it doesn't handle all of TLA+, so many of your original specs aren't usable verbatim and need extra "proof-friendly" definitions, like explicit types and inductive invariants.
say you've done this work, and built your system. now you gotta instrument your app to produce traces, and write a small spec that loads an NDJSON file into a Trace sequence, and TLC can then check it!
so this pipeline has a few interfaces, where we go from untyped .tla specs -> TLC + .cfg -> TypeOK + IndInv for TLAPS -> NDJSON logs -> TraceSpec -> TLC in discrete steps, and have to translate specs and schemas and keep them in check.
agents help a ton here, but they don't make the tools play better with each other.
to address this and unlock next-level optimizations, we I've designed Typed TLA to unify this pipeline — this enriches the semantic model of TLA+, replacing ZF set theory with an algebraic type theory that allows us to preserve and enforce soundness in your spec through the entire pipeline, enabling all sorts of optimizations
Typed TLA is the magic sauce behind Spock
sometimes the only way to meaningfully improve on something is to start from first-principles and aim for 1000x
can't wait to share this but if your agents are using a model-checker like tla+/everystate to find bugs in your apps, you're gonna love Spock 🖖
how to make the fastest semantic guardrail for agents in the world:
1. get the fastest approximate parsers out there (tree-sitter tyvm) 2. build a graph of facts over all the asts 3. run guardrails over a streaming parallel datalog query engine 4. profit
i think i cracked something, more news tomorrow
anyway here's probably the fastest streaming datalog engine out there: t.co/MywaIORV0l
i've been working on this on-and-off for a while now, as i've tried to build my ideal anti-slop tool a few times.
oldest working iteration of it is probably in Riot's CodeDB (t.co/KcCJR7JpcJ), but the last one was t.co/ftk3oCUdsF. at least until yesterday!
to make t.co/MywaIORV0l 🦊 up to 20x faster than the fastest datalog engines out there, while still allowing fully interpreted (not precompiled!) datalog evaluation, i've developed a new approach: Adaptive-Dense Datalog
imagine you got a database of train routes, which in datalog you'd store as facts:
train("london", "paris"). train("paris", "berlin").
then you build some relations by writing more rules:
% can_reach exists if there's a train between A and B can_reach(A, B) :- train(A, B), % and also if there's some middle-place B % so that you can go from A to B, and then to C can_reach(A, C) :- can_reach(A, B), train(B, C).
to query we write another rule but with _holes_, like ? can_reach("london", "berlin") and a datalog engine runs in *rounds* — round 1 discovers can_reach("london", "paris"), and round 2 discovers you can_reach("paris", "berlin"), so it answers yes!
now the problem is that to run these rounds quickly, you gotta store the facts in memory somehow. there's 2 classic approaches to this:
1. a big hash table: you only write down the pairs you find, like ["london", "berlin"] — this uses very little memory but ofc checking connections one at a time can be unusably slow (imagine you need to check millions of them!)
2. a bit-matrix: if you had 100,000 cities, you'd just make a 100k x 100k matrix of 1's and 0's and read 1 as "reachable" — modern cpu's can compare a lot of checkboxes at once, so this is wiiildly faster but can use TONS of space (1.25gb of RAM per relation!!!)
so we're trading time:space between these approaches. but what could we do differently?
enter Datafox's adaptive-dense approach:
* first it shrinks the grid as much as possible (column-origin analysis)
* then starts on a hash table and upgrades to bit matrices when the rule is actually busy (lazy promotion)
* and finally once we have a bit matrix it checks as much as it can on a single rule in a single operation (passthrough word-or lifting)
worth noting that i'm building something using datafox, so all these improvements come from that directly. more details on the paper!
this is also the first paper i'm authoring with ai and releasing, so thank you @AnthropicAI and @GeminiApp!
paper: t.co/NdlFEsfD2I proof:
anyway here's probably the fastest streaming datalog engine out there: t.co/MywaIORV0l
i've been working on this on-and-off for a while now, as i've tried to build my ideal anti-slop tool a few times.
oldest working iteration of it is probably in Riot's CodeDB (t.co/KcCJR7JpcJ), but the last one was t.co/ftk3oCUdsF. at least until yesterday!
idk how this happened but it happened thanks @acoyfellow for the nudge
cargo-gc v0.2 is out!
* you can now install it with `cargo install cargo-gc`, courtesy of the @rust_foundation (thanks Tobias!)
* cargo gc run / test / bench only ever clean Cargo's own build directories. Before, a malicious program that printed a line looking like Cargo's log could make cargo-gc clean something else 😱
thanks @cantoramann 👏
over the last month I've been constrained to fit all my work in a 512GB MacBook Pro, and this has led to 2 nifty little tools that make it feel like a 4TB machine:
🌱 t.co/CLheWOi0yA — twig's are lightweight copy-on-write worktrees for git, and they can get 99% (!!) smaller than regular worktrees!
📦 t.co/jZuBUKzygE — `cargo gc build` now keeps my ./target folder up to 90% (!!) smaller than plain cargo builds!
thanks to issues and comments from folks, I've managed to get these working great on linux and windows too. thanks y'all! 🙂↕️
ok, i think i'm onto something here: found 4 bugs in the z3 theorem prover 🤩 (all reported properly ofc)
sometimes the only way to meaningfully improve on something is to start from first-principles and aim for 1000x
can't wait to share this but if your agents are using a model-checker like tla+/everystate to find bugs in your apps, you're gonna love Spock 🖖
can't use gpt models above high — they legit are afraid of breaking things and introduce all sort of ridiculous guardrails.
I'm building something with @inventingmaya and gpt6.2 sol xhigh keeps doing things like inventing "pilot customer programs" or creating ad-hoc canary deployments, even after repeatedly telling it there's no users, there's no production.
opus-5.5 is just better at this stuff?
i've been wondering what's making it hard to read code as deeply as i used to (and i used to read a lot of code!), and i think a large part of this is that model-makers seem to have forgotten this:
"Programs must be written for people to read, and only incidentally for machines to execute." — SICP
i want all my ai-generated code to be so beautifully written that reading it is joyful
i have ported over Laravel to @badcop_'s amazing Bash Stack to make your bash applications simply amazing ✨
proud to announce Laravel Bash: t.co/noP4Q7xnju
it supports routing, Blade, Eloquent, validation, sessions, CSRF, queues, mail, broadcasting, and even testing support in a brand new UNIX-compliant `./artisan` script
even runs on Durable Objects thanks to @_pi0_'s unkernel 👏 (for real)
I built Laravel Rust and Laravel Go in tandem.
Laravel Rust and Laravel Go have full feature parity. Routes, database, validation, queues, durable workflows, even Reverb has a local Go server. 😅
But, they both remain true to the language they are written in. Laravel Go doesn't try to be something other than idiomatic Go. Yes, that means it doesn't look as "magical" as Laravel Rust in some places.
It was important to me to be true to the spirit of these languages. Go has blazing speed, compiles quickly for fast iteration, and has a simple, limited amount of keywords.
Human developers can learn to read Go very quickly, and agents are extremely proficient at writing idiomatic Go.
Choose your flavor.
Laravel Rust for absolute top-end speed, macros, and that terse, "magical" feel of Laravel.
Laravel Go for almost just as fast in a simple, readable language with fast compilation times.
Both will be developed and maintained in parallel along with Laravel PHP. I'll share more about how I'm orchestrating this as I go.
Building cool stuff, experimenting, and documenting my journey.
Cloudflare agent-experience builder and founder of AI and developer-tool products.
Next Generation of Network Access and Security. http://github.com/netbirdio/netbird
Polylane on-call leader building AI agents for production incidents and sharing technical posts about AI-assisted coding.