Story
We rewrote our Rust WASM Parser in TypeScript – and it got 3x Faster
1 report
1 website
1 discussion
Latest report
Overview
OpenUI is rewriting its openui-lang parser from Rust to TypeScript to improve latency in converting a custom DSL emitted by an LLM into a React component tree. The original Rust-based parser utilized a six-stage pipeline but was found to be optimizing the wrong aspects for performance.
Summary from openui.com.
Reports
One report so far. Additional coverage will appear here when it is linked to this story.
Community reactions
Each reaction summarizes sampled comments from the linked discussion.
Hacker News · openui.com
Historical count: 5 · 5 saved in sample · Historical sample
Analysis ready
Read this discussion’s reaction
Based on 5 sampled comments from this thread. Analyzed 2026-03-21.
- Praise: The algorithmic improvement from O(N²) to O(N) through statement-level caching significantly enhances user-perceived latency, showcasing the importance of optimization beyond language choice.
- Praise: Rewriting the code allowed for the application of better practices and rectification of previous design flaws, emphasizing that thoughtful engineering can yield substantial performance gains.