frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

UEFI Bindings for JavaScript

https://codeberg.org/smnx/promethee
100•ananas-dev•2h ago

Comments

edward28•1h ago
Wow, this is cursed.
monax•1h ago
I think r/unixporn will love it once it gets DOM support :^)
kijin•1h ago
Finally, we can create splash screen animations in pure CSS!
lnenad•1h ago
I think the proper term is blursed.
madduci•1h ago
But why?
monax•1h ago
It's just a silly experiment; the real endgame is to make a bootloader that is customisable using HTML/CSS/JS
magicalhippo•1h ago
Since PDFs can contain JS, presumably that should be the preferred way of modifying your boot loader.
monax•1h ago
Yeah that's the natural next step, I'll work on that next
ThrowawayTestr•1h ago
Why not?
madduci•53m ago
Because this can end very badly. It is a new surface to attack
yjftsjthsd-h•43m ago
Maybe? What's your threat model?
M95D•42m ago
Exactly! It's actually great! More ways to jailbreak stuff.
eqvinox•27m ago
Why is it a new surface? Either you can run UEFI code, or you can't. Attacking the JS interpreter itself is unrealistic IMHO, it's the poorly written JavaScript running on top of this that might open new surfaces of attack. But other UEFI code is mostly written in C or C++, so let's call that a wash?
g051051•1h ago
"Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."

Pretty neat, though.

fbnszb•1h ago
Yeah, but your [developers] were so preoccupied with whether or not they could, they didn't stop to think if they should.
redvulps•1h ago
next step is to create a UEFI TUI using react (please don't)
monax•1h ago
OMG we can use ink for that
aruametello•1h ago
you may just have casted a curse on our future motherboards, damn you
my_throwaway23•1h ago
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";
monax•1h ago
We are getting isOdd in the bootloader before GTA-IV
spiffyk•1h ago
Wait, when did I time-travel?
monax•56m ago
oops typo
p_l•1h ago
Well, there's a network stack already there, including HTTP and HTTPS on newer firmwares.
catapart•1h ago
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?

monax•1h ago
Depending on your definition of OS, yeah you could do that :)
nxobject•58m ago
Hey, when Apple transitioned from m68k to PowerPC, it took them a hell of a long time to rewrite massive parts of their OS. It's a low bar, though...
DustinBrett•28m ago
OS in JS, ok I am interested now...
asveikau•20m ago
> And, if so, does that mean that once the API has been bootstrapped, one could actually write an OS in js?

I bet somebody has done that.

https://www.google.com/search?q=os+kernel+in+javascript

Seems like a small number of hobbyists have attempted.

I've heard of people doing this with other high level languages. Basically you need enough low level code to bootstrap a VM. Once you have that, you can make the high level language decide some logic that traditionally would be in C code, like manipulating page tables or whatever.

gwbas1c•8m ago
Automatic Garbage Collection in a kernel probably won't work:

I vaguely remember hearing about someone trying to use .Net in the Windows kernel.

The big problem is garbage collection: If I remember correctly, the fact that "any" operation can fail with an out of memory exception was a huge problem. Another problem was that random pauses for garbage collections in the kernel had major stability issues.

In short, I hope that the js kernel is for amusement and education; otherwise it would need a much more advanced garbage collector then earl 2000's .Net.

bayindirh•1h ago
This project will go places. Like every silly project not intended for production. :)
faxmeyourcode•1h ago
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.

Smalltalker-80•1h ago
Can't wait for browser support for this... ;-)
monax•1h ago
Soon™
outadoc•1h ago
I love it.
bwat49•1h ago
Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should!
fenwick67•1h ago
Finally!
lioeters•57m ago
Turning in the widening gyre, the falcon cannot hear the falconer. The center cannot hold.. The old prophesy is coming true.
grougnax•55m ago
Awesome! Everything will be rewritten in JS
GranPC•49m ago
"The Birth and Death of JavaScript" is coming true after all.
marijnz0r•18m ago
I was going to post this as well! A direct link to the video: https://www.destroyallsoftware.com/talks/the-birth-and-death...
rezmason•44m ago
It begins!
dfedbeef•44m ago
Cursed
ycombinatornews•44m ago
> If this makes you grin you are probably holding a torch

Hilarious

pwdisswordfishy•41m ago
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.)
monax•40m ago
Yeah floats works
rafram•35m ago
This is incredible.
eqvinox•29m ago
> If this makes you grin, you are probably holding the torch.

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

fnimick•18m ago
Oh hey, we've reached the "Metal" stage! https://www.destroyallsoftware.com/talks/the-birth-and-death...
monax•14m ago
I'm doing my part ∠(‘-‘)
ruined•4m ago
thank u 4 ur serves
Decabytes•13m ago
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

vaylian•3m ago
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.

UEFI Bindings for JavaScript

https://codeberg.org/smnx/promethee
104•ananas-dev•2h ago•54 comments

