At the transistor level? I assume this means that each transistor is simulated digitally, as a pure switch, and not as an analog component, which I imagine would be near impossible to do in Javascript on current hardware.
Not the most practical way to emulate a CPU, but surely a good exercise in learning how a processor works from the component level on up.
I assume this means that each transistor is simulated digitally, as a pure switch, and not as an analog component, which I imagine would be near impossible to do in Javascript on current hardware.
Thought this for the longest time, too, but reality can't be simulated on a computer. Only a simplified model can.
Maybe not exactly, but you can get pretty damn close. The digital audio guys are the ones who are really into this. It's the only way to get the exact feel of old audio gear.
> I imagine would be near impossible to do in Javascript on current hardware.
In JavaScript, most probably. But on current hardware, just perhaps. You can't forget the immense floating-point power we have compositing polygons on our displays... GPUs could be used to simulate such a system close to real time, I guess (didn't do the math on that).
Not the most practical way to emulate a CPU, but surely a good exercise in learning how a processor works from the component level on up.