MNEMOSYNEv0.1.2563

Podcasts/Lex Fridman Podcast/Eich, Brendan

Eich, Brendan

creator of JavaScript; co-founder of Mozilla and Firefox; co-founder and CEO of Brave Software

Brendan Eich: JavaScript, Firefox, Mozilla, and Brave

Lex Fridman Podcast · Feb 12, 2021

▶ Watch on YouTube

Core ideas

Eich traces his path from an undergraduate physics major (drawn to hyperdrives and science fiction more than the era's actual physics) into computing via Pascal and C, arguing that theoretical physics has been led astray by prioritizing elegant models over falsifiable experiment — a critique he extends to economics and other "soft" hard sciences, where competing models persist indefinitely because no one is "winnowing" them against reality. This general suspicion of over-designed theory versus pragmatic, tested engineering becomes a throughline: he repeatedly invokes Richard Gabriel's "worse is better" essay to explain why technically inferior but fast-shipped, well-timed designs (Unix over Lisp machines, x86 and PC architecture over cleaner alternatives, and — centrally — his own JavaScript) tend to win in networked systems, comparing this to evolutionary fitness rather than engineering merit.

He gives a detailed account of JavaScript's creation at Netscape in May 1995: under pressure from Marc Andreessen (who insisted code should be injected directly into HTML pages rather than isolated in a separate container, which Eich achieved via an HTML-comment-hiding hack) and constrained by a marketing-driven mandate to resemble Java syntactically (to complement Sun's Java applets, reflecting shared data types like numbers, strings, and objects), Eich wrote the language's core — including first-class functions, which he considers his proudest design choice, borrowed in spirit from Scheme — in roughly ten days. He is candid about the costs of that speed: no initial garbage collection (patched afterward with reference counting, which introduced early memory-safety security vulnerabilities), and the notorious loose `==` equality operator, which he added after shipping at early adopters' request and now regards as his biggest regret, drawing the lesson that "when people come to you saying can you please make it sloppier, add this cute feature, the answer should be no."

Eich narrates the "browser wars" as a sequence of distribution-driven, not merit-driven, victories: Internet Explorer beat Netscape primarily through Windows bundling (tying later found to be antitrust violation) rather than technical superiority, though he credits Microsoft's IE4 team for real quality work before the company let the browser stagnate post-antitrust-settlement. He describes Mozilla's founding as an open-source "escape pod" from Netscape (1998), the difficult early years building a modular codebase (XUL, the cross-platform UI language) while under AOL's disinterested ownership, and the eventual pivot from a bloated all-in-one suite to a lean, tabbed browser — Firefox (renamed twice from Phoenix and Firebird after trademark disputes) — crediting engineers like Dave Hyatt and teenage intern Blake Ross. He traces the deep structural coupling between browsers and search engines (Firefox's Google search-revenue deal as its primary funding source, and the cautionary tale of Firefox's failed 2014 switch to Yahoo, whose gutted search team could no longer deliver competitive results) as a key reason browsers become "captured" by the same companies that dominate search and advertising.

On JavaScript's technical evolution, Eich describes the standardization process at Ecma (chosen over the dysfunctional, XML-focused W3C), the abandoned ambitious "ES4" effort later cannibalized into the successful ES6 (2015), the parallel emergence of fast JIT compilers (tracing their intellectual lineage to Self and the Animorphic team that became Google's V8), and the "asm.js" project — a typed, statically-optimizable subset of JavaScript he helped develop with Mozilla colleagues that let compiled C++ code (demonstrated running Epic's Unreal Engine in-browser in 2013) run at near-native speed, which he sees as the direct technical predecessor to WebAssembly.

Eich then explains the origins of tracking and the modern ad-tech economy as an unintended consequence of 1994-era engineering shortcuts — Lou Montulli's rushed cookie design and JavaScript's own ability to make cross-site requests — which combined to enable pervasive third-party tracking never intended by the web's original designers. This directly motivates Brave, which he co-founded to block third-party tracking scripts by default (using a combination of engineering rules and machine learning to distinguish first- from third-party scripts, and to counter fingerprinting techniques) and to replace the broken, fee-heavy ad-tech intermediary chain (citing a Guardian self-experiment showing 70% of ad spend absorbed by intermediaries) with a privacy-preserving alternative: a locally-run, on-device machine-learning ad-matching system paired with the Basic Attention Token, a cryptocurrency mechanism enabling a three-way revenue split between users, publishers, and advertisers without a central tracking authority, and letting users directly tip and reward creators. He frames Brave, decentralized identity/friend-graph portability across social networks, and phenomena like the Robinhood/Wall Street Bets episode and Parler's deplatforming from AWS as expressions of a common pattern — concentrated platform power ("oligarchy," in his framing) provoking user-empowering countermovements — while acknowledging that any project embracing an absolute free-speech stance risks being "colonized" by bad actors, and that browsers becoming "captured" by search-driven business models has structurally limited competition and innovation for two decades.

The conversation closes with reflections on Silicon Valley's future (Eich is ambivalent: he credits network effects around Stanford and venture capital while criticizing California's taxes, wildfire mismanagement, housing costs, and pandemic-era political hypocrisy, and is open to Silicon-Valley-style innovation dispersing to other regions via remote work) and on mortality, which Eich — a Roman Catholic — says he does not fear, framing his hoped-for legacy less around JavaScript itself than around his children and the standards-setting, market-reopening work exemplified by Firefox and Brave, arguing that small, stubborn minorities of "lead users" opting out of dominant incumbents can meaningfully redirect entire markets, a pattern he considers distinctly American.

Excerpts

On the ten-day creation of JavaScript and its lasting design flaw:

“During the 10 days I also, like I said, I was in such a hurry, I left out garbage collection — came back to haunt me... The equality operator, in those 10 days sprint, between two objects of different dynamic type said no, they're not equal, their types are different. And then after that I had internal early adopters and they said, oh, can we just have implicit conversion? And like an idiot, I agreed... having implicit conversions in the operator is something that people still roast me over.”

On "worse is better" as a survival principle for networked software:

“This is about survival advantage of software in the network world... I used to struggle with this because JavaScript was done in such a hurry, and the force of web compatibility meant early mistakes couldn't be fixed... you have to kind of resign yourself to the reality of worse is better being enshrined in actual design points you might not like — and that happened with JavaScript, and I'm way over it, but it also, I think, was a huge advantage.”

On why Brave blocks third-party tracking and rebuilds the ad economy around users:

“Why is the browser the sort of passive servant of these big tech companies? Why is it a blind runtime for ad tech JavaScripts, including from Google? Why doesn't it block some, and if it blocks some, why can't it reconnect users, readers, fans with publishers, creators, websites? Why can't it help people make direct payments, or even possibly get an ad revenue share for private ads that are placed in the browser?”