Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Lensflare17538143dYou are taking the fun away from brainfuck by implementing string literals 😂
-
typosaurus12224143d@Lensflare yh, it's optional to use. The repeat iterator is just very convenient. With +65 I have an A.
I'm trying to figure out how to do an if-else using brainfuck. ChatGPT is wrong about it. Now I know why it's called brainfuck. -
tosensei8454142dlet's do a nerd-outing. how old were you when you wrote your first brainfuck-interpreter?
i was 13. -
Wisecrack9481141dAlways wanted to write a bf interpreter.
Writing one now, tempted to pivot.
Curse you and your wily temptations. -
tosensei8454141d@Wisecrack are you done yet?
(also: i distinctly remember the interpreter taking up less than 300 chars in total) -
Wisecrack9481139d@tosensei not doing a bf interpreter at the moment.
Writing a neural net where each node is an interpreter.
Thought occured to me that rather than experimenting with different loss functions and divergences, and architectures, and non-linear ops, why not let the network do that for you?
If all that matters is the final loss, whether the network is accurate and precise, why not let everything else be decided internally?
The most common problem with neural nets is they converge, usually below the ultimate limit of the quality of the training/test/validation data.
So the thinking is if each node is an interpreter with some randomized code, that can decide what other nodes it connects to, with enough training the network will converge on its own toward efficient loss functions and non-linear functions in the process.
I'll do a write-up when I have more than scaffolding code, with some results to show for it.
Related Rants
-
sam21s8• Manager : WTF did you push, now it keeps crashing all the servers. • Me : (silent, I'm trying to speak ...
-
akifarfien4We accept that the brain is the most important organ, but really, what organ is telling you that? Fucking Bra...
-
BambuSource14My girlfriend has these :D (called Code:Deck - available here https://varianto25.com/playing-card...)
Writing a brainfuck interpreter is a lot fun: Mine does recursion within loops. I also added functions: strings, you can cheat. Stackdump(!), Exit script(*) , go to first cell (^), go to last cell(?), nulling cell (0) It parses this for example: "retoor" ^[.>]. It will dump string retoor. Explanation: the string moves ptr to sixth place. ^ will reset pointer to first. [] is a loop that executes as long there's data in current cell. The "." prints char of current cell (Number if not alpha etc). ">" moves a cell to right. [.>] will thus print until it moved to an empty cell. To move to first, I could've also used my repeater function by adding times to repeat after command: <6 moves six places to left. .>.>.>.>.>.> is also a way to print six chars. +[,.] works as the Linux program "cat". , is one char keyboard input.
Thanks for listening to my tedtalk
random
brainfuck
tedtalk
+65[.>]
challenge
retoorfuck