BrainFuck Question Of The Day: The First 3 Answers Get Each A Full Upsteem From Me!

in #steemit7 years ago (edited)

Since the first post about BrainFuck was such a success, I see no other option than continuing this series. In the first post, people even responded to the question by coding their own BrainFuck piece of software.

Now, if you're here for the first time, let's get a few things straight. BrainFuck is not a random word I chose, but an actual programming language, one that can describe a complete Turing machine (like the one in Ethereum, only way less performant). It was invented in the nineties and it quickly became famous by its quirkiness and its apparent lack of usage. To make things very quick, this language has only 8 instructions (or opcodes, if you prefer):

> - move the "pointer" forward one position in memory
< - move the "pointer" backward one position in memory
, - get input from user
. - print output
+ - increase the value of the byte at the current position with 1
- - decrease the value of the byte at the current position with 1
[ - jump forward and execute the code until it meet the closing bracket
] - get back to the matching opening bracket and restart eexecution

As you can see, it's pretty basic and easy to understand, but it's also quite fun to read. Not too much fun to write code in it, though, but you'll get used to it.

The challenge is to run the code I'm going to publish below, read the question (yes, the code contains basically one question), get back here and write your answer in the comments. If you want more info on how to decode it, the first post contains some pointers, so go ahead and read it.

Here's the code for today:

++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+++++++++++>++++++++++++>+++++++++++++>++++++++++++++>+++++++++++++++>++++++++++++++++<<<<<<<<<<<<<<<<-]>>>>>>>>>>>-.+<<<<<<<<<<<>>>>>>>>>>>>>.<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>>>>>>>>>++.--<<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>>>>>+.-<<<<<<<<<<<<<<<>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<>>>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>>>>+++.---<<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>+++.---<<<<<<<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<<>>>>>>>>>>>>>+.-<<<<<<<<<<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>>>+.-<<<<<<<<<<<<<>>>>>>>>>>>>>>--.++<<<<<<<<<<<<<<>>>>.<<<<>>>>>>++.--<<<<<<>>>>.<<<<>>>>>>>>>>>>>>>+.-<<<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>>>>>>>+.-<<<<<<<<<<<<>>>>>>>>>>>>>>++.--<<<<<<<<<<<<<<>>>>>>>>>>>>>>+++.---<<<<<<<<<<<<<<>>>>>>>>-.+<<<<<<<<.

The first three answers get a full upsteem from me.

Play!


I'm a serial entrepreneur, blogger and ultrarunner. You can find me mainly on my blog at Dragos Roua where I write about productivity, business, relationships and running. Here on Steemit you may stay updated by following me @dragosroua.


Dragos Roua


You can also vote for me as witness here:
https://steemit.com/~witnesses


If you're new to Steemit, you may find these articles relevant (that's also part of my witness activity to support new members of the platform):

Sort:  

If it can find a way to handle all the spam then it will be a much larger community where the content can have bigger impact. I think that it will replace platforms like medium.

I would vote for SPAM, comment and article, as being the most annoying aspect of STEEMit right now. Maybe they will have better bots for actually doing something about it.

Got my upsteem, thanks for playing :)

Answer: Hopefully out of the beta stage! :D

Got my upsteem, thanks for playing :)

Sweet! Thank you!

Yup. That's a good answer.

I think Steemit will get there!!

I am hoping it will be even more user friendly and look more like a personal preference blog feed with built-in Twitter like following so that you can find your favorite STEEMian and see what they are up to.

I expected accounts will be up to 4 million, with about 1 million active users.

Got my upsteem, thanks for playing :)

Thanks! Interesting code

Where do you see Steemit in 2 years? At $25 per Steem....

That's great to see you continuing this post of series
i guess we already have the answers in Comment section.

On a side note...I wonder if BF could be used somehow with a binary Morse Code to send encrypted messages. Like the BF would create the KEY. But, I guess if BF can be interpreted, someone just needs to interpreted and get the key. Never mind. Forget that I posted this.

No, you may be onto something interesting... You could at least store your crypto private keys in cold-storage in something like BF but it would extremely prone to error - obviously haha

Not to get too far down the rabbit hole on this. The receiving key would actually be a mechanical encryption lock that could be set and then turned manually each hour/day to change the key. The initial sent key would have to match the receiving key. Then the message could be received and then decrypted with the matching salt for that key.

Or an enigma machine... I like it. Old is new again. A step up over cold-storage private keys and public unencrypted receiving keys.

Yes, the cylinder from the enigma machine is my inspiration.
My need is for secure messages via radio and nothing to do with cryptocurrency.

In 2 years I see steemit growing exponentially adding more users especially few celebrities who will make steemit more attractive than facebook or instagram. Thank you for sharing

Oups !! I am too late today !
Good question anyway, but very difficult to answer.

I see it growing to a few million users, with more and more content generated, with hopefully a better UI. But because of the growth I fear the rewards will become lesser and a degree of censorship being enforced. Here's hoping I'm wrong about that last part!

I see steemit with about 5 million users and maybe even bigger than reddit if growth is large enough.
I got a syntax error at first but that is since I didn't realise the code was longer haha

Coin Marketplace

STEEM 0.25
TRX 0.11
JST 0.033
BTC 64057.95
ETH 3104.17
USDT 1.00
SBD 3.90