Sleeper Shells: Attackers Are Planting Dormant Backdoors in Ivanti EPMM

https://defusedcyber.com/ivanti-epmm-sleeper-shells-403jsp
37•waihtis•1h ago•8 comments

Thoughts on Generating C

https://wingolog.org/archives/2026/02/09/six-thoughts-on-generating-c
92•ingve•2h ago•7 comments

Show HN: Algorithmically Finding the Longest Line of Sight on Earth

https://alltheviews.world
234•tombh•6h ago•88 comments

GitHub Is Down

https://github.com/
45•albelfio•4m ago•9 comments

Long-Sought Proof Tames Some of Math's Unruliest Equations

https://www.quantamagazine.org/long-sought-proof-tames-some-of-maths-unruliest-equations-20260206/
28•ibobev•1h ago•2 comments

Hong Kong pro-democracy tycoon Jimmy Lai gets 20 years' jail

https://www.bbc.com/news/articles/c8d5pl34vv0o
79•tartoran•54m ago•36 comments

Medieval Monks Wrote over Ancient Star Catalog – Particle Accel Reveals Original

https://www.smithsonianmag.com/smart-news/medieval-monks-wrote-over-a-copy-of-an-ancient-star-cat...
12•bookofjoe•5d ago•0 comments

AT&T, Verizon blocking release of Salt Typhoon security assessment reports

https://www.reuters.com/business/media-telecom/senator-says-att-verizon-blocking-release-salt-typ...
87•redman25•1h ago•13 comments

Art of Roads in Games

https://sandboxspirit.com/blog/art-of-roads-in-games/
497•linolevan•19h ago•157 comments

It's not you; GitHub is down again

https://www.githubstatus.com/incidents/54hndjxft5bx
18•MattIPv4•7m ago•4 comments

Vouch

https://github.com/mitchellh/vouch
980•chwtutha•1d ago•426 comments

Humans peak in midlife: A combined cognitive and personality trait perspective

https://www.sciencedirect.com/science/article/pii/S0160289625000649
47•Brajeshwar•2h ago•12 comments

Like Game-of-Life, but on Growing Graphs, with WASM and WebGL

https://znah.net/graphs/
45•znah•1d ago•8 comments

Discord Launches Teen-by-Default Settings Globally

https://discord.com/press-releases/discord-launches-teen-by-default-settings-globally
51•dm•1h ago•28 comments

Show HN: Browse Internet Infrastructure

https://www.wirewiki.com
88•pul•3h ago•15 comments

Matrix messaging gaining ground in government IT

https://www.theregister.com/2026/02/09/matrix_element_secure_chat/
146•rbanffy•4h ago•109 comments

Nobody knows how the whole system works

https://surfingcomplexity.blog/2026/02/08/nobody-knows-how-the-whole-system-works/
143•azhenley•10h ago•109 comments

Show HN: Printable Classics – Free printable classic books for hobby bookbinders

https://printableclassics.com
25•bookman10•4h ago•6 comments

Offpunk 3.0

https://ploum.net/2026-02-09-offpunk3.html
126•todsacerdoti•5h ago•25 comments

Roman industrial hub discovered on banks of River Wear

https://www.durham.ac.uk/news-events/latest-news/2026/01/roman-industrial-hub-discovered-on-banks...
43•andsoitis•4d ago•7 comments

AI Doesn't Reduce Work–It Intensifies It

https://hbr.org/2026/02/ai-doesnt-reduce-work-it-intensifies-it
125•swolpers•1h ago•77 comments

AirPods Pro 4 Could Feature Cameras to 'See Around You'

https://www.macrumors.com/2026/02/09/airpods-pro-4-could-feature-cameras-to-see-around-you/
7•geox•23m ago•5 comments

Safe Drinking Water Is a Basic Human Right That Texas Prisons Fail to Respect

https://truthout.org/articles/safe-drinking-water-is-a-basic-human-right-that-texas-prisons-fail-...
6•wahnfrieden•24m ago•1 comments

Show HN: Minimal NIST/OWASP-compliant auth implementation for Cloudflare Workers

https://github.com/vhscom/private-landing
28•vhsdev•4h ago•8 comments

LispE: Lisp Interpreter with Pattern Programming and Lazy Evaluation

https://github.com/naver/lispe
86•PaulHoule•4d ago•16 comments

Tessellation Kit (2016)

https://sciencevsmagic.net/tes/#0.5.0.1.aaaaaaaaa
38•surprisetalk•5d ago•3 comments

Ask HN: Do provisional patents matter for early-stage startups?

3•gdad•34m ago•1 comments

Show HN: A custom font that displays Cistercian numerals using ligatures

https://bobbiec.github.io/cistercian-font.html
141•bobbiechen•17h ago•33 comments

Every book recommended on the Odd Lots Discord

https://odd-lots-books.netlify.app/
149•muggermuch•16h ago•61 comments