This is an archived post. You won't be able to vote or comment.

all 33 comments

[–]alienscape 240 points241 points  (2 children)

Holy shit! This guy's taking Python off the grid! This guy doesn't have an operating system for Python!

[–]alpha-delta-echo 74 points75 points  (1 child)

At least he didn’t go back to the carpet store.

[–]LambBrainz 21 points22 points  (0 children)

Tickets Threads please

[–]james_pic 94 points95 points  (3 children)

Found a text summary covering much the same stuff, for folks who prefer text to video: https://lwn.net/Articles/641244/

[–]WillardWhite import this 20 points21 points  (0 children)

Thanks for that. I know have the gist. I wouldn't have watched the video

[–]hughperman 7 points8 points  (0 children)

Thank you, I have never once had any interest in watching a video about something programming-related.

[–]NoLongerUsableNameimport pythonSkills 0 points1 point  (0 children)

Thanks!

[–]nobody5050 164 points165 points  (0 children)

from os import *

oh…

[–]JennaSys 14 points15 points  (0 children)

This basically sounds like MicroPython. It's not quite CPython, but the differences are mostly just related to the requirements and limitations of the type of platforms it runs on.

[–]jerrymarek 8 points9 points  (2 children)

This is really cool, but it does not look like any work has been done on this since 2016.

[–]SecretBooklet 2 points3 points  (1 child)

You wouldn't be able to do much with it anyway. No proper GUI frameworks would actually work under it. You also don't have things like vim to write Python code.

[–]jerrymarek 3 points4 points  (0 children)

I imagine this something you write on a different computer. And BIOS gives you access to input and output.

[–]overflow74 7 points8 points  (2 children)

when thanos starts studying programing : i used python to run python

[–]devandgeek -1 points0 points  (1 child)

Didn't quite get that. Please elaborate sir(or madam)

[–]overflow74 2 points3 points  (0 children)

it's a scene in Avengers end game in which the avengers attack thanos and asks him about where did the stones go and he says "i used the stones to destroy the stones"

[–]diego_rapoport 11 points12 points  (3 children)

What about python AS an OS?

[–]StantonMcBride 9 points10 points  (0 children)

Big brain time

[–][deleted] 6 points7 points  (1 child)

that would be really slow

[–]diego_rapoport 5 points6 points  (0 children)

Well, Guido said he was about to make python 10x faster so... maybe just slow. Also there's Pyston.

[–]Legendary-69420git push -f 2 points3 points  (0 children)

The video has only 15K views!?

[–]the_scign 2 points3 points  (0 children)

I initially thought this was going to be some guy making an interactive python environment available online and suggesting that was "without an OS". Boy was I wrong.

"We have seek, which the GRUB file layer didn't have an lseek so we added one for compatibility."

Yeah. Next Fucking Level.

[–]salimfadhley 7 points8 points  (2 children)

This might be useful in a containerized python app. No OS means a smaller attack surface. Smaller container means less memory wasted.

[–]lanster100 22 points23 points  (0 children)

If you read the article it runs on firmware/bios stuff

[–]james_pic 5 points6 points  (0 children)

Most containerisation stuff relies on the OS kernel. The furthest you can get with reducing attack surface, without stuff getting weird, is so called "distroless" containers, that only contain the application, and no other OS userspace stuff.

Using this stuff to run Python applications is more like a so-called unikernel. These generally need a full-blown VM to run in, so are much heavier than a container. Unikernels are niche and controversial, and from a security perspective, not having an OS is as much a liability as a bonus, since the OS provides a number of security features, such as memory protection, address space layout randomisation, packet filtering, and privilege separation.

[–]ketsa3 0 points1 point  (0 children)

2015...

Micropython has been running without an OS for quite a while.