nowfound

Life & fun · February 9, 2025

Oxidase – Transpiles TypeScript at the Speed of Parsing

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]…

Oxidase – Transpiles TypeScript at the Speed of Parsing launched on February 9, 2025 with 5 votes and more than 75% of that year's launches. The site was still online in September 2026, 1 year on.

What it does

Transpiles TypeScript at the Speed of Parsing. Contribute to wan9chi/oxidase development by creating an account on GitHub.

$ node --import oxidase/register your-ts-file.ts JavaScript API import { transpile } from 'oxidase' ; transpile ( "let a: number = 1" ) ; // returns 'let a = 1' Type-Stripping Transpilers Type-stripping is a clever technique to transpile TypeScript by erasing the types and replacing them with whitespace. This approach preserves positions of all JavaScript code in the output, eliminating the need for sourcemaps. The idea originated from ts-blank-space , and was later implemented by swc_fast_ts_strip in Rust, as the default built-in TypeScript transpiler in Node.js v22.6.0+. Type-stripping inherently lacks support for non-erasable syntaxes such as enums, namespaces, and parameter properties.…from github.com

In the maker’s words, at launch

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…

Does a similar job

all alternatives →
  • TB
    ts-blank-space – fast TypeScript type-stripper2024 · bloomberg.github.io · ▲22

    We've built a new type-stripping compiler for TypeScript source: `ts-blank-space` It's: * 5.6x faster than `tsc` due to zero-codegen * Written in TypeScript * Uses the official TypeScript parser * Accurate/preserved source locations * In used in production It uses the same novel approach that inspired Node 22.6.0's `--experimental-strip-types` functionality, released last month

  • TF
    Transcrypt – Fast, small Python 3.5 to JavaScript transpiler2016 · transcrypt.org · ▲121

    The Transcrypt Python to JavaScript compiler makes it possible to program lean and fast browser applications in Python. Transcrypt applications can use any JavaScript library and can also run on top of Node.js or be used in combination with Django.

  • Fast.js – faster reimplementations of native JavaScript functions2014 · github.com · ▲323

    Faster user-land reimplementations for several common builtin native JavaScript functions. - codemix/fast.js

  • Sucrase, 20x faster smaller-scoped alternative to Babel2018 · github.com · ▲88

    Super-fast alternative to Babel for when you can target modern JS runtimes - alangpierce/sucrase

  • Prometeo – a Python-to-C transpiler for high-performance computing2021 · github.com · ▲166

    An experimental Python-to-C transpiler and domain specific language for embedded high-performance computing - zanellia/prometeo

  • Execute JavaScript in a WebAssembly QuickJS sandbox2024 · github.com · ▲206

    This TypeScript package allows you to safely execute JavaScript code within a WebAssembly sandbox using the QuickJS engine. Perfect for isolating and running untrusted code securely, it leverages the lightweight and fast QuickJS engine compiled to WebAssembly, providing a robust environment for code execution. Features - *Security*: Run untrusted JavaScript code in a safe, isolated environment. - *File System*: Can mount a virtual file system - *Custom Node Modules*: Custom node modules are mountable - *Fetch Client*: Can provide a fetch client to make http(s) calls - *Test-Runner*: Includes…

More life & fun this month

the category →

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, February 2025

the whole month →
  • Beautiful screen recordings with instant shareable links

    Growth · 2025 · screen.studio

  • Tana▲1,665

    Put your notes to work with voice and AI

    AI · 2025 · tana.inc

  • IG

    I was at FB/Meta from late 2013 to early 2023, mostly working in the compiler/runtime spaces. I got hit in the spring 2023 layoff wave. I immediately started making games in my newfound free time (a lifelong interest, and I even worked in AA(A?) back ca. ~2000), and in October 2023 I stumbled upon the idea of a roguelike pachinko/plinko game inspired by Luck Be A Landlord. Things snowballed quickly, I started talking to publishers, then worked like crazy through all of 2024, almost the hardest I've ever worked in my career, and launched the game in December 2024. It's sold…

    Work · 2025

  • Tanka▲1,410

    AI Messenger with smart reply & long term memory for teams

    AI · 2025 · tanka.ai

  • Tool Finder▲1,327

    Your shortcut to better software

    AI · 2025 · toolfinder.com

  • i wanted to change the habit of reaching for my phone in the morning and doomscrolling away an hour so i built an app to help me. now i have to literally touch grass before accessing my most distracting apps the app is built in swiftui, uses the screen time apis provided by apple and google vision to recognise grass or not i'd love to get your thoughts on the concept.

    Life & fun · 2025 · touchgrass.now