this post was submitted on 25 Jun 2024
248 points (94.0% liked)

Programmer Humor

18206 readers
1335 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
[–] [email protected] 71 points 3 days ago (17 children)

Good thing that this isn't actually possible...

[–] [email protected] 89 points 3 days ago (10 children)

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

[–] [email protected] 15 points 3 days 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?

[–] [email protected] 12 points 3 days ago* (last edited 3 days 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?"

[–] [email protected] 3 points 3 days ago

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

load more comments (7 replies)
load more comments (13 replies)