[
  {
    "startMs": 1309,
    "text": "[music]"
  },
  {
    "startMs": 12240,
    "text": "Hello everyone."
  },
  {
    "startMs": 14240,
    "text": "My name is Jared. Uh I'm the creator of"
  },
  {
    "startMs": 17359,
    "text": "Bung. Uh and I work at Enthropic. Um uh"
  },
  {
    "startMs": 22000,
    "text": "Bun is the JavaScript runtime that"
  },
  {
    "startMs": 23840,
    "text": "powers cloud code. And recently I merged"
  },
  {
    "startMs": 28000,
    "text": "a several million line of code PR um to"
  },
  {
    "startMs": 31840,
    "text": "add an ahead of time compiler uh to to"
  },
  {
    "startMs": 35280,
    "text": "bun which is uh basically the idea is uh"
  },
  {
    "startMs": 39920,
    "text": "instead of paying the cost of a JIT at"
  },
  {
    "startMs": 42160,
    "text": "runtime you can uh uh you can compile"
  },
  {
    "startMs": 46640,
    "text": "all the code ahead of time. Um"
  },
  {
    "startMs": 50719,
    "text": "and it's it's like a really big project."
  },
  {
    "startMs": 54000,
    "text": "Um over the summer I uh rewrote bun and"
  },
  {
    "startMs": 58320,
    "text": "rust. Um uh and this is a project on a"
  },
  {
    "startMs": 62719,
    "text": "larger scale. This ahead of time"
  },
  {
    "startMs": 64559,
    "text": "compiler is like a larger project than"
  },
  {
    "startMs": 66400,
    "text": "that. Um and"
  },
  {
    "startMs": 70240,
    "text": "I think one of the challenges right now"
  },
  {
    "startMs": 71920,
    "text": "with large projects is like how do you"
  },
  {
    "startMs": 74000,
    "text": "actually confidently ship a mill like"
  },
  {
    "startMs": 76400,
    "text": "millions of lines of code written by"
  },
  {
    "startMs": 78320,
    "text": "agents. Um"
  },
  {
    "startMs": 80720,
    "text": "so that's what I'm going to talk about."
  },
  {
    "startMs": 83600,
    "text": "This was like the opening prompt after"
  },
  {
    "startMs": 85680,
    "text": "some discussion with it was like"
  },
  {
    "startMs": 88240,
    "text": "basically uh we need to make cloud code"
  },
  {
    "startMs": 92000,
    "text": "use a lot less memory and uh and faster"
  },
  {
    "startMs": 95840,
    "text": "and we can modify either webkit or bun."
  },
  {
    "startMs": 99200,
    "text": "Um bun uses JavaScript core which is"
  },
  {
    "startMs": 101600,
    "text": "webkit um under the hood. Uh and it's"
  },
  {
    "startMs": 105840,
    "text": "been a little bit over a month. Um"
  },
  {
    "startMs": 109840,
    "text": "uh"
  },
  {
    "startMs": 111840,
    "text": "uh this is this compiler has gone"
  },
  {
    "startMs": 113680,
    "text": "through five rewrites. Um you can see"
  },
  {
    "startMs": 117759,
    "text": "the like the first couple ones were like"
  },
  {
    "startMs": 120159,
    "text": "pretty short and then I like almost"
  },
  {
    "startMs": 122799,
    "text": "shipped the blue one. Uh and then I was"
  },
  {
    "startMs": 126079,
    "text": "like this is building way too long. Like"
  },
  {
    "startMs": 127920,
    "text": "it's taking way too long to compile the"
  },
  {
    "startMs": 129440,
    "text": "code. So rewrote it again. Uh and this"
  },
  {
    "startMs": 133680,
    "text": "next one is shipping next week."
  },
  {
    "startMs": 138879,
    "text": "Uh"
  },
  {
    "startMs": 140879,
    "text": "this is kind of the way I think about a"
  },
  {
    "startMs": 143520,
    "text": "project like this is like you're really"
  },
  {
    "startMs": 145920,
    "text": "constrained by how you test that the"
  },
  {
    "startMs": 148400,
    "text": "code works. Um so that's like even more"
  },
  {
    "startMs": 151680,
    "text": "important than what you're specifically"
  },
  {
    "startMs": 153519,
    "text": "like like the approach you go with for"
  },
  {
    "startMs": 154720,
    "text": "how to build it is entirely driven by"
  },
  {
    "startMs": 156879,
    "text": "how do you verify that it actually is"
  },
  {
    "startMs": 158319,
    "text": "going to like work and not be buggy and"
  },
  {
    "startMs": 160879,
    "text": "that you can trust it."
  },
  {
    "startMs": 162959,
    "text": "Um and so just a little more background"
  },
  {
    "startMs": 165760,
    "text": "on like like why this particular project"
  },
  {
    "startMs": 169760,
    "text": "why the ahead of time compiler and it's"
  },
  {
    "startMs": 171360,
    "text": "because uh for a typical JavaScript"
  },
  {
    "startMs": 174800,
    "text": "based application"
  },
  {
    "startMs": 176879,
    "text": "roughly half of like this the CPU time"
  },
  {
    "startMs": 179280,
    "text": "is just spent compiling code on demand."
  },
  {
    "startMs": 182080,
    "text": "Um and so a lot of the general like"
  },
  {
    "startMs": 185920,
    "text": "thing you you've seen in a lot of"
  },
  {
    "startMs": 187440,
    "text": "applications where people are rewriting"
  },
  {
    "startMs": 188959,
    "text": "their code bases in in a language like"
  },
  {
    "startMs": 190400,
    "text": "Rust or sometimes Go um it's like when"
  },
  {
    "startMs": 194800,
    "text": "coming from JavaScript it's because uh"
  },
  {
    "startMs": 198400,
    "text": "like there it's really the the"
  },
  {
    "startMs": 200560,
    "text": "combination of the JIT and that it's a"
  },
  {
    "startMs": 202879,
    "text": "single threaded application."
  },
  {
    "startMs": 205920,
    "text": "Um so that's sort of the difference"
  },
  {
    "startMs": 208319,
    "text": "between a JIT and AOT is that uh you"
  },
  {
    "startMs": 212560,
    "text": "compile before whereas with a JIT you"
  },
  {
    "startMs": 214640,
    "text": "compile as you go along."
  },
  {
    "startMs": 218159,
    "text": "This is particularly important for"
  },
  {
    "startMs": 219760,
    "text": "something like cloud code where when"
  },
  {
    "startMs": 221519,
    "text": "using like the cloud code like iOS app"
  },
  {
    "startMs": 224159,
    "text": "where the CPU time is a lot uh if you're"
  },
  {
    "startMs": 229200,
    "text": "if you have to have every session of"
  },
  {
    "startMs": 231200,
    "text": "cloud code also compiling"
  },
  {
    "startMs": 236159,
    "text": "um so we talked a lot about like like"
  },
  {
    "startMs": 240159,
    "text": "should we rewrite cloud code in Rust um"
  },
  {
    "startMs": 243680,
    "text": "because the bun team us rewrote bun in"
  },
  {
    "startMs": 247360,
    "text": "rust So like we're pretty good at"
  },
  {
    "startMs": 249760,
    "text": "rewrites. Um uh and we decided not to."
  },
  {
    "startMs": 256799,
    "text": "Um and the the reason why is because"
  },
  {
    "startMs": 260160,
    "text": "like for in bun's case it's actually"
  },
  {
    "startMs": 261680,
    "text": "like pretty easy to do like bun is an"
  },
  {
    "startMs": 264160,
    "text": "easy project to do a rust rewrite"
  },
  {
    "startMs": 265520,
    "text": "because the tests were written in a"
  },
  {
    "startMs": 267840,
    "text": "language that's independent of the one"
  },
  {
    "startMs": 269759,
    "text": "it runs in. But so because all the tests"
  },
  {
    "startMs": 271840,
    "text": "were written in Typescript um we could"
  },
  {
    "startMs": 274880,
    "text": "run the tests on both the zig version"
  },
  {
    "startMs": 276800,
    "text": "and the rust version whereas for cloud"
  },
  {
    "startMs": 279840,
    "text": "code uh we like cloud codes tests are"
  },
  {
    "startMs": 283759,
    "text": "written in typescript. So we would have"
  },
  {
    "startMs": 286000,
    "text": "to port cloud codes test suite and"
  },
  {
    "startMs": 290000,
    "text": "as soon as you're like rewriting the"
  },
  {
    "startMs": 291680,
    "text": "tests then you can't really trust the"
  },
  {
    "startMs": 293680,
    "text": "tests anymore. Um so that seemed like"
  },
  {
    "startMs": 297199,
    "text": "it'd be too risky."
  },
  {
    "startMs": 299440,
    "text": "So instead, what if we just make"
  },
  {
    "startMs": 301520,
    "text": "JavaScript faster so we don't have to"
  },
  {
    "startMs": 304080,
    "text": "rewrite it in Rust?"
  },
  {
    "startMs": 307919,
    "text": "Um, this was another prompt a little bit"
  },
  {
    "startMs": 309919,
    "text": "later. Um,"
  },
  {
    "startMs": 312639,
    "text": "uh,"
  },
  {
    "startMs": 314160,
    "text": "and the result"
  },
  {
    "startMs": 318080,
    "text": "is that it actually did uh have"
  },
  {
    "startMs": 320639,
    "text": "JavaScript's memory like the memory"
  },
  {
    "startMs": 322160,
    "text": "usage uh, it uses about 4x less memory."
  },
  {
    "startMs": 326320,
    "text": "Um uh it starts about two times faster."
  },
  {
    "startMs": 330479,
    "text": "Um"
  },
  {
    "startMs": 332160,
    "text": "uh and we we're dog fooding this"
  },
  {
    "startMs": 335840,
    "text": "internally and it'll be external soon."
  },
  {
    "startMs": 340240,
    "text": "Um some more benchmarks uh and then I'll"
  },
  {
    "startMs": 343039,
    "text": "also go into more detail about how we"
  },
  {
    "startMs": 344639,
    "text": "actually did this. Um so like it's it's"
  },
  {
    "startMs": 349199,
    "text": "possible that if an interesting thing is"
  },
  {
    "startMs": 352160,
    "text": "like like TypeScript 7 rewrote their"
  },
  {
    "startMs": 355280,
    "text": "code by by hand um from uh"
  },
  {
    "startMs": 358400,
    "text": "JavaScript/TypeScript"
  },
  {
    "startMs": 360080,
    "text": "to to go and uh the singlethreaded"
  },
  {
    "startMs": 364400,
    "text": "version uh with you when compiled via"
  },
  {
    "startMs": 367680,
    "text": "bun compile is now faster than the"
  },
  {
    "startMs": 369680,
    "text": "singlethreaded TypeScript Go port. Um"
  },
  {
    "startMs": 375280,
    "text": "and we will add threads also to the"
  },
  {
    "startMs": 377919,
    "text": "ahead of time compiled version of bun"
  },
  {
    "startMs": 380240,
    "text": "but we haven't done that yet. So there"
  },
  {
    "startMs": 382720,
    "text": "is a PR."
  },
  {
    "startMs": 384639,
    "text": "Um and so a little bit about like the"
  },
  {
    "startMs": 387919,
    "text": "actual ahead of time compiler um uh"
  },
  {
    "startMs": 391440,
    "text": "typescript is not the type types are"
  },
  {
    "startMs": 394639,
    "text": "don't necessarily need to be correct. So"
  },
  {
    "startMs": 396720,
    "text": "it treats types as predictions uh"
  },
  {
    "startMs": 399199,
    "text": "instead of like trusting them."
  },
  {
    "startMs": 403120,
    "text": "Um, and this kind of problem works"
  },
  {
    "startMs": 406080,
    "text": "really well for models because uh"
  },
  {
    "startMs": 409440,
    "text": "they're just really good at writing"
  },
  {
    "startMs": 410720,
    "text": "compilers. Um, so so uh"
  },
  {
    "startMs": 415680,
    "text": "uh this is sort of like more about like"
  },
  {
    "startMs": 418880,
    "text": "how how uh like should we like how we"
  },
  {
    "startMs": 423520,
    "text": "were thinking about this decision. Um,"
  },
  {
    "startMs": 425840,
    "text": "and a a big thing here is like there's"
  },
  {
    "startMs": 428080,
    "text": "so many tests you can run when you're"
  },
  {
    "startMs": 430160,
    "text": "when it's like uh in ahead of time like"
  },
  {
    "startMs": 432880,
    "text": "like for something like this because we"
  },
  {
    "startMs": 434639,
    "text": "don't need to write any tests pretty"
  },
  {
    "startMs": 435840,
    "text": "much ourselves. Like we actually do"
  },
  {
    "startMs": 437039,
    "text": "write a lot of tests but uh we can"
  },
  {
    "startMs": 440479,
    "text": "largely trust that the tests that"
  },
  {
    "startMs": 442720,
    "text": "predate the project work. Um, and this"
  },
  {
    "startMs": 445680,
    "text": "was the same thing with the the bun rust"
  },
  {
    "startMs": 448160,
    "text": "rewrite where we had buns existing test"
  },
  {
    "startMs": 450639,
    "text": "suite we could run and now with a"
  },
  {
    "startMs": 452479,
    "text": "compiler uh we have bun's existing test"
  },
  {
    "startMs": 455039,
    "text": "suite plus web kids test plus test 262"
  },
  {
    "startMs": 458720,
    "text": "plus cloud codes tests"
  },
  {
    "startMs": 461759,
    "text": "um and then we also made it so that way"
  },
  {
    "startMs": 463280,
    "text": "bun itself the bun's own test runner"
  },
  {
    "startMs": 465840,
    "text": "could be run in the AOT mode"
  },
  {
    "startMs": 470319,
    "text": "uh"
  },
  {
    "startMs": 472240,
    "text": "and like the we have one breaking change"
  },
  {
    "startMs": 476080,
    "text": "with or relates to two breaking changes"
  },
  {
    "startMs": 477759,
    "text": "with the ahead of time compiler and"
  },
  {
    "startMs": 479680,
    "text": "that's pretty much why these particular"
  },
  {
    "startMs": 482000,
    "text": "tests are failing. Um but the and the"
  },
  {
    "startMs": 486639,
    "text": "two breaking changes are actually like"
  },
  {
    "startMs": 488720,
    "text": "mostly security things um to prevent"
  },
  {
    "startMs": 491840,
    "text": "prototype pollution attacks but they"
  },
  {
    "startMs": 494240,
    "text": "also end up benefiting for performance."
  },
  {
    "startMs": 496879,
    "text": "Um"
  },
  {
    "startMs": 498560,
    "text": "so like what makes this particular kind"
  },
  {
    "startMs": 500960,
    "text": "of problem pretty good for agents is"
  },
  {
    "startMs": 502800,
    "text": "like uh you run it with you can run all"
  },
  {
    "startMs": 506000,
    "text": "three versions of an application. One"
  },
  {
    "startMs": 507520,
    "text": "with a JIT, one with ahead of time"
  },
  {
    "startMs": 509599,
    "text": "compiled and one also without the types"
  },
  {
    "startMs": 511680,
    "text": "and as long as the three of them uh"
  },
  {
    "startMs": 514880,
    "text": "behave the same then you know that it"
  },
  {
    "startMs": 517039,
    "text": "works at least for that specific"
  },
  {
    "startMs": 518399,
    "text": "application. But then you can take that"
  },
  {
    "startMs": 521279,
    "text": "kind of problem and fuzz it a lot. Um uh"
  },
  {
    "startMs": 526959,
    "text": "and just have Claude like turn out code"
  },
  {
    "startMs": 529600,
    "text": "generators to like fuzz different"
  },
  {
    "startMs": 531600,
    "text": "patterns. Um and you can catch a lot of"
  },
  {
    "startMs": 535040,
    "text": "bugs that way. Um"
  },
  {
    "startMs": 538080,
    "text": "uh this is a very large project. This is"
  },
  {
    "startMs": 540959,
    "text": "the biggest I think I've worked on uh in"
  },
  {
    "startMs": 544640,
    "text": "terms of like code volume."
  },
  {
    "startMs": 547600,
    "text": "Um most of this is tests. Um"
  },
  {
    "startMs": 550959,
    "text": "and also because we rewrote it five"
  },
  {
    "startMs": 552880,
    "text": "times. um when you're like doing this"
  },
  {
    "startMs": 556720,
    "text": "kind of project"
  },
  {
    "startMs": 558640,
    "text": "what how I think about it is like you"
  },
  {
    "startMs": 560720,
    "text": "have like batches of like okay we need"
  },
  {
    "startMs": 563279,
    "text": "to write a lot of code at once and then"
  },
  {
    "startMs": 566480,
    "text": "after that initial batch then it's okay"
  },
  {
    "startMs": 569279,
    "text": "let's have let's like fix everything"
  },
  {
    "startMs": 571680,
    "text": "make sure it compiles make sure it"
  },
  {
    "startMs": 573279,
    "text": "passes a bunch of tests um and make sure"
  },
  {
    "startMs": 575600,
    "text": "it like really truly works um and the"
  },
  {
    "startMs": 579920,
    "text": "actual logistics of that are like when"
  },
  {
    "startMs": 582399,
    "text": "you're in the big batch kind of project"
  },
  {
    "startMs": 584720,
    "text": "stage, then uh you don't want to run"
  },
  {
    "startMs": 587760,
    "text": "builds. You want to run one build"
  },
  {
    "startMs": 590000,
    "text": "because otherwise you're going to spend"
  },
  {
    "startMs": 591200,
    "text": "all your time compiling and like waiting"
  },
  {
    "startMs": 593839,
    "text": "for build errors and it's going to like"
  },
  {
    "startMs": 595440,
    "text": "not be a good use of anyone's time. Uh"
  },
  {
    "startMs": 599200,
    "text": "and then separately"
  },
  {
    "startMs": 601519,
    "text": "uh for like longer running like once you"
  },
  {
    "startMs": 604000,
    "text": "have once you've written all the code uh"
  },
  {
    "startMs": 606480,
    "text": "you want to uh have it like have lots of"
  },
  {
    "startMs": 611200,
    "text": "individual agents. Um"
  },
  {
    "startMs": 614800,
    "text": "this is like a little bit of the"
  },
  {
    "startMs": 616079,
    "text": "timeline um of this project. Uh"
  },
  {
    "startMs": 623040,
    "text": "the first one was not very good. Uh like"
  },
  {
    "startMs": 628000,
    "text": "cloud code was a gigabyte. Um which is"
  },
  {
    "startMs": 631120,
    "text": "terrible. Uh"
  },
  {
    "startMs": 633839,
    "text": "uh and like this used as much as"
  },
  {
    "startMs": 637519,
    "text": "possible from JavaScript core's existing"
  },
  {
    "startMs": 639680,
    "text": "code. Um so it was like basically the"
  },
  {
    "startMs": 643120,
    "text": "ceiling was what is is like only as good"
  },
  {
    "startMs": 646560,
    "text": "as like what it could be from that. Um"
  },
  {
    "startMs": 650640,
    "text": "uh so then a little bit after this we"
  },
  {
    "startMs": 653360,
    "text": "added a TypeScript type checker into bun"
  },
  {
    "startMs": 655200,
    "text": "itself."
  },
  {
    "startMs": 656720,
    "text": "Um"
  },
  {
    "startMs": 659440,
    "text": "these were prompts uh uh and so we added"
  },
  {
    "startMs": 663200,
    "text": "bun check and then we're like hey Claude"
  },
  {
    "startMs": 665839,
    "text": "please use bun check. Um uh and then"
  },
  {
    "startMs": 670079,
    "text": "after that startup time got two times"
  },
  {
    "startMs": 672560,
    "text": "faster and uh in cloud code and uh"
  },
  {
    "startMs": 677600,
    "text": "started using about 3x less memory"
  },
  {
    "startMs": 682160,
    "text": "but the code was slop"
  },
  {
    "startMs": 686320,
    "text": "uh"
  },
  {
    "startMs": 687839,
    "text": "and like like this is not good. it"
  },
  {
    "startMs": 689920,
    "text": "should never basically this meant that"
  },
  {
    "startMs": 692320,
    "text": "any object that accessed a property"
  },
  {
    "startMs": 694720,
    "text": "called archive it would then assume that"
  },
  {
    "startMs": 697440,
    "text": "the bun.archive API was potentially"
  },
  {
    "startMs": 699760,
    "text": "used. Um and I looked at this and I was"
  },
  {
    "startMs": 702160,
    "text": "like we cannot ship this. This is not"
  },
  {
    "startMs": 704079,
    "text": "good. Um so then uh uh"
  },
  {
    "startMs": 714320,
    "text": "this is like yeah and that this is"
  },
  {
    "startMs": 716240,
    "text": "another thing too is like it just like"
  },
  {
    "startMs": 721040,
    "text": "when you're doing like a large planning"
  },
  {
    "startMs": 722720,
    "text": "like when you're starting to like have"
  },
  {
    "startMs": 723920,
    "text": "it do a bunch of design docs and stuff"
  },
  {
    "startMs": 726320,
    "text": "it just loves writing markdown docs and"
  },
  {
    "startMs": 728639,
    "text": "it doesn't make sense because who's"
  },
  {
    "startMs": 730639,
    "text": "going to like"
  },
  {
    "startMs": 733200,
    "text": "1500 markdown files It's just not"
  },
  {
    "startMs": 737120,
    "text": "reasonable."
  },
  {
    "startMs": 738880,
    "text": "Uh"
  },
  {
    "startMs": 742480,
    "text": "uh"
  },
  {
    "startMs": 744720,
    "text": "so for this it was like and this was"
  },
  {
    "startMs": 746720,
    "text": "like I think the third compiler version"
  },
  {
    "startMs": 748800,
    "text": "maybe it was the fourth. No this was the"
  },
  {
    "startMs": 750480,
    "text": "third. Um uh"
  },
  {
    "startMs": 754000,
    "text": "it to like just to kind of batch get it"
  },
  {
    "startMs": 758560,
    "text": "all out uh 140 agents at the same time"
  },
  {
    "startMs": 761440,
    "text": "write all the code all at the same time."
  },
  {
    "startMs": 763600,
    "text": "then get cloud code to run. Um"
  },
  {
    "startMs": 768079,
    "text": "uh"
  },
  {
    "startMs": 771120,
    "text": "and then uh this is the fourth one. Um"
  },
  {
    "startMs": 775040,
    "text": "and this one the code was not slop um"
  },
  {
    "startMs": 779360,
    "text": "pretty good um with like basically the"
  },
  {
    "startMs": 782079,
    "text": "same performance as before. However, the"
  },
  {
    "startMs": 785360,
    "text": "compilation time was way too slow"
  },
  {
    "startMs": 787839,
    "text": "because people coming from like a"
  },
  {
    "startMs": 790079,
    "text": "JavaScript background don't expect any"
  },
  {
    "startMs": 791920,
    "text": "compilation time. Um uh so 50 seconds"
  },
  {
    "startMs": 797760,
    "text": "for like cloud code is like a pretty"
  },
  {
    "startMs": 799600,
    "text": "large codebase but this meant that like"
  },
  {
    "startMs": 802720,
    "text": "other projects would take like"
  },
  {
    "startMs": 804160,
    "text": "single-digit seconds and people don't"
  },
  {
    "startMs": 806160,
    "text": "want to wait that long."
  },
  {
    "startMs": 808320,
    "text": "Um so uh"
  },
  {
    "startMs": 812639,
    "text": "we're going to rewrite it again. Um and"
  },
  {
    "startMs": 815360,
    "text": "and uh cuz in in older versions of this"
  },
  {
    "startMs": 818480,
    "text": "compiler, it was taking like 10 to 20"
  },
  {
    "startMs": 820720,
    "text": "seconds."
  },
  {
    "startMs": 822720,
    "text": "Uh and then cloud does this thing where"
  },
  {
    "startMs": 825040,
    "text": "like it'll try to like size up"
  },
  {
    "startMs": 829200,
    "text": "everything to judge whether or not it's"
  },
  {
    "startMs": 831040,
    "text": "worth working on, but it's really easy"
  },
  {
    "startMs": 832720,
    "text": "to convince yourself that like your"
  },
  {
    "startMs": 835440,
    "text": "measurements are good um when they're"
  },
  {
    "startMs": 837440,
    "text": "not good. Uh uh"
  },
  {
    "startMs": 843839,
    "text": "and like part of it was also like why is"
  },
  {
    "startMs": 846720,
    "text": "this 900,000 lines of code? This should"
  },
  {
    "startMs": 848480,
    "text": "be a lot like smaller. Um"
  },
  {
    "startMs": 853600,
    "text": "uh so then we did it one more time. Um"
  },
  {
    "startMs": 858959,
    "text": "and the code was good and the build time"
  },
  {
    "startMs": 863120,
    "text": "uh was under 20 seconds."
  },
  {
    "startMs": 865600,
    "text": "Um,"
  },
  {
    "startMs": 872399,
    "text": "it's possible that we end up with a"
  },
  {
    "startMs": 873839,
    "text": "sixth time sometime later, but the fifth"
  },
  {
    "startMs": 876399,
    "text": "one is like very shippable and I've"
  },
  {
    "startMs": 878800,
    "text": "worked on this for enough time that it's"
  },
  {
    "startMs": 880720,
    "text": "like time to ship it."
  },
  {
    "startMs": 883519,
    "text": "Um, a lot of this was like just like,"
  },
  {
    "startMs": 887680,
    "text": "\"Hey Claude, try this idea and then see"
  },
  {
    "startMs": 890320,
    "text": "what happens.\" And then it would like"
  },
  {
    "startMs": 891519,
    "text": "size up the idea. Um, and I think this"
  },
  {
    "startMs": 894720,
    "text": "is like still kind of not right. Uh,"
  },
  {
    "startMs": 896959,
    "text": "like I think a lot of this are like"
  },
  {
    "startMs": 900560,
    "text": "things that we should try again and not"
  },
  {
    "startMs": 903199,
    "text": "let it like kind of what I said earlier"
  },
  {
    "startMs": 905360,
    "text": "about like uh sizing up the the impact"
  },
  {
    "startMs": 909920,
    "text": "of a change is like it's really easy to"
  },
  {
    "startMs": 912240,
    "text": "underest or to like size it up"
  },
  {
    "startMs": 914079,
    "text": "incorrectly and then talk yourself out"
  },
  {
    "startMs": 915519,
    "text": "of it. Um, so I think this probably"
  },
  {
    "startMs": 918480,
    "text": "needs to be revisited more."
  },
  {
    "startMs": 921199,
    "text": "Um my old approach particularly with"
  },
  {
    "startMs": 924720,
    "text": "like the the bun rust rewrite was very"
  },
  {
    "startMs": 927360,
    "text": "much leaning on like cloud code"
  },
  {
    "startMs": 928800,
    "text": "workflows to do things. Um and pretty"
  },
  {
    "startMs": 932079,
    "text": "much now with the most recent models uh"
  },
  {
    "startMs": 935600,
    "text": "I mostly just rely on sub agents that"
  },
  {
    "startMs": 937760,
    "text": "are like very longived. Um"
  },
  {
    "startMs": 941519,
    "text": "except for that initial part where"
  },
  {
    "startMs": 943040,
    "text": "you're like writing all the code all at"
  },
  {
    "startMs": 944800,
    "text": "once. Um, and this with the sub aents it"
  },
  {
    "startMs": 948959,
    "text": "works pretty well because they keep all"
  },
  {
    "startMs": 951680,
    "text": "the context of the relevant code in"
  },
  {
    "startMs": 953839,
    "text": "their head or like in the context"
  },
  {
    "startMs": 955759,
    "text": "window. Um, uh, and uh, that's like less"
  },
  {
    "startMs": 961199,
    "text": "wasteful. Um, and like they can just"
  },
  {
    "startMs": 964240,
    "text": "keep going. Um,"
  },
  {
    "startMs": 970560,
    "text": "here's a little more about like how the"
  },
  {
    "startMs": 972480,
    "text": "different parts of the compiler works."
  },
  {
    "startMs": 974240,
    "text": "Um"
  },
  {
    "startMs": 975839,
    "text": "generally it's like there's if we can"
  },
  {
    "startMs": 979199,
    "text": "confidently prove that uh the value is"
  },
  {
    "startMs": 983040,
    "text": "like the types are the same that they're"
  },
  {
    "startMs": 984320,
    "text": "monomorphic then it can become a field"
  },
  {
    "startMs": 986480,
    "text": "access otherwise it has to check every"
  },
  {
    "startMs": 989199,
    "text": "single time uh uh and it has like some"
  },
  {
    "startMs": 993040,
    "text": "inline caching but not like a lot. Um"
  },
  {
    "startMs": 997680,
    "text": "uh as with a project of this size, you"
  },
  {
    "startMs": 1001360,
    "text": "really do need to it's kind of hard to"
  },
  {
    "startMs": 1003440,
    "text": "follow sometimes like what everything"
  },
  {
    "startMs": 1005040,
    "text": "what everything's happening. So uh I"
  },
  {
    "startMs": 1008079,
    "text": "lean a lot on like just having an hourly"
  },
  {
    "startMs": 1010399,
    "text": "update."
  },
  {
    "startMs": 1012079,
    "text": "Um and where it would post a scorecard"
  },
  {
    "startMs": 1014560,
    "text": "comparing a bunch of metrics that we"
  },
  {
    "startMs": 1016320,
    "text": "were prioritizing."
  },
  {
    "startMs": 1019120,
    "text": "Um,"
  },
  {
    "startMs": 1020800,
    "text": "usually though when it was posting in"
  },
  {
    "startMs": 1022240,
    "text": "Slack, it would show like a previous and"
  },
  {
    "startMs": 1024400,
    "text": "this version so that way it was easy to"
  },
  {
    "startMs": 1026799,
    "text": "see if numbers went up or down. Um, but"
  },
  {
    "startMs": 1029120,
    "text": "it's like not helpful in a slide because"
  },
  {
    "startMs": 1031520,
    "text": "the previous one is just legit."
  },
  {
    "startMs": 1034959,
    "text": "Um,"
  },
  {
    "startMs": 1039439,
    "text": "the the important thing is like none of"
  },
  {
    "startMs": 1041439,
    "text": "these tests for the most part are things"
  },
  {
    "startMs": 1042959,
    "text": "that are like made up. um uh they're"
  },
  {
    "startMs": 1047520,
    "text": "things that like pre predated the"
  },
  {
    "startMs": 1050480,
    "text": "project so that way we know that like"
  },
  {
    "startMs": 1052000,
    "text": "the agent couldn't have messed with it."
  },
  {
    "startMs": 1056240,
    "text": "Fuzzili is like a JavaScript engine"
  },
  {
    "startMs": 1058320,
    "text": "fuzzer that V8 uses. Um so uh and we"
  },
  {
    "startMs": 1063200,
    "text": "were already using that in bun but we"
  },
  {
    "startMs": 1064799,
    "text": "also extended it to have uh to like test"
  },
  {
    "startMs": 1068320,
    "text": "for TypeScript types um as well. Um"
  },
  {
    "startMs": 1073679,
    "text": "uh"
  },
  {
    "startMs": 1075840,
    "text": "and it's also important to check that"
  },
  {
    "startMs": 1077520,
    "text": "the tests actually catch things because"
  },
  {
    "startMs": 1080160,
    "text": "it's really easy to fool yourself that"
  },
  {
    "startMs": 1082000,
    "text": "it's finding bugs when it's not finding"
  },
  {
    "startMs": 1083679,
    "text": "bugs."
  },
  {
    "startMs": 1087600,
    "text": "Some more numbers uh on the ahead of"
  },
  {
    "startMs": 1090320,
    "text": "time compiler. Um it generally for most"
  },
  {
    "startMs": 1094400,
    "text": "projects outperforms the JIT. Um not"
  },
  {
    "startMs": 1098640,
    "text": "always. the you can see in the uglify.js"
  },
  {
    "startMs": 1100880,
    "text": "case and that's basically if it has to"
  },
  {
    "startMs": 1103039,
    "text": "use the interpreter a lot. So if there's"
  },
  {
    "startMs": 1104559,
    "text": "a lot of like eval or a new function um"
  },
  {
    "startMs": 1107520,
    "text": "then it's not faster. Um but most"
  },
  {
    "startMs": 1110799,
    "text": "applications don't do that. Uh and it's"
  },
  {
    "startMs": 1115440,
    "text": "like"
  },
  {
    "startMs": 1117120,
    "text": "it's like a make it like it's as close"
  },
  {
    "startMs": 1118960,
    "text": "as possible as you can get to like a"
  },
  {
    "startMs": 1120960,
    "text": "oneliner to like make an application run"
  },
  {
    "startMs": 1123280,
    "text": "faster. Um this is not 100% true because"
  },
  {
    "startMs": 1127280,
    "text": "as you can see uglifyjs and there are"
  },
  {
    "startMs": 1129760,
    "text": "other cases as well. Um but it is often"
  },
  {
    "startMs": 1133039,
    "text": "true."
  },
  {
    "startMs": 1136720,
    "text": "So like yeah the other thing is object"
  },
  {
    "startMs": 1138480,
    "text": "prototype. Uh this is like a rare edge"
  },
  {
    "startMs": 1141440,
    "text": "case but basically"
  },
  {
    "startMs": 1143679,
    "text": "there's a lot of security"
  },
  {
    "startMs": 1144559,
    "text": "vulnerabilities in JavaScript"
  },
  {
    "startMs": 1146559,
    "text": "applications called like prototype"
  },
  {
    "startMs": 1148080,
    "text": "pollution. And this usually works by"
  },
  {
    "startMs": 1149840,
    "text": "assigning properties onto"
  },
  {
    "startMs": 1151280,
    "text": "object.prototype."
  },
  {
    "startMs": 1152880,
    "text": "Um, and the compiler bans that."
  },
  {
    "startMs": 1158320,
    "text": "So like for a large project like this,"
  },
  {
    "startMs": 1160320,
    "text": "what do you actually do all day? These"
  },
  {
    "startMs": 1161919,
    "text": "were like the top messages that I sent"
  },
  {
    "startMs": 1165600,
    "text": "saying continue a lot."
  },
  {
    "startMs": 1168559,
    "text": "Um,"
  },
  {
    "startMs": 1170160,
    "text": "uh, also like my laptop kept dying. Um"
  },
  {
    "startMs": 1174880,
    "text": "uh"
  },
  {
    "startMs": 1178240,
    "text": "and then like but like more concretely"
  },
  {
    "startMs": 1181200,
    "text": "what you actually do is like a bunch of"
  },
  {
    "startMs": 1183360,
    "text": "leading questions like why are we doing"
  },
  {
    "startMs": 1185840,
    "text": "this? Uh can we do this? Also I end up"
  },
  {
    "startMs": 1190000,
    "text": "saying like can you do this faster or"
  },
  {
    "startMs": 1191919,
    "text": "like what's taking so long? Because it"
  },
  {
    "startMs": 1193919,
    "text": "kind of like talks itself into making up"
  },
  {
    "startMs": 1196160,
    "text": "rules. Um"
  },
  {
    "startMs": 1199520,
    "text": "uh"
  },
  {
    "startMs": 1203520,
    "text": "and also it tends to not be uh it tends"
  },
  {
    "startMs": 1206720,
    "text": "to like underestimate what it can do. Um"
  },
  {
    "startMs": 1210960,
    "text": "so I often end up saying things like"
  },
  {
    "startMs": 1213120,
    "text": "this to Claude to to get it to like uh"
  },
  {
    "startMs": 1217840,
    "text": "try harder."
  },
  {
    "startMs": 1223760,
    "text": "And the result is that uh Jetream 3"
  },
  {
    "startMs": 1227039,
    "text": "which is one of the main benchmarks that"
  },
  {
    "startMs": 1229280,
    "text": "JavaScript engines use um uh the bun"
  },
  {
    "startMs": 1234720,
    "text": "outperforms both JavaScript cores JIT"
  },
  {
    "startMs": 1237520,
    "text": "and no Node.js in like V8 JIT um in most"
  },
  {
    "startMs": 1242080,
    "text": "of them. Uh,"
  },
  {
    "startMs": 1249039,
    "text": "and the whole time like it's been using"
  },
  {
    "startMs": 1251679,
    "text": "cloud code to like build the bun compile"
  },
  {
    "startMs": 1254320,
    "text": "like to build bun compile itself and"
  },
  {
    "startMs": 1256000,
    "text": "then using the build of cloud code that"
  },
  {
    "startMs": 1257919,
    "text": "was compiled with bun compile."
  },
  {
    "startMs": 1260880,
    "text": "Um,"
  },
  {
    "startMs": 1263280,
    "text": "uh,"
  },
  {
    "startMs": 1265440,
    "text": "so sort of how I think about this is"
  },
  {
    "startMs": 1267440,
    "text": "like"
  },
  {
    "startMs": 1269120,
    "text": "like the testability thing is super"
  },
  {
    "startMs": 1270799,
    "text": "important when you're working on a large"
  },
  {
    "startMs": 1272320,
    "text": "project with Claude. Uh, and to make"
  },
  {
    "startMs": 1275679,
    "text": "sure that the tests actually test"
  },
  {
    "startMs": 1277039,
    "text": "things. Um,"
  },
  {
    "startMs": 1280080,
    "text": "and if you're not actively"
  },
  {
    "startMs": 1281520,
    "text": "reme-measuring, then it's going to like"
  },
  {
    "startMs": 1283760,
    "text": "get worse because it's just if there's"
  },
  {
    "startMs": 1285520,
    "text": "so much stuff going on, it's really easy"
  },
  {
    "startMs": 1286880,
    "text": "to lose track. Um"
  },
  {
    "startMs": 1290159,
    "text": "uh and like it's easier for large"
  },
  {
    "startMs": 1294159,
    "text": "projects like this that haven't shipped"
  },
  {
    "startMs": 1295919,
    "text": "yet to uh rewrite than it is to"
  },
  {
    "startMs": 1299200,
    "text": "refactor."
  },
  {
    "startMs": 1301039,
    "text": "Um and if you don't act ambitiously then"
  },
  {
    "startMs": 1304240,
    "text": "the models will like start having like"
  },
  {
    "startMs": 1307440,
    "text": "0.1% improvements instead of like 10%"
  },
  {
    "startMs": 1310320,
    "text": "improvements. So you kind of have to"
  },
  {
    "startMs": 1312799,
    "text": "constantly nudge it to like hey you can"
  },
  {
    "startMs": 1315120,
    "text": "do really cool things if you try harder."
  },
  {
    "startMs": 1322559,
    "text": "Uh you can try this now if you want uh"
  },
  {
    "startMs": 1324480,
    "text": "by running bun upgrade- canary if you"
  },
  {
    "startMs": 1326559,
    "text": "have bun installed um and then just bun"
  },
  {
    "startMs": 1330080,
    "text": "compile. Thanks everyone."
  }
]
