this post was submitted on 25 Jun 2024
258 points (93.6% liked)

Programmer Humor

19572 readers
1533 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

Finally i'm gonna be able to contribute!

you are viewing a single comment's thread
view the rest of the comments
[–] morrowind@lemmy.ml 94 points 4 months ago (2 children)

Don't tempt fate. There are already two kernels written in javascript

[–] spacecadet@lemm.ee 58 points 4 months ago (3 children)

Why would God allow this to happen?

[–] Chadus_Maximus@lemm.ee 43 points 4 months ago

To punish us for the sin that is inventing JavaScript.

[–] Barbossa404@feddit.de 28 points 4 months ago (1 children)

Why do you think God stays in heaven, in fear of what He created?

[–] davidgro@lemmy.world 8 points 4 months ago (1 children)

For the benefit of any of Today's 10,000 I just want to point out that this is a reference to a quote from a movie.
The same movie stars Danny Trejo as Machete.
This movie is Spy Kids 2.

[–] theRealBassist@lemmy.world 3 points 4 months ago

For the benefit of any of Today's 10,000

Haven't seen that referenced in a hot minute lol

Relevant xkcd: https://xkcd.com/1053

[–] ZeroHora@lemmy.ml 6 points 4 months ago (1 children)
[–] camr_on@lemmy.world 8 points 4 months ago* (last edited 4 months ago)
[–] Ephera@lemmy.ml 17 points 4 months ago (2 children)

How? You'd need to compile it down to machine code somehow, for the processor to have any clue how to run it. And you'd need some custom library with custom compile instructions, to be able to control memory allocations, memory addresses etc..

I did a quick search and found two operating systems written in JS, both of which cop out when it comes to the kernel. Did you maybe mix it up with those?

[–] frezik@midwest.social 13 points 4 months ago* (last edited 4 months ago)

There's almost always at least a little ASM sprinkled into any kernel, so that's not a big deal.

OTOH, there is the factor of "you know how Chrome takes up 2GB per tab? What if that was a whole OS?"

[–] morrowind@lemmy.ml 3 points 4 months ago

Maybe I did, I haven't looked any of them carefully