Heap Dump @heapdump
A systems programmer will know what to do when society breaks down, because the systems programmer already lives in a world without law. Austin, TX Joined January 2011-
Tweets3K
-
Followers39
-
Following113
-
Likes36
This post is for anyone who has wasted days, weeks, or months of their life struggling with state in your single-page JavaScript app. Maybe you type three paragraphs into an edit field — and a background refresh silently replaces the DOM, vaporizing your work. Or you bring up a modal dialog box, and something makes it disappear. Or your dropdown selection doesn't actually make it into the operation it was intended for. If this sounds like you, you probably need Datastar in your life, and reduce your use of JavaScript in your client. I had this realization while listening to a talk that David Yang (@dyang , founder of Fullstack Academy and Lightweight Labs) at Clojure/conj 2025. It made me realize that when you’re writing a JavaScript front-end, you’re almost always accidentally building a distributed system. Because of David, I ended up deleting ~1,700 lines of JavaScript in a week in an editor I've been writing, replacing it with a radically simpler approach: server-side Clojure + Datastar + SSE (Server-Sent Events). The server renders HTML, streams it to the browser, and the browser just displays it. Hundreds of lines of JS became ~20 lines of Clojure, over and over again. This is because I realize that the mess I had made for myself (enthusiastically encouraged by Claude Code, trained on a gazillion JS SPA apps) had became intolerable: The client has state. The server has state. They're stomping on each other, and you've lost track on which is actually the source of truth. You fix a bug in one place and it surfaces somewhere else, because you have two copies of reality and they're slowly diverging. And the longer you work on it, the more duct tape you add to keep two diverging copies of truth pointed at each other. In Yang's talk, he talks about how he thought his main business challenge was to build a sync engine between browser clients and his server to present their QuickBooks data in a Google Sheets like interface to their customers. He kept building more sophisticated solutions to reconcile state: cache invalidation, optimistic updates, conflict resolution, offline queues, replay logic. The code kept getting more complex, and the bugs never went away. In a moment of reflection and hammock-time, he saw three things in quick succession that led to a startling epiphany: - "One Billion Checkboxes," the viral app (written in Clojure by @anders_murphy!) serving one billion shared checkboxes to thousands of concurrent users, fully server-rendered on a $5/month VPS. Every session was an HTML stream, with toggles synced in real-time, with zero client-side state management. As Yang said, "I'm trying to render a thousand cells in the browser, and this guy posts about rendering a billion cells in the browser, and you're like: This is relevant to my interests." Haha, so true. - Watching his son play Fortnite streamed via NVIDIA GeForce NOW, streaming 60fps gameplay with no game engine running on his machine. Like the one billion checkboxes being streamed in each frame, Fortnite is streaming a ton of data to each gamer, and it works. His son's gaming computer was basically a monitor receiving pixels from the network. - Watching his wife who works at JP Morgan using a virtual desktop, which was streaming a bunch super, complicated enterprise apps as as pixel streams. Each of these had zero state sync bugs, because there was nothing to sync. Yang said: "You give someone state they'll have bug for a day but you teach them how to represent state in two places they have to be kept in sync and uh they'll get bugs for a lifetime." Har har. Ouch. In 2019, I described my Clojure and functional programming aha moment. I proudly talked about how much I learned from reading "React for People Who Know Just Enough jQuery to Get By," I presented the killer toy tweetbox example go from simple to nightmarish — a character counter here, a photo button there, and suddenly jQuery's callback spaghetti was unmanageable. In contrast, React's centralized state model felt like enlightenment. I wrote my Love Letter to Clojure, and how Clojure eliminated 90% of the errors I used to make. I thought I'd learned the lesson. I thought there were only two floors of Hell. Apparently there's a third — Claude Code will invariable take you there, and may make sure you never leave. This post is meant to show you the way out. - Floor 1 (2016): Don't mutate state. Pure functions, immutable data. Stop changing variables out from under yourself. (Clojure and functional programming, lodash, etc.) - Floor 2 (2019): Centralize state. One atom, one source of truth. Stop scattering state across components, callbacks, and global variables. (jQuery -> React → Redux, Flux, etc.) - Floor 3 (2025): Don’t duplicate state across client and server — eliminate the client copy entirely if you can . (Electron/JS → server-side Clojure + Server Side Events [SSE]/Datastar) For the last two weeks, I've been working on a text editor to help me write — it was my sixth attempt to write the ideal editor to help me write. I did a fresh rewrite as Electron JS app, and it worked wildly well, but it was growing unruly. I rewrote it as a web app, Clojure on the back-end, and JavaScript on the front-end. And started having all sorts of problems, as I described above, due to 50+ shared state across the front- and back-end. Here's some Claude Code summaries of days of bug bashing: - Ghost state everywhere. Modal says it's closed, but a localStorage restore opens it 500ms later. Dropdown shows Opus, spinner says Sonnet. A boolean set to true on button click is never set to false, so every subsequent update auto-scrolls the page forever. Client state and server state drift apart silently — no errors, just wrong behavior. - The DOM isn't yours. You set a button to "Loading..." in JavaScript, but the server replaces the DOM before your cleanup runs. You add a purple focus ring, and the next server push erases it. You double-click to edit, but the first click triggers a re-render that replaces the element before the second click arrives. Every piece of state you store in the DOM exists on borrowed time. - Invisible coordination bugs. Eleven bugs compounding, each masking the next — a scroll position saved by one system and restored by another, cancelling a third system's scroll animation, all within 50ms. You can't reproduce it. You can't even describe it to someone. You just stare at a dropdown that "does nothing." These were the categories of problems I was drowning in — the app was working, built quickly to during writing sessions, but getting impossible to change without breaking something else: Armed with Yang's lessons, I started mass-deleting JavaScript and HTMX calls, instead, streaming HTML fragments via SSE (Server-Sent Events) using Datastar. I started adopting the "game-engine" pattern, where the server assembled each frame from scratch, and streams it to the client as HTML. The browser started to become Yang said it should be: a monitor, like his son's Fortnite session. A couple of amazing surprises: I expected SSE round-trips to feel sluggish, which is usually why we keep things on the client. I was shocked that keyboard navigation could use client-side reactive signals (no network) — it was instant. Skeptically, I tried moving the character counter to be computed on the server, rendered to the client via SSE. To my shock, it was instantaneous. So I began a big rewrite around three architectural principles: - Think game engine. The server is a game loop: receive input, mutate state, render frame, push HTML. The browser is a dumb terminal — it displays what it receives and never decides what to show. - Minimize JS state to zero. I added a red "measles" overlay that highlights every JavaScript state variable on screen. Three variables became an embarrassment. The goal: if the server restarts or the page reloads, everything is restored from one Clojure atom — no localStorage, no JS globals, no let currentState =. (Well, I'm discovering that there's around 5 reason you need to have JS local state, but they're really at the periphery of your program.) - Fire and forget. Every user action is a POST that returns 204 No Content. No JSON response. No .then(data => {...}). The client fires the request and moves on. The server mutates state and pushes the new reality via SSE. The best proof of the value of the rewrite: I've had writing sessions where I was actively adding features in the app while using it. Adding keyboard accelerators to buttons when I became annoyed at clicking those buttons. No compile step. No browser refresh. No lost state. The modal stays open, the draft stays in the textarea. It felt genuinely sublime, even compared to the the world-standard of ClojureScript hot reload systems. Server-side SSE push with browser hot reload feels amazing. A couple of closing thoughts: 1. If any of these problems sound familiar, watch David Yang's talk. If you're a Clojure person (or Clojure-curious), the combination of Datastar + SSE + server-rendered Hiccup is freaking amazing. 2. If you're vibe coding applications, you're more at risk of falling into this third plane of Hell. It's been trained on so much JavaScript SPA that use the replicated state patterns; you'll have to work extra hard to make sure it uses the "game engine Datastar on backend" pattern. I've created a Claude Code skill for this. 3. I'm still figuring out some of the rough edges of Datastar, as well as things that don't work quite so easily when trying to replace JavaScript and DOM operations. The seven valid uses of JS include: - Keystroke dispatch. Capture keypress, read server state from data attributes, route it. Must happen in <16ms. - Cursor manipulation. insertTextAtCursor(), selection ranges, execCommand('insertText'). The browser owns the cursor — SSE can't touch it. - Browser gestures. Clipboard API, drag-and-drop, double-click. Requires user gesture or instant feedback that can't survive a round-trip. - Heartbeat/timers. SSE connection monitor, loading spinners, MutationObserver for post-morph cleanup. Detecting absence is inherently client-side. - Lifecycle interception. beforeunload beacon, deferring reload during editing. Only the browser can intercept the browser. I hope this helps someone who is suffering.
Sure. I can explain why I think this outfit is good. As always, it starts with an understanding about clothing history. 🧵
@dieworkwear Can you elaborate on why you like this despite it breaking some obvious “rules”? (for example, the baby blue pleated shirt for a casual outfit)
I found a Reddit thread where startup founders were quietly sharing their NotebookLM competitive research system. Thread had 11 upvotes. Should've had 11,000. Here's the full workflow they were using to out-research competitors with no budget. They upload 4 things into one notebook. Every competitor's public blog posts. Their own customer support tickets. Negative reviews from G2 and Trustpilot. And industry analyst reports. Then they run 3 prompts in sequence. Prompt 1: "Based on these competitor blog posts, what problems are they clearly avoiding talking about?" The gaps in competitor content are a map of their weaknesses. These founders were finding product opportunities inside what their competitors refused to address. Prompt 2: "Cross-reference our customer support tickets with negative reviews of our competitors. What frustrations appear in both?" This one is savage. It finds the exact pain points shared between unhappy competitor customers and their own struggling users. That intersection is where the real product roadmap lives. Prompt 3: "Using only the analyst reports, what market shift are all competitors currently underestimating?" One founder said this prompt alone changed how they positioned their entire Series A pitch. The research that used to cost $15,000 from a consultant. Three prompts. One notebook. Twenty minutes. The information was always public. Nobody was asking the right questions.
I spent $174 getting KISS AI to translate 28K lines of C to Rust. 12 open-source projects, 100% success rate, some ran *faster* than C. The agent caught bugs, generated 1.8K tests, and much more. Full deep dive: dev.to/mariusmomeu/i-…
This. Every single word of this. Every. Single. Word. theglobeandmail.com/opinion/editor…
Here's everything I've figured out about the new OpenAI o1 family of models so far simonwillison.net/2024/Sep/12/op…
'Fancy algorithms are slow when n is small, and n is usually small.' -- Rob Pike
70 years ago today. 7th June 1954, Alan Turing took his own life. Father of computer science, codebreaker, Manchester icon; victim of prejudice and state violence. Mural by @_tankpetrol is on Princess Parkway (M20 2EW).
This seems kinda...radical? ASU makes its courses available to anyone for $25/course. After you take the class, if you want the grade you got added to an official transcript with a credit you can use, +$400. These are real college credits. 8 year olds are getting college credits!
Jim Simons: "My algorithm has always been: you get smart people together and you give them a lot of freedom. Create an atmosphere where everyone talks to everyone else. Provide the best infrastructure. And make everyone partners. That was the model that we used in Renaissance."
25 yr old pizza delivery man runs into burning house, saves four children who tell him another might be in the house. He goes back in, finds the girl, jumps out a window with her, and carries her to a cop who captures the moment on his bodycam.
This is still the best* introduction to GPTs I have ever read. jaykmody.com/blog/gpt-from-… Fills in all the gaps between Attention is All You Need right up to coding every single line of a working GPT2 implementation yourself. Even ends with explanations of finetuning for classification, summarization, instruction tuning, and PEFT. Bravo @jaykmody and all who take the time to write these things down in fully commented python rather than cryptic latex. *best WRITTEN introduction. we all know who has the best video intro to GPTs…
| ̄ ̄ ̄ ̄ ̄  ̄| | This can | | hack AI | | now. | | ______ | (\__/) || (•ㅅ•) || / づ Paper showing that ASCII art can get around AI guardrails. Its the return of 1980s hackers. arxiv.org/pdf/2402.11753…
We Are In A New Cold War | Downstream IRL with Yanis Varoufakis youtu.be/JcnGAbd4ZTs?si… via @YouTube
We’re so fucked.
claire18 💞 @clairez1id
23 Followers 730 Following New on X trynna make older men slide in my dmssss (dont be a creep tho xD)
Smeauez @SmeauezpWEP
37 Followers 4K Following
HazelNancy @Q9L6utGN58G778
60 Followers 7K Following
Kate @Ba9kOXpHkI3lrkV
89 Followers 7K Following
Candida @tashia_jolene
587 Followers 2K Following I like drinking milk tea. That sweet taste always makes my heart float, and it softens to the deepest level in an instant.
hikerhart @hikerhart
9 Followers 51 Following
Fight Club Philippine... @FightClubPH
122 Followers 483 Following We provide fitness and wellness transformation in one of the world's best islands, Palawan.
Kara Moon @karamoon
717 Followers 2K Following THX-1138EB. Deep Hypertext, Oncology, Tokyo daily life, haxoring, phun with fones, Raspberry Pi, Bucky, Alan Kay, Ted Nelson, Doug Engelbart, catus.
James Zayner @JamesZayner
129 Followers 578 Following Director of Marketing at @modernizepros | Ex - @launchdarkly, @goteleport, @trycourier
AlexTavgen @ATavgen
532 Followers 2K Following do-founder at @timetrix_io. Music. Theatre. Freak with a passion.
Ms Mathy123 @ConnectCoreMath
882 Followers 4K Following Passionate Believer, Mom,Math teacher, MAT, M.Ed,Author,prior Instructional Math Coach….. Middle school to High School 2002-current
Roger Bullivant @biztechpm
314 Followers 220 Following A chirpy and unflappable PM whose metier is materializing dreams.
Predicta @predictainc
185 Followers 4K Following Predicta's Automated Market Intelligence helps organizations visualize and understand data from consumer-generated content.
Emily Hamilton @emilyhamilton94
26 Followers 357 Following Marketing Manager at DevNetwork, producers of @developerweek and @apiworld #developer #api #cloud #ai #enterprise #javascript
Lenovo Education @LenovoEducation
43K Followers 23K Following Empowering teachers and students to benefit from today's technology-driven classroom through reliability, innovation, and enthusiasm for future learning.
Selenium Labs - Selen... @selenium_labs
95 Followers 503 Following Best Automation Testing Training Institute in Bangalore
The Global Math Proje... @GlobalMathProj
7K Followers 1K Following A worldwide movement committed to inspiring educators everywhere to ignite and sustain in their students a love for learning mathematics. #globalmath
Big Ambitions @BigAmbitionsIT
130 Followers 2K Following A nonprofit organisation dedicated to the sharing of knowledge and lastest updates on Open source Cloud, SDN / NFV and Networking technologies.CaptainOnly @CaptainOnly
23 Followers 27 Following
vinay @vnayw
30 Followers 614 Following
Mark Conway @markconway
478 Followers 4K Following EntrepreTechnoAviaPhile, iOS dev/sports analytics/tennis & rugby, Learning Machine learning Machine Learning, enthusiastic traveler to parts unknown
NY Datacenter @nydatacenter
5K Followers 1K Following Ultra, scalable, flexible and customer-focused #datacenter and interconnection services for your business that facilitates your company's growth.
Jesse Riggins @jesseriggins
171 Followers 604 Following Social media hermit. I work in the ☁. My thoughts are my own ◉‿◉.
Randy Bias @randybias
21K Followers 2K Following Mirantis OSPO, cloud pioneer, disruptor prime, instigator of pets v cattle meme. Master strategist. Opinions mine. @randybias.bsky.social
James Tanton @jamestanton
33K Followers 991 Following An Aussie fellow promoting uplifting joyful genuine math thinking and doing for students & teachers alike. Thrilled: https://t.co/1MUZpXFold reaching millions!
Gary Allison @garyallison
262 Followers 295 Following Passionate about #AggieBaseball #AggieFootball, #Leadership, and #BeingAGreatDad @TXAggiesUnited
Art Of Programming @ArtProgramming
4K Followers 1K Following Computer science news, algorithms, articles, techniques and principles.
Mark Spitzer @mspitzer
22 Followers 142 Following
Rob @RobSchoenthaler
104 Followers 56 Following
Bidding Network @Bidding_Network
287 Followers 2K Following Friendly Technical Recruiter in Austin, TX. Connect with me: [email protected]
Taylor York @tayloryork
1K Followers 3K Following Investor | Family Man | Cowboy #GoPokes 🤠 My opinions are my own.
Ray Fawkes @rayfawkes
6K Followers 488 Following Toronto based artist and author of IN THE FLOOD, UNDERWINTER, THE PEOPLE INSIDE, ONE SOUL, GOTHAM BY MIDNIGHT, CONSTANTINE, BATMAN: ETERNAL, and more. He/him.
Chrystia Freeland @cafreeland
362K Followers 4K Following Former Deputy Prime Minister of Canada. Proud Canadian, mother and wife. | Ancienne vice-première ministre du Canada. Fière Canadienne, mère et épouse.
derek guy @dieworkwear
1.5M Followers 1K Following Menswear writer. Editor at @putthison. Bylines at The New York Times, The Financial Times, Politico, Esquire, and Mr. Porter
Patrick Boyle 💎 @PatrickEBoyle
35K Followers 3K Following Founder of Palomar Capital | Visiting Professor at King's College London | Financial Author | YouTuber & Podcaster
Yanis Varoufakis @yanisvaroufakis
1.2M Followers 536 Following Economics professor, quietly writing obscure economic texts for years, until thrust onto the public scene by Europe's inane handling of an inevitable crisis
👩💻 Paige Bai... @DynamicWebPaige
75K Followers 2K Following ✨ AI should be about empowering humans, building understanding, and making dreams realities. 👩💻 DevX Eng. Lead @GoogleDeepMind ex-@GitHub || views = my own!
Nerd Show - 书呆子... @nerd_show
530 Followers 296 Following Chillseeker. Listen live Thu 8PT on DEF CON Radio or on https://t.co/LBuXINaKoI - Curator/DJ/MD Fluid, Vaporwaves, and DEF CON for SomaFM
Rachel Woods @rachel_l_woods
24K Followers 1K Following On a mission to train 1M AI operators by 2030.
WASEI JJ CHIKADA @wasei_jj
6K Followers 245 Following DJ / Producer from Tokyo Voice of DJ JJ in Serial Experiments Lain Co-producer of the soundtrack Cyberia Mix Cyberia Layer series
Jessica Burbank @JessicaLBurbank
91K Followers 2K Following Host of The Jessica Burbank Show on YouTube sometimes journalism • sometimes joking kaburbank.77 on signal always
Jesse Genet @jessegenet
58K Followers 3K Following Startup builder (prev @lumi) turned family builder, currently vibe coding on my breaks from homeschooling four tots
hikerhart @hikerhart
9 Followers 51 Following
Trung Phan @TrungTPhan
729K Followers 4K Following Write on business with @workweekinc. Building @bearlyai.
Chris Rogers @chrisghrogers
991 Followers 108 Following Head of Supply Chain Research S&P Global Market Intelligence
Ellie Huxtable @ellie_huxtable
8K Followers 1K Following building @atuinsh, prev: @posthog, @coinbase, 🇬🇧 in 🇺🇸
The Expanse Verse @TheExpanseVerse
47K Followers 3K Following Home of all things The Expanse! 🌟 Season 1-6 now streaming! The Expanse: A Telltale Series game & The Expanse: Dragon Tooth comic available now (link below)!
Gene Kim @RealGeneKim
53K Followers 2K Following WSJ bestselling author: Unicorn Project! DevOps researcher/enthusiast. Coauthor: Phoenix Project, Accelerate. Host of The Idealcast. Tripwire founder. Clojure.
Fight Club Philippine... @FightClubPH
122 Followers 483 Following We provide fitness and wellness transformation in one of the world's best islands, Palawan.
TwoBitHistory @TwoBitHistory
5K Followers 97 Following Entries from the annals of computing history, once every two weeks. (Actually, every four for the foreseeable future 😞).
Robert L. Reece, PhD @PhuzzieSlippers
16K Followers 4K Following Associate Professor, UT-Austin (race/slavery/colorism/fatness). Leftist, sociologist and quantitative historian, writer, gamer, artist, athlete, Mississippian.
Rich Rogers @RichRogers_
9K Followers 879 Following CEO at @XemelgoInc. Bringing factories to life through software. #Software | #Leadership | #Industry40 | #Bitcoin | #SemperFi
MachinePix @MachinePix
207K Followers 76 Following Amazing feats of engineering. Tweeted by @kane and https://t.co/c2bRClqVy5.
Black In Math @BlackInMath
4K Followers 176 Following The 1st #BlackinMathWeek took place Nov 8-14, 2020! Organized by @mathematichole_ @mathdwight @angela_tabiri @itsafronomics @916ice @MarissaKawehi @blkmathmagic
Near Future Laborator... @nearfuturelab
6K Followers 33 Following We create products from the future.
Heather Mallick @HeatherMallick
11K Followers 1K Following Born female, backs women's rights, other things. Canadian journalist, author, winner of feminist Landsberg Award. @hmallick.bsky.social
Mathematical Objects @MathsObjects
554 Followers 4 Following Podcast: @stecks and @peterrowlett chat about some aspect of mathematics using a mathematical object as inspiration. From @aperiodical.
ICT @IndianCountry
136K Followers 594 Following ICT is a spacious channel that serves Indigenous communities with news, entertainment, and opinion. Follow us on Bluesky https://t.co/VMn1e6hFlQ
The.Ink, from Anand G... @AnandWrites
605K Followers 11K Following ✍️ https://t.co/3U5gLjvY9g.📚 @PersuadersBook, @WinnersTakeAll, THE TRUE AMERICAN, INDIA CALLING. 📺 MSNBC. @PriyaParker's man. Father.
It Actually Did Happe... @itactuallydid
233 Followers 3 Following Historical and Trivial Facts. Always true, never retweeted or passed along. Account maintained by @textfiles in his copious spare time.
Bookcase Credibility @BCredibility
89K Followers 80 Following What you say is not as important as the bookcase behind you.
Annie Perkins @anniek_p
8K Followers 2K Following Graph Specialist. Kids are better than adults. I do a lot of mathy art. she/her. All of the #mathartchallenge can be found at the link below.
AoPS (Art of Problem ... @AoPSNews
8K Followers 995 Following To discover, inspire, and train the great problem solvers of the next generation.
Kurt Kohlstedt @KurtKohlstedt
10K Followers 973 Following Skeptical urbanist & design journalist @ 99% Invisible || NYT Best Seller: https://t.co/KhGoSU5sEH || M. Arch || Now on https://t.co/MgPk4huBmU 🦝
Level10 @level10hq
7 Followers 13 Following Helping businesses focus on the right stuff and get where they want to be.
Christopher D. Long �... @octonion
22K Followers 7K Following Data science and optimization. Ex-San Diego Padres, Detroit Tigers, Yankees, Arsenal, Houston Rockets. Google Foobar winner. He/him. [email protected]
Jonathan Fertig @rightlegpegged
5K Followers 3K Following Senior Architect @DavisPartner | Certified Passive House Designer | Tactical Urbanist | Physicist | Cities for People, Bicycles for Transportation | #DemandMore
Daniel Vassallo @dvassallo
203K Followers 2K Following 🚀 https://t.co/X5QMm3wlHe 🏭 https://t.co/ZvHZp55zso 🕹️ https://t.co/vHWIhHxTv6
Mashup Math @mashupmath
24K Followers 613 Following Welcome to Mashup Math! Follow for daily doses of fun and engaging K-8 math activities, insights, lesson resources, and more!😎
SwiftOnSecurity @SwiftOnSecurity
411K Followers 9K Following computer security person. former helpdesk.
Mxlpytlk @Frauenfelder
24K Followers 2K Following
Jo Boaler @joboaler
99K Followers 2K Following Stanford Professor, Author: Limitless Mind, co-founder: https://t.co/PB6yynVi7H & avid Baggies Fan! Equity advocate. Impervious to men who abuse me on X.






























