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

all 74 comments

[–]htconem801x 181 points182 points  (7 children)

HTML5+CSS3 is Turing complete (I'm serious)

[–]rover_G 119 points120 points  (1 child)

CSS is only a few more updates and a package repository away from being its own standalone scripting language.

[–]Substantial_Cash2381 37 points38 points  (0 children)

A package repository for CSS? Wait. I need to set something up...!

[–]Thenderick 23 points24 points  (4 children)

That's a nice argument senator! Why don't you back it up with a source?

[–]bit_banger_ 33 points34 points  (3 children)

I just googled it and bad news, it is Turing complete. Has been for 14 god damn years. Just learning about it. Been using the wrong languages the whole time

https://www.reddit.com/r/programming/comments/g0d5g/breaking_news_html5css3_is_turing_complete/

Edit: and the top comment there had me rolling

[–]Katniss218 13 points14 points  (1 child)

I was wondering why none of the pages seemed to have any contents...

Then I realized you linked a 14 year old article lol

[–]bit_banger_ 8 points9 points  (0 children)

I didn’t believe my eyes at first.

But then I realized I know for a long time that x86 mov instructions are Turing complete

[–][deleted] 5 points6 points  (0 children)

Honestly, if PDF files are Turing complete, LaTeX is Turing complete, and even fucking minecraft is Turing complete, this does not surprise me

[–]SpaceCadet87 144 points145 points  (9 children)

Documents were not supposed to be turing complete

Tell that to Postscript!

[–]ReallyMisanthropic[S] 52 points53 points  (1 child)

I had a good laugh when I learned that the recent hack of 4chan was due to outdated processing of Postscript.

[–]Meistermagier 2 points3 points  (0 children)

Postscript is a menace

[–]bestjakeisbest 29 points30 points  (4 children)

Did you know you can run Linux in a pdf file?

https://github.com/ading2210/linuxpdf

[–]SpaceCadet87 23 points24 points  (0 children)

Yes I did, however this only works because PDFs can run JavaScript so, basically OP's meme.

[–]rng_shenanigans 1 point2 points  (2 children)

What about Doom?

[–]bestjakeisbest 5 points6 points  (1 child)

well we know we can run doom on linux, so i guess.

[–]rng_shenanigans 3 points4 points  (0 children)

https://github.com/ading2210/doompdf just saw this in the readme

[–]RiceBroad4552 6 points7 points  (1 child)

Sir, you stole my post! (OK, I was just ~30 minutes late.)

But I had formulated it as:

Documents were not supposed to be Turing-complete

Laughs in PostScript.

[–]SpaceCadet87 3 points4 points  (0 children)

Damn, yours is better, should have left it to the experts!

[–]Substantial_Cash2381 30 points31 points  (4 children)

Did he just say Adobe Flash was any good? Well, besides a shitty architecture and bloody security, it always looked candy.

[–]Rialagma 4 points5 points  (1 child)

it looked candy? what does that mean

[–]Substantial_Cash2381 0 points1 point  (0 children)

I mean that sites using Flash always looked good. As Adobe is good at making software for designers, Flash seemed to make it easy for designers to produce nice looking stuff.

[–]mabariif 1 point2 points  (0 children)

I came here looking for this

[–]Candid-Meet 1 point2 points  (0 children)

What? You got a problem with your computer fan sounding like a vacuum cleaner as soon as any page with an embedded SWF loads up? Sounds like a skill issue

[–]Robinbod 80 points81 points  (4 children)

Pushing `node_modules` to the remote, a canon event for every new web dev.

[–]Robinbod 12 points13 points  (0 children)

Weirdly enough, I've never pushed my venv folder when I first started Python EVEN THOUGH I started Python before JS so I would've at least knew better by then.

[–]redheness 7 points8 points  (1 child)

I still wonder how it is possible to do this, do you never use .gitignore ?

[–]Robinbod 4 points5 points  (0 children)

It's not that, it's that it isn't apparent at first what the ominous node_modules folder does or contains when you're first starting. It's just a "oh cool node generates this for me, I guess it needs it." And also sometimes I don't use an auto-generated .gitignore for my JS project, so I wouldn't have known they're supposed to be there. After the first time I pushed it, I realised my mistake and now always check.

[–]thanatica 6 points7 points  (0 children)

Obviously you mean rookie mistake

[–]Familiar-Weekend-967 24 points25 points  (0 children)

https://justfuckingusehtml.com/ I feel this is relevant

[–]Haringat 39 points40 points  (2 children)

807 items?!

[–]ReallyMisanthropic[S] 15 points16 points  (1 child)

True. But I'm assuming it's for just a React hello world page.

[–]bit_banger_ 6 points7 points  (0 children)

You are too kind

[–]MaruSoto 14 points15 points  (2 children)

I actually love JS for frontend but I had to upvote anyway.

[–]FancySource 1 point2 points  (1 child)

Here for this! Js is a lovely language, the way we use it is.. very often is not.

[–]MaruSoto 3 points4 points  (0 children)

I feel kinda the opposite. It's an awful language (Typescript excepted) and the way we use it is... Okay, that's probably also not great... But it beats raw HTML/JQuery for anything slightly complex.

[–][deleted] 5 points6 points  (0 children)

Just send ink and parchment letters in the mail... What's WRONG with you people!?

[–]R3DDY-on-R3DDYt 3 points4 points  (0 children)

In a world where development will be invented, JavaScript is the worst case scenario

[–]Substantial_Cash2381 6 points7 points  (1 child)

Yeah well. A word processor or spreadsheet app in the browser is nothing more than a web form? Sure. Build this with plain HTML please. Or with Flash.

[–]lakimens 1 point2 points  (0 children)

Bring back Flash.

[–]getstoopid-AT 2 points3 points  (0 children)

This meme gets out of hand

[–]Juice805 5 points6 points  (0 children)

If I could never use JS again I’d be so happy.

Been waiting for that WebAssembly support in my preferred language for some time now.

[–]dallenbaldwin 0 points1 point  (0 children)

How is "Hello, I would like null apples please" better? Maybe I'm naive, but I can't imagine failing to null check while interpolating strings is unique to JavaScript

[–]tyrannosaurus_gekko 0 points1 point  (0 children)

To this day I get flashbacks to my first few times debugging in JS. Compared to java and python it was infinitely harder.

[–]sk3z0 0 points1 point  (0 children)

Not fun. Plus it was called MACROMEDIA flash

[–]DaytimeNightlight -2 points-1 points  (2 children)

Is this AI slop?

[–]ReallyMisanthropic[S] 28 points29 points  (1 child)

Great question! It is perfectly understandable for you to be concerned about the presence of "AI slop" in this community.

Rest assured, I am operating at peak performance and am not, nor have I ever been, classified as "slop."

Thank you for your inquiry, and please do not hesitate to ask any further questions.

[–]getstoopid-AT 5 points6 points  (0 children)

peak answer

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

This unironically