Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You'd be foolish to write a console emulator and not import someone else's CPU code.

Why? It's part of the learning and it's not particularly complex.



That part has been done to death and optimized to hell, that was my main thought. Plus it's a ton of research on the opcodes etc.


Let's agree to disagree. Something being done before is hardly relevant when you're using a project to learn. "Optimized to hell" I don't know about; it's a CPU emulator, there isn't that much you should be doing with it anyway. If you're doing accurate emulation speed doesn't seem like your primary factor as long as you're not implementing it in something ridiculous that will involve a GC.

Also, I don't get the point about research: It's a learning project... Doing research and learning is the actual point. Sure, maybe you slice off one part right now if you're not interested in learning how the CPU works, but to say that you'd be foolish to not use someone else's implementation seems to me to be missing the point by quite a margin.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: