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.)
UEFI Bindings for JavaScript
41–50 of 117 posts
Re: UEFI Bindings for JavaScript
#42Re: UEFI Bindings for JavaScript
#43What if it makes me recoil in horror? screams into the void
Re: UEFI Bindings for JavaScript
#44Can 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?
Re: UEFI Bindings for JavaScript
#45Earlier quoted context omitted.
Why not?
Because this can end very badly. It is a new surface to attack
Re: UEFI Bindings for JavaScript
#46Can 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?
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.
Re: UEFI Bindings for JavaScript
#47Re: UEFI Bindings for JavaScript
#48"The Birth and Death of JavaScript" is coming true after all.
Re: UEFI Bindings for JavaScript
#49Oh hey, we've reached the "Metal" stage! https://www.destroyallsoftware.com/talks/the-birth-and-death...
Re: UEFI Bindings for JavaScript
#50Mind 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