4 ms·
The fact that this was done in just 430ish lines of BF really illustrates some of BFs power that may be lost on others.
by whartung 3y ago
The fact that this was done in just 430ish lines of BF really illustrates some of BFs power that may be lost on others.
- ithkuil 3y agoIt also illustrates the power and simplicity of ed
- AlotOfReading 3y ago430 lines of overly verbose BF to boot. You could delete 1/3rd to 1/2 of them by simple tricks the author hasn't used for readability reasons. It's not the worst language if you're willing to work within the constraints and frankly, more readable than a lot of C++. My own editor (written many years ago, no meta interpreter) was 113 characters.
- aartaka 3y agoYes, there's always space for optimization in Brainfuck programs. We haven't used some of the optimization opportunities for readability, as you've said. But we might have missed some optimization spots too, so feel free to open an issue or pull request if you know how to fix that! Also note that 430 lines is the code compliant with our bd.style: heavily commented, unambiguous, modifyable. You can always minify the code and it'll be some 1K commands, which is pretty small for a text editor.
- benj111 3y ago>minify I was waiting for the super optimising ed plugin.