4 ms·
BF-SYS: A fantasy computer that uses Brainfuck as its instruction set
- bryanrasmussen 3y agoI just had to enter a complain to the Cisco security umbrella that my work uses - "I am getting tired of the high quality security checks that uses scary words in the url as a metric..."
- Traubenfuchs 3y agoIf you have admin rights, you can disable the umbrella trashware, apparently no one notices. https://gist.github.com/jasmas/4976d359c00726cd3be1c9828aaddf31 https://gist.github.com/jasmas/4976d359c00726cd3be1c9828aadd... I think that old script needs a path adaption.
- bryanrasmussen 3y agothanks, will check it out.
- Filligree 3y agoNobody notices unless you have some sort of security event, at which point it's ten times as bad. If you're confident that won't happen, sure...
- bryanrasmussen 3y agosure, but on the other hand one time when this project I'm on was just starting out I put a link on our teams channel to one of the netlify deployment builds for a PR I wanted a tester to test and I got an urgent message demanding I explain why I was sharing dangerous links over teams trying to infect my coworkers. So there's only so safe one can reasonably stay.
- saagarjha 3y ago"Brain" is probably terrifying to a brainless IT department, yes
- sebastianconcpt 3y agoOkay, but why?
- royjacobs 3y agoCounterpoint: why not?
- wang_li 3y agoThey could have spent the time doing something good for humanity, like making their bed.
- doublerabbit 3y agoBut they did do something good for humanity, create something that gave me two seconds of joy. Depression makes it hard for me to enjoy.
- sebastianconcpt 3y agoBecause doesn't create value?
- BirAdam 3y agoBecause humans. Of course someone did; there's always one.
- blinding-streak 3y agoDoes anyone actually use brainfuck?
- superbatfish 3y agoHonestly, this might be an unpopular opinion, but I'll just say it: Brainfuck is not a great programming language for production use-cases.
- thriftwy 3y agoIn 2023 I would expect at least a Brainfuck FPGA. Wouldn't be that hard to do. I bed somebody did that.
- fhars 3y agoYou'd win. https://people.csail.mit.edu/wjun/papers/sigtbd16.pdf https://people.csail.mit.edu/wjun/papers/sigtbd16.pdf
- jerf 3y agoMeh, Brainfuck is clearly inadequate as the base for a modern computer. 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.
- BirAdam 3y agoI feel like the NUMA penalty would be high, and the coordination between so many execution units would be... painful. That said, with someone clever enough working on it, it would be boss.
- jerf 3y agoNUMA is for when you have expensive processors, hence few processors, and need to share the memory. This definitely calls for just giving what would be each NUMA node its own few-hundred-thousand CPUs and letting them use a communication bus directly to talk among themselves. "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.
- aeonik 3y agoGreenArrays have really cool chip that boasts "the most power efficient per instruction executed" when they released it. On the order of picojoules per cycle IIRC. 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/ https://www.greenarraychips.com/ Here is a talk given at Strange Loop by Chuck: https://youtu.be/0PclgBd6_Zs?si=r8FqQo4LUvdFmHbd https://youtu.be/0PclgBd6_Zs?si=r8FqQo4LUvdFmHbd
- drdeca 3y agoDo 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?
- Factory 3y agoThis 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 https://www.shadertoy.com/view/MdXSWn .
- Joker_vD 3y agoOkay, let's actually talk about the facilities provided by the project instead of Brainfuck in general, shall we? 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?
- nneonneo 3y agoSee also “Brainfuck Enterprise Solutions” on GitHub, who have a whole suite of Enterprise Ready solutions written in Brainfuck, such as an OS (https://github.com/bf-enterprise-solutions/os.bf https://github.com/bf-enterprise-solutions/os.bf), IDE-plus-text editor (https://github.com/bf-enterprise-solutions/ed.bf https://github.com/bf-enterprise-solutions/ed.bf), BF interpreter in BF (https://github.com/bf-enterprise-solutions/meta.bf https://github.com/bf-enterprise-solutions/meta.bf), etc.
- onesphere 3y agoThe only thing good about Brainfuck is its name. Brainfuck.