Hacker GitHub

← All repos

shish/rosettaboy

View on GitHub ↗ ★ 485 C++

A gameboy emulator in several different languages

11 mentions on Hacker News by 6 people: 1 story, 10 comments · first 2021-10-08 · latest 2023-09-18

Mentions per year 11 mentions · busiest year 2022 (5)
20082026
  1. …has the same audio distortions, presumably because I’m misreading some part of the hardware spec :P https://github.com/shish/rosettaboy/ (Also yes, the zig version is currently failing because every time I look at it the build system has…
    comment by Shish2k · 2023-09-18 · in Memory-efficient enum arrays in Zig
  2. …stringent frame rendering deadlines. If you are interested in video games, you might appreciate https://github.com/shish/rosettaboy which covers all but Ada in your list with Nim being fastest (on one CPU/version/compiler/etc). Note,…
  3. What's your favorite, and what do you think about Nim? EDIT nvm, found: https://github.com/shish/rosettaboy/tree/master/nim
  4. https://github.com/shish/rosettaboy The same gameboy emulator rewritten in C++, Go, Nim, PHP, Cython, Python, Rust, and Zig (and WIP typescript); mostly to teach myself the languages and to compare and contrast their idioms. Also, when…
  5. …article, logging every action that happens in the CPU or RAM to make sure they all match up :) ( https://github.com/shish/rosettaboy )
  6. https://github.com/shish/rosettaboy
    comment by ruined · 2022-10-31 · in Zig 0.10.0 Release Notes
  7. Your comment in PHP src here https://github.com/shish/rosettaboy/blob/master/php/run.sh says # opcache in 8.1 gives a nice speedup (25s to 10s) Is the 23.7 seconds above using the 8.1 opcache?
    comment by mgkimsal · 2022-10-26 · in Python 3.11 is faster than 3.8
  8. …Doubling the speed is pretty nice :D Still the slowest out of all implementations though :P [0] https://github.com/shish/rosettaboy EDIT> updated the nim compiler flags to build in release mode like most other languages, thanks…
    comment by Shish2k · 2022-10-26 · in Python 3.11 is faster than 3.8
  9. Looks very polished, but major disappointment that it's not showcasing OCaml as part of RosettaBoy ( https://github.com/shish/rosettaboy )
    comment by rixed · 2022-01-12 · in Writing a Game Boy Emulator in OCaml
  10. I’m working on it :) https://github.com/shish/rosettaboy (Ok it’s 5-10k lines rather than a million, but it’s non-trivial enough that the differences between languages are noticable)