Live data from Hacker News

RBoy: A Gameboy Emulator in Rust

github.com

61–63 of 63 posts

Re: RBoy: A Gameboy Emulator in Rust

#62
post #3

A rust port for the gameboy, that would have been impressive...

There's some ongoing work on a LLVM whole-program backend for the MOS 6502, which can already compile some Rust code (discussed https://news.ycombinator.com/item?id=28581812 ). If that's successful (it does require lots of new optimization passes to match the effectiveness of hand-written code), it would be quite easy to have a backend for the Z80 as well.

A Z80 backend could probably reuse our static stack allocation, but that's about it. It's definitely useful, but the time-consuming part of writing LLVM-MOS's code generator has ended up being... writing LLVM-MOS's code generator. The static stack stuff is maybe like 250 lines of code, and I haven't had to touch it in months.

Re: RBoy: A Gameboy Emulator in Rust

#63

Earlier quoted context omitted.

As of writing this the font page has the following: * Slacktyping: I'm typing when you're typing (2018) * The world's worst Linux kernel module * Show HN: Go playground powered by WASM that runs in the browser * Elk: A low footprint JavaScript engine for embedded systems

..and none of them mention "written in XXX", do they? They're just interesting projects. The reason for posting is not "...they're in rust", the language is just an implementation detail. We can reasonably assume the Go one is written in Go, but the point here is the playground, not the fact that somebody did something in Go. The slacktyping and kernel module don't mention language at all, they're about some typing..…

> We can reasonably assume the Go one is written in Go

It is in fact written in TypeScript and Rust!

Post reply on HN