Lex Fridman Podcast XX
[0] The following is a conversation with Brendan Ike, creator of the JavaScript programming language, co -founder of Mozilla, which created the Firefox browser, and now co -founder and CEO of Brave Software, which has created the Brave browser.
[1] Each of these are revolutionary technologies.
[2] JavaScript is one of the most widely used and impactful programming languages in the world.
[3] Firefox pioneered many browser ideas that we love today or even take for granted today.
[4] And Brave is looking to revolutionize not only the browser, but content creation online and the nature of the internet to make it fundamentally about respecting people's control over their data.
[5] Quick mention of our sponsors, the Jordan Harbinger Show, Son Basket Meal Delivery Service, Better Help Online Therapy, and Aid Sleep, Self -Cleaning Mattress.
[6] Click the sponsor links to get a discount.
[7] to support this podcast.
[8] As a side note, let me say that there's a tension between theory and engineering that I've been thinking a lot about.
[9] I tweeted something like, good execution is more important than a good idea, but one helps the other.
[10] I think the wording of that sucks, but what I mean is a good idea is a must, but in my experience, good ideas are in abundance.
[11] Good execution, on the other hand, is rare.
[12] I think some mix of good timing, good idea, and good execution is essential.
[13] Getting that makes right is tough.
[14] And Brendan somehow multiple times this career did just that.
[15] I'm starting to believe it's more art than science, like most interesting things in life.
[16] If you enjoy this thing, subscribe on YouTube, review on Apple Podcast, follow on Spotify, support on Patreon, or connect with me on Twitter at Lex Friedman.
[17] As usual, I'll do a few minutes of ads now and no ads in the middle.
[18] I try to make these interesting, but I give you timestamps.
[19] So if you skip, please still check out the sponsors by clicking the links in the description.
[20] It is, in fact, the best way to support this podcast.
[21] This episode is sponsored by the Jordan Harbinger Show.
[22] Go to Jordan Harbinger .com slash Lex.
[23] Subscribe to it.
[24] Listen.
[25] You won't regret it.
[26] I've been binging on his podcast for many months now.
[27] Jordan is a great interviewer.
[28] He gets the best out of his guests, dives deep, calls them out.
[29] when it's needed and makes the whole thing fun to listen to.
[30] He's interviewed Kobe Bryant, Mark Cuban, Neil deGrasse Tyson, Gary Kasparov, and many more.
[31] Perhaps more importantly, he's unafraid of addressing challenging, even controversial topics with thought and grace.
[32] I especially like his feedback Friday's episodes where this combination of fearlessness and thoughtfulness is especially on display.
[33] Touching topics of sex, corruption, mental disqualification, mental disorders, hate, love, and everything between.
[34] Again, go to Jordan Harbinger .com slash Lex.
[35] It's how he knows I sent you.
[36] On that page, there's links to subscribe to the show on Apple Podcast, Spotify, and everywhere else.
[37] The show is also sponsored by SunBasket.
[38] SunBasket delivers fresh, healthy, delicious meals straight to your door.
[39] As you may know, my diet is pretty minimalist, so it's nice to get some healthy variety into the mix.
[40] They make it easy and convenient with everything pre -portion and ready to prep and cook.
[41] You can enjoy a delicious healthy dinner in as little as 15 minutes.
[42] I've enjoyed a lot of meals from their menus that fit my what they call carb -conscious ways.
[43] They have prepared meals, meal kits, and even raw ingredients like just a nice New York strip steak, rainbow trout, like a filet, wild chili and sea bass, king salmon, and much more.
[44] right now sunbasket is offering 35 bucks off your order when you go to sunbasket .com slash lex and enter promo code lex at checkout again visit sunbasket .com slash lex and use code lex to get 35 bucks off your order this episode is sponsored by better help spelled h -elp help they figure out what you need and match you with a licensed professional therapist in under 48 hours.
[45] I chat with a person on there and enjoy it.
[46] Of course, I also have been talking to Mr. David Goggins over the past few months, who is definitely not a licensed professional therapist, but he does help me meet my and his demons and become comfortable to exist in their presence.
[47] In fact, in early March, I'm doing a 48 -mile run with him, four miles every four hours for 48 hours, you should check out Gagonschallenge .com for more information about that.
[48] I often talk about struggle.
[49] I think it's essential for creation, but I think you can struggle beautifully in a way that doesn't destroy you.
[50] Therapy can help there.
[51] BetterHelp is easy, private, affordable, available worldwide.
[52] You can communicate by text any time and schedule weekly audio and video sessions.
[53] Anyway, check out betterhelp .com slash Lex.
[54] That's That's betterhelp .com slash Lex.
[55] This episode is also sponsored by 8Sleep and its Pod Pro mattress.
[56] It controls temperature with an app.
[57] It's packed with sensors and can cool down to as low as 55 degrees on each side of the bed separately.
[58] It's amazing.
[59] It's been a game changer for me. I just enjoyed sleep and power naps way more now.
[60] I feel like I fall asleep faster and get more restful sleep.
[61] Combination of cool bed and warm blanket is amazing.
[62] Now, if you love your current mattress, but still are looking for temperature control, 8Sleep's new Pod Pro cover adds dynamic cooling and heating capabilities onto your current mattress.
[63] You can cool down to 55 degrees or heat up to 110 degrees.
[64] I don't know why you would want to do that.
[65] Maybe let's keep it under 100 degrees.
[66] And you can do so on each side of the bed separately.
[67] Also, it can track a bunch of metrics like heart rate variability, but cooling alone is honestly worth the money.
[68] Go to Aesleep .com slash Lex, and when you buy stuff there, you'll get special savings as listeners at this podcast.
[69] That's Aesleep .com slash Lex.
[70] And now, here's my conversation with Brendan Ike.
[71] When did you first fall in love with programming?
[72] I didn't program a lot when I was in high school, but I had a friend who had a Commodore pet.
[73] And after we saw Star Wars, he said, hey, let's make a basic program.
[74] that does the Death Star Trench run.
[75] And it was just, you know, simple 2D graphics.
[76] And I didn't know what I was doing, so I just helped them out on the math and stuff like that.
[77] I was a math and science kid.
[78] I was really into the HP calculators of the early mid -70s.
[79] These were the RPN.
[80] They were really strongly built.
[81] And as Art Goldfinger, instead of gold divinely heavy.
[82] There's probably some gold in them, too.
[83] Gold medalization.
[84] But they were awesome calculators, and they had all the scientific functions.
[85] So I was really into that.
[86] So I aimed towards physics.
[87] I was a little late for the, I think, the, you know, the 20th century golden age.
[88] And I read a lot of science fiction.
[89] So I was like, yeah, it's on the hyper drives and warp drives.
[90] And physics was not going to get there quickly.
[91] And I started hacking on computers while I was studying physics as an undergraduate at Santa Clara University.
[92] And, you know, I dodged the Fortran bullet because I was in the science department instead of the engineering department where they still did Fortran.
[93] and card decks.
[94] I think they had an auto collator.
[95] But we were using Pascal, and I got one of the first portable C compiler's ports to the deck mini computers we were using.
[96] And I fell in love with programming just based on procedural abstraction, Pascal, just what now would be considered old school, like structured programming from the 70s.
[97] Niklaus Viert, the creator of Pascal, was a good writer and a good pedagogue, right?
[98] He always at ETH would do these courses where it's like, build your own computer, build your own compiler, build your own operating system.
[99] From scratch.
[100] Yeah, kind of.
[101] And I know some people who are grad students under him and said he would torture the students with things like this custom email system that had 25 word limit and things like that.
[102] I unfortunately dodged both the Pascal and the Fortran bullets.
[103] Could you maybe, Linger on the Pascal, like what kind of programming language was it?
[104] What is it reminiscent of of today?
[105] Because it sounds like it may have had an impact on your own trajectory.
[106] Yeah, it was in the Algoal family, and Algole was, you know, the big successful language design and compiler project in the 60s.
[107] It had a successor called Algoa 68, which was ambitious, but not as successful.
[108] But Pascal was kind of wordy procedures and functions language.
[109] It distinguished between functions which return of value and procedures, which don't, which just compute.
[110] And you could say that whole Algoal family went into Ada.
[111] Pascal had a second life thanks to Borland with Turbo Pascal, which was hugely successful, I think in large part due to Anders Heelsberg, who then went to Microsoft and did C -sharp and done that with his team there, and it's done really well, doing TypeScript, type JavaScript.
[112] So, yeah, there's a lineage here.
[113] but I was also interested in C in Unix by the time I was an undergrad because people were bringing Unix up on all sorts of hardware.
[114] I had some friends who were doing their own wire -wrap computers, 68 -20 maybe, and I was wire -wrapping for my engineering course, 6809 or something simpler, building a computer on a board.
[115] And I wanted to build a more ambitious one and port Unix to it, but I picked the wrong processor.
[116] I picked the National Semiconductor, NS 16032, which was this amazing, you know, SISC, complex instruction set computer, and not the reduced instruction set computers that were just being contemplated into the mid -80s.
[117] And risk ultimately won out.
[118] Risk one, in some ways, it dissolved into, you have both.
[119] Now you have these superscalor architectures where, like, Intel has kept probably too much backward compatibility at the instruction level, but that's just, there's a front end that parses that into these wide internal instructions.
[120] So, you know, the very long instruction word research that was also interesting at the time kind of became the microarchitecture inside the backward compatible intel.
[121] But I picked a national semi -chip and it never got made successfully.
[122] It was full of bugs and I never could have brought it up.
[123] But I went on out of physics after three years into math computer science.
[124] And like I said, I did it because I saw, I was being sort of childlike and naive about physics, and I thought, meanwhile, the valley is go -go for computers.
[125] The Apple 2, right, the PC, the Intel 80 -86, 80 -88 -based PC, the IBM gave Microsoft the future for, in a somewhat fishy deal.
[126] So it was wide open in the computing space, but in physics, you were as optimistic about physics.
[127] No, I mean, I was one of three brothers who were all in the same grade.
[128] I have a twin and a younger brother who skipped second grade and was with us the whole time after that.
[129] And, you know, he went on.
[130] He actually studied under Kip Thorne at Caltech.
[131] Wow.
[132] But he also didn't, he ended up in software.
[133] He didn't talk about physics.
[134] Does it make you sad that theoretical physics, even with strength theory, hasn't really had any foundational breakthroughs in the latter part of the 20th century in the...
[135] Yeah.
[136] In fact, I'd say the problem is theory over...
[137] over experiment.
[138] I would say, you know, we need more Aristotle and less Plato.
[139] You know, mathematics is not all physical.
[140] There are lots of mathematics that cannot be realized as far as I know in this world.
[141] So to understand the world, you need to do experiments.
[142] You need to not just dream up inductive theories that could have lots of alternative theories competing with them, with no way to decide between them, except aesthetics, which is not a good guy, in my opinion.
[143] I don't know if you our friends who have a relationship with Elon Musk.
[144] Where's the, in terms of like what you would love to see our society investing in building up, is it closer to Elon or is it closer to Feynman and Einstein and those?
[145] Well, those gentlemen are no longer with us.
[146] And I think that's noticed.
[147] So like I said, the real glory days of physics, the famous pictures from Germany before the Second War were just a fantastic assembly of brains, you know, Schrodinger and Einstein and Physics, I think, took a wrong turn that maybe all of, I would say, Western science took in going for models over reality, right?
[148] You see this in all sorts of fields.
[149] Now, we can build models that are very predictive and generative, and then we build actual devices or, you know, semiconductors, things like that.
[150] That's good.
[151] I'm not dismissing that.
[152] We need good models.
[153] We need to experiment and prove them and test them.
[154] But the problem I've seen in physics, which you see, certainly in economics, the dismal science.
[155] And you see, surprisingly, in other so -called hard sciences, is models that don't really have to be tested against reality.
[156] They can instead become policy tools, or they can become, like I said, one of a large family of alternate theories that could be as predictive, but nobody's doing the winnowing out.
[157] That's such an interesting tension in society.
[158] You see this in even the software sciences, which I have a deep love for, like psychology.
[159] You see this in epidemiology, not with the virus.
[160] It's this tension of, you know, how much of the world can we understand through just a beautifully fit model?
[161] And then at the same time, my main work is a machine learning where it's like there is no provable thing usually.
[162] It's just kind of you, it's all about just getting the right data set and getting tricks and so on.
[163] And there's this tension, in my own soul of, like, I grew up on theoretical computer science.
[164] Like, I loved approximation algorithms, like, all of that, like, different complexity classes, just those little puzzles.
[165] I mean, I don't know.
[166] Do you, to you, as somebody who was in math and computer science, and then ended up going into places where you engineer some of the most impactful things in this world, do you see the P versus NP, all that whole space is interesting at all?
[167] Yeah, it's not that useful in practice, right?
[168] People are using it with sort of crypto analysis or asymptotic arguments about, you know, can we have a quantum -resistant crypto algorithm, things like that, which may not be practical, right?
[169] If you follow Mikhail Diakinov or Gil Kalli, there are big questions about how quantum computing will scale up, how practical it will be.
[170] Is that something that you think about quantum computing?
[171] And not except for a spare time.
[172] Like you said, I'm not using this kind of computer science in practice because almost everything now is engineering and finding ways to get computers to be more useful for people, which goes from design problems, which are really kind of an art. Like Newt's said anything you can't automate is an art. Well, we can have machine learning composed music and it can imitate, you can train it, and it can sound kind of decent, but maybe lacking that genusiquot.
[173] But, you know, user interface still, I think, requires human art. So speaking of things that didn't follow a perfect theory and model, JavaScript.
[174] So there's two things.
[175] One had an impact on the world at a huge scale, obviously.
[176] And it also still is one of probably the most popular programming language in the world.
[177] So can we go back to the origin story?
[178] Can you tell the story of how JavaScript was created?
[179] Yeah, I was at Silicon Graphics after graduate school for seven years, and it got to be big and successful and divisionalized and political, and I thought kind of boring.
[180] And a friend who had been there went to one of the last of the super companies, super startups in the early 90s.
[181] There were several.
[182] I suppose General Magic was a little after that or around the same time.
[183] But Microunity was that company that I went to, and it was because my friend, Jeff Weinstein, had gone there from Silicon Graphics.
[184] He recruited me. And microunity was doing everything.
[185] So this was like the ultimate sort of pretend grad school.
[186] It was doing a new fab, new semiconductor process.
[187] It was doing new analog and digital circuits on the same, very large, but not way for scale chip.
[188] Originally, it was five centimeters on a side.
[189] It was really hot too.
[190] So I needed a water cooler.
[191] It was a Craig Hiller.
[192] And then they shrunk it and they tried to do.
[193] a home sort of media processor that was essentially a barrel processor, but you could think of trying to do all the things that we now see in modern architectures with short vector instructions and sort of wide instructions or multiple issue.
[194] And doing a lot of the stuff in software, because the second iteration, the set -top box, was really for avoiding the cost to the cable company of rolling the trucks out to replace your garbage general Atlantic.
[195] set -top box with a completely newer, less garbagey one.
[196] So if you could have software -gradable set -top boxes, the cable companies thought they could save a lot of money and add features.
[197] Is this assembly?
[198] Or which level of the software?
[199] It was like, we were writing in, we were using GCC.
[200] We were writing C++ and C. Somebody I worked with there, really very smart guy, hired from a sort of Wall Street, hot shot programming consultancy, did his own hardware design as well as soft.
[201] And we were working on how to make not only these short vector units, but general bit shufflers and permutors, so you could do things like, you know, crypto algorithms efficiently, and you could do demodulation of the cable, you know, complex quadrature, amplitude modulated signal.
[202] So you were basically taking A to D converters, dumping things in buffers, and then doing the rest in software, all the framing and the Reed Solomon and Viterbi and all that error correction.
[203] So that was really great learning experience, but it was not going to work.
[204] It was doing too many risky things at once, right?
[205] If you, as Jim Clark said to me, when I hopped to Netscape after three years at microunity, he said, oh, yeah, you do 10 things each one in 10 odds.
[206] It's going to be one in 10 billion, right?
[207] The multiplication principle.
[208] So, you know, Netscape was already a rocket, and I passed a chance to go there in 1994.
[209] I knew the founders, because I worked at SGI Clark's company.
[210] Could you pause for a second in Nescape.
[211] When was the launch of this rocket?
[212] 94.
[213] 94 was the launch of Nescape?
[214] And I went there in early 95 in April.
[215] Okay.
[216] Oh, so you said you missed the launch?
[217] Well, I missed the first floor employment opportunity, but the IPO was August 1995, so I was there for that.
[218] How obvious was it the Nescape was like world changing?
[219] What was the layout?
[220] Was Netscape one of the first big browsers?
[221] Yes.
[222] So when I was at Micro Unity still in 93, we saw a browser called Mosaic.
[223] And up until then, we'd used email and we'd used Usenet, the N &TP protocol, we used newsreaders, we used FTP, we used all these old Internet protocols, all relying on the DNS and TCPIP and UDP for that matter.
[224] When I was at Silicon Graphics, we brought up the whole stack, right?
[225] We had to discover how to find the Ethernet addresses on your network and then find IP addresses for them, ARP protocol, all that stuff.
[226] And it was great because nobody knew in the 80s what was going to win, all the proprietary stacks like IBM, SNA, and DeckNet and all these other protocols.
[227] calls were saying, we're going to do it, or it's going to be heterogeneous future.
[228] Instead, it was, you know, Berkeley Unix and the TCPIP stack that dated back to the ARPANET that won.
[229] And I think we knew it.
[230] We all knew it at SGI, but the salespeople didn't.
[231] And so they kept trying to get multiple network stacks interoperating.
[232] But in the end, it won.
[233] And so that was the internet.
[234] And it was email and textie.
[235] And it was used that.
[236] Very textie.
[237] And then Tim Berners -Lee did his thing, but I don't think I was paying attention.
[238] And I think, the date when he first did it, or when he wrote the famous emails, been pushed back to 89.
[239] But I'd noticed a mosaic in 93, because one of the things that Mark Andreessen and Eric Bina did at NCSA was they innovated on the early HTML standard.
[240] They, in particular, Mark sent this email saying, hey, everybody, we think you should be able to put an image in a page.
[241] And you know when he sent that Eric Bean had already written the code.
[242] And, you know, I talked to Tim Berners leaving more recently just a few years ago, and he was like, oh, we had another way of doing it.
[243] It didn't work out because Mark shipped his in mosaic.
[244] And this convinced me of several things.
[245] One, the Internet meant there was a huge first mover advantage, and being fast, getting on first mattered a lot.
[246] And so, you know, Richard Gabriel of scheme and poetry fame has written about this, the famous history.
[247] What's poetry?
[248] Well, he's a poet.
[249] Oh, actual poetry.
[250] He's talking about some kind of something like that.
[251] No, no. I mean, he's the founder of Lucid, which is where Jamie Swinsky worked before in that escape.
[252] And Lucid was doing, you know, compiled.
[253] and Lucid Emacs, which was a fork of Emacs, famously Jamie fighting against Richard Stallman, Stalmax.
[254] And so Richard Gabriel, you know, very, very brainy computer guy, but also a poet.
[255] But he wrote a nice essay that gets abused all the time.
[256] In fact, Jamie's put a kind of warning in front of his version of it on his site, JWC or the called Worse is Better.
[257] And this is about survival advantage of software in a network world, in my opinion.
[258] It's about Unix.
[259] It started out being framed as Unix and Lisp, good news, bad news.
[260] Because all the list people, the MIT people were like, oh, you know, the crown jewel, right, scheme, this Faberjeet egg or common list, this giant cathedral, of course we're going to win.
[261] This is civilization.
[262] And those, you know, those farmers in New Jersey, to borrow from the Sopranos, those hicks down at Bell Labs, they're just, you know, there's nothing sound there.
[263] It's all hacking.
[264] Well, guess what won?
[265] Wow.
[266] So you're saying this as a fundamental, like, principle of the internet is moving fast winds.
[267] You could say in almost any networked system, like in biological evolution, you see successful allele sweet populations, and they don't always have, you know, they aren't free of flaws.
[268] They're heterozygous advantage, right?
[269] You can get both parents give you the gene variant and you get sickle cell anemia, right?
[270] But if one of them does, you're more resistant to malaria.
[271] And so this isn't a beautiful process except at large scale.
[272] And then you realize that because it moves fast and can adapt, it can win.
[273] And people still struggle with this.
[274] 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, and even the standards process injected new mistakes, as it will.
[275] But often standards bodies go back and making compatible changes.
[276] You can't do that with the web.
[277] It's more like, again, like biology, you preserve what still works.
[278] You don't want to break ATP metabolism or whatever.
[279] So you have to kind of resign yourself to.
[280] the reality of worse is better being enshrined in actual design points you might not like.
[281] And that happened with JavaScript, and I'm way over it.
[282] But it also, I think, was a huge advantage, just why JavaScript has kind of swept a lot of programming domains.
[283] People will say, oh, it's not because of merit.
[284] Well, you're right, but we also improved it over time in the standards body.
[285] I spent 20 years doing that.
[286] And you don't get that choice.
[287] It's like, I'm not saying that that was the best language.
[288] I'm just saying that was the right time to do it.
[289] And I like to say the alternative was not to do it.
[290] I could have told Netscape, I can't do this.
[291] It's too rushed.
[292] And it would have been visual basic script.
[293] And it would have been bad.
[294] So that's a good way to present the alternative.
[295] But so it was a Netscape and you have written in how many days and why was it only that many days and what was the goal and the underlying principles in your mind?
[296] So the whole, I'm sort of describing worse as better.
[297] in a frenetic way because it fit the model of Netscape.
[298] When it was known that Jim Clark and Mark and Vius were founding Netscape, and they did the first release in 1994, that browser took over from Mosaic.
[299] In fact, that's why Mozilla is called that.
[300] It's the Mosaic killer.
[301] It's like the giant monster that kills Mosaic.
[302] It's awesome.
[303] And they knew that, you know, it wasn't that, again, it's not like you're doing advanced scientific research that is changing the world.
[304] You're more like taking down the last iteration in the browser, Mark, did, which had images and, you know, other importantances before he stopped working on it.
[305] And you're making Netscape, the new thing that has images, plugins, which was the way to do video back in the day.
[306] It had something that's kind of died now for tiled windows called frames and frame sets.
[307] Oh, yeah, yeah, yeah, yeah.
[308] HTML tables.
[309] That was new.
[310] Eric Bina did tables in Nescape 1 -1.
[311] So when I got there, they were heading toward IPO.
[312] Clark wanted to IPO early.
[313] I think his instinct was right.
[314] And that kicked off the whole dot -com era, right?
[315] There was a recession in the U .S. in 91.
[316] You can see old law and order reruns where they talk about the recession and how hard it's hitting New Yorkers.
[317] And after that, Greenspan really goose things at the Federal Reserve and technology had been sort of fermenting in a way that came together with the Internet.
[318] And Netscape made it possible to do pets .com, to do eBay, to get people to recognize a URL on a billboard and then type it in when they get home.
[319] And that was huge.
[320] That was so fast -moving a rocket.
[321] that Mark and the engineering team there thought, we need to make this a programmable browser, not just a document viewer, not just a video.
[322] So it was all HTML with images and tables and also, like you said, frames.
[323] Early plug -ins.
[324] There's no dynamic element at all.
[325] Yeah, the most dynamism we get was from a plugin, which there were a few of them then.
[326] Flash didn't exist at that point.
[327] It was, I think...
[328] Java Applets did yet, or no?
[329] Well, that's the thing.
[330] We did the deal with Sun.
[331] In fact, I was recruited to go do scheme in the browser.
[332] Remember, guys stealing Gerald Sussman's beautiful list variant.
[333] I was going to do it in the browser because my friends from SGI, I thought, hey, we like scheme, you like scheme.
[334] And I'm like, I hardly ever used scheme.
[335] It's not really used in industry except in sort of silos.
[336] But I like it.
[337] Okay, I'll come do scheme in the browser.
[338] I have a slide from my 2017 talk where I have Bruce Wallace crawling through the duct and diehard.
[339] Come out to the coast.
[340] Have a lot of fun.
[341] Come on do scheme in the browser.
[342] But when I got there, there was no scheme in the browser because they'd started to deal with Sun Microsystems.
[343] And my best contact there was Bill Joy, who I admired as a Berkeley Unix founder and Sun Founder.
[344] And Bill got the idea of making the browser programmable too.
[345] And so the main idea was to put the Java VM, which at that point was not really easy to embed, into Netscape, including the Netscape version on Windows that was still most popular, which was the 16 -bit Windows 3 -1, which was going away.
[346] Microsoft was coming out with Windows 95, and everyone was afraid they were going to do Internet Explorer, I guess two at that point, three the next year.
[347] They already bought or invested in somehow Spyglass, this other company that shot out from NCSA at the University of Illinois.
[348] And in fact, Microsoft had tried to buy Netscape in late 94 before I got there.
[349] And I heard about this later.
[350] I heard they offered way too little money.
[351] And so, you know, Jim Barksdale and Jim Clark said, get out of here, pound sand.
[352] But then they realized, oh, this is going to hurt us because now they're going to copy us.
[353] It didn't happen right away.
[354] I'm not sure when Gates' internet tidal wave memo was written.
[355] That's the famous memo he wrote when Bill Gates realized that Microsoft was going down this old copy AOL path or copy CompuServe path, a project called Blackbird, presumably after the SR 71.
[356] I don't know.
[357] But they were going to make a dial -up service with the custom content language stack and custom rendering, it wasn't the web.
[358] You know, they could have content partners, they have a lot of money, but it still wasn't to scale the web, it wasn't going to be compelling.
[359] And Gates realized this, and he turned the company on a dime, and they couldn't buy Netscape.
[360] Again, I'm not sure the timing, so they decided to copy it.
[361] And once we realized that everybody inside Netscape felt even more urgency and more of a frenetic mood.
[362] And so my chance to do scheme disappeared when the Java deal started brewing.
[363] but there was still a chance to do a companion language to Java because Java was a compiled, is a compiled language.
[364] It's evolved and improved quite a lot since then too, but it was for sort of serious advanced programmers that cost a certain salary or hourly rate.
[365] And people observed, Bill Joy observed, and I observed that in a maturest tech like Microsoft, you really benefit from having a scripting language like Visual Basic, which became Visual Basic script in IE3, if it didn't take over and kill JavaScript, that you need two languages.
[366] One is for the component writers who are higher price and more expert, and the other is for scripters, certified public accountants, designers, graphic designers with some programming inclination.
[367] Anybody, amateurs, doesn't matter.
[368] There's a much more demotic approach there for programming the components together, gluing them together.
[369] Some people will say duct tape language, which I don't really like.
[370] but we saw Bill Joy and Mark and Jason and I, we saw the need for companion language.
[371] And the gleam in our, I was to call it JavaScript, though I didn't like it.
[372] That was marketing's plan.
[373] Mark called it Moka, which I liked.
[374] And Netscape marketing, I think, didn't like that.
[375] So they said, oh, there's some trademark and some software somewhere that uses Moka, so we can't use that.
[376] And they tried LiveScript in August, and that didn't last.
[377] And then finally, we got the trademark license in December 1995.
[378] But the work I did to prove that it could be done was important because I came in in April and even the Netscape was growing so fast that they couldn't find an open hiring requisition in the client team for me. So they hired me into the server team.
[379] And I worked for a month on server team on what became HDP1.
[380] So I was actually, I had done protocol work at Silicon Graphics with Greg Chesson for Bellwaves intern, grad student intern, who knew all the Unix founders.
[381] And Greg was very interested in taking protocols to the next level with VLSI, because he thought that CPUs wouldn't scale up.
[382] He was mistaken in that, unfortunately.
[383] Moore's Law more than kept up, and you have, you know, gigabit Ethernet running with conventional processors.
[384] But I worked on protocols at SGI as well as Unix kernel hacking and NFS and things like that.
[385] So I came into Netscape to work on the server side for a month.
[386] But I was thinking the whole time, what should this language be like?
[387] Should it be easy to use?
[388] Might it syntax even be more like natural language?
[389] like HyperTalk, which is Bill Atkinson's language in HyperCard, if you've ever used HyperCard on an early Mac.
[390] And I thought, well, I'd like to do that, but my management is saying make it look like Java, which looks like C from a distance.
[391] What does that mean?
[392] Is it braces?
[393] We're talking about visually?
[394] Does it mean like management?
[395] Do they understand what they think about?
[396] Marketing didn't know, but management did.
[397] Like Rich Schell, the VEV Engineering, knew.
[398] And we had a plan.
[399] even, that was, if you have this companion language, you're going to glue things together between Java and JavaScript, so you're going to have commerce in memory in the heap with data types.
[400] So you're going to want some of the data types in Java to reflect in JavaScript.
[401] You're going to want the primitive types that Java, unfortunately, severed from objects.
[402] So at least some of them, number, double, let's call it in Java's terms, from the C term for double precision floating point, or strings or bullions.
[403] and objects.
[404] And so right away, there was this constraint looking like Java meant kind of the C curly brace syntax, but also some of the data types and objects.
[405] Like objects and so on, all that kind of stuff.
[406] I thought it called.
[407] Comparison operated.
[408] Garbage collection, all that stuff, yeah.
[409] Even the bitwise operators and the shift operators, including the unsigned right shift, which Java had because it didn't have unsigned integer types.
[410] It said if you want to do unsigned operations, use an operator.
[411] And that turned out to be important much later.
[412] I'll tell that story five of time, but JavaScript inherited a set of operators, the expression grammar, a statement grammar, up to a point from Java.
[413] But I wanted a functional language.
[414] I wanted a scheme, a little bit of scheme, even though it wasn't as clean as scheme.
[415] So you had a love, sorry to drop.
[416] You had a love for scheme and Lisp that functional language landscape.
[417] Yes, I wanted first class functions because I saw the need for callbacks in the browser where it's a single -threaded program.
[418] All the early browsers were single -threaded.
[419] And it's the right model for users.
[420] Most users weren't ready for mutual exclusion and threading.
[421] So in a single -threaded world, you cannot block the user interface.
[422] So you have to use a callback and run later.
[423] And without getting too fancy and trying to capture the continuation like CallCC does in scheme, I thought, I'll just make it easy to have fun arcs, first -class functions you pass, you know, downward and they can call back, it can be called back.
[424] And Java didn't have that at the time.
[425] It had, it took forever to get proper first class functions, lambda is now into Java, Java 7 or 8, I think.
[426] It did have concurrency, right, from the very beginning, but you were thinking that JavaScript in the browser would not have the luxury of being concurrent.
[427] That's right.
[428] And the reason was Java was going to run in a plug -ins, so it could fork threads and go to town.
[429] But the main action in the browser was in the single -threaded program, the single Unix process on Unix or Windows.
[430] And it was where you had to service the event loop and then go, you know, do things, respond to the network, lay out some HTML, render it, turn widths into heights by filling containers, boxes, the early, what became the CSS box model, and run scripts to, you know, make the thing livelier respond to user input.
[431] And all that event -driven programming was, in part, like HyperCard, because HyperCard had this on -event name syntax.
[432] And so that's why you have in JavaScript on -click run together as the name of the event handler.
[433] And there's some funny ones, on mouse over and on mouse out.
[434] People still complain about those.
[435] But, you know, there were many more events now over the years standardized, but it was a mix of event -driven, single -threaded programming because it had to run in the main thread of the browser where the action is.
[436] And Java never got there, which meant Java could not interact easily or quickly or in a nested way with the document, with the objects reflected from the HTML document, with the tables and forms and so on.
[437] And that is one of the reasons I think JavaScript survived and Java kind of died.
[438] Java was in this plug -in prison.
[439] It essentially was confined to a rectangle, the appellate rectangle.
[440] And while we even built next year, Nick Thompson, a friend from SGI, who was an intern grad student at CMU at the time, built the first version of LiveConnect to glue Java and JavaScript together to deliver on that vision where you do have commerce between the data types and the heap.
[441] Did it work?
[442] It worked.
[443] but Java was in charge, JavaScript was in charge, and Java was just these components, these helper objects.
[444] You might as well do everything in JavaScript.
[445] What happened over time, it's like an evolutionary filter.
[446] It just kind of, who needs the plug -in?
[447] And in fact, Sun mismanaged Java as a plug -in.
[448] They thought, oh, Netscape was giving us the distribution vehicle, and we don't care about the browser.
[449] It's just about getting Java out there.
[450] And that was a big miscalculation.
[451] They then tried, because Microsoft's killing Netscape after three years, they tried getting into Microsoft.
[452] And you may remember there was a Sun, Microsoft deal, which famously blew up.
[453] And Microsoft kicked Java out of Windows.
[454] And that's when they really pulled the trigger.
[455] I think they already evaluated it and liked it on Anders -Helsbergs .net and C -sharp and decided we're going to just not have Java.
[456] We don't want any of that sun stuff.
[457] We don't want the patent risk.
[458] We don't want, I'm not sure what the fights were about.
[459] There was some patent angle to it, I think.
[460] And up till then, Microsoft had been using Java components, like in Outlook Web Access, which had a lot of JavaScript to be a webmail -like, hotmail -like user interface.
[461] They had to call the mail server through HTTP, and they used a Java object to do this.
[462] And when they gave the boot to Sun, suddenly other, you know, the left hand gave the boot and the right hand said, we better do something else in Outlook Web Access.
[463] What are we going to do?
[464] And they said, let's just add an ActiveX component, which is their own native way of embedding things in languages, and we'll make it, it'll be what became XML HTTP request, which is now a web standard for calling asynchronously, and it's been replaced by the Fetch API in HTML5 or HTML living document.
[465] But this whole lineage goes back to Java being successfully the loser and getting kicked out.
[466] And after Microsoft kicked it out, it was a plugin, and you would find it required for, like, smart card banking in the Nordic countries where that was mandated by law, but it really didn't get used much.
[467] Or, you know, there were pilots who used it for flight information.
[468] But Flash, which Netscape could have bought, but fortunately didn't.
[469] Fortunately, didn't.
[470] Yeah, we would have screwed it up.
[471] What year were we talking about with Flash?
[472] I think after the IPO, so it was probably late 95.
[473] Flash was around.
[474] Was it Adobe?
[475] No, it wasn't.
[476] No, it was.
[477] It was called Future Splash, and it was these brothers, Jonathan Gay, I think his name was.
[478] He came knocking, and the marketing guy at Netscape who was screening the technology partners or wannabe acquisitions was brutal and just everybody wanted to get in on the Netscape, you know, stock gravy train, and he sent them packing, and they ended up selling the Macromedia, and Macromedia was where Flash was created.
[479] And the good thing about Macromedia was, it was a tool company.
[480] So it invested in, you know, the best ideas, I think, which are still somewhat lost to us of Flash, The timeline, animation has sort of been a mutable function over time.
[481] They had the tooling around that too.
[482] Like that, Dreamweaver, there's a Flash.
[483] Flash director.
[484] There were a bunch of them.
[485] Yeah.
[486] I mean, yeah, that was a great.
[487] Flash builder was one of the last ones.
[488] These tools were used by real artists and, you know, special effects people and designers.
[489] All the restaurant websites around 2005 were done in Flash, which was, you know, we were trying to do HTML5 at the same time.
[490] That was the Firefox era.
[491] We were trying to make the web capable enough.
[492] You didn't need Flash.
[493] But if you recall, you go to a restaurant and it's like, this is kind of like a game or something.
[494] It's like a Flash.
[495] Oh, the font looks small.
[496] You didn't like Flash from the beginning.
[497] You're like, this doesn't feel right.
[498] Not really.
[499] I actually admire Flash's technology.
[500] I'm pretty pragmatic about these things.
[501] And I realized that, you know, it doesn't matter if your Delta bad hand, like JavaScript was a rush job.
[502] Or if you have Flash as a plugin and you can invest in the tools and make it pretty good.
[503] You should make it better for your users and grow it as best you can.
[504] And what happened with the browser due to Microsoft's monopoly abuse, for which they were convicted, and even after that, until I think Firefox and then Chrome was people kept saying, oh, the web can't do X, can't do Y. We'll have to have a plug -in.
[505] We'll have to have a new approach.
[506] We'll clean the slate and have a new web.
[507] And everyone who said that failed.
[508] And the reason they failed is because there's too much value in the web, this huge network.
[509] And the worst is better principle means that you can not only start bad, which they all sneer at, but get on first and get wide distribution, get sort of an evolutionary advantage in the priority of place, but you can also improve it over time.
[510] And so if you're going to improve Flash, and for some reason, Flash is now out of favor.
[511] Steve Jobs said you can't have Flash on the iPhone.
[512] That was probably the death now.
[513] Put your energy into JavaScript.
[514] And that happened, right?
[515] So we did things at Mozilla with Adobe to improve, which bought my Macromedia.
[516] to improve Flash and to improve the version of JavaScript that was in Flash.
[517] We tried to standardize that.
[518] Oh, that's right.
[519] I'm getting ahead of myself.
[520] You can program Flash?
[521] That's right.
[522] That's right.
[523] Can we just rewind to the magical, like, you know, it's a special moment in the history of all of computing.
[524] It's, we'll talk about it later, but it's arguable, it's possible that the entirety of the world will run on JavaScript at some point.
[525] So, like, it's like those days, it would be interesting if you could just describe actually zooming in on how the cake was baked from the, you know, the several days that you were working on it, what was in your mind, how much coffee were you drinking, were you nervous, why you're freaking out.
[526] I'll try to remember it.
[527] I mean, you're right.
[528] There are these pregnant moments you see in hindsight.
[529] Maybe they're overrated, but like Hegel sees Napoleon on horseback at Jena and says there's the world spirit on horse.
[530] and I knew that there was a chance to do it.
[531] Mark knew, and he was my executive sponsor, and he was the one sort of brainstorming how the JavaScript should be right there in the page.
[532] That was important for him to say that, because I thought so too, but a lot of people were like, well, you can't write programming language in the middle of the markup, and indeed there are problems.
[533] If you did it naively, you'd see the code laid out as like random gibberish.
[534] So I had to figure out how to hide that.
[535] That was a challenge.
[536] is that is that a breakthrough idea i mean so you and mark thinking about this idea that you just inject code in the middle of the mark of the web page yeah it was considered kind of heretical there was an sgml guru i forget his name but he corresponded with me and at first he was angry it's like you should have used a marked section why didn't use a marked section and i said well sgml marked sections are not part of html by the way and they're not supported in the browser and so i i did some hack that was equivalent and over time you could do the proper sgml thing But eventually he came around, and it was, again, sort of evolutionary necessity.
[537] It was almost like introgression, like, you know, the idea which Lin -Marguiles, I think, helped get across, that we have to consider mutualism in biology that maybe, you know, mitochondria were ancient prokaryotes that got into the cell and became beneficial.
[538] Somehow, the same sort of thinking applies.
[539] You have to embed JavaScript in HTML.
[540] It's going to be a good virus.
[541] It won't hurt you.
[542] So the code becomes data in the sense that just gets carried along.
[543] But is there the side of the, so you were focusing in the Nescape at that time?
[544] Doesn't the browser have to support, interpret correctly, this mix of HTML and whatever code?
[545] I had to hide it from old browsers, including Netscape 1 -1, which was predominant then.
[546] So I used an HTML comment, but inside the container that comment lived in the script tag, which is a new element, I could make different semantics in Netscape 2.
[547] where those HTML comment delimitors instead of being multi -line brackets became one line or essentially one -line.
[548] So JavaScript was written, the programming language was written as a comment.
[549] A comment for old browsers and a set of brackets that were ignored with real code for new.
[550] And it was this two -way comment -hiding hack, as I called it, that was absolutely necessary for us to get out the ground.
[551] We couldn't have bootstrapped JavaScript without it.
[552] We didn't have scripts that were loaded from a separate file.
[553] The only scripts in Netscape 2 were in line in the document.
[554] What were the challenges here?
[555] What, like, what, you know, typing, what were the choices you were thinking about?
[556] Garbage collection.
[557] I didn't have time to write a garbage collector, so I just, I didn't at first.
[558] So the thing was using essentially arenas or what Gnu calls objpules and just would run out of memory eventually.
[559] And I added reference counting in a hurry after the 10 days in which I had.
[560] So after I was in the server team doing HTTP 1 -1 and thinking about the language, I finally got transferred to the client team in early May. And that's when I, you know, I got.
[561] the go sign from Mark and it was like, we can't wait because people inside Netscape are doubting, even people inside Sun are definitely doubting.
[562] Bill Joy was the champion, but he was like alone in that in seeing there was a role for JavaScript as the, as I call it, the sidekick language, Robin the boy hostage.
[563] Frank Miller put it in the Dark Night Returns.
[564] That there was this silly little language that would be the glue language and it could become important over time.
[565] And you were better off having that complementarity, that pairing of languages, just like Microsoft stacked it with visual C++ and visual basis.
[566] So what was the big moment of, I'm done?
[567] So I had to do a demo.
[568] I forget the dates.
[569] I think I, for a history of programming language, just paid for Allen Worse Brock did with my help.
[570] He did a lot of the writing.
[571] I think it was the 10 days from like Thursday evening through to the following weeks, you know, the whole.
[572] of that week and then into the Monday.
[573] Did you get sleep?
[574] Not enough.
[575] And I was really going fast because I'd already used a lot of C compiler and front -end compiler knowledge that I'd gained from undergraduate school.
[576] When I started getting into computing as a renegade physics major, people were formalizing more efficient bottom -up grammars, parsers for bottom -of languages.
[577] Really, L -A -L -L -R -1 was the big thing.
[578] And I studied all this and learned how to parse them.
[579] And in the end, if you're doing C languages, you often do what Dennis Ritchie did anyway, which is a recursive descent parser.
[580] You can hand -coded.
[581] And I did that for JavaScript in a blazing hurry.
[582] Mostly got it right.
[583] Didn't have precedence inversion problems or other bugs, but I copied a lot from Java and C. And I tried to keep things simple.
[584] Like the equality operator in those 10 days sprint, between two objects of different dynamic type, said, no, they're not equal.
[585] Their types are different.
[586] And then after that, I had internal early adopters, and they were using JavaScript to like match a number against a database field that had been stringized.
[587] And they said, oh, can we just have implicit conversion?
[588] And like an idiot, I agreed.
[589] I gave them what they wanted.
[590] I was trying to please them and get adoption.
[591] And that, you know, broke what equivalence relation nature there was to the double equal, you know, there are some edge cases with not a number that break that of two.
[592] But it really broke it.
[593] Having implicit conversions in that operator is something that people still roast me over.
[594] So let's talk about two things.
[595] One, it sounds like the comparison operator, the equality operator, is the thing that you regret.
[596] So maybe can you...
[597] Making it sloppy.
[598] So what is the biggest thing you regret in those 10 days and what is the biggest thing you're proud of?
[599] So that making it sloppy?
[600] came after the 10 days, and my lesson there, which I've tweeted is, when people come to you saying, can you please make it sloppy?
[601] Add this cute feature.
[602] The answer should be no. And I should have known that because I think Nicholas Vier, one of my heroes, said the essence of design is leaving things out.
[603] But during the 10 days, I also, like I said, I was in such a hurry, I left out garbage collection.
[604] Came back to haunt me, but I got reference counting in in time that people weren't running out of memory right away on long -lived JavaScript.
[605] What happens when you don't have garbage collection and you of objects.
[606] Well, you just run out of memory.
[607] And, you know, love it.
[608] At first, you write a short script and if Hage doesn't last long or it doesn't do a lot, and it's okay.
[609] Oh, I see.
[610] Yeah, yeah.
[611] But if you're writing a game or something and you're doing event -based allocation, you run out of memory.
[612] And this was noticed in the summer of 1995 and people were like, what's going on?
[613] Oh, yeah, I better go back and do reference counting.
[614] And then the problem, the reference counting is you're writing the language in the runtime in C, an unsafe language.
[615] And if you're reference counting and you overflow the counter, you mismanaging.
[616] so it goes high, it gets stuck high, you leak memory again, and you run out.
[617] If you underflow it, you pre -memory that's still in use.
[618] And even then, we knew what all the security hackers came to know, that you therefore have potentially a remote code execution vulnerability.
[619] Because this was before things like non -executable heap memory and stack defenses against taking over memory.
[620] So if you can, from the remote side, write some HTML and JavaScript that just happens to exploit a bug in memory safety, like it causes JavaScript to underflow reference counter.
[621] And the script still has its hands on that object, and it's trying to call a method on it, and there's some kind of lookup function table in the object.
[622] But you've managed to stuff the heap with strings that fords their own lookalike for the function table.
[623] You can call some other code.
[624] And this was a problem right away.
[625] So security, you know, JavaScript up the ante.
[626] Java had this problem, too, but in its own VM, and it just was, you know, a separate headache for Sond to worry about.
[627] We had this problem in Netscape right away.
[628] So Netscape 2 came out after my 10 days and after these, you know, follow -on work to embed JavaScript better in the browser and to add garbage collection through reference counting, really I call it reference counting, and get it shipped.
[629] We had a bunch of dot releases where we fixed security bugs like maniacs.
[630] But what is the thing you're, you know, when you sit back on a porch and just look out into the sunset, what are you most proud of from those days?
[631] I think the first class functions shines.
[632] I think especially since Java didn't have it and it was somewhat unusual.
[633] Scheme made it in somehow at the end of the day.
[634] In spirit.
[635] I mean, people complain because scheme has, you know, minimalism.
[636] It has, you know, six or seven special forms.
[637] It has hygienic macros.
[638] It has call CC.
[639] It has sort of a beautiful, complete.
[640] set of forms to make the Lambda Calculus pleasant to use in practice.
[641] And JavaScript is, you know, kind of multi -paradime or shambolic.
[642] Just in a small tangent, you mentioned Mark Andreessen.
[643] It sounds like, in Bill Joy, but staying on Mark, it sounds like he had an impact on you in that he sort of believed in what you were doing there.
[644] Can you talk about, like, what role Mark had in your life?
[645] Yeah, we would meet at the peninsula creamery in downtown Palo Alto.
[646] And Mark was just fresh out of grad school or whatever he was doing.
[647] And he was a big dude.
[648] And he got fitter later.
[649] He had hair.
[650] He would order giant milkshakes and burgers.
[651] And we would meet there and brainstorm about what to do.
[652] And it was very direct because we didn't have much time.
[653] The sort of we didn't talk about it.
[654] The implication was Microsoft's coming after us.
[655] Mark was saying things boldly, pre -IPO.
[656] like Netscape plus Java kills Windows, right?
[657] It's ambitious.
[658] Make a browser programmable.
[659] It becomes the new runtime for programs.
[660] It's the meta OS or it's the replacement OS.
[661] But he still saw value in JavaScript.
[662] Yes.
[663] Even though he was saying that and Java was the big name, hence the trademark license, he saw JavaScript as important.
[664] And he even thought, what if we got, I told us in other interviews.
[665] I can say it.
[666] He thought, what if we had my friend K. Pickman, who'd been at Netscape from the beginning and who was a colonel hacker at SGI when I joined, he started writing his own JBM before we consummated the Sun deal and got our hands on their code.
[667] And the Java compiler, Java C, which Arthur Van Hoff had written, very nice code, was all written in Java.
[668] It was self -hosted or so -called bootstrap.
[669] And so we could use that as soon as Kipps Java VM could run the bytecode from the Sun, JBM running the self -hosted compiler to emit the bytecode.
[670] So once we could bootstrap into Kipps VM, We wouldn't need Sun, and Mark was like, well, maybe we can just ditch Sun, or if Kip's Java VM, or if you're a JavaScript VM, now we need graphics.
[671] So Mark was thinking far ahead because he knew you could do things with HTML and images, but at some point you really want.
[672] Like dynamographics or three -dimensional?
[673] Like even SGI had already started its downfall because the first four VLSI team there had gone off to do 3DFX and all these other companies that made the graphics card on your PC, right?
[674] Doom was big and Quake.
[675] And so we were all playing Quake.
[676] I was old, so I was terrible.
[677] But why not put that graphics capability on the web?
[678] And in fact, it finally happened at Mozilla with Firefox era with Vlad Vukitsch, taking OpenGELES and reflecting it as WebGL.
[679] But OpenGELES is the mobile version of OpenGEL, which is a standard based on SGI GL.
[680] So this whole lineage of graphics libraries or really graphics languages for what became the GPU.
[681] and Mark was thinking ahead.
[682] He's like, we need graphics, too.
[683] And I thought, okay, I can try to get somebody I knew at SGI, but he's a grad student at MIT.
[684] He was studying under Barbara Liskopf.
[685] He laughed when he heard about this later.
[686] Andrew Myers, he's at Cornell, a long time.
[687] I think he's a full professor.
[688] And Mark said, great, well, get him.
[689] I'm not sure he's going to come.
[690] We'll throw money, you know, stock options.
[691] We never did it.
[692] And they did the Sun deal, so Kip nobly put aside his own JBM and we used the Sun JVM.
[693] So that was an ambitious period, and Mark was very generative because he was pushing hard, he was ambitious, and he wanted to have Netscape possibly be in control of the ball.
[694] Maybe you can speak to this dance of Netscape versus Internet Explorer.
[695] You've thrown some loving words towards Microsoft throughout this conversation, but that's a theme with Steve Jobs at a similar sort of commentary.
[696] From a big sort of philosophical principle perspective, Can you comment on the approach that Microsoft has taken with Internet Explorer from IE1 to Edge today?
[697] Is there something that you see is valuable that they're doing in the occasional copying and this kind of stuff?
[698] Or is it the world worse off because the Internet Explorer exists?
[699] So I'm going to segment this into historical areas because I think Microsoft is today with Sautia is quite a different company.
[700] And what they're doing with Edge is different.
[701] But back then, Gates, you know, aggressive character, not really original in my view, not an originator.
[702] Steve Jobs famously said once, he doesn't have any taste, and I don't mean this in a small way.
[703] It's no taste.
[704] You can see this.
[705] Apple at the time had beautiful typography and ligatures and kerning and the fonts looked great.
[706] And Windows had this sort of ugly system font that was carefully aligned with pixels so it didn't get antha.
[707] What is it?
[708] I'm sorry to keep interrupting.
[709] But why did, why was the Net Explorer winning throughout the history of these competitions?
[710] Distribution.
[711] Distribution matters more than anything.
[712] And this is why, you know, even now we're seeing in the browser wars, Edge, doing better because it's being foisted on people who have Windows.
[713] We have Windows 10 boxes at home.
[714] We have some Windows 7 boxes, or laptops we keep running too because we don't connect them to the Internet generally.
[715] But once you have that operating system to hold, you can, you can force, you know, edge.
[716] And Apple did it with Safari Tooth.
[717] It's not unique to Microsoft.
[718] That's sad.
[719] But distribution matters.
[720] And that's why I think IE was going to win.
[721] That's why everybody at Netscape felt were doomed.
[722] This was something Michael Toy and Jamie Woodson were doomed.
[723] But for a while there, we had a chance and we innovated in Netscape 2.
[724] We did the big platform push, Java and JavaScript and plugins, more plugins, and, you know, more HTML table features.
[725] And really started making a programmable stack out of what we're.
[726] pretty static web languages.
[727] And even in the beta releases, Netscape, two people were using JavaScript to build what you would call single page applications, like Gmail.
[728] And they were using JavaScript locally to compute things and to call the server on a hidden frame in the background.
[729] So it was prefiguring a lot of what came later as Ajax or Dynamic JavaScript, Dynamic HTML.
[730] So people saw that, I mean, even then they saw it, yeah.
[731] That's kind of, I don't know, from my perspective, that seems quite brilliant.
[732] It seems like really innovative that you would have code run in the browser.
[733] It did impress me with something, which I learned later about from Eric von Hippel of MIT, which is user innovation networks, lead user effects, that throwing out JavaScript, even though we weren't doing open source, we were doing beta releases early and permissively with Netscape, getting early developer feedback, absolutely critical.
[734] I loved it.
[735] I did some of that with SGI with some of the products I worked on, but it really came to the foreign Netscape.
[736] And that culminated in Mozilla, where you're dealing with developers all the time and early adopters, lead users.
[737] But the lead users helped improve JavaScript, even in those last few betas where I could hardly change things.
[738] I was under pretty rigid change control.
[739] So we're talking about just a small collection of individuals that are just like up front.
[740] Guy named Bill Dorch.
[741] You can find his work in the web archives still from 1996.
[742] It's a single page application.
[743] It's an artist gallery of mountain art. He used JavaScript.
[744] It doesn't quite work.
[745] He uses JavaScript locally.
[746] He uses a local database.
[747] What you would think of now is JSON, but it's all pure JavaScript code, a bunch of objects being constructed.
[748] That's so cool.
[749] So how is, if you can do sort of a big, sweeping progress of JavaScript, how has JavaScript changed over the years in your view from those early 10 days with a quick addition of garbage collection and fixes around security, how is this evolution that now it's taken over the world?
[750] It's been a bumpy ride because the standards body got shut down after Microsoft, I think, took over the web and then felt punished by the USB Microsoft antitrust case.
[751] Can you speak to the standard body?
[752] That was a fun ride, too, because Netscape had taken the lead with the web and HTML innovations like frames and framesets, tables.
[753] And the W3C was sort of off, even then sort of an SGML land heading toward XML Lala land.
[754] I'm going to be a little harsh on it.
[755] What's SGML?
[756] I'm sorry.
[757] SGM was the precursor markup language to HTML, or it was sort of the more extensible standard generalized markup language.
[758] It was a XML -like, pointy brackets, but it had.
[759] All sorts of elaborate syntax were doing different semantics.
[760] And this is why, I think, you know, TBL and others who wanted to do the semantic web then took XML forward.
[761] But they had this, or some of them anyway, had this strange idea they could replace the web with XML or that they would upgrade the web to be XML.
[762] And it couldn't be done.
[763] Worse is better had concrete meaning.
[764] The web was very forgiving of HTML, including sort of minor syntax errors that could be error corrected.
[765] Like error correction isn't generally done in programming languages because...
[766] That's another amazing thing about HTML is like it's more like biology than programming.
[767] Yeah, exactly.
[768] And so XML was in its standard form super strict and could never have admitted, you know, the kind of users who were committing these errors.
[769] And the funniest part was Microsoft said, hey, we're doing XML, but the way they put it in Internet Explorer under the default media type, put it through the HTML error corrector.
[770] Oh, wow.
[771] So they kind of bastardized it to make it popular, usable and accessible.
[772] And so XML as a pure thing was never going to take over.
[773] And W3C was kind of not fully functional because Nescape wasn't cooperating with them.
[774] We thought about where to take JavaScript, and we realized our standards guru Cargo realized there was a European standards body that had already given Microsoft fits by standardizing parts of the Windows 3 -1 API, which European governments insist on.
[775] And they said, Microsoft, we can't use your operating system without some standards.
[776] And Microsoft said, you know, here's our docs.
[777] And the government said, no, we need a European standard.
[778] So this body called the European Computer Manufacturers Association, ECMA, which eventually became global and became a proper noun instead of an acronym.
[779] Right.
[780] It's just one capital E now with a lowercase CMA.
[781] Right.
[782] And as one of the early Microsoft guys I met when we first convened a working group to talk about JavaScript said, it sounds like a skin disease.
[783] But it gave, I mean, maybe you'll speak to that, but it gave the name to JavaScript of ECMA script.
[784] That was the standard name because Java was a trademark of Sons.
[785] They were so aggressive, they were sending cease and desist letters to people whose Middle European heritage meant their surname was Javanko.
[786] And they called their website, Javanko .com.
[787] And Sun would sent them a letter saying, you're using J -A -V -A at the start of your domain name.
[788] You must cease and desist.
[789] I love marketing more than anything else in this world.
[790] So ECMA script and now is popularly named as ES plus version.
[791] I would say people use JS more than anything.
[792] People still say JavaScript.
[793] JavaScript is in all the books.
[794] So I mean when you're referring to, it's usually JavaScript.
[795] And when you want to refer to a version of JavaScript, you'll say ES6, ES5.
[796] Yes.
[797] Or now they've gone to years, which is kind of confusing because it's an offset of 2009.
[798] ES6 is ES16.
[799] Yeah, it doesn't match the years perfectly.
[800] Yeah, so what were the choices made and how did JavaScript evolve here?
[801] So we took this new standards body, which we thought, sort of a proven record of standing up to Microsoft.
[802] But Microsoft sent a lot of people.
[803] They sent some people who were pretty good.
[804] And then when they realized that I was there in Netscape was not going to, you know, just bend over and do whatever they wanted, they sent somebody really good.
[805] And he was a smart guy.
[806] He did a lot of the work on the first draft of the spec.
[807] Sean Katzenberger.
[808] He's left Microsoft.
[809] He even did what I sort of did.
[810] He told his bosses, stop bugging me to do other things.
[811] I'm focused on this because it took a lot of focused work to create the first draft of the spec.
[812] And I was still holding, I was spending almost all the plates.
[813] I had like part -time help in certain areas.
[814] And on the front -end integrations, I had the front -end guys.
[815] But I couldn't take as much time as Sean was to write the draft spec.
[816] But I had to participate because I was essentially helping write down what the language did.
[817] And in areas where we didn't like what it did and Microsoft didn't agree, we sometimes got away with slight changes.
[818] And that's the story of standards.
[819] You have different implementations.
[820] And depending on their market power, they interoperate where you have agreement and where they don't, the dominant one usually sets the de facto standard.
[821] And then you should probably reflect that into the DeJore standard.
[822] And this happened with JavaScript.
[823] Over time as Netscape went down and Microsoft went up.
[824] We did the first edition of the standard codified in in 1997 in France.
[825] We had a trip to Nice, which was very memorable.
[826] For any interesting reason, or just because it's Nice?
[827] And, and ECMA's European, and IBM and others were there.
[828] Mike Kalashaw and IBM Fellow was a Britisher.
[829] And the guy who ran Ekma at the time, Jan Vendebel, was quite a raconteur and a very fun guy, and he had us out for, you know, the great, you know, Fuidemere, the Buebez.
[830] Was the standardization process beautiful or painful that those early days, you as a designer of the language.
[831] It was painful because it was rushed.
[832] Now, Guy Steele was contributed by Sun.
[833] So even more than Sean, you had this giant brain, Guy Steele helping, bringing some of that scheme magic.
[834] He even brought Richard Gabriel for funding.
[835] Richard wrote the fourth clause of the Xana Standard, which was kind of an intro to what JavaScript's all about.
[836] So we had some really good people.
[837] And we didn't fight too much.
[838] There were some tension where I was fixing bugs and I was late to a meeting.
[839] And Sean Katzenberger, Microsoft, was actually mad.
[840] Like, where is he?
[841] We need him.
[842] And, when I got there, I saw that only he saw this sort of off by one bug in somewhere in the spec.
[843] And I saw it too.
[844] And I said, there's a fence post bug there.
[845] And then we kind of locked eyes and we realized we were on the same page.
[846] And we kind of, he wasn't mad anymore.
[847] What were the features that are being like struggled over and debated and thought about?
[848] It was mainly writing down what worked and what we thought should work in the edge cases that didn't interoperate or that seemed wrong.
[849] But we were already laying the groundwork for the future additions that I was already implementing.
[850] I was still trying to lead the standard by using the dominant market power to write the code that actually shipped.
[851] So the de facto standard would lead the DeJure standard, and I was putting in the missing function forms that I didn't have time for in the 10 days.
[852] So this is the engineering mindset versus the theoretician.
[853] So you didn't want to create the perfect language, but one that was the popular and shipped and all that kind of stuff.
[854] And you could say I was standing out of the shoulders of giants.
[855] So there was a staged process where I had to hold back things that were well designed by others.
[856] other languages that I could imitate, but I couldn't do them all in the 10 days.
[857] So they came in in 1996, in 97, and they came into the third edition of the standard, which was finalized in 1999.
[858] But at that point, Netscape had been sold to AOL, which was a decent exit considering, and, you know, had previously been mercilessly crushed.
[859] NetScape was selling the browser, along with server software that it had acquired after its IPO, and Microsoft was just underpricing it.
[860] So there was no way to compete with that.
[861] Microsoft was also, you know, making Internet Explorer the default browser in Windows, which is called tying an antitrust law.
[862] And they were doing even more brutal things.
[863] There's a famous investor.
[864] He did very well on Google.
[865] So he's a billionaire Ram Shri Ram.
[866] And he was sales guy, or head of sales at Netscape.
[867] And he got off the phone looking ashen faced after Compact called and said, Microsoft just told us they're going to pull our Windows license if we ship Netscape as the default browser.
[868] Wow.
[869] So there is some bullying going on?
[870] There was totally material in the antitrust case.
[871] But JavaScript escaped into the standard setting where there was fairly good cooperation.
[872] Microsoft had a really good guy on it and, you know, Guy Steele was there for a time, and there was some good work.
[873] But after the antitrust case and, you know, Netscape kind of dissolving into AOL and not really going anywhere quickly, Mozilla took years to really bring up.
[874] the standard froze.
[875] And by 2003, even though they've been sort of noodling around with advanced versions, JavaScript 2, I'd given the keys to the kingdom to another MIT grad, Baltimore Horwatt, very big brain.
[876] And still at Google, I think.
[877] He won the Putnam in 86, so he's, yeah, very mathematical.
[878] Legit.
[879] He designed this successor language JavaScript 2, but it only showed up in mutated form in Microsoft's ASP .net server side.
[880] and it didn't last there.
[881] And it showed up in Flash.
[882] And that's what became ActionScript 3.
[883] Ah, action script.
[884] Interesting.
[885] And then Flash, of course, declined.
[886] And so how do we arrive at ES6, where it's like there's so many, where everyone, okay, there's this history of JavaScript that people were, it was just like cool when you're like having beers to talk crap about JavaScript.
[887] Everyone loves to hate.
[888] Like people who are married say, ah, marriage sucks.
[889] They just want to let off some steam, even though everyone.
[890] uses the language.
[891] Yeah.
[892] But ES6, it's become this, like, reputed, like, it fixed major pain points, I think.
[893] It added things to the language and added something that was already in ES5 strict mode, but made it implicit in class bodies and module bodies.
[894] It was a big jump, but it accumulated some of the ES4 designs that we'd done with Adobe for what we hoped would be the fourth edition of ECMAScript that were supposed to fold in, some of these old JavaScript two ideas that had come into action script three.
[895] So you look at the family tree and you see these forks and the main ones are the ones that go into Adobe Flash acquired from Macromedia and the one that went into the server side of Microsoft's stack, which kind of died, and then trying to bring them back into the standard and not quite succeeding, ES4 was mothballed, but all the good parts that everyone liked made it into ES6.
[896] And so that was a success.
[897] And I said earlier I had the wrong year.
[898] I think it's 2015.
[899] So it's off by...
[900] For ES6.
[901] Yeah, it was done, finalized in 2015.
[902] It took a little longer than we hoped, but...
[903] Because ES5 was 2009, and that was a smaller increment from ES3.
[904] We skipped four again.
[905] We mothballed it.
[906] And we had a split in the committee where some people said, you know, ES4 is too big.
[907] We're going to work on incremental improvements.
[908] No new syntax in particular, they promised.
[909] Not quite true.
[910] But they added a bunch of interesting APIs, Alan Wears Brock, my co -author of that hobble paper.
[911] And he was at Microsoft at the time.
[912] I ended up hiring Mozilla.
[913] He wanted to get to Mozilla and keep doing the sort of editoring, editor -job of the JavaScript standard, ECMA script.
[914] And when we got ES6 done, it was a little late, 2015, and we switched to year numbers.
[915] So people still call it ES6.
[916] I call it ES6.
[917] But if you remember, off by 9 plus 2000.
[918] Yeah, I mean, ES6 is such a big job.
[919] I mean, like you said, there's a threat that connects all of it, but ES6 is.
[920] when it's like became this language that it almost feels ready to take over the world completely.
[921] More programming in the large features, more features you need for larger teams.
[922] Software engineering.
[923] Microsoft did something smart too.
[924] Anders and Company Luke Hoban, who's left Microsoft, also did TypeScript.
[925] And they realized something I think that Gilad Brock has also popularized and he was involved in Dart at.
[926] Google, if you don't worry about soundness in the type system.
[927] don't try to enforce the type checks at runtime in particular, just using this sort of a warning system, a tool time type system.
[928] You can still have a lot of value for developers, especially in large projects.
[929] So TypeScript's been a roaring success for Microsoft.
[930] What do you think about TypeScript?
[931] What do you think about TypeScript?
[932] Is it adding confusion or is it ultimately beneficial?
[933] I think it's beneficial.
[934] Now, it's technically a super set of JavaScript, so of course I love it.
[935] The shortest JavaScript program is still a TypeScript program.
[936] Any JavaScript program is a TypeScript program, which is brilliant because then you can start incrementally adding type annotations, getting warnings, learning how to use them.
[937] Microsoft's had to kind of look around corners at the standards body and guess how their version of modules or decorators should work.
[938] And the standards body then may change things a bit.
[939] So I think they're obligated with TypeScript either to carry their own version or to bring it back with incompatible changes toward the standard over time.
[940] And I think they've played generally fair there.
[941] There's some sentiment that why don't they standardize TypeScript?
[942] Well, They've been clear they don't want to.
[943] They have a proprietary investment.
[944] It's valuable.
[945] They have control of the ball.
[946] And in some ways, you can say the same thing to any of the other big companies in the standards body.
[947] Why doesn't Google standardize its stuff?
[948] So you think it'll continue being like a kind of a dance partner to JavaScript to the base JavaScript?
[949] There's a hope that at some point, if they keep reconverging it and the standard doesn't break them and goes in a good direction, we will get at least the annotation syntax and some semantics around them.
[950] because when you're talking about type annotations, they're generally on, you know, parameters and return values and variable declarations.
[951] They're cast operators.
[952] You want that syntax to be reserved and you want it to work the same in all engines.
[953] And this is where ideas like Gilles plug -plugable type systems might be good, though then you could create the same problem you have with Lisp and scheme where there's a bunch of macro libraries and they don't agree and you have conflicts between them.
[954] But plugable type systems could be one way to standardize this.
[955] What do you think about the giant ecosystem of frameworks in JavaScript.
[956] It feels like, because, I mean, this is a side effect of how many people use JavaScript.
[957] A lot of entrepreneurial spirit, like create their own JavaScript frameworks.
[958] And they're actually awesome in our own different ways.
[959] And that, this is an interesting question about almost like philosophically, about biological system and evolution, all that kind of stuff.
[960] Do you see that as good, or should it, like, should some of them die out quicker?
[961] I think that maybe they should.
[962] Now, JQuery was a very clever thing.
[963] John Resig made this library that was sort of query and do and blended sort of CSS selector syntax with JavaScript sort of object graph or DOM querying and made it very easy for people to do things almost like they were learning JQuery as its own language, domain -specific language.
[964] And that, I think, reflected in part the difficulty of using the document object model, these APIs that were originally designed in the 90s for Java as well as JavaScript.
[965] They were very object -oriented or even procedural.
[966] They were very kind of verbose.
[967] And it took like a constructor call on three different, you know, hokey -pokey dances to do something, whereas in J -QQuery, it's just one line.
[968] Yep.
[969] Right?
[970] So that fed back finally into the standards.
[971] It didn't mean we standardized J -Query.
[972] It wasn't quite that concise.
[973] But you find now with the modern standards that we were working on in the HTML -5 sort of effort, that things became simpler, the Fetch API and the Query Selector API Documented.
[974] A lot of things can be done now in raw JavaScript that you would make more concise and terse in JQuery, but it's not bad.
[975] It's pretty good.
[976] Whereas in the old DOM of 15 years ago, it was just too provosed.
[977] So maybe the frameworks were born kind of because JavaScript lacks some of the features of JQuery.
[978] And so now that JavaScript is swallowing what JQuery was, then the frameworks will, only the ones that truly add value will stick around and the other ones will die out.
[979] And that highlights also this division between the core language JavaScript, which can show up in other places like Node .js on the server side and the browser -specific APIs or the document object model APIs, which are even managed by the W3C, the standards body that was off in XML la -la land when we were doing real JavaScript standards in ECMA.
[980] And you have this division of labor, division of responsibility, and division of style and sort of aesthetics and also speed.
[981] So the document object model really stagnated after Microsoft kind of de -invested in the web.
[982] And Microsoft did something in their haste in the spirit of Netscape, doing things quickly and getting on first, called D -Html.
[983] And some of their innovations that were like an alternative document logic model didn't really get standardized until HTML5, when we pragmatists at the time, Ian Hickson, who went to Google, Apple, and Mozilla said, Let's, XML is not going to replace HTML.
[984] HML 4 is too old.
[985] Let's standardize HTML 5 based on all this good stuff, including that D -HTML variant, dynamic HTML.
[986] HTML 5 feels like to me, maybe you can correct me like a beautiful piece of design work.
[987] It was, it's not often with web stuff.
[988] You have this breath of just like, oh, whoever did this, it just feels good.
[989] is that what do your thoughts about HTML?
[990] Am I being too romantic?
[991] A little bit, a little bit.
[992] Are there flaws, fundamental flaws to it that I'm just not aware of?
[993] My old friend Hixie did a great job.
[994] He was another renegade physics student.
[995] And he was basically a QA guy at opera, but he obviously trained physics student and someone who could write, British, or he developed test suites and he started thinking about them more axiomatically.
[996] Now, this can be good because you can sort of systematized in a way that makes a better HTML, or you can get caught in the pragmatism of saying, well, we have to handle these edge cases, so we're just going to have sort of a test matrix.
[997] And if the matrix is large, it will not be beautiful by many people's lights.
[998] Everyone likes to minimize along their preferred dimensions, the seven special forms in scheme or whatever.
[999] But reality is HTML needs to be big.
[1000] It's kind of shambolic, it's a creative, multi -paradigm.
[1001] And Hixie did a good job, I would say, with a bunch of it.
[1002] Other people came in in the spirit of Ian Hickson to do HTML5 work.
[1003] And they've carried on that effort.
[1004] And it's a, so it's a mix of pragmatism, de facto standards from the past being sort of combined or written down for the first time.
[1005] And then rethought in a way that has a simpler syntax, like the Fetch API instead of XML HTTP request.
[1006] This video, too, as well, it ultimately, it feels like maybe you can correct me. He feels like it was the nail in the coffin of Flash.
[1007] Steve Jobs saying no Flash on the iPhone, in my opinion, was the actual steak through the heart.
[1008] But, well, I'm not sure what trope you want to use.
[1009] Flash was a zombie for until just this year, right?
[1010] Or last year.
[1011] I think last year was the end of Flash in main browsers.
[1012] But Jobs really did the death blow.
[1013] And yet, you're right.
[1014] We had to make HTML5 competitive.
[1015] I still don't think we got that beautiful timeline animation.
[1016] The timeline thing.
[1017] So you like the time.
[1018] I mean, me from, you know, I used to animate all kinds of stuff inside Flash.
[1019] Plus, there's a programming element.
[1020] Yes.
[1021] It was a little bit, I don't know if you comment on that, but to me, it was a little bit like go -to statement, like in a sense that there's a little bit too chaotic.
[1022] Like, it didn't, that OCD part of me as a programmer, wasn't satisfied by Flash.
[1023] It feels like there was bugs that were introduced through the animation process that I couldn't debug easily.
[1024] Yes.
[1025] I heard that, too.
[1026] I didn't use it, so I'm doing the grass is greener thing here.
[1027] The thing I liked about the animation model was that it was this immutable function of time, so you could time warp and you could, if you dodged these bugs or worked carefully, you could really make it sing in ways that I think still a little challenging with the web animation standards, or just using raw canvas and webGL.
[1028] But there's so many tools now that maybe it doesn't matter.
[1029] And yet we had to do video, we had to do webGL and then, evolve it.
[1030] We had to do web audio.
[1031] But once we did all these things that helped flash die, thanks to Steve Gobs, we had something that people didn't realize.
[1032] We had that vision that Mark and recently had this graphics capable to the metal, portable runtime.
[1033] And we at Mozilla realized this and we saw JavaScript was something that you could compile to.
[1034] Adobe had somebody in the Adobe Labs doing this too.
[1035] He had a project called Alcorn.
[1036] We had somebody who's now at Google, Alone Zakai, who did his own LLVM -based compiler that would take C or C++ and it would emit JavaScript.
[1037] And you would think this is crazy.
[1038] You're going from this sort of machine types, low -level, you know, controlled memory allocation language to this garbage -collected dynamically typed high -level, higher -level language.
[1039] But alone sort of just phenomenologically carved nature of the joint and found the forms that were fast in JavaScript.
[1040] And then with Dave Herman, who I'd recruited from Northeastern University, who was a type theorist, and Luke Wagner, who still at Mozilla, who was the compiler guy and the jet guy, they figured out how to codify what Alwoman had done into a typed subset of JavaScript called AsmJS.
[1041] And this is a strange thing to think about because it doesn't have new syntax.
[1042] The types are casts that occur in dominator positions in the control flow graph.
[1043] So it's like a hack on JavaScript, and it's a subset.
[1044] And it uses those bitwise operators that I talked about copying from Java to basically cast numeric types, which are double -precision flowing point, into integers.
[1045] And so inside JavaScript, in the kernel semantics, are integers.
[1046] And if you use these operators, if a compiler emits them in the right places, you can then treat them as typed values, typed memory locations, and you can type -check your program.
[1047] You can not only type check it, you can compile it, and this is all in sort of linear time.
[1048] Oh, and you can compile it to have deterministic performance.
[1049] It doesn't touch the garbage collector.
[1050] It calls a bunch of functions that come from the C functions or C++ code that you're compiling.
[1051] And you can make the epic Unreal Engine go in 30 frames a second.
[1052] And when we did this in 2013 in the fall, you know, Tim Sweeney, I met, didn't think it could be done quickly.
[1053] I thought it would take years.
[1054] And the team went to Raleigh to Epic, and in four days they had Unreal Engine ported by pressing a compile button.
[1055] But they had to have WebGL, which came from OpenGEL, ES, which came to OpenGEL, which came from Silicon Graphics GL.
[1056] They had to have Web Audio, so they could map Open AL, which was another audio library standard to web audio, which was kind of a Chrome idiosyncratic thing.
[1057] But they could make it work.
[1058] And they had to have AsimJAS for fast C++ to JavaScript.
[1059] And if you didn't have that fast compiler step, the JavaScript you'd write by hand trying to do an Unreal game would be too big and too slow.
[1060] It would touch the garbage collector.
[1061] It would not keep up with 30 frames a second on the hardware, 2013 hardware.
[1062] So we demoed that at, this must have been in fall 2012 now, I think about it, because we demoed it at GDC, Game Development Conference 2013, and people were stunned.
[1063] It's like Unreal Engine, Unreal Tournament running in my browser window, No plugin, no flash, no Java, no. So were those the early days of, because JavaScript now was able to run basically on par with a lot of the, like, C++?
[1064] Yeah.
[1065] And even before then, you had the fast JavaScript VMs in 2008 when Chrome came out, just before came out, Mozilla, my friend Andreas Gall and I, and others hacked out Trace Monkey, our trace -based Jit.
[1066] The Squirrel Fish Extreme team at Apple did their Jit.
[1067] And we were all competing on these crazy performance benchmarks.
[1068] It was a little bit too much tuning to the benchmark.
[1069] But JavaScript started getting fast, and developers started noticing it.
[1070] But it was still kind of its own high -level language with garbage collection.
[1071] The AsmGS step helped us go further because until we really proved the concept, people were still saying, well, JavaScript's okay.
[1072] It's getting faster, thanks to V8.
[1073] Everybody gave Google credit, especially Google.
[1074] But we need something to kill Flash.
[1075] Let's use a portable native client code that Google had acquired native client.
[1076] which is a separate lineage for taking basically C code, compiling it into a software fault isolated container of some sort of using some kind of virtualization technique.
[1077] And maybe it can even be in process and still be memory safe.
[1078] That would be awesome.
[1079] But they ended up using process isolation too.
[1080] And that kind of weakened it.
[1081] And in the end, it was like portable native client, okay, meet the new boss, same as the old boss.
[1082] This is the Google Flash, right?
[1083] Yeah.
[1084] But when we did AsimJS and we showed Unreal Engine working, I think it was only a matter of time before Google threw in the towel.
[1085] And in fact, everybody agreed in spring of 2015, we're going to take what was proven by AsimJS and make a new syntax, a binary syntax, it's efficient, that loads into the same JavaScript VM that JavaScript loads into.
[1086] So there'll be two source languages, one VM, very important, one garbage collector, one memory manager, one set of compiler stages.
[1087] And that's called WebAssembly.
[1088] And that's the successor to AsimJS.
[1089] And it's important that it have binary syntax because at the end of the day, especially on mobile, if you're downloading JavaScript, even if you're using LZ compression on the wire, that's cool, but you've got to blow it out into memory and then parse the silly eight -character function keyword that I picked when I should have used something shorter, I picked it because of Ock, the Unix tool.
[1090] So anyways, I'm not following, I want to, but I'm not following the Ock thread.
[1091] Yeah, don't want that.
[1092] Is it surprising to you that how damn fast JavaScript is these days?
[1093] I mean, like, because you've been through the whole journey, I know every step of the way, but is it like, I mean, it's, how, it feels incredible.
[1094] It does, but I knew, so the funny thing is, computer science is this big carmic wheel, right?
[1095] Wheel of Fortuna.
[1096] And in the, it's not the 97, I was loaned by Netscape to do due diligence for Sun in their acquisition of anamorphic, which was David Unger and friends, people, Craig, I'm forgetting his name, he went to Microsoft, these Stanford language buffs who had taken small talk and then David created self as a simpler sort of small talk language and made really fast just in time compiling VMs for them.
[1097] And they, you know, well ahead of Java hotspot or JavaScript V8 or any of these modern VMs, figured out how to make dynamic code fast because small talk is dynamic language, right?
[1098] It has classes.
[1099] It has, I think, more lockdown declarative syntax and JavaScript, but it's fundamentally dynamic.
[1100] You don't declare the types.
[1101] But you could infer the types as the program runs and you start to form these ideas about what types are actually flowing through key operations and you form little, so -called polymorphic in -line caches that are optimized machine code.
[1102] The cache is the machine code that assumes there's a quick check to make sure the type is right.
[1103] And if it's not right, it bails to the interpreter.
[1104] And if it is right, you go pretty fast.
[1105] And that short test is a predicted branch, so things are pretty quick.
[1106] All that amazing stuff, I knew about in the 90s.
[1107] And I didn't have time to do it, and anamorphic got bought by Son, and they did hotspot.
[1108] And you needed that even in Java, because at scale, Java has some dynamic aspects due to invoke interface.
[1109] You can have basically collections of Java code where you don't know at the time each module or package is compiled exactly what's being called, what subclass or what implementation of an interface is being called.
[1110] And so you want to optimize using this sort of dynamic polymorphic caching there too.
[1111] And they did that.
[1112] And hotspot's amazing, amazing beast.
[1113] I've met like 13 people who all claim they created it.
[1114] I think one of them may deserve credit more than others.
[1115] But I didn't get to do that in JavaScript.
[1116] And when we knew that Google was going to do their own browser, which we knew at Mozilla around 2006, I also met the team that did V8.
[1117] And it turns out it was Lars Bach, who was one of the young engineers from anamorphic who got acquired by son.
[1118] And so Lars is like one of the world's expert on these kinds of virtual machines.
[1119] And he picked my brains about JavaScript.
[1120] I could tell he didn't like it at the time, but he had to do it.
[1121] Oh, really?
[1122] Interesting.
[1123] Yeah, in 2006 lunch at Google's campus.
[1124] And then I had another friend who was Deverell at Chrome, and he said, yeah, we don't know what they're doing.
[1125] This is getting 2007 to fall, toward 2008.
[1126] We're trying to get Chrome out, and we don't know what's going with the V8 team.
[1127] They're off in Arhus, Denmark, you know, rewriting their engine four times, which is good.
[1128] That's the right way to do this kind of development.
[1129] You know, they were learning JavaScript, including all its quirks, which they came to hate the fire of a thousand sons, which is one of the reasons that Lars and company did dart their own language.
[1130] But they also made the language fast.
[1131] And meanwhile, we knew this was happening, so we got our act together with Trace Monkey, our tracing jet at Mozilla and Apple, I think, was also aware, and so they were doing their own jit.
[1132] So the era of jitted fast JavaScript in 2008 had this prehistory going back to Smalltalk and Self and anamorphic.
[1133] And again, the lineage is interesting because you had Lars and anamorphic and then he ends up at Google.
[1134] Yeah, and today we have an incredibly fast language that, like you said, still, you know, without hate, you can't have love.
[1135] So I think there's both love and hate for this dance, rich, complex dance of JavaScript throughout its history.
[1136] There's a dialectic for sure.
[1137] Today, JavaScript is the most popular language in the world.
[1138] Why, by many measures?
[1139] Why do you think that is?
[1140] Is there some fundamental ideas that you've already spoke to a little bit, but sort of broader that you think it's the most popular language in the world?
[1141] So I think I did, you know, by doing first class functions and taking the good parts of the C -Oprud, operator hierarchy, and just keeping things simple enough, maybe it could have been simpler, but had to make it look like Java and interoperate with Java, that there was, you know, inherent goodness, Aristotelian quality there.
[1142] And people perceive that even through all the quirks and warts.
[1143] And then over time, working on it with the standards body, working on it not only as a core language, but in the context of HTML5 and making the browser better, listening to the developers, thinking about, this is something that Nick Thompson wrote nicely about on the hacker news.
[1144] I was very flattered.
[1145] He said, Java was this thing where the experts were writing the code and it was compiled and you had to declare all your types.
[1146] And Sun didn't really give a damn about, you know, the average programmer who wanted to build real web apps, dynamic things.
[1147] And I was in there, meanwhile, doing a bunch of people's jobs, making JavaScript survive those early years when it was kind of touch and go, right?
[1148] JavaScript was considered Mickey Mouse language.
[1149] It was for annoyances.
[1150] like the scrolling text at the bottom of the browser in the status bar.
[1151] But I kept listening to developers working with them and trying to make it run in that single -threaded event loop in a useful way.
[1152] And I think that forged something that people have come to love.
[1153] Now, you don't always love, you know, the best thing, right?
[1154] I talked about Shakespeare sonnet about, my mistressizer, nothing like the sun.
[1155] Or, you know, the scene from Josh Whedon's film Serenity at the end where the actual piece in the sun, score by David Newman is called Love, where Captain Mal is teaching River Tam about how to pilot the ship, and she's a super genius, super soldier.
[1156] She knows how to do it already.
[1157] And he's basically talking about how you have to love the ship, because if you don't, it's going to kill you.
[1158] And then the peace falls off the ship.
[1159] It's kind of like JavaScript.
[1160] You have to love it.
[1161] You have to love because, now, people say, we're stuck with it because it got this priority of place.
[1162] But there's love underpinning that.
[1163] And actually, the listening to developers, that's kind of beautiful.
[1164] There's most successful products in this world with all the messes, with all the flaws, perhaps the flaws themselves are actual features, but that's a whole other, that's a discussion about love.
[1165] But underneath it, there's something that just connects with people.
[1166] And it has to keep connecting.
[1167] If JavaScript kind of went off in this, people sometimes complain about ES6, oh, you put classes in JavaScript, I hate classes, you know, you've ruined it.
[1168] But it's not true.
[1169] It's a dynamic language, small talk had classes.
[1170] Python has classes.
[1171] There are lots of LISP variants that had classy systems, common LISP.
[1172] So, you know, people who don't reject it based on some sort of fashion judgment do use it and do interact with the standards body.
[1173] The standards body is competing browser vendors mainly, but also now big companies that use JavaScript heavily, the PayPal's and the other such companies, Salesforce.
[1174] And they have to cater to web developers.
[1175] You have to hire developers who know JavaScript.
[1176] They have to keep their engines up to the latest standard.
[1177] And this creates all this sort of social structure around JavaScript that is unusual.
[1178] I mean, you get C++ buffs to follow the inner workings of, you know, C++, what is it now, 21 something.
[1179] I don't know.
[1180] I've lost track.
[1181] But it's a more rarefied group.
[1182] It's more like the old language, you know, gray hairs.
[1183] Whereas JavaScript is a younger and more, you know, vibrant.
[1184] large crowd.
[1185] There's a community feel to it.
[1186] There's echoes.
[1187] Perhaps I don't want to draw too many similarities.
[1188] Maybe you can comment on it.
[1189] There's a C++ is like Wall Street and JavaScript is like Wall Street bets from the recent events.
[1190] It's like there's a chaotic community of all and there's some power from that distributed crowd of people that ultimately.
[1191] It's more themotic.
[1192] It's more of the people.
[1193] It lets people in without requiring these credentials.
[1194] I remember, in the late 90s into the Notties, people were all getting Java credentials.
[1195] And I knew people, and friends knew people who became Java programmers, and you knew they really should have been, like, nature guides or pilots.
[1196] They hated programming, but they thought, I got to make money, I'm going to become a Java programmer.
[1197] Do you have some, because it's such a monumental moment in our current history, as a quick aside, do you have thoughts about this huge, distributed, crowdsourced financial happenings with Wall Street Betts?
[1198] That's like nobody could have, well, you could have predicted, but the scale and the impact of this kind of emergent behavior from independent parties that could happen.
[1199] Like I said, my own experience with the dismal science, as with physics, led me to reject a lot of bad models.
[1200] And, you know, economics was always compromised by politics, political economy.
[1201] You could also argue that it used to be a branch of moral philosophy, so it was concerned with the good.
[1202] And it became divorced and became sort of in this quasi -Newtony.
[1203] in a way, just about, everything's just running by itself.
[1204] Don't worry about it.
[1205] You know, this monopoly is crushing your Netscape company, but that's just nature.
[1206] And economics couldn't, or doesn't really have good models for the Wall Street Betts subreddit.
[1207] You know, they know how to squeeze a short, right?
[1208] So the amazing thing is you have Robin Hood app, which was, again, supposedly for the demos, for the people.
[1209] Yeah.
[1210] And eliminated the fee through various kinds of, you know, straddles.
[1211] or some kind of spread operation that helped them eliminate the fee or eat the fee.
[1212] And in fact, you know, as a broker in these days, because it takes two days to settle, there's counterparty risk, as they found out.
[1213] And so the Wall Street bets people, you know, the memes are like the Terminator robot with a $600 stimmy check and the hedge funds, the little girl hiding under the desk.
[1214] There is a problem, which I talked about in the reality.
[1215] recent podcast, which I'm conscious of from the history of the web.
[1216] And that is, you could say it's monopoly, which antitrust wasn't enforced after US for a long time.
[1217] And a lot of this was due to the money interests spying control of politicians.
[1218] And, you know, in Plato's five regimes, that's oligarchy.
[1219] That's where we are.
[1220] And now we're seeing a fight against the oligarchs.
[1221] I don't know if it'll work, but you're definitely seeing it.
[1222] And it's also kind of hackerish, right?
[1223] It's got a hacker ethos.
[1224] You know, hey, Robin Hood, no fees.
[1225] Oh, interesting.
[1226] hey, you know, I can buy a fraction of a share in this thing, or I can keep buying with my stimulus check.
[1227] So I mentioned Hegel seeing Napoleon on the horse.
[1228] Hagell also talked about the cunning of reason that you have this sort of, you know, God sees history in full, and if you believe in God, or, you know, we don't know the future, but there's always this sort of fly in the ointment, this unintended consequence that confounds the best plans of the powers that be.
[1229] And we're living through it.
[1230] I'm glad it's not, you know, street warfare or mechanized warfare because it has been in the past.
[1231] It's more like soft power.
[1232] Yes.
[1233] And people are fighting back.
[1234] Do you think it's possible?
[1235] So JavaScript used to be for the front end of the web.
[1236] It's now increasingly so being used for back end, like running stuff that's like behind the scenes.
[1237] And it's also starting to be used quite a bit for things like TensorFlow .js.
[1238] So starting to actually use these heavy -duty applications that are using your networks, machine learning, and so on in the browser.
[1239] Is it possible in 10, 20, 30 years that basically most of the world runs on JavaScript?
[1240] This is a dystopia and a nightmare to some people.
[1241] When we did AsimGAS at WebAssembly, I would joke and mean people.
[1242] with scenes like Neo waking up in his pod in The Matrix and he's all skinny and weak and hairless.
[1243] And, you know, you realize in the future that you're living in some simulation that it's all running on JavaScript and you just scream forever.
[1244] It's possible.
[1245] Gary Bernhard does these funny talks.
[1246] He did watch JS and then he did this life and death of JavaScript, I think it's called, where he took some clever ideas that actually have a threat of credibility to them.
[1247] But I mentioned software fault isolation.
[1248] In the old days, when we were using computers, we said, we're going to use the Unix, you know, monolithic monitor.
[1249] And it's the privileged program.
[1250] This is before you even had hardware rings of protection, some of the early 60s operating systems used hardware protection zones.
[1251] But Unix is privileged, and the program that runs user code in a process is hosted.
[1252] It's the guest in the host.
[1253] And you get to suspend it.
[1254] You get to kill it.
[1255] If it crashes, it doesn't take down the whole OS, it's a wonderful idea.
[1256] But the call into the kernel is expensive, the system call, so -called.
[1257] And this has even been optimized now for things like getting the time of day, so it doesn't actually enter the kernel.
[1258] And meanwhile, hardware architectures and virtualization techniques have gone in a different direction, even to the point where you can do software fault isolation very cheaply without entering the operating system kernels.
[1259] You get unicernals and exo -colonels and very lightweight VMs.
[1260] And so Gary took this idea and said, JavaScript will take over computing because the system call boundaries too expensive, so everything ends up in JavaScript with these lighterweight isolation enforcement mechanisms.
[1261] It's not totally beyond belief.
[1262] It'd be web assembly too.
[1263] It's nice to ask you sort of for advice to, there's so many people that are interested in starting to learning about programming, getting into this world.
[1264] Is there some number of language, languages, three to five programming languages that you would recommend people learn, or maybe a broader advice on how to get started in programming.
[1265] Well, so you asked about machine learning, and, you know, JavaScript is a general purpose language, and it's a language that's not that great for doing, you know, matrix operations or doing parallel programming, I would say, without using some extensions or some libraries that have some magic in them.
[1266] So if someone wanted to, you know, learn, there are amazing languages in sort of the APL family that are very useful for, I would say, linear algebra, which gets to a lot of the kernels in machine learning.
[1267] And so APL had like J and then K and their K variants because the guy that did K is still going and they're proprietary, but he's still innovating there.
[1268] There are, you know, Python is used.
[1269] So people talk about Tennisville, JS.
[1270] Well, it's not that.
[1271] because Python was heavily used for machine learning.
[1272] And Python was always, you know, they didn't have this fast just -in -time compiler tradition.
[1273] There were some projects that tried this, and some of them were interesting.
[1274] Pi -Pi was interesting.
[1275] But the philosophy with Python was, oh, you need to go fast, write a C plugin, dropping the C -code.
[1276] So I think people should look at multiple languages because there are different tools in the belt.
[1277] If you're trying to do supervision or rapid prototyping, dynamic language, you want to throw things together and see what works.
[1278] If you're trying to go down to the metal very fast, well, I'm an old sea hacker, but I was also the sponsor, executive sponsor of Rust at Mozilla.
[1279] And Rust is now escaped, you know, from that sort of nest, where it was born to be adopted by a bunch of companies to have a foundation in the works.
[1280] Some of the key core team members are working now at Amazon and other places.
[1281] So it looks like Rust has reached escape velocity.
[1282] Rust is an interesting language because one of our goals there, one of of the reasons I sponsored it was we were all tired of seeing those remote code execution vulnerabilities due to C and C++.
[1283] And we thought, can we have a sort of safety property through a type and effect system, an ownership system?
[1284] And Rust has that.
[1285] And that ownership system is interesting because it doesn't just give you memory safety.
[1286] There's a sort of theorem for free, a duel that falls out for protection against data races.
[1287] So Rust is better for low -level programming.
[1288] You delimit your unsafe code where you do have to be unsafe.
[1289] And you can prove certain facts about memory safety and race condition avoidance.
[1290] And so I think people should learn these new languages.
[1291] I think Go is a great language.
[1292] I admire, you know, the Unix, people who did that.
[1293] Ken still was involved.
[1294] Rob Pike, of course, David, what's his name, and other people.
[1295] Go is a huge success, really on the server side, anywhere you have, you know, a lot of networking to do.
[1296] And it's garbage collected, but it's also very, very, very much.
[1297] pragmatic.
[1298] It has that sort of sea flavor.
[1299] As an old sea hacker, I can't get used to the fact that they swap the type and declarator in the declaration order.
[1300] I haven't used rust, but this is one of the most respected and loved languages currently.
[1301] So it's interesting.
[1302] And it's still young.
[1303] You look at these things, JavaScript is now considered old.
[1304] It's gone to so many versions that you can fall in love with it all over again.
[1305] 25 plus years, you know, it's, it's an adult.
[1306] It should be out of the house.
[1307] but it could be around another 25 years.
[1308] Cannot rule it out.
[1309] So, rest will be around for a long time.
[1310] The longer you're around, the more likely you're Lindy and you're around.
[1311] A lot of people ask me, like, I'm often torn between recommending either Python or JavaScript as the first language to play with because, I mean, it's difficult because it's so easy to do JavaScript incorrectly.
[1312] It's much easier to do it correctly these days.
[1313] Or, like, well, like, learn about programming.
[1314] But the cool thing about JavaScript is that you can create stuff that will put a smile on your face.
[1315] Like, as a developer, you can create stuff, and it'll visually look like something, and it'll do stuff.
[1316] And it makes you feel good.
[1317] It makes you fall in love with programming.
[1318] With Python, you could do the same.
[1319] It's a little slower, and with C++, it takes five to ten years to write a program.
[1320] That actually does something.
[1321] Yeah.
[1322] So, like, there's that tension between, is JavaScript the right first step, or is it Python?
[1323] And I've been going back and forth on those two.
[1324] I admire Python, right?
[1325] It came from a lineage of ABC, which was a pedagogical language in the Netherlands.
[1326] And it, you know, it was a good teaching language, too.
[1327] I think it is a good teaching language.
[1328] And it's a little more restrictive in that if you misspell something in a way that JavaScript might let run, let reach runtime, it'll get stopped at syntax check.
[1329] in Python, that's good for beginners.
[1330] I think the sloppiness that some people object to, like people were just tweeting at me, having just learned JavaScript, they said, I can take a number and I can index into it and get undefined out of it as a property.
[1331] And why is that?
[1332] A number's not an object.
[1333] And I explained why it is, because like in Java, the primitive types, which unfortunately are not objects, can be automatically boxed or wrapped by an object.
[1334] And I made that implicit.
[1335] In Java, it's typed and you have to declare things and you'll get type error.
[1336] But there are cases in Java where you get auto boxing or auto -wrapping because you've declared that you want it.
[1337] In JavaScript, it just happens.
[1338] So once I explain it, I'm like, oh, wow, I get it.
[1339] But it also means that you can commit a blunder that just...
[1340] You don't get punished for, you don't detect.
[1341] You get an undefined value and you don't know where it came from.
[1342] I've been reading a lot about military history recently.
[1343] And one way to paint the picture of browsers, internet browsers, is through the various wars, out of its history.
[1344] I don't know if that's a useful way to look at it, but we've already talked a little bit about Netscape and Internet Explorer in the early days.
[1345] Can you tell the story of the different wars, if that's at all an interesting way to look at it, of the 90s and to today?
[1346] Yeah.
[1347] So I mentioned that Microsoft, you know, which was convicted of it, did have used its monopoly, but they had a pretty good team by the time they did at IE4.
[1348] And Netscape, unfortunately, I was like the second floor and I was friends with all the first floor people.
[1349] the front -end guys who did the JavaScript event hook up and things like that, that team was fairly burnt out and I think having gone public, the upper management wanted to buy a bunch of companies to try to go head to head with Microsoft.
[1350] Didn't work, but buying a bunch of companies usually doesn't work.
[1351] I think the modern sort of approach roughly is like Mark Zuckerberg took, which is to keep them at arm's length and let them do their thing.
[1352] And now that he's pulling white, app in and people are fleeing it because it's tied into the ad surveillance.
[1353] But, you know, for a while they're keeping it separate, it really does work because you bought it for its value.
[1354] It's complimentary and you're not messing with it.
[1355] With Netscape, when they bought a bunch of companies, they had some of the first floor people or the founders burned out.
[1356] They had newcomers who wanted their turn to do the browser.
[1357] And they hadn't really done browsers or understood them.
[1358] And so Netscape 4 was originally supposed to be three, and it was so late they renumbered it.
[1359] We did a three release.
[1360] Jamie and a few others put some extra effort into secure mine was supported in the mail, built -in mail program.
[1361] And Netscape 4 was late, and it was only on Windows at first, and Microsoft had really started doing better, like they do.
[1362] They copy, and the first version is trash, and the second one, you're starting to feel a little threatened.
[1363] The third one, you can tell what's going to happen, and the fourth one's good.
[1364] And plus, there's the benefit, like you said, that it comes as the default browser.
[1365] Yes.
[1366] And yet, Netscape's screwing it up, and Microsoft really putting some quality people on it, IE4 was good.
[1367] On Windows, it was good.
[1368] And they did the dynamic HTML innovations.
[1369] Scott Isaacs, my old buddy, a former accountant who programmed in Basic and became what Microsoft calls a program manager, which is kind of an elevated position.
[1370] It's, you can be a programmer or an engine your track, but you switch to it, and you sort of lead a lot of design and standards efforts.
[1371] And so Scott Isaac put in a lot of those funky D .H. HTML APIs that didn't quite have the same flavor as the stuff that I did, and neither them was like the later sort of verbose Java -like DOM W3C standardized, but IE4 was pretty darn good.
[1372] I remember a friend, Scott Furman and I got invited by Scott Isaacs to Gordon Beersh in San Jose.
[1373] They were doing a preview of IE4.
[1374] This must have been 1997.
[1375] And Scott said, yeah, we've got, here's the new graphic stuff we're doing.
[1376] We've got something like your Netscape layers.
[1377] We've got a VML, a vector markup language.
[1378] You know, we can do like virtual reality.
[1379] And Scott and I looked at each other and said, we're doomed, right?
[1380] Microsoft was starting to fire in all cylinders.
[1381] So I have to give them credit for that, even though they abused their market power.
[1382] And maybe, you know, I shouldn't give them credit for having the resources to hire talented people.
[1383] But they did a credible job on IE4.
[1384] What really was bad was that phase of the browser wars ended with monopoly and perhaps due to the antitrust case, perhaps due to regulation in Europe.
[1385] Perhaps just due to Microsoft not liking dealing with standardization, they let it rot.
[1386] They just abandoned it IE5, 55, IE6 later, but these were not well maintained.
[1387] They had a lot of security bugs.
[1388] It felt really closed and outdated too, even though it was getting updated.
[1389] It's just weird.
[1390] Browsers like in Mozilla and then Firefox were adding tabs, Opera had a version of tabs, and they didn't add tabs.
[1391] And they pop up blocking, something I should have.
[1392] done from the start, people realize that you can tell when the user clicks something and it goes in JavaScript to open a little window that you can sort of inspect the stack and see that the click originated that and it's probably okay.
[1393] Whereas if you're just loading a script and it opens a new window, that's a spam technique and you should block it.
[1394] Tabs were brilliant innovation.
[1395] Like you said, Opera had it, but like I remember I fully switched to Firefox the moment.
[1396] I remember like the moments of first using tabs and Firefox and like not like you.
[1397] it like for the first few minutes and then like wait a minute you get the groove yeah you get the groove and you understand i mean so that timing what year was this uh so because uh also as a aspiring web designer i use table so we didn't mention layout or CSS much there's also a change in the way like the frames were going away yeah so there's a change in the way websites looked and behaved and all that kind of stuff.
[1398] CSS finally, which Microsoft embraced with IA4 and Netscape never really did, right.
[1399] CSS became a better standard over time for doing table layout that relieved you of the need to use what are called spacer gifts.
[1400] Spacer gifts, right?
[1401] Images, you would throw into space out tables.
[1402] You know, the type of graphic power of the web has gotten better, but it's still not on the level of PDF and you can't do advanced typography.
[1403] But it's gotten really better.
[1404] And even then, tables were getting better.
[1405] If you were using Firefox, that would have been 2004 because it was called Firebird until early that year.
[1406] No, yeah, I think it wasn't.
[1407] Well, I don't remember it was a Firebird, which had tabs.
[1408] We had tabs the whole way.
[1409] So it started out of Mozilla slash browser in 2002, it became Phoenix.
[1410] There's a BIOS that has an embedded version of IE, and they said, we're called Phoenix Technologies.
[1411] You can't use Phoenix.
[1412] And so we said, okay, we'll call it Firebird.
[1413] And then this Australian -centered open -source database project started really, like, in the true Mad Mac style, just screaming at us saying, you can't use Firebird.
[1414] And I had to sort of be the ambassador and say, okay, we're going to rename.
[1415] And we don't believe you, you shouldn't use that we hate you.
[1416] And then we renamed it to Firefox.
[1417] And they're like, ah, we love you.
[1418] And then I haven't heard of them ever since.
[1419] But Firefox was a clever name.
[1420] We had to think of something distinctive.
[1421] We wanted to keep the fire going.
[1422] And it turns out there's a red panda, right?
[1423] It's a nickname for.
[1424] So that's the second set of browser wars.
[1425] So how did you, how was Firefox born, how was Mozilla born?
[1426] Is there a, there's a long story there too.
[1427] So Netscape got acquired by AOL, which as I say, was a reasonable happy ending for a lot of people because Netscape otherwise was going to go out of business because Microsoft was just killing its market.
[1428] There was no way to charge for a browser.
[1429] Windows came with IE.
[1430] IE4 was pretty good, and Netscape 4 wasn't that good.
[1431] It took a while to get better.
[1432] But the Nescape executive said, let's do an open -source escape pod.
[1433] And like in Star Wars and New Hope, the gunner won't shoot it because there's no life forms on board, right?
[1434] It's not a threat.
[1435] And so we did Mozilla in 1998, and it looked like it was going to, you know, initially to give the world of open -source browser.
[1436] But it's really hard to get people to work on this sort of hairball that had been hacked up over by that point four years.
[1437] It also couldn't have the crypto module for secure so -called, or now transport layer security.
[1438] That was an electronic munition.
[1439] We were not allowed to release that in the full 1 ,024 -bit key strength.
[1440] And yet people, one of whom I happened to meet previously at SGI when I went on a sales support engineering trip, Tim Hudson in Brisbane, Australia, and Eric A. Young did what became open.
[1441] SSL.
[1442] It was called SSL -E -A -Y after Eric's initials.
[1443] And Tim and Eric took their open SSL outside of the purview of the NSA and the Department of Commerce, and they stuck it into Mozilla's code.
[1444] And that was perhaps the best hack that was done in the first few months after we open -sourced the browser.
[1445] We had other problems.
[1446] The politics inside Netscape were driven by these acquisitions.
[1447] So the one acquisition that kind of messed up Netscape 4 also wanted to keep doing a proprietary mail and group wear program, not Jamie Zewinsky's mail program that was in Netscape 2 and 3.
[1448] And they held it back from open source.
[1449] We didn't have a mail program.
[1450] It was just a browser.
[1451] We didn't know what A1 will do to us.
[1452] Turns out they didn't interfere with us for a long time.
[1453] But Netscape wasn't the best steward of Mozilla.
[1454] We were operating Mozilla as a pirate ship without a legal entity.
[1455] So most of us worked for Netscape under a separate organization.
[1456] And initially, the first engineering manager, Tom Pequin of Netscape, was the Mosulah founding manager.
[1457] But he left pretty quickly, and he left me as the acting manager, which is more like method acting in my case.
[1458] And I did, that was my first management stint.
[1459] But then someone who'd written the licenses, Mitchell Baker, she was a lawyer at Netscape, she was involved in the open source license decision making and the actual writing and construction of those That was Mitchell's job.
[1460] Netscape public license and the truly open Mozilla public license.
[1461] And there were two because Netscape needed, because of some encumbered code, needed some special rights, but that went away over time.
[1462] Mitchell was always interested in Mozilla, and she came back from attorney leave and she said, I'll be the manager if you want.
[1463] And Jamie and I said, sure.
[1464] And then Jamie quit.
[1465] He quit after a year.
[1466] He said, this didn't work.
[1467] I'm sorry.
[1468] He acted like it was a total failure because Mozilla didn't restart the browser market.
[1469] But there's no way it could have, right?
[1470] Netscape was still.
[1471] shipping variants of Netscape 4, which was based on the old code.
[1472] Mozilla was trying to rearchitect the code to make greenfield for developers.
[1473] It was one of my big goals.
[1474] It wasn't a technical goal so much as, again, a social goal.
[1475] People wanted a more standard -based browser.
[1476] They wanted less of a hairball that had been hacked on by X grad students starting four years prior.
[1477] So we said we're going to make a modular code base.
[1478] We're going to use a variant or an open -source version of Microsoft's component object model.
[1479] has reference, counting, and standardized VTables, virtual calls, and C++.
[1480] And we're going to use JavaScript.
[1481] We're going to have a bridge between those two, so you can script those components, just like Java components.
[1482] We're going to make a portable front end with a markup language for the user interface.
[1483] Not tables, not HTML, but custom menus and drop downs and toolbars.
[1484] And that was called Zool, XML user interface language.
[1485] And some real talent on the Nescape side delivered that.
[1486] Dave Hyatt, who was instrumental in Zool, Chris Watterson, Joe Hewitt, Blake Ross, and Blake was an intern.
[1487] He was like a high school -aged intern in Nescape.
[1488] And at some point, we were innovating rapidly in the Mazzola world, and Netscape was still caught up in this management mess from these acquisitions, and it wasn't delivering, and every year they were wondering if AOL was going to come and start beheading the executives because it doesn't do anything useful.
[1489] and there was a thought you should take the Netscape browser engine and put it in the Windows AOL client, which was the dial -up client that all the increasingly aging users of AOL were using, never happened.
[1490] It would have been too big a change.
[1491] So it wasn't clear why AOL bought Netscape, but as I said, they left it alone, but Netscape didn't leave Mozilla alone.
[1492] And so in 2001, Mitchell called me up and said, I'm no longer employed.
[1493] And I was like, what, you quit?
[1494] No, no, this wasn't my choice.
[1495] And there was a layoff, which maybe accidentally or on.
[1496] purpose, got rid of Mitchell.
[1497] But the funny thing was we had an open source project.
[1498] We had a lot of the engineers on staff on our side.
[1499] And we had people we'd hired through the Missoula community who were top -notch.
[1500] They'd risen, you know, they came in high quality, they knew the code and they actually were better than the average or median higher of Netscape.
[1501] And so the funny thing was the executive who thought they'd gotten rid of Mitchell in the layoff on the next week's community call around Mozilla and what to do, there's Mitchell.
[1502] And so this show.
[1503] And so this you can kind of transcend your, you know, boundaries of corporate open source if you get a project that has enough loyalty, even among the paid staff, because we had outside people contributing with people at Red Hat and a few other places.
[1504] But the majority of the hackers were employed by Netscape.
[1505] But a lot of them at that point had come from the community and others got the community and wanted to work with it.
[1506] And it was really the weakest engineers at Netscape who didn't like Mozilla and didn't like the crucible of competing with the better programmers.
[1507] So if the project is good enough, it will rise, the Phoenix will rise out of the...
[1508] That's exactly right.
[1509] And so we had this Mozilla code base that was getting better.
[1510] In fact, I think at some point in 2002 when we declared Mozilla 100, I engineered a roadmap that successively through similar sort of six -week, five -week releases, like we all do with browser releases nowadays, Chrome does, and Firefox, Braves us three weeks.
[1511] We got to a point where we said, you know what, it doesn't suck.
[1512] This is like the one -oh that you want to release because if you hold it.
[1513] it back any longer to polish it, you're denying others the ability to use it.
[1514] It's like pro -engineer, the mechanical CAD tool embedded the code.
[1515] They embedded the layout engine.
[1516] And Mozilla -10 was like a Netscape communication suite.
[1517] We at that point, gotten male people to reintegrate mail and news, and we had an editor for HTML.
[1518] And it felt like a 90s suite, suiteware.
[1519] And it felt kind of bloated.
[1520] And the people who were taking that Mozilla open source and then adding Netscape flavor to it, we're not calling the shots right.
[1521] And they were also under AOL's thumb a little bit in that they said, we should probably put the AOL instant messenger chicklet on the toolbar.
[1522] We should put the ICQ, the other messaging system that AOL had acquired, we should put the ICQ button on the toolbar.
[1523] And pretty soon, Netscape looked like a bit of a NASCAR badge to fruition of Mozilla.
[1524] And that also made Mozilla more popular.
[1525] And yet they had contrived to, fire or lay off the leader and we'd carried on with an open source structure where was still, you know, Mitchell was calling sort of management or project level shots and I was calling technical shots.
[1526] And we had a popular suite, but we thought, why not make it just a browser?
[1527] Because it'll be simpler.
[1528] It'll do one job well.
[1529] And even then we can strip it down by having extensions.
[1530] So Dave Hyatt and Blake Ross, the high school -aged intern, did the first version, which was called Mozilla slash browser.
[1531] It was very, the small group of us, Ian Hicks and Aza -Dotsler, me, Joe Hewitt and Hyatt and Blake.
[1532] And Hyatt was really the senior hacker.
[1533] He'd done all these things like amazing cross -platform menus through the user interface market language.
[1534] And he knew how to do tab browsing.
[1535] He'd implemented it natively on Macs, the west of the time in Camino, originally called Camara.
[1536] He'd written multiple implementations, which was a thing programmers should do.
[1537] It's like the V8 team did for those missing years when the rest of the Chrome team's like, where's V8?
[1538] I fact, Dave's wife, Rebecca told me a story about when they were at UIUC, they were also University of Illinois grad students.
[1539] There was an assignment, it was a programming assignment.
[1540] It was supposed to do it at the end of the semester.
[1541] And Dave's friend was this, I'm going to go think and I'm going to design and I'm going to make this platonic perfect form of the program and then I'm going to write it at the end when it's due and Hyatt just went there and started hacking and he wrote one version, you wrote a second version, a third version.
[1542] The end of the semester comes around.
[1543] The friend's not doing too well.
[1544] It wasn't perfect and it wasn't written.
[1545] I'm not sure how that story ended, but for him, but Dave's version was a fifth iteration.
[1546] It was great.
[1547] And so he'd done that with everything you need in a tabed browser.
[1548] And this really showed well in Phoenix, what we called Phoenix and had to rename two more times.
[1549] And, you know, Blake went to Stanford.
[1550] He became a Stanford student and couldn't work on it.
[1551] Dave Hyatt went to Apple in 2001.
[1552] He was one of the founding Safari team members.
[1553] Interesting.
[1554] Wow.
[1555] But he was still blogging about tab browsing.
[1556] I think Apple at some point said, did Safari have tab browsing?
[1557] Yeah.
[1558] But it was because of Hyatt.
[1559] Hyatt was quite a feather in their cap.
[1560] Don Melton, who had been the engineering manager for Safari from the beginning had been at Netscape also.
[1561] And so there's just a diaspora of talent.
[1562] And yet Hyatt was still kind of writing blog posts about how to do tabs, right?
[1563] And at some point, Apple said, don't blog about that.
[1564] That's our proprietary tab technology.
[1565] It's like, no, it's not.
[1566] It was an opera, and I've refined it.
[1567] So we had to replace people, and we had Ben Goodyer, New Zealander.
[1568] We hired at Nescape, and he stepped in to be the Firefox lead.
[1569] And we also had this weird circumstance where, AOL finally did notice that Netscape was kind of an albatross, that they bought it for no particular benefit.
[1570] And even then, the AOL politics were also heinous, sort of East Coast politics.
[1571] I remember taking two trips there because I was a principal engineer, and so us principal engineers got trotted out to do dog and pony shows in Dallas, Virginia.
[1572] And the AOL upper management was very East Coast in flavor, and they were at that time merging with Time Warner, which did not go well.
[1573] So one of these years we went out there and we were all doing dog and pony shows, and there were these characters that were sort of like marketing guys, one of them was wearing a cravat, and one was named Reggie, and they were, they were, they were very, you rather than non -you, or they were like, what's Stelman's Metropolitan film, UHB, urban, haute bourgeoisie, they were, they were funny, and they were kind of useless and kind of preppy.
[1574] And then the next year we went back and I said, where's Reggie?
[1575] And it's like, oh, Richie's not here anymore because Time Warner realized that the merger wasn't in their interest either, and the sort of knives came out.
[1576] And these mergers rarely work, right?
[1577] This is very difficult.
[1578] You get these giant companies and they think there's going to be synergy.
[1579] That was the 90s, late 90s watchword.
[1580] And there wasn't synergy with AOL buying Netscape, and there wasn't synergy with Time Warner and AOL.
[1581] Did AOL ever really work?
[1582] Was it ever really cool?
[1583] Like the same kind of fire and excitement that Firefox eventually created, was that ever there in AOL?
[1584] AOL was the right time to do a dial -up service that got distribution by basically leaflet bombing compact discs on the country.
[1585] And they beat out CompuServe and the other ones, Prodigy, and then the web happened.
[1586] And so you had almost like this isolated continent, like some of the evolutionary biologists I follow, make fun of the funny large mammal, you know, marsupial mammals of Australia, how silly they are.
[1587] So AOL is like Australia.
[1588] And you saw it over time because they kept aging and they were using AOL to get online and they couldn't really use a web browser.
[1589] And it became sort of a valued cohort because they still have relatively high socioeconomic status and they have grandchildren, but it's going away.
[1590] It's dying at some point.
[1591] Towards the end of the aughts, that decade and into the decade 2010 -plus, that Firefox became this incredible.
[1592] I forget when Chrome came out, 2008, but Firefox was the sexy, cool thing that represented a lot of the cutting -edge technologies and all that kind of stuff.
[1593] Web 2, it was amazing.
[1594] Tim O 'Reilly and John Battell did the first Web 2 conference, which eventually became huge and they split it.
[1595] But that was in 2004.
[1596] It was right when Firefox was out, Craigslist was huge, it was killing classified revenue for newspapers, but there was just this ferment.
[1597] People were starting...
[1598] Wikipedia along there somewhere?
[1599] Gmail was already done, and it was an impressive webmail.
[1600] There were others before it, like Hotmail, but Gmail was really impressive from Google.
[1601] And Google Maps.
[1602] People started seeing what could be done.
[1603] They thought, how can you drag the map around?
[1604] And, you know, how does that work?
[1605] And it was all JavaScript and images.
[1606] So Gmail was 2003, four?
[1607] Yeah, I think it actually started quite early.
[1608] It might have been 2002 or three.
[1609] But by the time we started dealing with Google and Firefox to get the search deal, which was the main revenue source for Mozilla, and still is, 2004, early, Sergey Brins, one of his trusted engineer guy.
[1610] Fritz Schneider made contact with me at Mozilla, and we started talking, and we realized search and browser need each other, and this is deeply true, right?
[1611] This is still true.
[1612] This is why a lot of the search engines have their own browsers.
[1613] Yeah, so in case people don't know, the main revenue source for the browser is the default search engine, which is kind of incredible to think about that that is a revenue source.
[1614] It's a little bit sad.
[1615] Yeah, it leads to this capture or kill effect where you have the search engine own its own browser, and other browsers may struggle to you get the distribution, we talked about earlier.
[1616] So where, and you said you've figured out that Google is working on its own browser at some point?
[1617] 2006, yeah.
[1618] 2006.
[1619] So would you say Firefox versus, was the Internet Explorer part of the war here, or was the Firefox versus Chrome?
[1620] So Firefox didn't quite cause Microsoft to reconvene IE.
[1621] They did do IE7, and I remember being on a plane back from the standards meeting, JavaScript standards meeting from Seattle, from Redmond.
[1622] And there was some Microsoft guy in front of me. It turns out my wife knew him from her past life before we married.
[1623] And he was just this bearded big guy.
[1624] And he was like, we should have just killed Firefox in the cradle.
[1625] All we needed to do was add pop -up blocking in and tabs.
[1626] And we could have made it in the internet to kill Firefox.
[1627] And it's like, should have, coulda, would a pal.
[1628] And I was right behind him.
[1629] Oh, hearing this.
[1630] But they didn't.
[1631] They were slow and they, IE7 wasn't that great.
[1632] And what really got them started, I think, was Chrome.
[1633] And, you know, I talked to Larry Page in 2005, I think I said, you know, we're talking about the Firefox relationship, but he was also saying, what about WebKit?
[1634] This was Apple's version of the old K -Html engine from Linux, the KDE side of Linux that was used in the Conqueror browser, all spelled with K's, that Apple had forked.
[1635] And in 2005 was when Apple's principles, including Dave Hyatt, Macha Stokoviac, some of my friends who were still there said, we must stop patch bombing this poor Katie.
[1636] HML project, we should make a proper Mozilla -like organization, WebKit .org.
[1637] Now, it wasn't a separate nonprofit or anything.
[1638] It was still Apple.
[1639] It was Apple controlled.
[1640] But they made their first class, and they made it be something that they all worked in and lived in.
[1641] And that was before Chrome.
[1642] And then Chrome, Larry Page said, what about WebKit?
[1643] I said, yeah, it's nice.
[1644] I have friends who work on it.
[1645] You might use that if you do your own browser.
[1646] Why don't you do your own browse?
[1647] Don't worry about Firefox.
[1648] You should do your own browser.
[1649] You can have your own opinion of how it should work.
[1650] And sure enough, they did.
[1651] So by 2017, we knew they'd been working on it.
[1652] Some of my friends who'd been at Netscape did the original demo.
[1653] And the demo wasn't what you thought.
[1654] It didn't have the fast JavaScript yet.
[1655] That was still off in Denmark and on a farm.
[1656] Did it have tabs?
[1657] It had tabs because all browsers had tabs at this point.
[1658] And it had this software fault isolation, I mentioned.
[1659] It was through process isolation.
[1660] So in theory, each tab has its own operating system process.
[1661] And so what's going to take your tab down?
[1662] Well, WebKit has bugs.
[1663] it can crash it, but Flash was still big then, all the restaurants, sites, remember, and Flash crashed a lot.
[1664] So the demo that I heard about, my friends, Netscape, as a lot of people did, inside Google was the sad tab.
[1665] They showed an early version of Chrome, which is this bare bones tab browser.
[1666] They loaded a site with a known flashbone, and then suddenly Flash crashes, and everyone expected the whole browser to go down.
[1667] But instead, you got this little sad face in the tab, and you could reload it, and there it is again.
[1668] So this was, this was an improvement.
[1669] It was a real move for security security.
[1670] It was based on, you know, a company that acquired called Green Border that had some really big brains like Olfar Erlinson, I think, was involved.
[1671] And they had done some exotic security stuff, but they ended up simplifying it to this process isolation.
[1672] And it was good.
[1673] And Firefox didn't have it at the time.
[1674] So we were still struggling with, you know, security bugs.
[1675] So we knew Chrome was coming, but it took two more years to come out.
[1676] And at the We were still getting, you know, the Google search revenue.
[1677] We were still making Google the default engine, and Firefox was still growing.
[1678] Firefox grew, I think, until 2011.
[1679] That was when it peaked.
[1680] And as it started falling, it was because of Chrome.
[1681] Chrome came out in 2008, and it was a comic book that leaked accidentally that showed some of the people who worked on it.
[1682] Lars Bach was in there and so on.
[1683] It was kind of soft launch because they didn't market it heavily.
[1684] They didn't push distribution.
[1685] But Google had reason to worry about distribution because Microsoft was.
[1686] was doing a search engine, Bing, since 2007.
[1687] In fact, when they came out with Bing, Google was worried that Microsoft would just brute force switch the default browser and everyone's Internet Explorer or even Firefox on Windows to Bing from Google.
[1688] And Microsoft wasn't, I think, ready to dare the antitrust cops that way, even though they'd gone to sleep.
[1689] And I don't think Bing was ready either.
[1690] But just in case it happened, Sundar Pichai, who rose very well based on this work was sort of in charge of getting distribution deals and he got Google Toolbar and Google Desktop Search distribution.
[1691] And if you remember those pieces of software, those were like desktop extensions, toolbars or operating system extensions for doing desktop search in your local files, kind of like MacAWest Spotlight, right?
[1692] Sadly died out.
[1693] They all died, and there were some features that we still missed that didn't make it into Chrome.
[1694] But Sundar got OEMs to bundle those.
[1695] And then he got enough of the, those deals that by 2007 or eight, Google felt, well, if Bing, Microsoft does the worst and tries to force Bing, we can reach in and reset it with that point of presence.
[1696] So that was, you know, good for Sundar's career and it was good for Google, but it never came to pass that they had to defend.
[1697] Microsoft was still, you know, slow.
[1698] And by the time they saw Chrome come out, then they did what would have been IE9.
[1699] And then they said, we're going to have a fast JavaScript engine to Chakra, Chakra core.
[1700] And they did okay.
[1701] They were another problem.
[1702] isolated fast JavaScript browser, tab browser.
[1703] So it sounds like there's a deep fundamental coupling of search engine and browser that's mixing this whole thing up, and obviously Firefox doesn't have a search engine that's like, I mean, you're partnering with somebody with a search engine, with Yahoo or with Google or so on.
[1704] They tried Yahoo. That was unfortunate because I think even though Marissa Mayer talked about it, She never pulled it off and never restored the search team that had been laid off.
[1705] I believe Carol Barts was running Yahoo and Carol said, I've got to get rid of one of the three expensive things.
[1706] I'm going to get rid of search.
[1707] And those researchers went to Google and Microsoft.
[1708] And there was no way to put Yahoo search back together.
[1709] So when Firefox tried switching all their users who'd stuck with a default from Google to Yahoo, it was like mid -December 2014, a bunch of users said, what just happened to my Firefox?
[1710] And others didn't notice right away, but over time they did.
[1711] And so over the next year, the traffic just went away for Yahoo. And yet they were obliged.
[1712] I understand it.
[1713] I don't have inside knowledge, but this is leaked out.
[1714] And Danny Sullivan's written about it, search engine land.
[1715] I think the deal was like fixed payments to Mozilla.
[1716] So Mozilla was getting a bunch of money for traffic that wasn't staying because users were resetting their default.
[1717] And this shows how defaults are important, but they have to be good enough that the user doesn't override them.
[1718] And, you know, a lot of the commercial value in popular apps is one of the default settings.
[1719] What is the default search?
[1720] But oftentimes there's something just like you said.
[1721] I mean, if there's something compelling, that also can beat out the default, like tab browsing and so on.
[1722] Yes.
[1723] And that's where, I mean, we'll talk about Brave browser.
[1724] It feels like now we're in this third stage where there's Chrome, Firefox, Edge, I guess, It's called and Brave, and these are all seem like really exciting, I don't know, innovative browsers.
[1725] They're all kind of copying off of each other, picking up the good stuff.
[1726] There's evolution again, especially on tracking protection.
[1727] So privacy is this sort of global wave that's rising.
[1728] I like to call it a wave because it's a large, somewhat chaotic structure.
[1729] It's not a unitary good.
[1730] You can't say, I'm buying privacy for, you know, $3.
[1731] I'm paying $3 for privacy.
[1732] Some people think a VPN does this and are disappointed when it fails them, but often people use VPNs for region unlocking video or getting the U .S. Netflix catalogs.
[1733] But privacy is not a unitary good.
[1734] It's complex, and people are understanding it only over time and it's to get burned, but there's a genie that's not going back in the bottle there.
[1735] People are fed up.
[1736] Apple has responded to this.
[1737] Apple was always making Safari, I think more of a privacy -branded browser from the very beginning.
[1738] I think this is probably Steve Jobs.
[1739] Safari had private windows, private tabs, before Firefox did.
[1740] And these are only private in the sense that they don't leave local traces, if you don't want them to.
[1741] Turns out Safari does keep them around between shutdown.
[1742] But the canonical model is no local traces after you close the private window.
[1743] No leftover traces that you went to some site that you were embarrassed by or bought a gift for somebody you wanted to keep secret.
[1744] But there's still some level of tracking.
[1745] There's network tracking.
[1746] Network privacy is not guaranteed at all because you're using the same internet and ISP as a public window, a non -private window.
[1747] But, so I already had that early on.
[1748] They also had a cookie blocking policy that might take a little explaining.
[1749] If you know what a cookie is, it's a little bit of storage in the browser indexed by the name of the site.
[1750] And it's really only the main name of the site, like B ofA .com or, something like npr .org.
[1751] Every site can store some information in a cookie.
[1752] Every time it's contacted by the browser, the previous version is sent back, and in the response from the server, the cookies updated.
[1753] So it's this little bit of storage in the browser that the site can keep updating, and it can store an encrypted version of your login credentials with a timestamp so you can stay logged in without having to re -type your password every time you navigate, which is how it would be if you didn't have cookies.
[1754] The web protocols, especially in the 90s, are so -called stateless protocols.
[1755] So you go to your bank, you log in, you go from your login -confirmed page to your account view.
[1756] If you didn't have a cookie, you'd be logging in again.
[1757] Every time you'd type in the size.
[1758] So that was a great thing about cookies.
[1759] Lou Montcholi did it in a hurry in 1994 before I joined that escape, and he did it for really holding that kind of credential.
[1760] But even then there was the image element embedded in the page, and the image gets fetched possibly from a different server, and that request carries the last cookie, which could be empty at first, and the response carries the updated cookie.
[1761] So just by having images and cookies, you get tracking, because that image server can be serving a little one -by -one pixel, and they still use the word pixel in ad tech, and that pixel can be served from the same server embedded differently with different URL spellings in the New York Times and ESPN.
[1762] And as you go from one to the other, the image server can say, I haven't got a cookie for you.
[1763] It's empty initially.
[1764] I'm going to assign you user number one, two, three, four.
[1765] I'm going to put a database entry in.
[1766] And I see, by the way, I always fetched the name of the path part of the URL that I was in the New York Times.
[1767] So you're a New York Times reader.
[1768] And then you hit ESPN, same thing.
[1769] And the database gets updated.
[1770] And the number user one, two, three, four index is in the database to a profile of you.
[1771] You've been tracked.
[1772] This was not intended.
[1773] And it was too late to undo by the time I got the Netscape.
[1774] I think Lou wanted to do Twinkies, he called them.
[1775] He was trying to solve several problems.
[1776] He wanted them to be bigger because initially cookies had a short size limit.
[1777] I think he wanted to solve the third -party problem, but Tom Peckin, the engineer manager, said, nope, no Twinkies, just cookies.
[1778] We're done.
[1779] You're done, son.
[1780] And that's how a lot of that stuff was.
[1781] That's how JavaScript, you know, got frozen like a flying amber in some ways with that sloppy equality operator that I made because of the early adopters.
[1782] And the cookie got stuck with this tracking hazard.
[1783] And then because JavaScripts can be like images, they're embedded in the page by the time in Netscape 3, I made that work.
[1784] You can get a request with the last cookie value and the response updates it.
[1785] That's a tracking mechanism.
[1786] And that's why you don't even need images to track.
[1787] Now you just use scripts.
[1788] So this whole tracking economy evolved.
[1789] And it depended on these accidents of the 90s, these unintended consequences.
[1790] Well, it created some of the richest companies in the world, right?
[1791] I mean, the social media.
[1792] All I got was T -shirts.
[1793] all I got is this crappy t -shirt yeah I mean so that's that's the fundamental problem the world is facing now they're looking at what social media has created and they're looking at and like a world is looking at itself in the mirror and seeing that privacy is actually something as opposed to like a nice thing to have it's something that is actually should be fundamental to the way we interact with the world as part of our tooling and that's where the brave browser comes in and i suppose others as well are playing with this idea but brave is at the forefront of that so maybe can you like describe what brave is yes and what are its key principles and uh what's broken what is it brave trying to fix so when i realized that these accidents like the third -party cookie the image or script that's tracking you or the um this JavaScript that can do it invisibly now that all this stuff wasn't intended and that Firefox had supported extensions that blocked some of these things.
[1794] I thought probably we should have browsers just block some of these things by default.
[1795] These were not intended and they're now unsafe.
[1796] They're tracking you.
[1797] There could be data breaches, malware distribution, you know, bullying and sciops and other attacks on people.
[1798] Block that stuff.
[1799] Block that JavaScript.
[1800] I'm Dr. Frankenstein.
[1801] I've got to deal with a monster here.
[1802] But obviously, you go to Gmail.
[1803] There's so much a script there to make that amazing web.
[1804] client, that's okay.
[1805] That's first -party JavaScript.
[1806] So how do you tell the first from the third party?
[1807] And it's not easy.
[1808] It's not a matter of just what's embedded from a different server because a lot of publishers use benign scripts from unrelated domains or apparently unrelated domains.
[1809] So you end up having to develop a sort of human and machine learning practice around blocking.
[1810] And at Brave, we did that from the start and built a research team to help drive it and automate it, we realized that protecting people needed machine learning.
[1811] And around 2017, spring, I talked to my friends at Apple about this too, and they were also doing what they call intelligent tracking prevention, which uses local machine learning in the browser.
[1812] And the funny thing is, you know, great minds think alike, they were taking their third party cookie blocker that was in Safari from the old days and making it not have a big loophole.
[1813] Because what they did was, in 2003, when Safari came out, they said, we're going to block cookies that are from, from those third party embedded elements where you've never visited that site before.
[1814] So I'm gonna pick an ad company that got sold to AT &T so I'm not picking on anybody unfairly, appnexas .com.
[1815] Have you ever been to app nexus .com?
[1816] No. I've never been there.
[1817] But I guarantee you 10 years ago, you probably had, if you were using Firefox, you had a cookie, third party cookie because you were being tracked by them.
[1818] And they were using that cookie to build up a profile of you.
[1819] In Safari, as long as the user never went to app nexus, that cookie would not be set.
[1820] And that was a real move for privacy see early on when jobs were still around in Safari.
[1821] But it had this loophole that if you do go to AppNexis, then why it's okay to be a third -party cookie.
[1822] So AppNexis did something very naughty.
[1823] They took their ad partners to put the actual ad you click on, and they said, hey, add a little script so that when somebody clicks on the ad, before it goes to your landing page, redirect to AppNexis and we'll redirect to the landing page.
[1824] And by doing that, they set a first -party cookie and they got whitelisted.
[1825] So as a loophole, they exploited, intelligent tracking prevention in Safari was sophisticated enough to counteract this, and it did other things, and it's evolved since they did it.
[1826] And we've evolved brave, too.
[1827] And so when I say machine and human learning, there's a real set of techniques here.
[1828] They have to fight...
[1829] This is a fascinating problem, actually.
[1830] Fingerprinting, right?
[1831] Anytime you have a little bit of storage in the browser associated with a website, if the bad guy can get 32 websites, each one has a bit of storage, that's 32 bits.
[1832] You can turn the bit on or off.
[1833] You can make 4 billion numbers.
[1834] You can make an identifier.
[1835] It's called a super -com.
[1836] cookie sometimes.
[1837] There are weaker ways that are statistical.
[1838] They're called fingerprinting.
[1839] You have to block all of them, and you have to not only automate, you want to work in the Web Standards body to put privacy in by default, by design, from the get -go, not added as an afterthought, or, you know, go hog -while with new web APIs that add a bunch more local storage or fingerprint surface area.
[1840] And that's been a struggle, too, because guess who's the new Microsoft in the standards body?
[1841] It's Google.
[1842] And they're not in favor of privacy first.
[1843] They want to do privacy their way, only under, I would say, market pressure.
[1844] But with Apple and with Brave leading the way, we block third -party cookies almost without exceptions.
[1845] So we've just blocked them.
[1846] And that gives us a very strong privacy benefit.
[1847] But it also means some sites just don't work right.
[1848] Embedded YouTube videos by network right.
[1849] So we're adapting in a similar way to Apple's done with ITP to make third -party cookies blocked, but to sort of simulate what looks like a working third -party cookie for the site.
[1850] It essentially tries to partition each site and its third parties into its own sort of cookie jar.
[1851] Got it.
[1852] And so, like you said, is this both like a human fine -tuning issue and the machine learning problem?
[1853] And as the humans learn, then they train the machine learning.
[1854] But, you know, maybe Google's site or including Google, there's millions of dollars.
[1855] if not B, billions of dollars to be made from fighting the ways of brave.
[1856] That's right.
[1857] And it's been an interesting change from when we started in 2015.
[1858] When we started, you know, ad blocking extensions, Ablock Plus was one of the big ones that started on Firefox in 2006, I believe, had gotten to a certain level of use around the world.
[1859] And browsers like UC Web, UC browser in Asia, had some amount of ablocking built in and on by default.
[1860] So a page fair was a startup, and they measured ad blocking adoption and they tried to say, hey, publishers, you're, you know, 30 % of the visitors to pitchfork or wire to Konda NASP properties are using ad blockers.
[1861] If we can somehow convince them to lower their ad blocking for your site, that could be like a 43 % lift, right?
[1862] And you're three -sevenths.
[1863] Well, that's easier said than done.
[1864] And Page Fair and others, source point that many others tried to either smuggle ads through or cajole the user into letting ads appear.
[1865] And it didn't really work.
[1866] And meanwhile, the ad blocking adoption has just continued, intelligent tracking prevention in Safari in 2017, Brave from 2016 on with very strong cookie blocking and other protections.
[1867] And this is not going away.
[1868] The publishers used to rage against it.
[1869] Like we would try to say, we can help you.
[1870] You're dealing with users who are already blocking all your ads.
[1871] We can try to put back some economics that help the user and you.
[1872] that led to the basic attention token that we started with Bitcoin, we can be your friend.
[1873] Don't just fingerprint us as an ad blocker and treat us as an enemy.
[1874] But in 2015 or 16, it was like, nah, you're an ad blocker, get out of here, I hate you.
[1875] And by 2017 or 18, it's like something's happening.
[1876] The ad blocking is not stopping, and we're all getting sort of pulled on the Google's plantation through AMP, AMP, or we're getting killed by the Google ad system we use because it's taking all the revenue, or, you know, it's permitting, or some other vendors we use are permitting ad fraud.
[1877] And so a fake New York Times is getting paid by the marketer running an ad that a bot clicks on.
[1878] And the real New York Times, it's supposed to get the ad, doesn't get it.
[1879] And there's something really broken about that kind of system.
[1880] And that fraud is mediated through Google's ad exchange, which is the biggest of them all.
[1881] And Google takes a fee.
[1882] There's a flip side of that, which is malware distribution, malvertising, where fake advertisers put malware pay loads in, or exploit loaders in JavaScript and they smuggle them in ads onto real publisher pages, the ad exchange takes the fee.
[1883] Now, I'm not a lawyer.
[1884] I'm not going to say this is a RICO predicate, but why is the ad exchange facilitating fraud and malware distribution and taking a fee?
[1885] It's not right.
[1886] As opposed to just fighting, this is the really interesting thing about Brave, as opposed to just fighting it and being treated like an ad blocker, you're providing an alternate, there's a, there's a philosophical idea here that might change the nature of the internet with the basic attention token.
[1887] Yes.
[1888] Maybe what is basic attention token BAT and how does it work?
[1889] Okay, I'll tell the story first by saying how I came to it.
[1890] I realized for a long time at Firefox, we were dependent on this Google search deal, and I thought, you know, now the Chrome's out, maybe that's going to go away.
[1891] At some point, Google will say, you know, Firefox, you know, like old yellow, you save me from the rabid beast.
[1892] now you have to shoot you in the head.
[1893] Done your job.
[1894] Sad but true, goodbye.
[1895] And what could we do?
[1896] And I think Mozilla doesn't know what to do.
[1897] This is something that I couldn't solve there, and I don't think they can solve.
[1898] But I thought, why is the browser the sort of passive servant of these big tech companies?
[1899] Why is it a blind runtime for ad tech JavaScripts, including from Google?
[1900] Why doesn't it block some?
[1901] And if it blocks some, why can't it reconnect users, readers, fans with publishers, creators, websites.
[1902] 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?
[1903] The ads are all placed in the browser.
[1904] Some people have this sort of model that the server is painting the ad into some flash combined package or into some giant image and then it all gets sent down.
[1905] That's not how it works.
[1906] All the ads you see on the web are placed in your browser by calling out to various ad tech partners.
[1907] and Google's among them.
[1908] And so if you block those scripts, you break the advertising flow of money from the brands and their agencies to the publishers.
[1909] And if you want to reconnect it directly with the user, you have limited choices.
[1910] The user generally isn't going to sign up with a H -Bank connection or a credit card.
[1911] The publisher isn't going to sign up the user except as a subscriber, and then they're going to overcharge you because they want you to cross -substize all the content and buy more than you read and all that stuff.
[1912] And how many, you know, people are doing great who are big names like New York Times in the Washington Post, but how many subscriptions are you as a user going to pay for?
[1913] This is why startups like Tony Hale's scroll are trying to do a portable subscription system.
[1914] By the way, just on a small tangent there, even the New York Times, it's really the annoying how difficult it is to subscribe.
[1915] There's way too many clicks.
[1916] They don't make it easy.
[1917] I had friends a few years ago, I think they fixed this, who would pay for the paper, and then they'd go online and they get upcharged for the digital, and there was no break.
[1918] There was no connection between them.
[1919] But publishers are not that technical, and they can't all get you to subscribe.
[1920] You can't have a thousand subscriptions.
[1921] So for a long time, people talked about micropayments.
[1922] There was Blendell and other ones, which came to the U .S., but didn't grow.
[1923] And I thought, if you have just a browser and it's protecting you by blocking all this ad tech tracking junk, it can provide you an option that uses cryptocurrency to let you support your favorite sites and even YouTube channels.
[1924] And that we prototyped with, Bitcoin.
[1925] And that meant the user had to be of means to contribute and willing to contribute, but it could be done on the Bitcoin blockchain, and it could be fairly efficient, even though Bitcoin went through a period when we had this prototype running in 2016, into 2017, where Bitcoin was very congested and very slow to confirm, and the fees got very high.
[1926] And a lot of users who were not Bitcoin maximalist or even experienced, we helped them out by embedding a Coin -based buy widget, and they had the income to buy, but it was hard.
[1927] It was like, do I buy $5 a month?
[1928] But the fee is like $450.
[1929] I better buy in larger batches, right?
[1930] Then they're like, I don't want to own that much Bitcoin.
[1931] So it became this painful thing.
[1932] And the real idea that I had of private ads that pay the user a rev share couldn't be realized alone in that kind of system.
[1933] In these cryptocurrency systems, especially with the blockchain we switch to Ethereum, you can have smart contracts.
[1934] The Bitcoin system is not turn complete, so what you can do with the script is more limited, but you can still do sort of clever things, even with BitcoinScript.
[1935] What we wanted to do was sort of a three -sided ecosystem.
[1936] We wanted users, creators, or publishers, and advertisers.
[1937] And we wanted the advertisers to put money in, just like they do today, but without going through the Googles and the app nexus and all these other ad tech companies, because those companies take out a huge cut.
[1938] The Guardian in the UK once did an experiment for a month.
[1939] They bought out their on ad space.
[1940] They put in a pound and they were paid 30 pence.
[1941] 70 % was coming out to the intermediary vendors they were using.
[1942] Wow.
[1943] And that's like the opposite of what the app store does.
[1944] The app store takes 30 % and gives the publisher 70%.
[1945] So pretty broken.
[1946] In the old days of Superstation TBS, the media owner would get 85%.
[1947] So these splits have become really unbalanced.
[1948] And the middle players, the ad tech vendors are taking out way too much money.
[1949] And they're doing something worse, which has been noticed.
[1950] They're letting not just the malware vendors, but also the ad fraud side, which fakes the publishers, and clickbait merchants come in and steal traffic from good sites.
[1951] Because once you have a certain audience identified at one site, Jason Calcana's told me this about his experience with, I guess it was in gadget, I can't quite which site he was running, but once he started using an ad partner that was sharing his audience information across multiple sites.
[1952] He saw his competitors stealing all his traffic.
[1953] And then what's worse is the clickbait sites that just have much cheaper rates steal all that traffic.
[1954] And that facilitates, you know, fraud.
[1955] It facilitates fake news, all sorts of problems.
[1956] So Gray blocks it, and then we give users the ability to give back.
[1957] And because we invented the basic attention token and Ethereum, we can do this three -way split.
[1958] And we can give users a share of the revenue.
[1959] And if they want to take it out, they can.
[1960] Now, unfortunately, for us and for all of blockchain, the regulators are saying, we're going to have to know who you are.
[1961] There's the Treasury Department's FinCEN agency.
[1962] There's the Office of Foreign Asset Controls OFAC.
[1963] There's the, you know, other regulators in the federal government that take a very dark look at things like money laundering and sending money to someone named Osama bin Laden.
[1964] So compliance starts to come in.
[1965] And even now, they're threatening for pure Bitcoin sending to some address.
[1966] If you're a Coinbase, you're going to have to know who's at that address.
[1967] You're going to start.
[1968] The actual identities of people involved.
[1969] Yeah.
[1970] Now with Coinbase members, you sign up and they know you and they comply with the regulations.
[1971] They're a regulated money services business.
[1972] But if somebody's using their own self -custodial wallet where they have the hardware private key and they're not named and they want to send to that address, our friends in the federal guard, we're talking about requiring at some threshold knowing who that is.
[1973] So some threshold that's unreasonable?
[1974] It's not that big.
[1975] Yeah.
[1976] Yeah, I don't know how this will play out.
[1977] I think crypto is here to stay.
[1978] I think the beauty of being able to send peer to peer without any bank in the middle without any, you know, huge wire charge and two -day delay and all that nonsense, it's beautiful.
[1979] And I've used it and I love it.
[1980] But we're pragmatistic brave about crypto and we realize that anything like a revenue split, we can't facilitate without being licensed in a certain way and it requires knowing who the user is.
[1981] So our default mode doesn't know who the user is.
[1982] It instead imputes to the user's browser some of the revenue and allows that browser to steer it back to the creators.
[1983] And we do have to identify the creators.
[1984] But as things improve, and who knows how it'll play out, there should be a day when this full vision can be done more fully on a blockchain.
[1985] But regulations and the practicalities of today's blockchain, which are not that fast and not anonymous over time, you fingerprint yourself over time.
[1986] We do some of this with the browser.
[1987] So one of the ideas of the basic attention token is to make a hybrid system that's stronger than blockchain alone.
[1988] It's the browser and the blockchain.
[1989] And the browser is this trusted endpoint software.
[1990] It's this universal app.
[1991] Everyone uses browsers.
[1992] The bigger the screen, the more you're in the browser, and the less you install, you know, fat clients for things.
[1993] I use Slack on MacOS, and it's like a browser.
[1994] It's based on an electron framework we use and it's just.
[1995] it's not that great.
[1996] Some of the people at Brave use Slack in Brave as a...
[1997] In the browser, yeah, yeah.
[1998] I use that often, yeah.
[1999] And I noticed on the iPad, I use apps less.
[2000] The smaller of the screen, you know, the browser got handicapped by Apple and Android both.
[2001] And it also, you know, can be slower or not have the right, you know, affordances, the user interface for the security limited APIs.
[2002] But in principle, with the right permissioning, you can make the web browser just as good as any app.
[2003] You'll make it be a super app.
[2004] And that's part of our mission at Brave.
[2005] So we want to have the economics that got captured by these big tech companies through tracking and through social networks.
[2006] We want to block that for your own safety and then let you opt into a cleaner world where you keep your data defended in your browser and you can actually realize value from it.
[2007] So the way our ad system works, I mentioned it being private, but how does that work?
[2008] We don't see your data at all.
[2009] All browsers are sort of the mother of all data feeds, your history, all your searches at all engines.
[2010] Each engine sees the queries you send to it, but it doesn't see the others, but the browser sees them all.
[2011] Machine learning in the browser that you can opt into can study all that in a very complete way and do a better job than Google does.
[2012] Google has cookie and scripts across the web from acquiring double -click.
[2013] They have YouTube, they have Android, they have search, which is still their big revenue lane, but they don't see everything.
[2014] The browser sees everything.
[2015] And if it can do a good job locally, and this is not advanced machine learning, this is not TensorFlow.
[2016] This is like SVMs now.
[2017] naive bays, then you can match intense signals, intense signals from those data fees, searches, the queries, the history, how much you're scrolling down a page, how much you redid a search.
[2018] It's all blind browser algorithm.
[2019] We don't see that data.
[2020] And then pick the best ad from a fixed catalog per day.
[2021] And the catalog is fixed across a large population per day, and it only updates once a day because new offers come in and old ones inspire, sometimes every week or every month.
[2022] And that catalog, and there can be many such catalogs, is sold by our direct sales team.
[2023] And so we're making an anonymous audience available to advertisers without the advertisers tracking them.
[2024] Instead, each browser is a little machine learning system that's picking the best catalog entry.
[2025] Now, the catalog is not the ads.
[2026] Those are big, right?
[2027] It's a video or a web page.
[2028] It's just the link to an edge cache, and there are many such edge caches.
[2029] We're not trying to protect them from seeing your IP address.
[2030] It's not really feasible.
[2031] We could use TOR, but we don't yet.
[2032] And some keywords about the ad.
[2033] So it's basically like metadata and a link.
[2034] And that's what the catalog consists of, and that's what the machine learning picks.
[2035] And the machine learning is learning about you specifically, locally, in order to choose from the catalog of different ads.
[2036] Couldn't this possibly be like a multi -billion dollar?
[2037] Isn't this taken on the Google ad?
[2038] Could be.
[2039] So like what, I mean, one question to ask, there seems to be some really profound ideas here that are different than what the internet.
[2040] internet has grown up to be.
[2041] If Brave or something like Brave, the ideas, the fundamental philosophical ideas underlying Brave win out and runs 95 % of the internet, how does that change the, what are the major things that changes about the internet?
[2042] So social networks and then the creatives, like YouTube creators and all that kind of stuff.
[2043] So let's talk about that.
[2044] First of all, if Brave gets 95 % I'm going to demand a recount, because I won't believe it.
[2045] I don't know.
[2046] I think we're trying to put things into web standards that can be standardized across browsers.
[2047] So the main value of Brave will be the trust users having us and our ability to give the best deal to users.
[2048] So 70 % of the gross ad revenue we give to the user.
[2049] And if they go through that KYC process, as I mentioned, they can take it out.
[2050] They can also give it back.
[2051] They can take some out, give the rest back.
[2052] They can add basic attention tokens to give back.
[2053] Some of them turn off the ads because you just don't like ads, but they put in $20 a month.
[2054] So I believe Zucco of Zcash Frame does that.
[2055] And that's very generous because the browser is just anonymously based on his browsing, sort of keeping score on how much time he spent on this video, on that website.
[2056] And if those sites verify in sort of a, like getting a domain certificate fashion, they can get paid.
[2057] They can get part of his $20 a month.
[2058] So that vision could go big.
[2059] And if it does, I hope it's across multiple browsers.
[2060] I don't know that they'll all compete well on the quality of the ads, the quality of the ad blocking and tracking protection.
[2061] Those are subject to competition.
[2062] It'll take a while to standardize them.
[2063] But I think that would be a better world.
[2064] It would have less counterparty risk.
[2065] Fewer feed takers in the middle, really just the browser.
[2066] We're taking 30%.
[2067] Sort of the app store split.
[2068] And if we get bigger, maybe we can take even less.
[2069] Social networks, creators.
[2070] If you look at YouTubers, a lot of them, the Indies that are getting some size are getting sponsorship deals.
[2071] they're using Patreon.
[2072] They're encouraging people to subscribe and give them regular money through Patreon.
[2073] But that's centralized your Patreon.
[2074] So there's censorship hazards.
[2075] There's a 5 % fee.
[2076] What if that were a web standard?
[2077] What if Brave Pioneer at first and we took 3 %?
[2078] And we did it in a way that was through your browser so we couldn't censor it.
[2079] That's brilliant.
[2080] Yeah.
[2081] Do you think it could be standardized across browsers?
[2082] Can Internet Explorer come in again And protocols are easy to copy and that are meant to be intraoperable.
[2083] So there's a risk there.
[2084] And the loyal users might be tricked into leaving you or they might, because of that distribution power, you might end up getting stomped.
[2085] I don't know.
[2086] I can't predict the future.
[2087] I think antitrust is back on the case finally in the U .S. And certainly in Europe, DG Comp is doing its thing.
[2088] So I'm hopeful that we'll have a period of innovation.
[2089] You know, people were talking, like Elizabeth Warren was talking about breaking up the tech companies very clearly.
[2090] Now, she didn't win, and I suspect that won't happen, but I also suspect that Google might be smart enough to see they should do something more than just put privacy perfume on Chrome.
[2091] They should maybe get rid of double click or something, divest something.
[2092] I don't know.
[2093] It might happen.
[2094] So Brave might inspire Google to completely change the way they're doing things.
[2095] They're already doing something you may have read about called the Privacy Sandbox or flock, which they have this bird metaphor going, turtle dove, fledge.
[2096] But these systems have been very Googly, kind of over -engineered, and yet, depending on differential privacy, which has weakness over time, if you know how that works, it's kind of injecting noise to hide you in a crowd, but over time, an adversary can pull you out of the crowd.
[2097] This doesn't look like it's going to become a standard.
[2098] Like Apple, Brave, Mozilla, we're not going to just say, oh, Google, you saved us.
[2099] You've invented the privacy sandbox, so we'll all just adopt it.
[2100] Not going to be that easy.
[2101] It's going to be more like pieces of what we do in Brave, the synonymous ad matching, or or the blind signature cryptography we used to confirm the ad impressions.
[2102] That's David Chalm's invention.
[2103] That could get standardized.
[2104] In fact, some of that is being standardized.
[2105] Even Google's in favor of so -called trust tokens, which are Chalmy and Blind Signature certs.
[2106] But they're not using them for ad confirmations because they don't want to blow up their own business.
[2107] And they need to let some of the publishers they can serve have other ad tech scripts on the page.
[2108] And so they're kind of caught.
[2109] And this is something I realized doing brave.
[2110] I thought, what's Google's innovator's dilemma apart from just being mature and having trouble innovating.
[2111] It's that they have come to depend on this ad tech system that has all these vendors that are publishers rely on because publishers aren't technical enough.
[2112] And I feel for the publishers, but I realize the users have to come first, and if you give the users a better browser that's faster, then you'll get enough users to give back or support publishers.
[2113] The speed and the battery savings and the data plan savings are significant.
[2114] There's so much bad JavaScript involved, in ad tech.
[2115] If you block it, you sort of chop off the, what's called the programmatic waterfall, which chains a bunch of requests.
[2116] Yeah, that's one of the incredible things about Brave.
[2117] I guess you're saying you should attribute it to the fact that the messy JavaScript, no offense.
[2118] Not my excuse me. Brave just feels faster.
[2119] Even then, I mean, Chrome was fast.
[2120] One of the things that it was like impressive, it showed that browsers could be really fast.
[2121] And Brave is even faster.
[2122] than that, which is incredible.
[2123] We block so much.
[2124] And it saves the network, which means data plan, it saves battery because the radio consumes your battery when it's running more to do those requests.
[2125] And it's just stunning how many there are.
[2126] Like some of my Google friends were like, oh, that's just that bad site.
[2127] They'll fix it.
[2128] And you actually do a survey of web pages.
[2129] They're mostly like that.
[2130] I know Google engineers could make everything super efficient, but they can't, especially in antifress court, do it.
[2131] They cannot take over all the publishers and do that.
[2132] They're trying with accelerated mobile profile, AMP.
[2133] They're trying to pull publishers.
[2134] You poor publishers don't know how to make your pages fast.
[2135] Put them on our AMP system and we'll give you extra placement in the search carousel.
[2136] That's an antitrust problem for one.
[2137] But it's also publishers we talk to hate it because it degrades their brand.
[2138] Now they look like a gig writer wrote a piece that's got Google's framing an AMP URL on top of it.
[2139] And they're trying to fix that too.
[2140] But it just looks like Google's borgifying all these publishers and they don't want to be plugged into the BorgCube.
[2141] They want to build up their own brand and have loyal readers.
[2142] So I'm in favor of giving the user's power to help all the publishers in the little platoons and the creators.
[2143] And so we talked about Patreon.
[2144] What about social networks?
[2145] Well, they're inherently, like search, a global algorithm.
[2146] You're trying to find friends of friends.
[2147] You're doing the transitive closure of a graph induced by this friend of relation.
[2148] But you should own your friend relation.
[2149] You should own your posts.
[2150] They shouldn't be owned by somebody else who can take them down or censor them, and your friend relations, you should be able to find those friends on other networks.
[2151] And so I've tweeted about this, I haven't built it yet.
[2152] What if the browser could keep track of those for you?
[2153] What if the browser could maybe combine Facebook and Twitter and you could find your friends on both?
[2154] And you could have a sort of multi - So that relationship is not owned by Facebook or Twitter.
[2155] It's owned by you through the browser.
[2156] They'll have terms of use and they'll say they own it.
[2157] But if they zap you on one and you're still on the other, your friends find you.
[2158] and the browser could preserve a combined view.
[2159] You could resurrect almost across networks.
[2160] It's something I want to maybe quickly ask you about.
[2161] On that front, there's been quite a lot of centralized.
[2162] We talked about Wall Street Betts and then Robin Hood.
[2163] There's been centralized banning of different accounts and removing like parlor, for example, from AWS, and this kind of overreach of centralized control is your hope that it's possible to, like what are your thoughts about that in general?
[2164] Is it, and is it possible to create tools that give individual people the power to fight back against overreach of such control?
[2165] So we're talking about oligarchy, I do think, and that if it controls a nation state, that's formidable.
[2166] It's the attacks and the police power, the military power.
[2167] It means that you may have the great firewall of China.
[2168] You may have people in China who are jailed because of their tweets, right?
[2169] This is a serious threat.
[2170] I can't minimize it or say that we'll win.
[2171] I don't know how it's going to go.
[2172] But I do think, like I said earlier, about the kind of reason people find ways around things.
[2173] The Internet routes around censorship.
[2174] And this is not to endorse any particular bad faction.
[2175] One of the things that happens when you try to wave the free speech flag too much, you say, I'm not going to censor anything, and you get colonized by terrible, terrible people.
[2176] I don't care if you call them neo -Nazi.
[2177] Some of them could be doing illegal things.
[2178] And you don't want them colonizing because it'll ruin your reputation.
[2179] to destroy your business.
[2180] So what you really want is that kind of user -first subsidiarity, that subjectivity.
[2181] I want my social networks to be composited in some multi -social user interface where I don't lose track of people across networks.
[2182] And if they leave one or they get banned from one, I can find them on another.
[2183] I can still sort of thread them together.
[2184] Yeah, that's brilliant.
[2185] And this didn't happen because browsers got captured by the central powers.
[2186] Why did they get captured?
[2187] Mostly because of search.
[2188] And search is a central algorithm.
[2189] So, you know, Larry Page said this too many years ago.
[2190] He said, with search, you're giving up a little privacy by handing the query over to us.
[2191] And we'll error correct that Alan used to be a Google and Google executive.
[2192] He said, oh, yeah, we used to laugh.
[2193] They'd all be doing typos and they'd be typing the wrong word.
[2194] And we're like, no, dummy, type that query.
[2195] And it's like, okay, Google, you might want to dial back that ego a little bit.
[2196] But, yes, you do see all the queries and you can improve them and you can find the best results.
[2197] And that was Google's forte.
[2198] When we did the Firefox deal in 2004, Google was really good.
[2199] And over time, you know, SEO, which is an adversarial game, and Google itself, buying all these companies and crowding its own results page with its own tied -in stuff, the YouTube.
[2200] It's a slipper slope that happens when you have control over these kinds of really important mechanisms.
[2201] It's, yeah, monopoly capitalism or cartel.
[2202] You get this with the Robin Hoods and the hedge funds.
[2203] You get sort of the money -interest take over and kind of abuse their power and wear out their welcome.
[2204] So how do you get around that?
[2205] You have to have either new land to go to, which some people's ancestors, not mine, did, to found the country, I'm mostly Irish German, you have new virtual space people go to.
[2206] And that requires, you know, an ISP or a Kolo Center or Amazon to host you.
[2207] It requires domain name registrar who will not strike you.
[2208] And so when Parlor was taken down, you know, I thought that was egregious.
[2209] Parlor, it was not well designed and I tried it out because I tried all these things but I didn't use it and I also felt they were being unfairly scored for not moderating because you can find tweets to this day that are horrendous and threaten all sorts of violence whereas Twitter, why isn't Twitter being taken down?
[2210] But so it was very selective.
[2211] It was the insiders who have the power are going to take out the newcomer and it looked bad.
[2212] It's sort of like the hedge funds sorting GameStop.
[2213] It looked bad.
[2214] You know, you're seeing a piece in Time magazine this week that's like basically saying, yeah, we interfere with the election, but it was great.
[2215] Aren't we good?
[2216] I don't know if you've seen this piece yet.
[2217] No, I haven't.
[2218] If you tried to say that as a Trump supporter in November after the election, you get banned from Twitter.
[2219] But now time in its Twitter account is saying, you know, we saved the day.
[2220] It's AFL, CIO and Big Business, the Better Business Bureau got together, kept Trump from, you spreading fake news.
[2221] So the country's kind of broken.
[2222] I don't know how to fix that.
[2223] The oligarchs have run wild, in my opinion.
[2224] And big tech is in the antitrust doc.
[2225] What's going to happen?
[2226] I don't think they get out.
[2227] I think some of the DOJ and certainly the state cases because there's separate cases are not going to go away just because somebody got elected differently.
[2228] And these are career prosecutors and they have a strong case.
[2229] And Google's smart.
[2230] Microsoft almost got split up, right?
[2231] The judge, Thomas Penfield Jackson, he overreached.
[2232] He didn't hold a hearing about the remedy.
[2233] He just said, I'm going to break you up.
[2234] And Microsoft appealed and the higher level court said, go back and figure this out.
[2235] You're not breaking them off.
[2236] You didn't even hold a hearing.
[2237] And when they got back, Microsoft said, let's settle.
[2238] Let's settle.
[2239] We don't want to get broken up.
[2240] Because Jackson was going to make the Opsco, the operating system company and the Appsco office, you know, Word and Excel.
[2241] And that would have been a huge blow to Microsoft.
[2242] But ultimately, I don't know.
[2243] I don't know if you're optimistic or cynical about the possibility of breaking out big tech.
[2244] To me, I'm optimistic that tools like brave, I love the idea of owning your friendships.
[2245] The users more and more owning the stuff is the only real way, unfortunately it's like the Wall Street -Bet subred is the only real way to fight the centralized power.
[2246] You can't break them up through regulation.
[2247] It's very difficult.
[2248] Certainly don't want to wait for the law.
[2249] Netscape was long dead or acquired by AOL and effectively dead.
[2250] It was only a Muslim that returned Firefox to the market by the time that the USV Microsoft case was finally settled and the penalties were put in place.
[2251] And yet, antitrust has a role to play.
[2252] Those penalties caused Microsoft to kind of turn away from the web.
[2253] They did Windows Vista, and they thought, the web's two pain, well, we got punished in court, and we had to standardize things with those icky standards people.
[2254] So they ran back to proprietary lock -in, and Windows Vista flopped.
[2255] It was late, was bloated, Longhorn, remember?
[2256] Now, what I was going to say about, Google's smart enough, they won't get split up.
[2257] They'll split something out to get off the hook, I think.
[2258] this is a complicated subject but i myself was so i decided to journey out from the world of being a researcher at mit and potentially doing a startup myself and i've been thinking of you know i wanted to come to silicon valley to do so it's the land of the entrepreneur and there's a lot of my friends a lot of them are successfully have been entrepreneurs themselves has said do not come to silicon valley You've started, you ran amazing teams of engineers.
[2259] You started a lot of successful businesses.
[2260] I wondered if you could comment on why a lot of people are leaving California.
[2261] Is there something that could be fixed about California?
[2262] If you were starting a business today, would you consider somewhere else like Austin or some other place?
[2263] Or is Silicon Valley still, is it just a little lull?
[2264] Everybody's being overdramatic during this particular year of the coronavirus.
[2265] and so on.
[2266] I think, you know, even Austin's getting overheated, I hear.
[2267] Um, yes.
[2268] And I've had relatives and friends moved to Texas within the last few months.
[2269] So, uh, Texas as a whole is a big place.
[2270] And, uh, you know, people are moving to Florida.
[2271] There's a big movement toward Miami.
[2272] Um, Peter T .L. Keith are all these people.
[2273] Um, the mayor has been very, uh, business friendly about it, which I think is just good politics.
[2274] Um, America is fundamentally a commercial republic.
[2275] So you would think this would be what's happening.
[2276] For a long time, California was the golden state.
[2277] I came here in late 76 when I was a teenager.
[2278] It's in crushing debt due to the lockdowns.
[2279] It's got the highest taxes.
[2280] That's got a matter.
[2281] People will do flee to high taxes.
[2282] It's got likely fires every year because of the deadfall.
[2283] It's not global warming.
[2284] It's because the forests weren't managed like they had been in the first part of the 20th century.
[2285] Just, I would say corruption at all levels, especially up to the governor who you know, famously was eating at the French laundry and a claim to be outside, it was inside, and they were out and masks off, and it was great.
[2286] Do what I say, not what I do.
[2287] Rules for the, but not for me. When you see that in leadership, people either run or they get rid of the leadership, so there's a recall drive, which is about to reach the threshold, or in the old days, they get their guns, right?
[2288] You don't put up with this junk.
[2289] But ultimately, the thing that made Silicon Valley a special place, It gave freedom to, like, young kids, entrepreneurs, young minds, brave minds, to think bold, to try different stuff.
[2290] I mean, even if the taxes are high, so outside of financial stuff, outside of all of that.
[2291] Housing is super expensive.
[2292] Housing, so it's hard.
[2293] Okay, everything about startups is hard.
[2294] It was narrow, and they didn't plan the roads, right?
[2295] Yeah.
[2296] They got rid of public transportation in L .A., like The Who Framed Roger Rabbit cartoon show.
[2297] They used to have trolley cars, Portland, too.
[2298] The oil companies and the DoD conspired to build highways and make cars dominant.
[2299] And the rights away are long gone.
[2300] Like Elon's going to go underground.
[2301] And I rush him well.
[2302] That's probably the only way to do it now.
[2303] But is it still a place, do you think it's possible that Silicon Valley is still a place where magic happens?
[2304] Where the next Google's built, where the next, I mean, Brave is built where...
[2305] I think all good things come to an end.
[2306] I think the problem is Silicon Valley had strong network effects through Stanford, through the angel investor networks and the wealth effect.
[2307] And originally, you have to give the federal government credit.
[2308] Like, the ARPANET was a government project.
[2309] That's not kidding ourselves.
[2310] This wasn't wild free market, you know, libertarian capitalism.
[2311] This was all Cold War stuff.
[2312] You had, out of the academia, you had Shockley, and then the trader's aid and Fairchild and Intel.
[2313] But now, you know, when's the last fab that was built in the valley?
[2314] Microunity might have been the last.
[2315] I don't know.
[2316] I haven't followed it.
[2317] We build a fab in Sunnyvale and microunity in starting early 90s.
[2318] And now the fabs are overseas.
[2319] And the one thing that I would say that the oligarchs have intentionally done in both parties is sort of labor and environmental protection law arbitrage by going where the labor is cheaper and the environmental laws aren't strict.
[2320] And, you know, that's polluted the hell out of parts of China, but it's made things, you can make cheaper junk.
[2321] And this is not, this is not.
[2322] a story that's over yet.
[2323] So what is Silicon Valley for now?
[2324] It's for the network effect, the brain trust of who you know, the parties, the Stanford sort of network.
[2325] That's fragile too over time, I'm afraid.
[2326] Stanford, a lot of good professors are like.
[2327] They still filter mainly based on socioeconomic status, but it's kind of a skate school.
[2328] I had a friend hired out of Harvard 20 years ago at Netscape.
[2329] And we talked about Harvard, and he said, yeah, they're still professors who are great on the curve.
[2330] And I said, oh, yeah, I don't think they're any doing that at Stanford any.
[2331] And he said, yo, it was shocking.
[2332] Some of the students got C's and D's, and they were crying.
[2333] It's like, yes, it's right.
[2334] The precious dears can't take that at Stanford.
[2335] So they get A's and Bs.
[2336] Now, you look at China, and people say, we all about China.
[2337] They, true of Russia, too, a lot of math science training, a lot of engineering, a lot of people who are doing their course work to get the A's and the Bs.
[2338] So I'm an American, I'm born in the 4th of July.
[2339] Really?
[2340] Fourth of July.
[2341] And America, as I say, fundamentally is a commercial republic.
[2342] You can try to make it something else.
[2343] You can see it's the New Atlantis and mystify it.
[2344] You could talk about it in a more, I think, correct way, which is 13 colonies that grew, and then there's a lot of local, or in the original design anyway, the federalist papers talk about this.
[2345] This is a lot of subsidiarity.
[2346] but that's been eroded over time.
[2347] And like I say, a lot of the offshoring has hurt.
[2348] So what happened with coronavirus, people working from home.
[2349] And at first it was funny because I have friends at Google who used to grumble that not only did they have to come into the office, if they joined a different team that was centered in a different office, they had to move.
[2350] Or, you know, if the VA team was reconstituted in Munich, which it was after Lars Bach just got tired of JavaScript, that they hired in Munich or they hired PhDs in Germany and movement in Munich.
[2351] With coronavirus, everyone's working for home, and it's like, what a relief, I can work for Google from home.
[2352] But then the next few dropped, and people started asking Mark Zuckerberg, hey, can I move to my hometown in the Midwest?
[2353] And he said, okay.
[2354] And they said, oh, can I keep getting my Silicon Valley pay?
[2355] No. We're going to figure out what your cost of living there is, and we're going to adjust your pay accordingly.
[2356] And these colonies and these little mini experiments that all combine to the big giant experiment, I have a, I don't know, I have this vision of America, the country.
[2357] So I was born in Russia, like I said, here, and this is truly a wonderful country.
[2358] I wasn't born on the 4th of July, but it might as well be.
[2359] People still flee here.
[2360] I still, I still, and I'm red -blooded American at this point, and I have a sense that we figure it out somehow.
[2361] If Silicon Valley burns, another place will come up in its place that even more innovation and people will move.
[2362] And the remote work might change fundamentally how we work or might not.
[2363] It might just give you the freedom to then create many other.
[2364] small Silicon Valley's throughout the place, like Austin included, but other places as well.
[2365] And we somehow figured it out.
[2366] And I think that's true that there will be more mobility and maybe new places that come up.
[2367] I don't know if Silicon Valley has, you know, passed some sell -by -date because it did hurt.
[2368] The coronavirus hurt.
[2369] The lockdowns hurt in the sense that part of what keeps things going is social.
[2370] And so a lot of young people, even before coronavirus, moved to San Francisco.
[2371] strange to watch because in the 80s we all lived in the valley and it was less populated in San Francisco was grungier.
[2372] It was more like Dirty Harry in the 70s.
[2373] But by the 90s, and Jamie runs a nightclub there and he's talked about this, you had sort of wealthy tech people moving in, South of Market, fancy townhouses being built.
[2374] And that's continued in such a point that it's almost like, what's the movie by the South African director, Nell's Jody Foster up in the space colony.
[2375] Matt Damon is the guy on the earth who has to go up.
[2376] And anyway, it's about the straf.
[2377] It's about the great inequality.
[2378] The people in the space station have, like, amazing medical autodocks that can extend their life or save them cure cancer.
[2379] People on Earth are all suffering, ground down in poverty.
[2380] And, you know, that sort of happened while I was here.
[2381] You saw a lot of money drive prices up along the narrow peninsula, and the single people wanted nightlife so they were in the city, and the condos in the city got super expensive.
[2382] And I know even Google friends who are, you know, socially.
[2383] responsible say we should have more housing built we should have yes in my backyard not not in my backyard but that's not happening as far as i can tell and from the government to the incumbent you know landowners and renters it's just not happening and that has to drive people away i appreciate that people come here and you you should wait for the prices to monitor they will but um but a lot of people are going to go where the prices are lower you uh and sorry for silly questions but just looking back, you have created things, have been part of creating things that have transformed this world, the world of technology, perhaps more than almost anything else.
[2384] But you're still a human being, and unfortunately this ride ends.
[2385] Do you ever think about your own mortality?
[2386] Not too much.
[2387] I mean, I'm Roman Catholic, so I am not afraid of death.
[2388] I think a lot of people who have problems with death are suffering from some lack of either faith in their transcending death or maybe they don't have children or they feel like, you know, they get later in life and they feel like they've missed opportunities to do something that endures.
[2389] And I sympathize to a lot because I'm old.
[2390] I got married fairly old.
[2391] So I understand all that.
[2392] Nothing human is alien to me, as Terrence said.
[2393] But I don't fear it, no. What do you hope your legacy is?
[2394] It's going to be JavaScript.
[2395] I think, no, I think, you know, my legacy has more to do with my children and their children.
[2396] I think it also has to do with web standards.
[2397] It has to do with things like Brave.
[2398] The things we did with Firefox, when we did, you know, I'm not going to oversell brave, but I think Brave is important, and we will continue to prove this in a way.
[2399] that counts for many decades to come.
[2400] But even Firefox, whatever its future fortune, showed you can restart the browser market.
[2401] This thing you said about people opting out and routing around, you don't need everybody to do that.
[2402] It's more like Talib's stubborn minorities that do that.
[2403] It's the lead users, Eric Von Hippel's lead users.
[2404] You can be a few percent.
[2405] You can tilt the market.
[2406] And that can be done in spite of the incumbents, the moneyed interests, not being in favor of what you're doing.
[2407] So I think what we do with Firefox won't be forgotten.
[2408] And it needs to be done more, and we're doing it with brave.
[2409] And you could argue that other projects are doing it.
[2410] In some ways, blockchain is doing it.
[2411] The Robin Hood take down the use of Robin Hood by the Wall Street Betts kids.
[2412] Yeah.
[2413] So, yeah, that kind of spirit endures.
[2414] And I think it, in some ways, it's American, right?
[2415] It's not hard revolutionary.
[2416] It's not trying to burn the past and destroy everything.
[2417] It's more like, we have these certain, let's say, rights.
[2418] We have duties too, so there's some debate about which comes first in American jurisprudence in the founding documents, but as long as things are working, we'll be like pragmatic Americans like the tokeball described in his writings.
[2419] But if things get too out of whack, for one reason or another, too unequal, too oligarchic and abusive, we're going to start our rights, and even a few of us can do it.
[2420] And even in the American Revolution, it was a minority who fought and put their lives treasure and sacred honor at stake.
[2421] It was a bunch of people went to, you know, Upper Canada, I think it was called Ontario.
[2422] Yeah, that's the beautiful thing.
[2423] I mean, that is at the core what your work stands for is that a few people can have the power to transform society with just a few radical ideas with just a little bit of code changed the world.
[2424] Got to do it.
[2425] And that's empowering.
[2426] And that is the American way.
[2427] That's why this country is, I believe, the greatest country.
[2428] I know that's not over romanticizes it too much.
[2429] I think some special things have already happened in this country and will continue to happen.
[2430] And that spirit can continue no matter who comes here, they can adopt those folkways and that spirit.
[2431] Brandon, I can't tell you how much, I was freaking out how much of an honor just to talk to you.
[2432] You're an incredible human being.
[2433] It's one of my favorite conversations ever.
[2434] Thank you so much for wasting all this time with me. I really appreciate it.
[2435] It seems like a breeze.
[2436] My pleasure.
[2437] Thank you for listening to this conversation with Brendan Nike.
[2438] and thank you to our sponsors.
[2439] Jordan Harmerger's show, Sun Basket Meal Delivery Service, Better Help Online Therapy, and Eight Sleep, Self -Cooling Mattress.
[2440] Click the sponsor links to get a discount and to support this podcast.
[2441] And now, let me leave you with some words from Jeff Atwood.
[2442] Any app that can be written in JavaScript will eventually be written in JavaScript.
[2443] Thank you for listening and hope to see you next time.