posts from @soniportal tagged #computer

also:

nicuveo
@nicuveo

AKA Learn You A Brainfuck For Great Good

As part of the Advent of Code, my challenge has been to try and solve several of the puzzles using Brainfuck: a minimalist esoteric programming language with only 8 instructions. I wrote at length about this process (and how i use a custom transpiler to save myself from having to having to copy and paste snippets of unreadable gibberish) in this earlier post.

Last night, i have completed what is probably going to be my last attempt of the year: part 1 of day 9. The resulting file is monstrous: 296261 instructions, that took six and a half hours to run after compiled by an optimizing compiler (bfc), and i had to tune the compiler's option for it not to segfault... Turns out bubble-sorting 11k+ elements in brainfuck is slow, who would have thought? :D

And since this was such a challenge, i thought i'd write a quick something about how i wrote this monstrosity, and how to write brainfuck programs in general.


@soniportal shared with:


userscript to change the colour of the user interface in cohost!!!

simply double-click anywhere on the site and a box will pop up where you can type a new hue value (the default is 333, the one used in the screenshot is 100)

source code

install

(shoutout to my mate @sharky0456 for requesting this)

(oh btw make sure to run the userscript at document-start in settings; i'm new to userscripts and don't know if that was embedded in the userscript)