Erik Onarheim

Things Erik Says on Podcasts

Software developer in Minneapolis who created Excalibur, an open source game engine for the web. Works in Neovim and follows TypeScript language changes, npm supply chain security and the broader JavaScript tooling world closely. Co-hosts TypeScript.fm, a weekly show on TypeScript and the wider web development ecosystem, alongside Kamran Ayub.

Where to Find Them

Erik Onarheim hosts and writes TypeScript.fm - The Friendly Show for TypeScript Developers .

Recently: “Solid 2.0 Is Here, a Type Stripper Built with Zena, and Modern Web Guidance for Your Agent | News | Ep 90” on TypeScript.fm - The Friendly Show for TypeScript Developers (December 2026); “TS7 in the Playground, Parcel 3 Goes 100x Faster, and Excalibur Hits 1.0 | News | Ep 89” on TypeScript.fm - The Friendly Show for TypeScript Developers (November 2026); “Nuxt DevTools V4, It's JS Engine Season, and TypeScript Still #1 on GitHub | News | Ep 88” on TypeScript.fm - The Friendly Show for TypeScript Developers (November 2026); “Prettier in Bun, Deno's Spiritual Successor, and Extraction Models Are A Thing | News | Ep 87” on TypeScript.fm - The Friendly Show for TypeScript Developers (October 2026); “TypeScript 7.1 Beta, eMudhra CA Compromise & PHP2Shell, and Cloudflare's tsrs Rust Port | News | Ep 86” on TypeScript.fm - The Friendly Show for TypeScript Developers (October 2026); “Theo's $420K TS-Rust Port, bun check, and Deno Joins Cloudflare | News | Ep 85” on TypeScript.fm - The Friendly Show for TypeScript Developers (October 2026).

What They Said

“As a member of a company that has built several JSON-based DSLs, that is a mistake always. I don't think there's ever a good time for you to make your own programming language shoved into JSON. Is this a bug in the program I wrote in this JSON programming language? Or is it a bug in the compiler of my proprietary language? And the answer is, I don't care. That sucks. I don't want to be debugging a compiler to solve my business problem.” — Erik Onarheim, TypeScript.fm - The Friendly Show for TypeScript Developers

Kamran had said a new TypeScript release could let people write type-checked DSLs, noting Erik is against private DSLs. Erik explains the objection from experience.

TypeScript.fm - The Friendly Show for TypeScript Developers · 2026-11-13 Permalink → Listen →
TypeScript.fm - The Friendly Show for TypeScript Developers Around 55:20 into the episode
Erik Onarheim

Yes. Right. I do.

Kamran Ayub

…verify them or like they're not type checked. Right. But now imagine a world where you could safely write your own DSL that is type checked as part of TypeScript. That's there maybe still not great. You probably don't want to create a DSL, but if you have to, then that might be one way to do it.

Erik Onarheim

Yeah. I think where I come from is as a company, as a member of a company that has built several JSON-based DSLs, that is a mistake always. I don't think there's ever a good time for you to make your own programming language shoved into JSON, and then you have to debug. Is this a bug in the program I wrote in this JSON programming language? Or is it a bug in the compiler of my proprietary language? Or is it a bug in my implementation in this proprietary language? And the answer is, I don't care. That sucks. I don't want to be debugging a compiler to solve my business problem. So I say DSLs are good and fine as long as I can write tests and put a breakpoint in it.

Kamran Ayub

Well, nowadays it is, is it a bug in my vibe-coded like vibe-coded programming language DSL?

Erik Onarheim

Yeah. So, yeah, DSLs and I don't have, aren't friends. Let's say we have a strained relationship. Now, if you got strong types and it's well suited, they can be good. If it's not, it can be like the worst experience of your life. That's

Kamran Ayub

so true. How's everything else going?

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“It kind of aligns with the whole premise that I put in No Sloptober, which is, I'm trying to coin my own software engineering law, Onarheim's law, that agents can only increase entropy. Humans are the only things capable of decreasing it. I'm not saying that humans always decrease entropy.” — Erik Onarheim, TypeScript.fm - The Friendly Show for TypeScript Developers

Erik introduces a conference talk by an engineer who let AI agents refactor a codebase for three weeks and then read the result. He says it matches his own experience that agent-driven code turns into a mess.

TypeScript.fm - The Friendly Show for TypeScript Developers · 2026-11-13 Permalink → Listen →
TypeScript.fm - The Friendly Show for TypeScript Developers Around 50:52 into the episode
Erik Onarheim

right. Big friendly giant. Big friendly deal.

Kamran Ayub

Love it.

Erik Onarheim

