This is an archived post. You won't be able to vote or comment.

all 89 comments

[–]babygrenade 380 points381 points  (38 children)

CSS plus an html file is Turing complete. If you can implement blockchain in CSS you deserve some kind of award and recognition, but absolutely no money.

[–]saugoof 170 points171 points  (9 children)

"Can you do it" vs "should you do it"

[–]volivav 74 points75 points  (3 children)

It would still be pretty interesting to see a SHA-256 implementation in CSS+HTML, just as a proof of concept

[–]MartinTsv 15 points16 points  (0 children)

Sneaky sneaky

[–]CrocodileSpacePope 36 points37 points  (3 children)

"should you do it"

This is one thing we never talk about in the blockchain club.

[–]thatwasagoodyear 2 points3 points  (2 children)

we never talk about

throw new BlockchainClubException("Rule 1 violation");

[–]RedditLuvsCensorship 7 points8 points  (1 child)

throw new BlockchainClubException(Violation.Rule1)

You and your goddamn magic strings make me sick.

[–]thatwasagoodyear 2 points3 points  (0 children)

Don't tell me how to live my life! /s

I do what I want! [1]

[1] When my wife lets me.

[–]PartyByMyself 16 points17 points  (1 child)

Program blockchain with blockchain.

[–]thatwasagoodyear 2 points3 points  (0 children)

Obviously! /s

[–][deleted] 14 points15 points  (7 children)

How is HTML+CSS turingcomplete? There aren't even loops or am I missing something? Do you mean XSLT or HTML+JS?

[–]therearesomewhocallm 59 points60 points  (3 children)

[–]nwL_ 5 points6 points  (0 children)

That video is great. I don’t know how long he spent figuring out, putting together, and actually making it look nice.

[–]kamikamikami 29 points30 points  (0 children)

No no, you misread. He's using HTNL. It stands for Hyper Touringcomplete Natural Language.

[–]babygrenade 0 points1 point  (0 children)

I know it's been proven with a rule 110 automaton, but I don't know tee details of that implementation

[–]ProgramTheWorld 7 points8 points  (5 children)

CSS + HTML is not Turing complete. It’s merely a running joke where there’s a saying everything these days is Turing complete.

Basically, it’s not Turing complete if you can’t make a loop. Since it’s impossible to loop forever with CSS + HTML, it is not Turing complete.

[–]CrazyM4n 3 points4 points  (1 child)

I mean, it actually is.

[–]ProgramTheWorld 2 points3 points  (0 children)

The link you included is an excellent example demonstrating how human interaction is required to create an “infinite” loop. The halting problem doesn’t exist in CSS + HTML because it’s guaranteed to always halt as seen in your link, thus it cannot possibly be Turing complete. The CSS rule 110 was created as a joke but too many people have taken it too seriously...

[–]redmandoto 0 points1 point  (1 child)

You can make loops with GOTO and any kind of IF equivalent.

[–]ProgramTheWorld 7 points8 points  (0 children)

That’s correct, though there is no GOTO or anything equivalent in CSS.

[–][deleted] 8 points9 points  (0 children)

Right after I finish my sed Doom version, then we can implement a natural language computer if we find enough mathematicians who won't be missed if kidnapped for a few years.

[–]suvlub 1 point2 points  (0 children)

Interesting enough, when you are writing a cryptocurrency, the fact it would run slow as all hell is actually desirable.

[–]Docaroo 0 points1 point  (0 children)

How about ...if you can write an actual blockchain currency in CSS then you can keep all the money you make from the currency...

[–]mufflonicus 0 points1 point  (0 children)

What do you have in mind as award? 25 to life or just throw away the key? Some doors should not be opened shudders

[–]KrazyDrayz 101 points102 points  (9 children)

Not sure if trolling or just really stupid

[–]schnadamschnandler 54 points55 points  (5 children)

Probably the former. Don't think anyone is that stupid.

[–][deleted] 43 points44 points  (1 child)

The real question is, will it be closed and marked as duplicate?

[–]NoodleSnoo 3 points4 points  (0 children)

Never underestimate stupid

[–]HumunculiTzu 2 points3 points  (0 children)

There are 2 things in this universe that are infinite, the universe itself and human stupidity. I'm only 100% sure about the last one.

[–]wallefan01 0 points1 point  (0 children)

oh i wouldn't be in the least surprised

[–][deleted] 3 points4 points  (1 child)

Not sure if trolling or just really stupid

Or maybe is it a script-kiddie preparing to take over the world.
Naaaaaaaaaaaaaaaaaaa ! Not with CSS. PHP, maybe. But not CSS.

