1,356 karma · joined Jun 19, 2017 (9y ago) · 591 submissions
comment 4y ago · link · parent
Based on current comments if I were to buy today it'd be a Spectre. The more consumers who refuse to buy a TV with mandatory advertising, the sooner it will stop being profitable.
comment 4y ago · link · parent
Past dates should always be in UTC, for the same reason - timezone rule changes are sometimes even retroactive.
comment 4y ago · link · parent
comment 4y ago · link · parent
The system is made more simple if you remove the function, though.
This is more so if only part of the behaviour of a function is no longer desired - the function becomes easier to understand when it's trimmed down, but it's harder to make that change.
comment 4y ago · link · parent
The Z84C00 at 6Mhz will also "only" use around 30mA, down to 10µA in standby. At 15MHz the Z84C00 uses something more like 80mA, though, so the "turbo" mode in that calculator line probably chews through batteries.
I expect TI still uses the eZ80 CPU for the same reason other companies still use Z80-based processors - backwards compatibility. The Z80's got a very long life in industrial control systems, where you want to avoid rewriting the code if you reasonably can.
The eZ80 is about as modernised as you can take the Z80 core, but as you say a lot of the Z80 design is due to the constraints of the era. It was also designed to be code compatible with the Intel 8080, and probably would have just quietly fizzled on launch if it didn't have that.
comment 4y ago · link · parent
The STM32 line is my preference for performant parts - there's an STM32L0 on the board doing USB to serial. I could likely emulate the eZ80 on that faster than the real thing runs, but I couldn't build an 8-bit bus computer with it.
comment 4y ago · link · parent
It's likely a bit less than that over USB Vbus but it's just running a linear regulator down to 3v3 so mostly the difference just becomes heat.
comment 4y ago · link · parent
The later chips in the 8-bit family are much more power efficient; I built an eZ80 board whose total power budget is 500mA including SD card and Ethernet module. It runs at 50MHz, but performance isn't really the reason we muck around with 8-bit CPUs, right? :)
comment 4y ago · link · parent
Dependency management is not as simple as only upgrading one direct dependency at a time after careful review.
The NPM ecosystem is particularly difficult to work with as it has deep and broad transitive dependency trees, many small packages, and a very high rate of change.
You either freeze everything and hope you don't have an unpatched vulnerability somewhere or update everything and hope you don't introduce a vulnerability somewhere.
comment 5y ago · link · parent
The question posed early in the blog was whether Duff's Device is still relevant in 2021. The fact that the compiler can completely elide the loop without it but cannot with it is a pretty good indicator that it's likely to cause more harm than good.
It might prevent inlining of a function call in the loop body, which would make a loop much, much slower to execute. It will make the loop body larger (even without inlining) and likely cause an increase in cache misses. It will be unpredictable based on build: an unrelated change somewhere else might misalign it with a cache line. Different CPUs might have different cache behaviours and perform differently.
The right view on this sort of thing hasn't changed for decades: don't optimize prematurely. Trust your compiler, check it with profiling, look first for algorithmic improvements because you can gain FAR more converting an O(n^2) algorithm to an O(nlogn) than you can by unrolling a loop. Duff's Device is obsolete in all but a vanishingly tiny number of edge cases.
comment 5y ago · link · parent
comment 5y ago · link · parent
I last used it on an ARM micro. Building and deploying a new image to flash is substantially slower than using a lisp console over USB serial, and requires me to wire up the programming headers instead of just using the USB line providing power and other services.
comment 5y ago · link · parent
When some functions proved to be stable and useful I ported them in as uLisp builtins with a C implementation.
I used it as a debug driver in an STM32 for an eZ80 CPU - the STM32 provided USB to TTY and a third serial channel for debug control.
It was a nice addition but I do wish it was designed in a way that made these modifications easier.
comment 5y ago · link · parent
IOW it should run just fine, unless the simulator is written to hook into CP/M itself. I have my own z80 based system emulator where the BIOS is basically breakpoints into host code, and I didn't need to change anything to switch from DR's OS to ZSDOS.
comment 5y ago · link · parent
Various projects get shown off, plenty of boards built around retro (and quasi-retro) CPUs, some more audacious stuff like rebuilding the Apollo Guidance Computer.
The ultimate homebrew derby is those brave enough to make their designs available for sale, I suppose.