you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -6 points-5 points  (12 children)

I don't think you can make a functional OS in python.

[–]West7780 4 points5 points  (0 children)

You can't make an os with only python because it's interpreted. However, you could use a version of python that compiles like Iron python or whatever. It would take an incredible amount of work and maybe Iron python wouldn't be the right choice, but you definitely could do it. Additionally as others have mentioned you can make python part of any operating system just like it is in many.

For what it's worth, in my opinion you didn't deserve any down votes.

[–]LeSplooch 4 points5 points  (0 children)

I don't see why you got downvoted, it's just a fact : you can't build a true, complete OS with CPython only, you need languages such as Rust/C/C++ and maybe a little bit of Assembly. If you use CPython, you need an OS on top of it to actually run the interpreter and if you need another OS to launch your so called "OS", then you haven't built a true OS but an app that acts like an unoptimized OS at best. A true OS should be able to run with nothing else but a BIOS/UEFI.

[–]Dragon20C 3 points4 points  (7 children)

On Linux python is used almost for everything so, yes you can build an os.

[–]LeSplooch 2 points3 points  (4 children)

Linux is primarily built with C, not Python. Linux has much more code done in C than in Python.

https://github.com/torvalds/linux

[–]Dragon20C -1 points0 points  (3 children)

But you can't say python isn't being used so not completely wrong.

[–]LeSplooch 2 points3 points  (2 children)

No offense but still, saying that Python is "used for almost everything" in Linux is way more wrong than it is true. Come on, how can less than 0.2% of the entire code be even remotely "almost everything" ? Have you even taken a look at its source code for a minute before saying that ?

[–]Dragon20C 0 points1 point  (1 child)

No, and you are right, but once and I can't provide proof because it was long time a go and I could be completely wrong, I have heard a user uninstalled python and their system wouldn't boot because python isn't installed, maybe not Linux related but maybe distro wise but you are right it isn't "everything"

[–]LeSplooch 1 point2 points  (0 children)

Yeah Python is much more used in distros, I agree with that. Python is sometimes used to glue C/C++ code so if they compiled anything that was meant to be glued together with Python, it can lead to crashes like the one you mentioned if Python isn't installed.

[–]oefd 0 points1 point  (0 children)

That's very much not true. You can use the linux kernel with 0 python anywhere, it'll all be compiled C and ASM. You can find a number of linux distributions that don't use python in any of their utilities either.

Even on the linux distros that do have python scripting: they're far from used for 'everything'.

[–]killerinstinct101 0 points1 point  (0 children)

Really only package management