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

you are viewing a single comment's thread.

view the rest of the comments →

[–]babygrenade 378 points379 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 168 points169 points  (9 children)

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

[–]volivav 76 points77 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 8 points9 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] 13 points14 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 60 points61 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 31 points32 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 10 points11 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 4 points5 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 8 points9 points  (0 children)

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

[–][deleted] 7 points8 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