I'm surprised to see it's that much faster than SWC. Does anyone have any general details on how that performance is achieved?
They wrote a post ( https://oxc.rs/docs/learn/performance ) but it doesn't include direct comparisons to SWC.
The JavaScript Oxidation Compiler
21–30 of 147 posts
Re: The JavaScript Oxidation Compiler
#22Re: The JavaScript Oxidation Compiler
#23I 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!
Re: The JavaScript Oxidation Compiler
#24I 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!
Re: The JavaScript Oxidation Compiler
#25But I guess it wouldn't be an apples to apples com parison because Bun can also run typescript directly.
Re: The JavaScript Oxidation Compiler
#26[dead]
Re: The JavaScript Oxidation Compiler
#27I 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
Re: The JavaScript Oxidation Compiler
#28[dead]
I'd say my biggest concern is that the same engineers who use JS as their main language are usually not as adept with Rust and may experience difficulties maintaining and extending their toolchain, e.g. writing custom linting rules. But most engineers seem to be interested in learning so I haven't seen my concern materialize.
Re: The JavaScript Oxidation Compiler
#29Re: The JavaScript Oxidation Compiler
#30In other words does it treat comments as syntactic units, or as something that can be ignored wince they are not needed by the "next stage"?
The reason to find out what the comments are is of course to make it easy to remove them.