HNHacker News
TopNewBestAskShowJobs

lprib

19 karma · joined February 1, 2023

submissionscomments
lprib··on Nuked-MD-FPGA – Emulating Sega Mega Drive chipset using decapped chips photos
It's probably hand written but they didn't reverse engineer the purpose of each wire, only the netlist. Some of them are labeled, eg `irdbus_normal`.
lprib··on How Does an FPGA Work?
Sure it would probably be cheaper to chuck a cortex-A* or similar mid-range MCU in there. One advantage of FPGAs that it can achieve "perfect" emulation of a Z80 (or other) since it's running on the logic gate level. No software task latency, no extra sound buffering, etc. It can re-create the original clock-per-clock.
lprib··on Catch-23: The New C Standard Sets the World on Fire
Using `unreachable()` instead of `assert()` for your preconditions without profiling first is just pre-loading the gun to shoot yourself in the foot in the future. When those preconditions are inevitably violated at some point, you will get random UB corruption rather than simply aborting as is the case for assert.
lprib··on Google just shut down our $1M business
> What would be the alternative

That's the point, there is not alternative at the moment. Breaking up monopolies allows competition and an alternative provider when something like this happens.