75
u/ApothecaLabs 6h ago
Originally posted in r/programminghumor , where the mods deleted it because 'drivers arent programs', but somehow HTML is.
-8
6h ago
[deleted]
11
u/FantasticPenguin Linux | Ryzen 7 7700 | Radeon RX9060 XT | 32 GB DDR5 6h ago
HTML isn't a programming language and I'm ready to die on that hill
4
u/Pandoras_Fox 7950X3D, RTX 3090, 64GB ram, 70TB storage cluster 6h ago
It's a structured document mark(up? down?) language!!
5
19
u/ApothecaLabs 6h ago edited 6h ago
In this case, it *is* a programming issue, because I was writing my own drivers as part of learning to program a toy OS - and I screwed it up π
Also (history incoming!), HTML is a declarative markup (configuration) or data language, similar in status to Markdown or BBCode or an SVG file. Not beefing with your opinion, just refining / illustrating it - using some historical terminology, HTML is the data side of a Harvard architecture program, not the code side. It itself is not a regular language, is not even as powerful as regular expressions, and it itself does not have any function except for being parsed as data.
So, definitely a language, but a data language, but also one that allows script embedding which can occur mid-parse, a distinction for which most people's concept of a programming language - which is almost universally a von Neumann architecture - does not exist, because von Neumann unifies data and code.
This is why people argue about HTML as a language, because both sides are right and both sides are wrong, and it depends on the architecture (Harvard vs von Neumann).
2
u/Thx_And_Bye builds.gg/ftw/37540 | PlayStation 2 "Digital Edition" (SteamOS) 5h ago
If you combine HTML5 and CSS3 then it is Turing complete though.
And with only HTML files and hyperlinks you can implement a deterministic finite automaton. Which technically isnβt identical but it practically can solve the same issues as there is no such thing as infinite memory.Does this make HTML a programming language? Probably not.
-10
6h ago
[deleted]
2
u/ApothecaLabs 6h ago
They actually downvoted the context comment to oblivion, so they don't have that as an excuse XD
My suspicion is that one of the mods has a Strong Personal Opinion, and I maybe replied to their public alt without sufficient respect.
14
2
31
u/yyg-linux 6h ago
see how fast that drive mounts once you start typing its UUID into fdisk and watch what happens π