Giter Club home page Giter Club logo

Comments (3)

rbaron avatar rbaron commented on May 18, 2024

Hey @dbousamra. Thanks for the message! Indeed it's been really an adventure writing this. The funny thing is I considered doing this in Haskell! I did the advent of code challenge in Haskell last year and had a lot of fun. In the end I wans't as brave as you, though. Really nice work there too!

from awesomenes.

jairodasilva avatar jairodasilva commented on May 18, 2024

I agree: Great job, @rbaron.
Right now, I'm writing my GameBoy emulator in Go, and I found your code really helpful, simple and clean.

Just because of my OSD, I must comment: Constant names follow the same naming rule of a normal variable or type in Go: FRAME_RATE must be FrameRate. The gometalinter tool is very good to find these kind of mistakes. But, besides this, everything looks great!

from awesomenes.

rbaron avatar rbaron commented on May 18, 2024

Amazing. Thanks for the tip @jairodasilva. I'll take a closer look at gometalinter!

About the code, when I began writing this, I didin't have a very good mental model of all the moving parts of the NES. What helped me a lot was reading the source code for several other open source emulators out there. In particular, I messed around a lot with AndreaOrru/LaiNES and fogleman/nes. The first one is amazing in that it is super concise and the info on nesdev wiki is often straightforwardly distilled in the code. The second one is an extremely well written and polished NES emulator in Go. I highly recommend taking a look at both!

from awesomenes.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.