45 comments

[ 2.5 ms ] story [ 50.0 ms ] thread
"Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."

Pretty neat, though.

Yeah, but your [developers] were so preoccupied with whether or not they could, they didn't stop to think if they should.
next step is to create a UEFI TUI using react (please don't)
Considering how bad some of the Gamer-ish firmware UIs are now, it might be an improvement.
Just today I have found out there is a CLI TUI framework that uses React.

It's what Claude Code is using.

I presume you'll add the network stack next, so that I can use my favourite, most useful packages?

  import isOdd from "https://unpkg.com/is-odd";
Can someone break this down for me? Looks like it's using... C? to load a js interpreter which bootstraps an API around all UEFI features? Do I have that right?

And, if so, does that mean that once the API has been bootstrapped, one could actually write an OS in js? Or are there other abstractions that would need to be migrated first?

This project will go places. Like every silly project not intended for production. :)
Love this. An example of complete and total dominion over the machine. Great quote here too lol

> Prometheus stole fire from the gods and gave it to man. For this he was chained to a rock and tortured for eternity.

Talking about quotes, I also absolutely loved this note at the end of the readme:

> If this makes you grin, you are probably holding the torch.

The next step would be to embed a JavaScript engine in coreboot I guess
Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should!
Turning in the widening gyre, the falcon cannot hear the falconer. The center cannot hold.. The old prophecy is coming true.
Awesome! Everything will be rewritten in JS
"The Birth and Death of JavaScript" is coming true after all.
> If this makes you grin you are probably holding a torch

Hilarious

Does it manage to support floats? I am not sure if those can be safely used in the UEFI environment. (I recall GRUB’s build of Lua being integer-only, and Linux avoiding the use of floating-point arithmetic in kernel mode, but I don’t remember the reason.)
This is incredible.
> If this makes you grin, you are probably holding the torch.

What if it makes me recoil in horror? screams into the void

I don't know if it's only me, but did this guy... Did this guy make a huge mistake?

I think he was trying to bend reality with words. I can see many apps that are running in electron on my laptop, each consuming 300MB+ (e.g. Spotify), while many other apps are written in native Swift for example, especially with the help of AI, giving the best performance possible...

Edit.

And prices of RAM nowadays...

Interesting to see how many things Gary got wrong.
I’m always amazed and slightly envious of what programming languages with large developer bases can do. I mean if a language is Turing complete it can do anything, but JavaScript takes this to the extreme.

Mind you I never said anything about quality or performance, obviously doing everything in JavaScript comes with it’s own issues but if you were to say that someone got JavaScript running in the Linux kernel as a POC I wouldn’t even be surprised

Could this be used as a learning tool? Rebooting the computer takes so much more time compared to reloading the browser tab. And you probably can't brick your computer.