<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux" -->

---
title: Five years of JavaScript on WebAssembly | daily.dev
description: A retrospective on five years of Javy, the toolchain that runs JavaScript on WebAssembly using QuickJS as its engine. The narrative traces its origin in April...
canonical: https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Five years of JavaScript on WebAssembly | daily.dev
og:description: A retrospective on five years of Javy, the toolchain that runs JavaScript on WebAssembly using QuickJS as its engine. The narrative traces its origin in April...
og:url: https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux
og:image: https://api.daily.dev/og/posts/1JrmHBwux.png
og:image:alt: Five years of JavaScript on WebAssembly
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Five years of JavaScript on WebAssembly

**[Planet Igalia](https://daily.dev/sources/planet-igalia)** · 5 min read · 0 upvotes · 0 comments

## Summary

A retrospective on five years of Javy, the toolchain that runs JavaScript on WebAssembly using QuickJS as its engine. The narrative traces its origin in April 2021 as a project to safely run untrusted server-side JS, its production adoption at Shopify in 2022 with tiny 1-16kb Wasm modules, its move to Bytecode Alliance governance in 2023, profiling work in 2024, extensibility improvements to the CLI in 2025, and a 2026 proof-of-concept compiling QuickJS bytecode to Wasm that shows 1.2x-3.5x throughput gains by optimizing function calls and closure creation via the Wasm GC proposal, with plans to upstream an experimental compiler within 6-12 months.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blogs.igalia.com/compilers/2026/05/25/five-years-of-javascript-on-webassembly>

## Questions this post answers

### How much faster can compiling QuickJS bytecode to WebAssembly be compared to just using the interpreter?

A proof-of-concept compiling QuickJS bytecode to Wasm, built in late 2025, showed function call optimization improving performance by about 1.2x over the interpreter, while closure creation optimization using the WebAssembly GC proposal improved performance by roughly 1.5x to 3.5x. The work is early-stage and was tested on a small sample of programs, with plans to upstream it as an experimental compiler within 6-12 months.

_Track experimental Wasm compiler work like this on daily.dev before it lands in your toolchain._

### Why would you run JavaScript on WebAssembly instead of just executing it natively?

Running JavaScript on WebAssembly is appealing for server-side use cases involving untrusted code, because WebAssembly is secure-by-default and offers near-native performance. Javy, a toolchain built on QuickJS, was created in 2021 specifically to make targeting WebAssembly from JavaScript easy while producing small module sizes, from 1kb to 16kb in production.

_Developers weighing sandboxing options can follow Wasm toolchain trade-offs like this on daily.dev._

### Why can't JavaScript on WebAssembly use a JIT compiler for better performance?

WebAssembly is a Harvard Architecture and does not yet allow just-in-time code generation, so dynamic languages running on it, including JavaScript via Javy, are limited to interpreter mode. Javy currently relies on QuickJS's interpreter for execution, though ongoing research into optimizing field accesses, closure creation, and function calls aims to close that performance gap.

_Engineers evaluating Wasm runtime limits can keep up with these constraints on daily.dev._

## Similar posts on daily.dev

- [The 7 Walls JavaScript Hits — and How WebAssembly Gets Past Them](https://daily.dev/posts/the-7-walls-javascript-hits-and-how-webassembly-gets-past-them-isxmm7isd) · DEV · 2 upvotes · 0 comments
- [WebAssembly Still Expanding Frontend Uses 10 Years Later](https://daily.dev/posts/webassembly-still-expanding-frontend-uses-10-years-later-5vvkxh8ef) · The New Stack · 0 upvotes · 0 comments
- [WebAssembly: an introduction](https://daily.dev/posts/webassembly-an-introduction-1iycvposp) · Flavio Copes · 3 upvotes · 0 comments
- [WASM commandline compiler](https://daily.dev/posts/wasm-commandline-compiler-nqi4nd5sj) · Quartex Pascal · 21 upvotes · 3 comments
- [WebAssembly gaining adoption "behind the scenes" as technology advances • DEVCLASS](https://daily.dev/posts/webassembly-gaining-adoption-behind-the-scenes-as-technology-advances-devclass-2vsbkezzr) · DEVCLASS · 19 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#webassembly](https://daily.dev/tags/webassembly)

[View this post on daily.dev](https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Five years of JavaScript on WebAssembly","url":"https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux"},"datePublished":"2026-09-20T07:44:22.515Z","dateModified":"2026-09-20T07:47:13.194Z","description":"A retrospective on five years of Javy, the toolchain that runs JavaScript on WebAssembly using QuickJS as its engine. The narrative traces its origin in April...","image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","thumbnailUrl":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","isAccessibleForFree":true,"articleSection":"Planet Igalia","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet Igalia","logo":"https://media.daily.dev/image/upload/s--84VSWNwZ--/f_auto,q_auto/v1789890204/logos/planet-igalia?_a=BAMAMicg0","url":"https://daily.dev/sources/planet-igalia"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,webassembly","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet Igalia","item":"https://daily.dev/sources/planet-igalia"},{"@type":"ListItem","position":3,"name":"Five years of JavaScript on WebAssembly"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/five-years-of-javascript-on-webassembly-1jrmhbwux#faq","mainEntity":[{"@type":"Question","name":"How much faster can compiling QuickJS bytecode to WebAssembly be compared to just using the interpreter?","acceptedAnswer":{"@type":"Answer","text":"A proof-of-concept compiling QuickJS bytecode to Wasm, built in late 2025, showed function call optimization improving performance by about 1.2x over the interpreter, while closure creation optimization using the WebAssembly GC proposal improved performance by roughly 1.5x to 3.5x. The work is early-stage and was tested on a small sample of programs, with plans to upstream it as an experimental compiler within 6-12 months. Track experimental Wasm compiler work like this on daily.dev before it lands in your toolchain."}},{"@type":"Question","name":"Why would you run JavaScript on WebAssembly instead of just executing it natively?","acceptedAnswer":{"@type":"Answer","text":"Running JavaScript on WebAssembly is appealing for server-side use cases involving untrusted code, because WebAssembly is secure-by-default and offers near-native performance. Javy, a toolchain built on QuickJS, was created in 2021 specifically to make targeting WebAssembly from JavaScript easy while producing small module sizes, from 1kb to 16kb in production. Developers weighing sandboxing options can follow Wasm toolchain trade-offs like this on daily.dev."}},{"@type":"Question","name":"Why can't JavaScript on WebAssembly use a JIT compiler for better performance?","acceptedAnswer":{"@type":"Answer","text":"WebAssembly is a Harvard Architecture and does not yet allow just-in-time code generation, so dynamic languages running on it, including JavaScript via Javy, are limited to interpreter mode. Javy currently relies on QuickJS's interpreter for execution, though ongoing research into optimizing field accesses, closure creation, and function calls aims to close that performance gap. Engineers evaluating Wasm runtime limits can keep up with these constraints on daily.dev."}}]}
```

