67 points · by todsacerdoti · 2y ago · 27 comments
First of all, the sound channels: 10/20/30/.../310/320 Hz? What? 10 and 20 Hz are inaudible frequencies, and A of the first octave 440 Hz which you can't play.
As for the actual output mechanism:
The output instruction (.) increments the output pointer. If the output pointer is divisible by 33, it changes the delay of a sound channel to the value at the current memory cell. Otherwise, it changes a pixel on the screen to the value at the current memory cell.
What is an "output pointer"? The delay of which sound channel, exactly, is changed? And similarly, which pixel on the screen, exactly, is changed? What about decrementing the output pointer?Concurrent Brainfuck, now, that's where it's at. Forget "GPUs" and their measly "thousands" of compute units... can you imagine how many Brainfuck cores we can fit on to a system with a 5nm process? Millions, probably.
If there is any system that deserves to be tagged inconceivable performance, it would be such a system.
That said, with someone clever enough working on it, it would be boss.
"Just". Such a wonderful word in these sorts of conversations. All we have to do is "just" compile modern languages into Brainfuck for these processors, no problem. All we have to do is "just" build the hardware for the rest of the system on a radically different paradigm than all current computers. I'm sure we can "just" repurpose some FPGAs for this for prototype purposes. It's all so easy here in "just"land I'm surprised we don't "just" do it.
The chip has 144 independent computers (not processors -> computers)
The inventor of the Forth programming language, Chuck Moore, developed it, and is designed to execute with this parallel model in mind. A parallel Brainfuck system might be a cool project to port over to this platform.
https://www.greenarraychips.com/
Here is a talk given at Strange Loop by Chuck: https://youtu.be/0PclgBd6_Zs?si=r8FqQo4LUvdFmHbd
https://gist.github.com/jasmas/4976d359c00726cd3be1c9828aadd...
I think that old script needs a path adaption.
Hm, and, the way to do this.. would it be to, before a part where you actually output the output, you first store what you intend to output in region of the tape, and then go through that part to make the output?
Also, what happens if the computations take too long and you don’t have time to compute the frame?