Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesomenes.