Hacker News new | ask | show | jobs
Show HN: Oxidase – Transpiles TypeScript at the Speed of Parsing (github.com)
5 points by branchseer 497 days ago
Hi HN,

Oxidase is my experiment to build a TypeScript transpiler that works like ts-blank-space[0] and Node.js' built-in type stripping[1], but also supports enums and namespaces.

I've tried some optimizations on it and am surprised to find that it's now as fast as oxc, the TypeScript parser it's based on. Check the link for the benchmark results and details on how I make this possible if you are interested.

The name pays homage to oxc (same prefix) and sucrase[2] (name for another type of enzyme), where I borrowed the idea of no AST allocation optimization.

[0] https://bloomberg.github.io/ts-blank-space/

[1] https://nodejs.org/docs/v23.7.0/api/typescript.html#type-str...

[2] https://sucrase.io/