Hacker News new | ask | show | jobs
by Someone 2138 days ago
Cool. If you want to do that the easy way, use an electronics circuit simulator (https://en.wikipedia.org/wiki/List_of_free_electronics_circu...)

If you want a further challenge, write compiler optimization passes that recognize bit arrays a being bytes, figure out what parts are buses, binary adders, etc. and see how fast you can get this to run.

It probably would be fairer to do this on somebody else’s version of this, but I guess doing it on code you know already is hard enough, if you want to get compiler passes that likely would work on other simulated hardware, too.