That’s how more than a few of my projects have started. It really helps you learn the performance mechanics of a language and it’s runtime doing something like, implementing an emulator then optimizing it. Maybe not something as ambitious as a switch emulator though. I like 16 bit processors like the MSP430 :)