The JavaScript Oxidation Compiler

(oxc.rs)

71 points | by modinfo 3 hours ago ago

13 comments

  • apatheticonion 4 minutes ago

    I wrote a simple multi threaded transpiler to transpile TypeScript to JavaScript using oxc in Rust. It could transpile 100k files in 3 seconds.

    It's blisteringly fast

  • pier25 an hour ago

    All the Void Zero projects are super cool although I still wonder how they’re going to monetize all this.

    • rk06 an hour ago

      they are going to use vite plus for monetization

  • root_axis 42 minutes ago

    I'm surprised to see it's that much faster than SWC. Does anyone have any general details on how that performance is achieved?

  • robofanatic 13 minutes ago

    oxidation is a chemical process where a substance loses electrons, often by reacting with oxygen, causing it to change. What does it have to do with JavaScript?

    • nine_k 10 minutes ago

      Oxidation of iron produces rust. Rust is the language of implementation of that compiler, and of the entire Oxc suite.

    • ayhanfuat 11 minutes ago

      It is written in Rust…

  • zdw 40 minutes ago

    This compiles to native binaries, as opposed to deno which is also in rust but is more an interpreter for sandboxed environments?

    • ameliaquining 3 minutes ago

      Oxc is not a JavaScript runtime environment; it's a collection of build tools for JavaScript. The tools output JavaScript code, not native binaries. You separately need a runtime environment like Deno (or a browser, depending on what kind of code it is) to actually run that code.

    • 3836293648 7 minutes ago

      Deno is a native implementation of a standard library, it doesn't have language implementation of its own, it just bundles the one from Safari (javascriptcore).

      This is a set of linting tools and a typestripper, a program that removes the type annotations from typescript to make turn it into pure javascript (and turn JSX into document.whateverMakeElement calls). It still doesn't have anything to actually run the program.

      • ameliaquining a minute ago

        Deno uses V8, which is from Chrome. Bun uses JavaScriptCore.

    • nine_k 5 minutes ago

      No, it it a suite of tools to handle Typescript (and Javascript as its subset). So far it's a parser, a tool to strip Typescript declarations and produce JS (like SWC), a linter, and a set of code transformation tools / interfaces, as much as I can tell.

  • sankalpmukim an hour ago

    I wonder why did it take so long for someone to make something(s) this fast when this much performance was always available on the table. Crazy accomplishment!