And here's a name you might have not heard for that long, Vappack. Yeah, that was also inspiration from Vappack because Vappack has really, really good optimization features in terms of chunking, controlling to say which JavaScript files should go in a single chunk. How should that look like? Which criteria should we create a new group, etc., etc. And of course, beyond it, there are also experimental features, right? Built-in HMR, inbound generation, CSS bundling, first-class module federation, and so on and so on. And for production-grade bundle, we also need magnification, so it's also there. And great. Okay, we're on a roll, so to say. We have the bundler, and actually, it doesn't stop there because, well, if you build a bundler, you need a lot of underlying tools. You need some kind of foundation, and there we chose OXE. Also before the creator of the project joined the company.
And if you take a look at the logo, right, this is an anchor. It's a brown anchor, so one could say it's rustified. And, well, how, like, you see the water in the background, and how is, like, rust actually being created? With like, yeah, you need water for sure, and air, oxidation. So let's go through what is actually in there, in the OXE compiler, and go through the components, and what you actually do. So, a few things might be interesting, especially for people looking into, like, all these low-level stuff, but there's also things that you, as an application developer, need. Let's go for it. First of all, the parser. So if you say you have your JavaScript or TypeScript code written, then you want to create a technical representation out of that, right? It's something called an AST, an abstract syntax tree, and that's necessary to do more things, to do operations on that.
And actually, for that, you have the parser. So we have OXE parser, which is the fastest JavaScript parser out there. Also important, there are links in the slides for all the benchmarks, so when I say fastest, this is actually a benchmark, not just like a guesstimate and roughly saying, oh, yeah, maybe. It's also spec-conform, so it passes all the tests to state 4 test. It's a conformance test suite. Very important because you don't want your application to fail building or to give a wrong code runtime. So, this is key. It is also three times faster than SWC, and five times faster than BIO. Just as comparison with other Rust-based tools, we don't necessarily have to compare to other parsers because, well, they were much slower than that. Let's have a look at the chart. Here, we also see what we just discussed, that the parser is quite fast here. BIO takes longest than SWC and OXE.
Comments