4 ms·
An NES emulator will likely be one of my example emulators, broken down on a chapter-by-chapter basis. It's simple enough (ignoring the more complicated mapper
by daeken 17y ago
An NES emulator will likely be one of my example emulators, broken down on a chapter-by-chapter basis. It's simple enough (ignoring the more complicated mappers) that it can be described fairly easily, and serves as a good example of implementing an emulator for a 2d console. As for the programming language, I'm having a tough time figuring out how best to present the examples to people; generally I write emulators in languages with heavy metaprogramming, e.g. Nemerle, Boo, Scheme, but these are all fairly tough for a standard programmer to learn along with emulation. For that reason, I'm sort of leaning towards Ruby + the LLVM bindings, but the performance is just dismal there, so I'm torn.
- deleted 17y ago[deleted]
- SingAlong 17y agoWow, daeken! I didn't notice that it was you :) You could create another poll about the language to use? Or maybe choose some language in which it is easy to implement? Anyway since your target audience is going to read this book and because they love what they do - write code - you could just write it in any language. Maybe even Clojure if possible. Yes, that sounds contrast to my earlier comment, but I gave it another thought (People would be happy to learn a new awesome language if it's going to be something like Clojure or Io). Sorry, my understand of CPU emulation is nil. Will implementing this in Ruby result in slow output? Example, you are going to try and emulate a small pong game written for NES, IMHO, the FPS for these NES games/software is very slow right? Shouldn't that fit into Ruby well?