HackerTubewatch
Surprise me
Frame from The Truth about Rust/WebAssembly Performance Plays via YouTube's privacy-enhanced embed

The Truth about Rust/WebAssembly Performance

Greg Johnston
Talks
YouTube
2 HN users recommended this talk2 months2023–2026 score 2
Years with an HN recommendation, 2007–2026

Cited as evidence that DOM access is not the bottleneck for WebAssembly, and as an explanation of signals-based updates versus virtual DOM.

Leptos creator Greg Johnston examines Rust/WebAssembly frontend frameworks against JavaScript frameworks using the JS framework benchmark. He argues that WASM is no longer too slow for DOM-heavy rendering.

“did a pretty good video about this a few weeks ago[0]” (HN, 2023)

2 recommendations · 6 citations · Talks · intermediate · partly dated

8 Hacker News comments

From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.

@pdpi Apr 2023 Recommends
on HN thread Can Rust Beat JavaScript in 2023?
Greg Johnston, author of the Leptos framework, did a pretty good video about this a few weeks ago[0]. The TLDR is (of course): it depends. WASM has no native access to the DOM, so all DOM manipulations from wasm-land have to go through JS bindings with all the (de)serialisation costs that go with crossing the language boundary. That eats up a lot of whatever performance gains you'd see from rust-on-wasm for pure compute. 0. [this video]
Explains DOM binding costs eat WASM compute gains.
@theironhammer Jul 2023 Recommends
on HN thread Ask HN: Real world Svelte speed difference compared to virtual DOM frameworks?
Read more
[this video] This video might be helpful. Leptos uses Signals, borrowing ideas from SolidJS to update the DOM. There's no VirtualDOM like React. Svelte also doesn't use a VDOM. When there's a state change React has to rerender the entire VDOM tree and the diff it with the real DOM, whereas using the Signals model those frameworks make the change directly in the real DOM. I'm not sure how Svelte manipulates the DOM exactly but I it's similar to how it's done with Frameworks that use Signals such as Leptos and SolidJS. I would say Developer velocity is key if you're a developer. Svelte is a big winner here as it's mental model is easier to understand than React's.
Helps understand signals-based DOM updates versus virtual DOM.

Citations, criticism and jokes

@rapnie Aug 2023 Cites it
on HN thread Snappy UIs with WebAssembly and Web Workers
Read more
> if anyone tells you they need to use WebAssembly to make the UI snappy I'd advise you interrogate that assertion thoroughly. Get prepared to be blown away by Makepad [0]. I have no affiliation with them, but just watched their most recent conference presentation [1]. The slides were made with Makepad itself and included, embedded, a full-blown IDE, a synthesizer app, a Mandelbrot to zoom in endlessly, and more. All running at 120fps. The presentation is for the most part live-coding with this setup. What they want to do is bring coders and designers closer together, and while some code is in Rust they developed a DSL for the GUI parts that is close to how Figma works. These GUI's can run anywhere. And I couldn't help thinking "Why would people have complicated stacks to create Web 2.0 apps for the Google Web, when they have this?", in other words an opportunity to break out of the browser straitjacket. Btw. WebAssembly/WebGL isn't the only way in which Makepad is available. And while running well in the browser for a time, there were issues to be solved here (addressed in the presentation). And tbh this isn't a real answer to your assertion. Greg Johnston, creator of Leptos, has made a video with performance comparisons [2]. [0] [link] [1] [link] [2] [this video]
Performance comparisons from Leptos creator.
@azemetre Aug 2023 Cites it
on HN thread Snappy UIs with WebAssembly and Web Workers
Have you seen the video posted in the parent, by the creator of leptos (a rust webassembly framework)? [this video] The benchmarks being displayed have leptos beating react in nearly every category.
Benchmarks show Leptos beating React in nearly every category.
@jbjohns Oct 2024 Cites it
on HN thread Platform Strategy and Its Discontents
The founder of Leptos makes a pretty good argument [1] that the bottleneck for WASM isn't really the DOM and that they are already faster than some popular JS frameworks even with the current constraints. [1] [this video]
Argues the DOM is not the Wasm bottleneck.
@tcfhgj Feb 2026 Cites it
on HN thread Farewell Rust
the JS layer is slow, indeed, but it shouldn't be that much slower that it meaningfully impacts frontend apps A demonstration of that by the creator of Leptos: [this video]
Demonstrates JS layer overhead isn't prohibitive.
@tcfhgj Mar 2026 Cites it
on HN thread Making WebAssembly a first-class language on the Web
> no DOM access meant the only viable use cases were compute-heavy workloads like codecs and crypto, no, it didn't mean that, because the overhead is not a deal breaker: 1) you don't have to do the glue code (libs can do it for you) 2) there's overhead due to glue, but the overhead is so small that WASM web frameworks easily can compete with fast JS frameworks in DOM heavy scenarios. Source: Analysis of the creator of Leptos (a web framework based on WASM): [this video]
Analysis showing WASM frameworks compete with JS in DOM-heavy work.

Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.

Keyboard shortcuts

/
Search
j k
Next / previous video
r
Surprise me
l
Like (video page)
w
Watch later (video page)
?
This help
Esc
Close