[ This program prints "Hello World!" and a newline to the screen; its
length is 106 active command characters. [It is not the shortest.]
This loop is an "initial comment loop", a simple way of adding a comment
to a BF program such that you don't have to worry about any command
characters. Any ".", ",", "+", "-", "<" and ">" characters are simply
ignored, the "[" and "]" characters just have to be balanced. This
loop and the commands it contains are ignored because the current cell
defaults to a value of 0; the 0 value causes this loop to be skipped.
]
++++++++ Set Cell #0 to 8
[
>++++ Add 4 to Cell #1; this will always set Cell #1 to 4
[ as the cell will be cleared by the loop
>++ Add 2 to Cell #2
>+++ Add 3 to Cell #3
>+++ Add 3 to Cell #4
>+ Add 1 to Cell #5
<<<<- Decrement the loop counter in Cell #1
] Loop until Cell #1 is zero; number of iterations is 4
>+ Add 1 to Cell #2
>+ Add 1 to Cell #3
>- Subtract 1 from Cell #4
>>+ Add 1 to Cell #6
[<] Move back to the first zero cell you find; this will
be Cell #1 which was cleared by the previous loop
<- Decrement the loop Counter in Cell #0
] Loop until Cell #0 is zero; number of iterations is 8
The result of this is:
Cell no : 0 1 2 3 4 5 6
Contents: 0 0 72 104 88 32 8
Pointer : ^
>>. Cell #2 has value 72 which is 'H'
>---. Subtract 3 from Cell #3 to get 101 which is 'e'
+++++++..+++. Likewise for 'llo' from Cell #3
>>. Cell #5 is 32 for the space
<-. Subtract 1 from Cell #4 for 87 to give a 'W'
<. Cell #3 was set to 'o' from the end of 'Hello'
+++.------.--------. Cell #3 for 'rl' and 'd'
>>+. Add 1 to Cell #5 gives us an exclamation point
>++. And finally a newline from Cell #6
- 9 Posts
- 1.36K Comments
Petter1@lemm.eeto DACH - Deutschsprachige Community für Deutschland, Österreich, Schweiz@feddit.org•Warum das AfD-Gutachten immer noch nicht vorliegt: Der Verfassungsschutz ist nicht allein schuld10·6 天前Oder, zeitgemäss, „Signal chat hat sich einfach gelöscht 😢“
Petter1@lemm.eeto Technology@lemmy.world•For Sale on Facebook: Fraudulent Uber Driver Accounts.English12·6 天前No, they doing it because American capitalism is asocial
Petter1@lemm.eeto Technology@lemmy.world•Trump reportedly suspends Nvidia H20 export ban plan after $1 million dinner with Jensen HuangEnglish7·10 天前How can people support such corruption…
Petter1@lemm.eeto Technology@lemmy.world•Google give a 71% discount to US federal agencies for Workspace, as it looks to capitalize on the Trump administration's cost-cutting push.English4·10 天前Yea, I would prefer that, a state founded agency which has the order to set up FOSS workspaces.
The tech is already here, all it needs is courage to ditch mega tech coorp.
Everything government must be transparent, in my opinion
Petter1@lemm.eeto Technology@lemmy.world•Meta whistleblower Sarah Wynn-Williams says company targeted teens with advertisements based on their ‘emotional state’English42·10 天前Is that not what is happening right now?
Petter1@lemm.eeto Technology@lemmy.world•Meta whistleblower Sarah Wynn-Williams says company targeted teens with advertisements based on their ‘emotional state’English1·10 天前IG is like the most important place for teens right now…
If you issue a certificate, you proof ownership via * challenge–response test that is validated by each node. If x% (like eg. 70%) of nodes agree that the test is passed, the block counts as validated and can be placed onto the chain. (Each node places the block on their chain and the hash must be same as hash of chain of majority of nodes)
How about a Blockchain or Directed Acyclic Graph (DAG) out of SSL certs 🤔
I think that would finally be a use case for that tech, lol
Petter1@lemm.eeto Technology@lemmy.world•Shopify CEO Tobi Lütke tells employees to prove AI can’t do the job before asking for resources.English3·11 天前It is literally one of the jobs, AI is best fitted to kill 🤭
It is all statistics, just like LLMs
Petter1@lemm.eeto Technology@lemmy.world•Framework “temporarily pausing” some laptop sales because of new tariffsEnglish1·11 天前And pay tariffs for chips etc still coming from Taiwan? (There are not enough chip fabs in US so that US still will be dependent on Taiwan just paying US government some premium. And the few chips coming from US will just match prices of imported chips)
Or they are just not educated enough on how one does critical logical thinking and not educated enough about the philosophy of scientific thinking.
Wait, I guess critical logical thinking is part of scientific thinking 🤔
I refuse to believe that most people are stupid.
Hope you agree that not well educated is not the same as stupid.
Yea, but you gotta educate the next generation and not only children are affected by this addiction.
Meaning if you ban for children, they have no way to educate themselves and when they suddenly get access, the addiction hits even harder.
Some rehab may be required, but forced rehabs generally don’t work, you have to get the affected person wanting to go.
First of all, how is not giving and not giving too much the same?
Kids aren’t stupid, explain why it is bad/dangerous, best before first install of tiktok. And TikTok is not the only place in the web with shorts, hell even twich has them now. You need to educate your kids before letting the ho into WWW alone.
With a good education, you can get your child rejecting too much sugar on their own, btw.
Petter1@lemm.eeto Technology@lemmy.world•Revealed: The shocking far-right agenda behind the surveillance tech used by ICE and the FBI.English131·12 天前This is why one should not have voted for a convicted felony…
It just gives the signal that laws are only for non-white and non-male people and that white men can do whatever they want.
Petter1@lemm.eeto Technology@lemmy.world•"It's Silencing" - Albania Shuts Down TikTok.English41·13 天前Prohibition has never really worked for any addictive thing so far. What makes you think that it will work for social media?
In my opinion, education is the better investment.
The ones IDF has already shot and bombed to death?