News for hackers. Stuff that matters.
Re:BF-SYS: A fantasy computer that uses Brainfuck as its ins... by drdeca on Tuesday December 12, 2023 @12:07PM (#38614983)
Do I understand correctly that each frame one is to call the output/“.” command 33(number of pixels) times, 32(number of pixels) times for audio, and (number of pixels) for drawing to the screen?

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?

Re:BF-SYS: A fantasy computer that uses Brainfuck as its ins... by Factory on Tuesday December 12, 2023 @11:45PM (#38622770)
This appears not entirely different to modern pixel shaders on GPUs, which basically run a program for every pixel on the screen. Quite efficient if you have large amounts of concurrent execution units. See https://www.shadertoy.com/view/MdXSWn .