All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

WATaBoy: A Game Boy Emulator That Uses WebAssembly JIT Compilation to Outperform Native Interpreters on iOS

By

energeticbark

3h ago· 14 min readenInsight

Summary

This article explores the technical challenge of running CPU-bound emulators like Dolphin on iOS, where Apple's restrictions prevent just-in-time (JIT) compilation. The author investigates an alternative approach: building a Game Boy emulator that dynamically recompiles SM83 instructions to WebAssembly (Wasm), effectively achieving JIT-like performance on iOS. The project, called WATaBoy, demonstrates that recompiling to Wasm can outperform a native interpreter, offering a potential path forward for high-performance emulation on restricted platforms like iOS.

Source

Hacker NewsWATaBoy: A Game Boy Emulator That Uses WebAssembly JIT Compilation to Outperform Native Interpreters on iOShumphri.es

Key quotes

· 3 pulled
Dolphin isn't on iOS, because you can't do JIT compilation on iOS.
Ever since reading that, I've wondered what it would take to get a CPU-bound emulator like Dolphin working on iOS.
Do we just... have to wait a few years for iPhone CPUs to get fast enough to run Dolphin with an interpreter?
Snippet from the RSS feed
A Game Boy emulator that runs faster than a native interpreter by dynamically recompiling SM83 to WebAssembly, effectively making JIT possible on iOS.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.