DEV Community

loading...

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

baenencalin profile image Calin Baenen ・1 min read

Discussion (8)

Collapse
erikwhiting88 profile image
Erik W

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
phlash909 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
jffrydsr 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
baenencalin profile image
Calin Baenen Author

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
jffrydsr 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
baenencalin profile image
Calin Baenen Author

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

Collapse
sirseanofloxley profile image
Forem Open with the Forem app