3 ms·
WASM is the easiest target because you don't have to emulate an entire computer.
by wvenable 2y ago
WASM is the easiest target because you don't have to emulate an entire computer.
- svieira 2y agoBut in this case he kind of did anyway (at least the video makes reference to "L1 Instructions Cache").
- wvenable 2y agoBut that's all CPU -- he doesn't have to emulate the rest of the computer (video card, IO systems, etc). You provide WASM with your own interface to the outside world.
- dimitropoulos 2y ago(not arguing, really just want to hear your thoughts to this!) so re: video card - but I did write what I don't know what else to call other than "a graphics driver" (i.e. it takes Doom palette pixel values and converts them to something the user sees on their screen with ASCII art). what else would you call that? or are you saying video card would have to be at the level of VSCode or my operating system that actually lights up physical pixels on my screen.
- wvenable 2y agoIf instead of WASM you decided to emulate a different DOOM target like a PC then you'd have to emulate the actual VGA graphics hardware and enough of the other PC hardware to run the game. That level of emulation is a difficult project on it's own.
- dimitropoulos 2y agogot it, ok sweet. thank you so much for explaining. I don't know a ton about these programming circles, so I don't want to say the wrong thing if I can avoid it. Sounds like you're saying that no WASM runtime is, in this sense, qualifying - which makes sense!