Sign in

Pete Vilter

@petevilter.me
147 followers 226 following 34 posts

Working on grid interconnection at Pearl Street Technologies. Prev databases and things at RelationalAI, Bubble, Cockroach. petevilter.me

PostsRepliesMedia
Pete Vilter @petevilter.me · 05/08/2026
Vibecoding a language with software transactional memory (reads and writes in a `txn { … }` block happen atomically), with an interactive trace viewer showing how threads, txns and memory locations (keys) interact
110
Pete Vilter @petevilter.me · 18/08/2025
Added wind and solar generators, which respond to wind and sun availability curves. As you edit those curves, the dispatch updates. (Need to work on the color coding to make the correspondences more clear)
010
Pete Vilter @petevilter.me · 17/08/2025
Here's a power grid simulator (mostly vibecoded), showing two generators being dispatched to satisfy load changing over time. The cheaper generator (blue region) is dispatched first; the more expensive one (pink region) only when needed.
141
Pete Vilter @petevilter.me · 03/08/2025
and of course the classics, 'filter to this value' and 'sort asc/desc'. I lose my mind when table UIs don't have 'filter to this value' 😂
000
Pete Vilter @petevilter.me · 03/08/2025
you can also filter by clicking on the histograms, inspired by Datadog's log search UI
110
Pete Vilter @petevilter.me · 03/08/2025
Used Claude Code to vibecode a UI for @duckdb.org in a few days. Here it is navigating foreign keys
220
Pete Vilter @petevilter.me · 26/05/2025
whoops, that lock implementation had a bug — forgot to set holder back to null, messing up next acquire. now fixed gist.github.com/vilterp/bf02...
000
Pete Vilter @petevilter.me · 25/05/2025
If we make the client grab a lock around reading & writing the new balance, it's impossible to get a double spend: the first client to acquire the lock wins; the next sees that there's not enough in the account.
200
Pete Vilter @petevilter.me · 25/05/2025
Distributed systems should feel like physical puzzles we can manipulate! As an example, I modeled a bank in my simulator. Without a lock, there's a race condition: if the two clients' gets and puts of the balance are interleaved, the same money can be withdrawn twice.
1131
Pete Vilter @petevilter.me · 13/04/2025
It's hard to wrap your head around all the failure modes of a distributed system. What if you could play with the sequence diagram of a run to see how it responds, and see if you can get it into a failure state? dist-sys-simulator.netlify.app
3272
Pete Vilter @petevilter.me · 26/12/2024
Little script to make a flamegraph of a codebase by lines of code github.com/vilterp/cloc...
020
Pete Vilter @petevilter.me · 25/11/2024
Am I becoming a fintech person? 😂 Added a simulation of a commodity market to my distributed system simulator. Clients submit buy and sell orders (blue/right and orange/left, respectively); the server uses DB triggers to execute a trade when there's a match.
170