3 ms·
Pure Forth machines were interesting when the CPU clock and the memory ran at about the same speed, and the number of gates was very limited. Chuck Moore's orig
by Animats 10y ago
Pure Forth machines were interesting when the CPU clock and the memory ran at about the same speed, and the number of gates was very limited. Chuck Moore's original Forth machine had a main memory, a data stack memory, and a return stack memory, each of which was cycled on each clock. It took only about 4K gates to make a CPU that way.
Today, the speed ratio between CPU and main memory is several orders of magnitude. The main problem in CPU design today is dealing with that huge mismatch. That's why there are so many levels of cache now, and vast amounts of cleverness and complexity to try to make memory accesses fewer, but wider.
The next step is massive parallelism. GPUs are today's best examples. Dedicated deep learning chips should be available soon, if they're not already. That problem can be implemented as a small inner loop made massively parallel.
- qznc 10y ago> the speed ratio between CPU and main memory is several orders of magnitude What if you compare scratchpad SRAM and an energy-efficient CPU?
- pjc50 10y agoCompare in what way? e.g. the L1 cache is SRAM running at core speed with low latency (4 cycles for Haswell).
- qznc 10y agoA factor of 4 instead of orders of magnitude means a Forth machine might still be worthwhile. No?
- pjc50 10y agoWhere's the Forth machine getting its operands from? Sure, if you constrain your programs to use a tiny area of memory you might be able to achieve theoretical speed, but what workloads can you achieve with that? If you were to write a browser in Forth, presumably it would still have to store all its DOM in DRAM?
- qznc 10y agoYou probably want to parallelize the browser for energy efficiency. Then you can distributed the DOM across the scratchpads of hundreds of cores maybe?
- pjc50 10y agoSo each core has its own JS engine, or when you iterate across the DOM with a selector you have to query across all the nodes? This doesn't sound great. (The "pile of cores with scratchpads" exists e.g. Tilera and Netronome, and they're a right pain to program for)