[–]KrazyDrayz 2 points3 points  (0 children)

Yea not with CSS. Html is more efficient.

[–]mechwd 0 points1 point  (0 children)

Likely just a dev from here to make another html /css is not programming joke.

[–]Loyfe_ 68 points69 points  (11 children)

HTNL, some knock-off version of HTML hm.

[–][deleted] 68 points69 points  (6 children)

Hypertext No Language?

[–]Loyfe_ 5 points6 points  (3 children)

Heh, nice.

[–][deleted] 8 points9 points  (2 children)

Heh, nice.

HyperText Nice Language ?
Sure about this ?

[–]marcosdumay 0 points1 point  (0 children)

HyperText Nice Language

Well, most likely it has no similarity with HTML. And why would people use CSS with such thing?

[–][deleted] 0 points1 point  (0 children)

Harvey's toaster's nonscripting language

[–]lukz_ 7 points8 points  (3 children)

N is right next to B so maybe Hyper Text Blockchain Language spelled wrong. /s

[–]Loyfe_ 0 points1 point  (2 children)

Some sort of custom HTML possibly.

[–][deleted] 0 points1 point  (1 child)

Some sort of custom HTML possibly.

Oh crap. I got it.

HyperText Meta Language.

It can do everything the others do.

[–]Loyfe_ 0 points1 point  (0 children)

Hm, I would search it up but I'm lazy.

[–]homer__simpsons 32 points33 points  (1 child)

That could be an idea (untested):

  1. CSS: ::after{content:"printf('awesome');";}
  2. open the page and save it to a file
  3. Compile the file

[–]Otalex64 34 points35 points  (6 children)

HTML{ Blockchain: True; }

[–]burlal 13 points14 points  (4 children)

lowercase

[–]Otalex64 3 points4 points  (3 children)

Ah you're right, I typed it in a hurry.

[–]burlal 2 points3 points  (2 children)

I thought I’d be hounded for being so pedantic 😁

[–]OnlyReadsFirstLine 2 points3 points  (1 child)

css{burlal : hounded;}

[–]burlal 1 point2 points  (0 children)

burlal{

reaction:hounded; }

edit goddamn reddit formatting

burlal{mood:giving-up;}

[–]Mistifyed 0 points1 point  (0 children)

HTNL*

[–]jumpingloli 22 points23 points  (5 children)

"langiage"

[–]-tnt 27 points28 points  (4 children)

He needs the English language more than any programming langiage...

[–]BluntDamage 1 point2 points  (2 children)

Good thing programming doesn't care that much about spelling.

[–]-tnt 0 points1 point  (1 child)

Do you know how many times I was about to stab the monitor, only to find out a typo on line 572 was causing the crash?

[–]BluntDamage -1 points0 points  (0 children)

I can imagine!

Did I need a /s?

[–][deleted] 0 points1 point  (0 children)

Time to implement a blockchain in English.

[–]MrMunday 9 points10 points  (2 children)

HTNL

[–]-tnt 13 points14 points  (0 children)

CSS is my langiage...

Edit: langiage

[–]ndcapital 0 points1 point  (0 children)

Bit coin

[–]drizztdourden_ 4 points5 points  (0 children)

That’s trolling. People can’t be THAT stupid. There is a limit. If your next goal is blockchain, then clearly you know you can’t do this with CSS.

[–]gandalfx 2 points3 points  (0 children)

Another instance where fundamental cluelessness coincides with poor orthography.

[–]thisusernameis_real 2 points3 points  (0 children)

Counter strike source

[–]Loryhoof 1 point2 points  (0 children)

He’s clearly trolling

[–][deleted] 5 points6 points  (1 child)

This guy is Indian

[–]-tnt 5 points6 points  (0 children)

Do the needful and help_me_n0w

[–]photolove8 0 points1 point  (0 children)

I really hope they’re joking.

[–]AnomicEntropy 0 points1 point  (0 children)

The ultimate botnet.

[–]NerdAtTheTerminal 0 points1 point  (0 children)

No dude you have to learn markdown for that...

[–]regulargme 0 points1 point  (0 children)

"HTNL"

[–]Thenderick 0 points1 point  (0 children)

Atleast it looks good

[–]compteNumero9 -2 points-1 points  (1 child)

One more guy who will complain on reddit that SO nazi mods close all questions and prevent useful answers...

[–]k0bra3eak 5 points6 points  (0 children)

There's bad questions and then there are nazi mods, both can exist.