Live data from Hacker News

WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

humphri.es

21–30 of 45 posts

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#21
post #6

Earlier quoted context omitted.

[flagged]

Every company they apply to will be leveraging LLMs. Time to get over it. No need to be grumpy old man about such things. Every generation has faced such foes. The old always yields to the new. For the times they are a-changin'

[dead]

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#22
post #4

yet on real old hardware it would be 20x slower in real life. same as all native javascript junk - its fast, but non usuable on older hardware

Good thing I'm not running games on my 4gb Pentium 4 then.

Your code running on other people’s hardware is a privilege. Treat it with respect.

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#23
> Dolphin isn’t on iOS, because you can’t do JIT compilation on iOS....Well, Apple has one exception to its JIT restrictions: web browsers. JavaScriptCore, WebKit’s JS engine, uses JIT compilation for its higher-performance tiers. So, if a JS function is called enough times, eventually it’ll be optimised and compiled into native machine code. The same is true for WebAssembly.

I was wondering about the why of the headline, and this is a really interesting answer. Such a beautiful way to get around restrictions. I wonder how applicable it is to other projects.

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#24

Of course it beats a native interpreter. WASM overhead is about 20%, interpreter overhead is about 1000%. What's cool here is to have a GameBoy JIT runtime at all.

It's two jits in total.

True, but the WASM JIT is pretty low overhead because WASM seems to be a good design for what it needs to do. It's what I was referring to with the 20% overhead figure.

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#25
The author's base assumption, and stated motivation for doing this project, is wrong.

https://github.com/StephenDev0/StikDebug

For an undergrad project, I suppose it's fine to conveniently forget about the existence of this solution for the sake of getting a good grade.

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#26
post #6

Earlier quoted context omitted.

[flagged]

Every company they apply to will be leveraging LLMs. Time to get over it. No need to be grumpy old man about such things. Every generation has faced such foes. The old always yields to the new. For the times they are a-changin'

You can’t vibe code a production capable C compiler if you’ve never written one.

Sure, companies are asking for LLM experience. But whether they know it or not they are also hiring someone who knows what they’re doing with the output.

Projects like this are still worth doing by hand. I’d dare say it’s even enjoyable.

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#27

The author's base assumption, and stated motivation for doing this project, is wrong. https://github.com/StephenDev0/StikDebug For an undergrad project, I suppose it's fine to conveniently forget about the existence of this solution for the sake of getting a good grade.

It’s wrong ‘for sideloaded apps that have the get-task-allow entitlement.’

It’s right for ‘regular’ apps.

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#28
post #18

Earlier quoted context omitted.

Here's a nickel kid. Go buy yourself a real computer.

How much RAM would a nickel buy me?

based on the tracked average of $12.65/gb from rampricesusa you could get about 4mb of ddr5

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#29

The author's base assumption, and stated motivation for doing this project, is wrong. https://github.com/StephenDev0/StikDebug For an undergrad project, I suppose it's fine to conveniently forget about the existence of this solution for the sake of getting a good grade.

I would not expect the average undergraduate to understand the intricacies of how iOS does dynamic codesigning enforcement. There are plenty of people who have graduated with advanced degrees and work at Apple who don't really understand how it works, either.

Re: WATaBoy: JIT-Ing Game Boy Instructions to WASM Beats a Native Interpreter

#30

Earlier quoted context omitted.

Good thing I'm not running games on my 4gb Pentium 4 then.

Your code running on other people’s hardware is a privilege. Treat it with respect.

You can also like not run the Gameboy emulator
Post reply on HN