So there's a really interesting video that I watched that I do agree with. And it kind of aligns with the whole premise that I put in No Sloptober, which is the, I'm trying to coin my own software engineering law, Onerheim's law, that agents can only increase entropy. Humans are the only things capable of decreasing it. I'm not saying that humans always decrease entropy. But I think that's exactly what happened to this fellow in this video by AI Engineer. It's by KG Kanazawa at Microsoft. And they talk about how they went with the vibes and the vibes didn't go so well. And it became a whole giant mess.

Kamran Ayub

Yeah. And to be clear, if your reaction to that is, well, I can prompt the agent to reduce entropy. That's exactly what Eric means.

Erik Onarheim

You need a human

Kamran Ayub

in there because the issue is that if you let the agent left to its own devices, left on its own Ralph loop or whatever you're doing, it will just increase entropy. It will never remove entropy.

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“Using an agent basically freezes your ability as an engineer at that point, because you can only direct it at your current ability, and then potentially you atrophy from there. So it's important, I think, to keep sharp.” — Erik Onarheim, TypeScript.fm - The Friendly Show for TypeScript Developers

The hosts had just praised a young developer who spent 950 days building a JavaScript engine by hand. Onarheim takes a quick tangent to warn that leaning on agents caps an engineer's growth.

TypeScript.fm - The Friendly Show for TypeScript Developers · 2026-11-05 Permalink → Listen →
TypeScript.fm - The Friendly Show for TypeScript Developers Around 09:41 into the episode
Erik Onarheim

Yeah. Learning does require mental friction. If it's easy, you're not learning.

Kamran Ayub

Exactly. That's just

Erik Onarheim

not, that's just not how human brains work. And I've talked about this. Okay, if you'll indulge the tangent here real quick, I've talked about with you at this offline is using an agent basically freezes your ability as an engineer at that point because you can only direct it at your current ability and then potentially you atrophy from there. Yes. So like it's important, I think, to keep sharp.

Kamran Ayub

Yeah, keep like keep a mix, you know? And like, and I think, well, let's save it for the Minnesota long goodbye. We could talk a little bit more about that because I do have something related to talk about at the end. But we're not, we're not done with JS Engine. There's more. We're not.

Erik Onarheim

There's more. You're of the JS Engine, JavaScript runtime. Another one, Boomcat, is a tiny JS Engine with ES2026 and native TypeScript and JSX support. This is built in C3, which is a language I'm not really familiar with, but it's what it's called on the tagline. It says small enough to hide, fast…

Kamran Ayub

With a sweet, sweet logo.

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.
“A lot of security vulnerabilities in application code have similar shapes, and they're very hyper local usually. The ones that are tough to catch are state across time or state across threads. Those are really hard for humans because we just don't think that way. And the agents are really good at being like, oh, this is a thing that could happen.” — Erik Onarheim, TypeScript.fm - The Friendly Show for TypeScript Developers

Kamran had said he now uses AI agents to security-review his own app. Erik explains why agents suit this: the bugs humans miss most are about timing and concurrency, which pattern-matching agents are good at spotting.

TypeScript.fm - The Friendly Show for TypeScript Developers · 2026-10-29 Permalink → Listen →
TypeScript.fm - The Friendly Show for TypeScript Developers Around 59:17 into the episode
Erik Onarheim

…the PHP right now. So like I don't envy them. So all of the eyes are drawn there because everyone's looking now, looking for similar things. So if you had like one type of problem somewhere, odds are there's more. So that's what security researchers like to do. Yeah. Just like they start looking.

Kamran Ayub

…a really obvious kind of issue. But the thing is, is that it's not just your code. It's all your dependencies too. Right. So like .NET, when the .NET security update came out this week, I immediately rebuilt all my images to get the latest runtime because the runtime patches the Brotley problem.

Erik Onarheim

Yep. And this is another area where I think agents are going to be super useful. And that's this code review static analysis space where because it's pattern matching activity and a lot of security vulnerabilities in at least an application code have similar shapes. So it's really easy and they're very hyper local usually. I think the things that are tough to catch vulnerabilities that are state across time or state across threads. Those are still very hard. And agents do a great job about finding those. Those are really hard for humans because we just don't think that way. And the agents are really good at being like, oh, this is a thing that could happen. Right. You know, and it's weird pattern match. So like as far as like static analysis tooling for like security problems, I think it's extremely useful for finding stuff.

Kamran Ayub

The thing that resonates with me in his post, well, first of all, he says like, it's sad, right? It's like, he's saying, when I was a kid, we called up BBSs, those bulletin board systems that were hosted in people's homes. When I was in high school, we downloaded music from public FTP addresses.…

Erik Onarheim

And it's totally deterministic. And deterministic,

Kamran Ayub

yes. I mean, I used Claude to Vibe code and build it, but once it's out there, I don't have to change it. Don't have to maintain it.

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.

Collections They Appear In