CheerpX: a WebAssembly-based x86 virtual machine in the browser, Yuri Iozzelli
Channel:WebAssembly NA · Length:37:10 · Published:2020-02-18 · Views:7043
Summary
A talk by Yuri Iozzelli at a WebAssembly meetup on CheerpX, an x86 virtual machine running in the browser. It uses a JIT compiler that emits WebAssembly at runtime to run real native applications. It covers the architecture and demos such as porting a multiplayer C++ game.
Why HN recommends it
HN points to it as an impressive look at how far WebAssembly can go, and as the explanation of the architecture behind CheerpX and its Flash support.
This is honestly one of the coolest things I've seen — HN, 2020
Web development · Compilers, interpreters & program analysis · Operating systems & kernels
Subtitles (excerpt)
we have two main products if one is chip is a C++ web assembly and JavaScript compiler and the other strip J is a solution to run Java and WebP assembly in JavaScript and today I'm going to talk about our third project that is two things so first let me clarify what I mean why running any application in the browser we just need to see the browser and just another architecture and operating system so in order to run an application in it we just need two main pieces an execution engine so something that can run our code and in the case of the browser is JavaScript and web assembly are our native code and also we need to access system capabilities some lower level libraries that actually show something on the screen otherwise is just making computation without showing anything and so for example how do we run application in the browser I guess this most of you know about Emscripten and chill feeds another supress platform pilar so in this case we take c++ source code and we compile it to web assembly in Java stream and then we also need to implement some lower leverage API so for example it causes API SDL for showing graphics on the screen and we need to implement those with JavaScript if user script
On Hacker News
This company has an x86-to-WASM compiler that lets you execute arbitrary binaries in the browser. Also a JVM to WASM transpiler. There's a fantastic Meetup presentation given by one of them where they show running a C++ multiplayer game with both client AND server running in a browser, using WebRTC as a networking polyfill. Really mindblowing: [VIDEO] — gavinray, 2022-03
5 years ago, I watched a YouTube recording of a meetup talk given by one of the CheerpX engineers: [VIDEO] In it, they showed a functional demo of porting an OSS multiplayer C++ game entirely to the browser with WASM. Afterwards, I read some of their engineering content and was blown away. It's been fascinating to watch the CheerpX/CheerpJ progress from afar over the years. — gavinray, 2025-03
Here's a talk by the team as well: [VIDEO] And their website: [LINK] This is honestly one of the coolest things I've seen, and given the amount of Flex/Spark software for enterprise out there, it could drastically change the legacy software landscape. — btown, 2020-06
Developer here. CheerpX for Flash runs the Pepper API version of Flash, and you're correct about the license. However, we don't do full Linux emulation just to run Flash - we emulate PPAPI and run the Flash player in an x86 JIT (CheerpX). Yuri talks about CXFF's architecture here: [VIDEO] ...but if you wanted full Linux system emulation, we got it! [LINK] — nanaian, 2023-10
It's been on our minds for a while, the major issues with this is that IPC between the app process and WebKit is like 100µs, so having the interpreter run isolated from the app process is hard. Plus loading WASM is not "free" (that is, essentially an instruction cache flush) because you need to generate a bundle that WebKit will then load, which is slow (although there has been work done in this … — saagarjha, 2020-10
Related videos
- The Next Major RTS Will Fail. This Is Why. · GiantGrantGames · 25:09
- How We Made MuseScore 4 - Music App Design is Challenging! · Tantacrul · 46:33
- NaN Gates and Flip FLOPS · suckerpinch · 19:07
- The Closest Thing We Have to Alien Technology · Veritasium · 55:00
- "Turning the database inside out with Apache Samza" by Martin Kleppmann · Strange Loop Conference · 47:42
- This Invention Made Disney MILLIONS, but Then They LOST It! · Corridor Crew · 12:25
- Building The World's First Computer - Greeks, Clocks and Rockets - Antikythera Mechanism Episode 1 · Clickspring · 6:52
- EPC2018 | Wave Function Collapse in Bad North | Oskar Stalberg · BUas Games · 37:41
- Music Software & Bad Interface Design: Avid’s Sibelius · Tantacrul · 21:35
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- The Tragedy of systemd · linux.conf.au · 47:18
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37