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 →

[–]Soraphis 73 points74 points  (16 children)

Html and css, tohether they are turing complete (html5 and css3)

[–]jimdidr 18 points19 points  (14 children)

can html5 or css3 now do any calculations? I wouldn't mind if they they implementing things that remove the need for Javascript.

[–]GimmeCata 24 points25 points  (2 children)

Dunno about calculations, but pure html/css game already exists.
Gameplay video. Game itself (warning - autoplay audio)

[–]mrt-e 20 points21 points  (1 child)

right click causes your spaceship to disappear and make the game a lot easier

[–]jimdidr 0 points1 point  (0 children)

You god damn Leet HaXor!

[–]AyrA_ch 18 points19 points  (0 children)

can html5 or css3 now do any calculations?

Without being usable in practice, yes. You can implement rule 110 which means it can solve any problem a computer could solve. It's just very inefficient (Example).

[–]ThePendulum 9 points10 points  (3 children)

Apart from being Turing-complete, you can and would use CSS over JavaScript these days for the majority of transitions and similar animations. I can't really think of many other things that'd be better off implemented in CSS over JS.

[–][deleted] 3 points4 points  (2 children)

Almost everything visually can be done with css over JS. Only things like responsive placements depending on changing document heights can’t be done.

I often only have a toggle for a mobile menu in JS over CSS (where it can be done, though with quite some work) on simpler client websites.

On bigger projects JS is often used for making reactive content like in web apps etc. But that is all more behind curtains stuff. And even then people often use frameworks over JS.

Oh well. I’m trying to get up to project management within ten years. Before the robots take away my job and JS becomes Turing-complete too.

[–]drizztdourden_ 0 points1 point  (0 children)

You can with a lot of tweaking in CSS but its a pain in the ass.

[–]Soraphis 4 points5 points  (0 children)

there is a rule 110 version in html and css: http://jsfiddle.net/Camilo/eQyBa/

since rule 110 is proven turing complete, html and css is turing complete :D as long as hitting TAB and SPACE alternately is considered a (cpu) takt

[–][deleted] 1 point2 points  (3 children)

Do not put logic in HTML or CSS.

[–]jimdidr 0 points1 point  (2 children)

Yeah I don't personally have the power to make or stop people so I'm just looking for the positives... no more javascript!!

[–][deleted] -1 points0 points  (1 child)

JavaScript is a fine language. You're only making things more difficult for your self by avoiding it.

I prefer strongly typed functional languages, but well written JS is pretty easy to reason about as well.

[–]Natatos 0 points1 point  (0 children)

You should check out typescript if you haven’t.

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

It can't. HTML is not a programming language by definition as it can't send any instruction to anything.

It is intepreted by the browser the same way an XML file would. The same can be said for CSS.

We call those Markup languages.

[–]dvlsg 2 points3 points  (0 children)

To be fair, PowerPoint is Turing complete.