Live data from Hacker News

UEFI Bindings for JavaScript

codeberg.org

101–110 of 117 posts

Re: UEFI Bindings for JavaScript

#101
post #98

Earlier quoted context omitted.

> I vaguely remember hearing about someone trying to use .Net in the Windows kernel. Microsoft did that, it was called Longhorn. That release cycle was long delayed and they abandoned most of its ambitious projects, especially C# in the kernel, and the result was Windows Vista. GC was not the only reason for the failure of that project. Someone could write a book about it. A lot of it was actually more about the orga…

> I think it's possible to write a kernel with GC, and to still be judicious about memory usage with a GC language. ... but I will still afford that it is technically possible. I need to split some hairs for a bit: Do you mean what is colloquially referred to as "GC", as in the dotnet / Java / Javascript / golang "mark-and-sweep", fully-automatic style? Or do you mean other automatic memory management systems, which…

Given that we are talking about JavaScript, I meant the former.

The latter is pretty much the status quo in terms of the state of the art. Most kernels aren't built with automatic reference counting, reference counted objects are plentiful even if more manual, but the automatic part is trivial to add to a C++ code base using smart pointers for example, and things like rust or apple ARC can also do it.

I think the former (a "true" GC that can resolve cycles) could be done in a kernel, it's just not common.

I'm not well versed in this historical example, did the "lisp machine" not have a GC in its OS?

Re: UEFI Bindings for JavaScript

#102
post #58

Earlier quoted context omitted.

> 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 leve…

You'd need to write an entire hardware abstraction layer to do anything useful. There's projects that do this for microcontrollers - eg MicroPython and Espruino.

Yes, it would need support from lower level code. But then, so does C -- many things that an OS needs to do, such as installing interrupt handlers, changing the current page table pointer, jumping into a target process already in progress, etc., are not part of the C standard.

Re: UEFI Bindings for JavaScript

#103
post #73
post #71

Earlier quoted context omitted.

Pretty dang common. OS X and macOS (and maybe iOS and iPadOS, though I'm not certain) have been autocorrecting "--" into "—" for over a decade. Windows users have been using Alt codes for them since approximately forever ago: https://superuser.com/q/811318 . Typography nerds, which are likely overrepresented on HN, love both em dash and en dash, and we especially love knowing when to use each. Punctation geeks, too!…

It really is. We dash-users are the real and most important victims of the AI revolution. I hope someday our story will be told (by the machines)

Greetings, fellow human. I am Mr. Young — a real human person — from Akron, Ohio. I, too, like to use em-dashes — for clarity and sparkling style.

Re: UEFI Bindings for JavaScript

#104

Javascript is a horrible choice but I think having a scripting language for this is actually quite a good idea. If only there was a popular scripting language that didn't totally suck balls.

Paul Graham only uses computers that use Lisp in the same way. But it's so good that he keeps it to himself, it's his competitive advantage.

Re: UEFI Bindings for JavaScript

#105

Earlier quoted context omitted.

Interesting to see how many things Gary got wrong.

Funny, I've always found it interesting how "on point" it was... Granted, yeah, we never (or haven't yet) really transitioned to running "full legacy software" inside the browser, or at least it's not common place. That said, I've seen people compile Wine to wasm, Linux to wasm, and lots of other things to wasm, and run em in a browser. Many of the "fake" demos could be done for real now. The one aspect that remains…

Electron

Re: UEFI Bindings for JavaScript

#106

Earlier quoted context omitted.

Interesting to see how many things Gary got wrong.

Funny, I've always found it interesting how "on point" it was... Granted, yeah, we never (or haven't yet) really transitioned to running "full legacy software" inside the browser, or at least it's not common place. That said, I've seen people compile Wine to wasm, Linux to wasm, and lots of other things to wasm, and run em in a browser. Many of the "fake" demos could be done for real now. The one aspect that remains…

We already can execute DOS / Win 3.1 in QEMU in the browser.

Probably wouldn’t be too hard to boot Linux (under QEMU compiled for wasm), and then fire up a Windows 95 VM using QEMU TCG …

Could repeat this a few times - Inception style…

Re: UEFI Bindings for JavaScript

#107

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.

The next step would be to embed a JavaScript engine in coreboot I guess

Re: UEFI Bindings for JavaScript

#108
post #55

Can't wait for browser support for this... ;-)

webuefi has already been shipped by google for use on chromebooks. but mozilla and apple irrationally refuse to implement the standard for "security reasons"

You jest but W3C is more or less synonymous with Google nowadays.

Re: UEFI Bindings for JavaScript

#109
post #96
post #72

Earlier quoted context omitted.

⌥- produces a – as well. That's sometimes easier than typing `--` and hoping for the best.

That's an en-dash. You want to also hold shift to make it an em-dash.

oh cool —–—– ——— ——— –—––

cheers for that never even noticed

Re: UEFI Bindings for JavaScript

#110

Earlier quoted context omitted.

Funny, I've always found it interesting how "on point" it was... Granted, yeah, we never (or haven't yet) really transitioned to running "full legacy software" inside the browser, or at least it's not common place. That said, I've seen people compile Wine to wasm, Linux to wasm, and lots of other things to wasm, and run em in a browser. Many of the "fake" demos could be done for real now. The one aspect that remains…

We already can execute DOS / Win 3.1 in QEMU in the browser. Probably wouldn’t be too hard to boot Linux (under QEMU compiled for wasm), and then fire up a Windows 95 VM using QEMU TCG … Could repeat this a few times - Inception style…

Go ahead, knock yourself out.

https://copy.sh/v86/?profile=windows2000

Post reply on HN