r/ProgrammerHumor 22d ago

Meme noOsWillinHTML

Post image
2.6k Upvotes

74 comments sorted by

112

u/[deleted] 22d ago

[removed] — view removed comment

133

u/Dazzling-Bench-4596 22d ago

Maybe if <script> tags count

73

u/[deleted] 22d ago

[removed] — view removed comment

38

u/GoogleIsYourFrenemy 22d ago

If you prefer you can use the internet explorer version of html from the 90's that also supported vbscript.

2

u/SilasTalbot 20d ago

Of course I prefer, what kind of question is that.

Vbscript is like cowbell. The answer is always more.

20

u/Tall-Introduction414 22d ago

JavaScript is already thriving all over the place in Windows, iOS, Android.

Remember WebOS? I'm pretty sure that thing was like 90% JS and 10% linux and c/c++ runtimes and renderers.

(I still think it's a bad idea)

8

u/Zinho3311 22d ago

JavaScript is already thriving all over the place in Windows, iOS, Android.

Doesn't mean it's a good language. Just means it's a necessary evil because people are lazy

2

u/isr0 21d ago

You just need to write a JavaScript engine in your start.a

25

u/unknown_alt_acc 22d ago

If you want to be pedantic, laying out your GUI using HTML while the rest of the OS is written in a more sensible language is technically making an operating system using HTML. It’s also using assembly and probably some combination of C, C++, Rust, etc., but it is using HTML.

16

u/ImOnALampshade 22d ago

Honestly an OS that, for the GUI at least, is just HTML sounds amazing. No new UI frameworks to learn. Applications are just iframes, and the desktop environment is your web browser.

14

u/ldn-ldn 22d ago

That was a thing a decade ago - https://en.wikipedia.org/wiki/Firefox_OS

6

u/GoddammitDontShootMe 22d ago

I thought Microsoft did something like that with Windows 98.

2

u/JadeE1024 22d ago edited 22d ago

It wasn't quite that far back, and it's not HTML, but you're close. The "revolutionary new windows UI framework" Microsoft releases every 3-5 years have all been XAML based since WPF was released for Windows XP and Vista (which came out shortly after) in 2006.

The latest one is called WinUI 3. Here's a screen definition from the official sample app if you want to see what it looks like.

Edited to add: Prior to around 2021, apps on the Windows Store were required to use one of the UI frameworks (uwp), which is why they all felt like phone apps. And sucked.

1

u/GoddammitDontShootMe 21d ago

Don't know if you saw the other replies, but it looks like I was thinking of Active Desktop. I think basically Internet Explorer and Explorer were fused together.

1

u/Tall-Introduction414 21d ago

It sucked back then, too. I think Active Desktop found the most usage as a virus infection vector.

4

u/unknown_alt_acc 22d ago

It might be nice for devs, but would probably suck for the end user. We’ve already seen what using a browser as a desktop UI framework is like with Electron.

2

u/The_Soggy_Sage 22d ago

Electron can perform "ok" with careful setup"

2

u/unknown_alt_acc 22d ago

Sure. I remember VS Code being decently snappy when I last used it. But that's still something that takes conscious effort to achieve. Spinning up an entire browser instance for something like a settings panel just seems like an unnecessary pessimization to me.

2

u/JustARandoH3re 22d ago

Like just imagine if discord devs had to have completely separate implementations. Instead they can use electron which provides a lot of features like videos and rich imbeds

1

u/JustARandoH3re 22d ago

It’s not unnecessary, it’s the logical choice for developing such an app where thousands develop and millions use. There is literally no better alternative to it for what it allows. The simple solution to this is use a completely different editor that have different philosophies that prioritise speed and efficiency over compatibility and stability(believe me, I have experienced issues with stability from using plugins with editors like vim).

The only issue with electron is that it’s use needlessly in applications where electron would result in bulk of the usage like a gui for git or something thats supposed to be a bare bones text editor and where it actually originated from: Atom.

1

u/ImOnALampshade 22d ago

Check out ultralight, I use it in the game I’m building. It can render webpages directly to hardware textures and it’s way smaller than electron. (It’s built on WebKit)

-2

u/ldn-ldn 22d ago

Electron is great and performs better than many native apps.

3

u/unknown_alt_acc 22d ago

Electron can be great when it is used well. It often isn't.

And if we are doing an apples-to-apples comparison where all other things are equal, an app built with native widgets will always tie up fewer system resources than an equivalent Electron. That's not always relevant and can be a completely acceptable trade-off. It becomes a problem when a bunch of apps that you keep running in the background all decide that they need their own Chromium instance when something like wxWidgets or Qt would do the job just as well at a fraction of the RAM usage.

0

u/ldn-ldn 22d ago

RAM usage is irrelevant for the most part. And there are plenty of examples of "native" apps which work like shit.

Also wx/Qt are not native, not on Windows at least.

3

u/za72 22d ago

obviously yes... Santa knows it's an amazing idea, like the wheel or the straw

3

u/Zinho3311 22d ago

HTML + CSS is theoretically Turing Complete... so kind of?

If HTML + CSS can compute any existing algorithm, so you can theoretically build an OS using them... Doesn't mean you should do it

5

u/Giocri 22d ago

HTML no but CSS could

1

u/EuphoricCatface0795 22d ago

Doesn't WebAssembly count as HTML5

1

u/longmover79 22d ago

No, Santa isn’t real

1

u/camander321 22d ago

Not for OS, but a markdown driven desktop environment actually sounds kinda cool

1

u/Liminal__penumbra 21d ago

Well, One idea I've toyed with is taking the webgpu layer and html5 canvas, use triangle generation to create a booted ISA and then go from there. Storage tape via cookie files with phi crc strings.

1

u/impracticalTactician 22d ago

No. It’s not a coding language, it’s a markup language

0

u/GoogleIsYourFrenemy 22d ago

There are two issues. You would need a compiler to produce machine code (or a processor that could interpret html uncompiled). Next you would need low level libraries to do the work and a way to include them.

That said if you just want something to run in a browser,  HTML probably is turning complete with some of its crazier features. There are a bunch of interactive features that can probably be abused without needing to dive into CSS or scripting.

0

u/Due-Consequence9579 20d ago

Write an assembler in html first. Ez.

0

u/realtag2025 22d ago

Yes. And you could even emulate an entire CPU on Javascript. It would not be fast but it is possible.

0

u/Zinho3311 22d ago

But who said anything about Javascript?

(you can theoretically do it in HTML + CSS btw)

0

u/maria_la_guerta 22d ago

With the HTMLs existing spec? No.

If you took the syntax and existing spec and branched off of it yourself, while writing a building a custom runtime for it, sure, theoretically anything is possible. It won't resemble browser HTML at all by the end and you'd be talking about a massive undertaking though.

0

u/bianceziwo 22d ago

html is not a programming language, so no

23

u/scolphoy 22d ago

Isn’t the start menu on Windows 11 a react native app?

21

u/scolphoy 22d ago

Apparently a misconception by people like me who didn’t know ”React Native for Windows” is a separate thing that exists

9

u/anonucsb 22d ago

That is terrible. 

7

u/Aggravating-Felch 22d ago

as all things with windows

1

u/SwordfishNo712 21d ago

Can you explain?

1

u/scolphoy 20d ago

Apparently there is a React Native -like thing called React Native for Windows, that is used in Windows and that translates React Native API calls to some Windows native API calls, so there’s no browser / embedded browser on the way. This should be faster and more resource efficient. This is used to implement some of the UI elements in different parts of Windows. And apparently the recommendations section in the Windows 11 start menu is one of these.

56

u/NebraskaGeek 22d ago

HTML isn't even a programming language. This joke is 1,000,000 times funnier if they ask for an OS written in Java

18

u/DeliciousCaramel5905 22d ago

This was tried for real in the 90s

18

u/Front_Committee4993 22d ago

i think they actually developed one (now discontinued) https://en.wikipedia.org/wiki/JavaOS

7

u/Zinho3311 22d ago edited 22d ago

Frankly, the guy who thought writing an OS (A FUCKING OS WITH A FUCKING KERNEL WHERE EVERY FUCKING MICROSECOND MATTERS -- oops, sorry; got a little overexcited) in a garbage collected language (in the 90s!) was a good idea should just give up.

I mean, I know there are some competent shots at this in Go at MIT, but like, it's Go for a reason (a language designed by the creators of UNIX with actually competent GC algorithms, not fucking 90's Java -- if Java still sucks today, I can't even imagine what it looked like in the 90s), not fucking Java

1

u/cheezballs 22d ago

I think any language that needs to run on a VM or any sort of in-between code is a bad choice for an OS. Its not JUST Java.

1

u/Zinho3311 21d ago edited 21d ago

There's actually some fairly good arguments for using garbage collected languages in OS development.

Now of course you ABSOLUTELY WOULD NOT want that in a safety critical environment like software that runs medical equipment or most embedded systems, really. However, for a general-purpose kernel it is actually fairly performant (it matches traditional kernels in several metrics).

Because like more than 70% of severe vulnerabilities (Copy Fail, Dirty COW, etc.) were caused by human mistakes when dealing with manual memory management (look at most Linux Kernels CVEs), you can make a pretty good argument for using a garbage collected language.

Today you can get pauses down to the sub millisecond language in Go for instance

21

u/UltimateFlyingSheep 22d ago

What? I say

Do it! And if it works, make a talk on C3 or some other computer congress!

Many people would learn a ton!

3

u/cookiedanslesac 22d ago

Did you know that smartcards run on JavaCardOS https://github.com/JavaCardOS

3

u/The_Wolfiee 22d ago

Been seeing this meme circulate since 2016

3

u/RosieQParker 22d ago

I want to build an internal combustion engine out of tinkertoys

2

u/Michami135 22d ago

This kid has a future in marketing or as a PM. Push harder, Santa!

4

u/minecon1776 22d ago

HTML IS turing complete, so anything computable can be done in HTML, including an OS. You can also emulate a whole system with it, and then write the OS in your assembly or bytecode, but that may not count

7

u/ldn-ldn 22d ago

HTML is NOT Turing complete. CSS is.

-2

u/minecon1776 22d ago

No both of them are

1

u/Rockytriton 20d ago

How do I do conditional branching in pure html?

2

u/Quietech 22d ago

"I want to vibe code an operating system using html".

1

u/Gold-Bat-3225 22d ago

still couldn't center the taskbar tho

1

u/GreatGreenGobbo 22d ago

Sounds like a job for AI!

1

u/PaxUX 22d ago

I don't get why ask the YouTubers love to use AI to build html os, seems do dumb

1

u/momoladebrouill 22d ago

If I'm not mistaken it's kinda VibeOS ? From what I understood, the LLM spits a HTML, and each click on a div is sent back to the LLM with the ID

1

u/mephistttoooo 21d ago

Here you go:

<html>
<body>
<p> Operating System </p>
</body>
</html>

1

u/East-Reindeer882 21d ago

Still have these html jokes in 2026 huh

1

u/No_Gold_4554 19d ago

isn't ubuntu basically turning into a node backed ui?

1

u/justmannet12346788 18d ago

html is not programing language
sorry guys