DEV Community

Calin Baenen
Calin Baenen

Posted on

Is it possible to make an OS using VERY DUMB languages like TS/JS, Python, etc...?

Top comments (8)

Collapse
 
erikwhiting88 profile image
Erik

in the Python example, a lot of its "systems" capabilities are provided via C in some way or another. in other words, any hardware manipulation you'd think you were doing with Python would actually be happening in C (although I guess you could say the same about C and assembly so where do you draw the line?)

this wiki might be interesting to you:
wiki.osdev.org/Languages

Collapse
 
phlash profile image
Phil Ashby

You might need to define 'dumb' (eg: C is particularly close to the machine, is that dumb?) and 'OS' (eg: a bootloader, kernel, browser-based GUI OS, ...?) more specifically to get useful answers 🙂

I like the OS dev Wiki as a starting point for these sorts of questions.

Collapse
 
desirtechnologies profile image
Jeffrey Desir

if you understand the application layers between the hardware and cpu or controllers, you can write an OS program in emojiscript if you want (so long as you're willing to bootstrap all working parts).

Collapse
 
calinzbaenen profile image
Calin Baenen

What's EmojiScript? How do I use it? And what exactly does it mean to bootstrap all working parts?
Like I have to make a bootstrap for them, or...?

Thanks for your answer.
Cheers.

Collapse
 
desirtechnologies profile image
Jeffrey Desir

EmojiScript is an esoteric programming language I've scoped online, my point was if you were willing to write the target compiler necessary to write all the logic necessary, you could even write an OS in that. This question implies a few mis-guided assumptions about (turing-complete) programming languages and machine-level language specifications (assembly) - they're the same. Code is data is code. If you can write a compiler or transpiler/library to convert say extended Ruby code into machine-level code, and it WORKS, then you win the game potter. just my two cents, could be wrong but I've been down this rabbit hole before.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

There is already OS in JavaScript, though.

Collapse
 
calinzbaenen profile image
Calin Baenen

Really? How can I started making my own in JS?

Collapse
 
sirseanofloxley profile image
Sean Allin Newell

Yep.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.