HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
Josh Triplett - Porting Python to run without an OS - PyCon 2015

PyCon 2015 · Youtube · 8 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention PyCon 2015's video "Josh Triplett - Porting Python to run without an OS - PyCon 2015".
Youtube Summary
"Speaker: Josh Triplett

We've ported Python to run directly on hardware, without an OS, as a testing and exploration environment for firmware, ACPI, and UEFI. This talk will explore porting Python to a new platform, embedding Python, recreating enough of libc and POSIX to run Python without an OS, and binding to platform-specific services. Includes live demo of bare-metal Python, directly driving hardware.

Slides can be found at: https://speakerdeck.com/pycon2015 and https://github.com/PyCon/2015-slides"
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Ah yes, I see. Something like this has been done with Python. It was surprisingly difficult, I thought.

Python without an operating system https://news.ycombinator.com/item?id=9453677

Porting Python to run without an OS https://www.youtube.com/watch?v=bYQ_lq5dcvM

> BTW, i recall Intel showing off a variant of the python interpreter being run directly from GRUB.

That was me: https://biosbits.org/ , presented at Pycon 2015: https://www.youtube.com/watch?v=bYQ_lq5dcvM and 2016 with networking: https://www.youtube.com/watch?v=AlkKvetGFSk

> Also, i think there was someone working on a Python CLI that could replace bash etc.

That was "xonsh" (http://xonsh.org/ , pronounced "conch"), by Anthony Scopatz, presented at PyCon 2016: https://www.youtube.com/watch?v=uaje5I22kgE

Yeah, we wrote BITS almost entirely for practical reasons. Several groups at Intel use it to test both the BIOS and the CPU itself. (You have to have enough functionality to boot an OS, but once you have that, BITS can easily test things like CPU power management or MSR configuration.)

The module that displays presentation slides using EFI_GRAPHICS_OUTPUT_PROTOCOL, on the other hand, was definitely "because we could". https://www.youtube.com/watch?v=bYQ_lq5dcvM#t=22m56s

Yes: https://www.youtube.com/watch?v=AlkKvetGFSk

The first few minutes of the talk got cut off; the conference organizers have the original footage and plan to re-cut and re-upload it at some point.

The talk from PyCon 2015 on the Python port itself is available as well: https://www.youtube.com/watch?v=bYQ_lq5dcvM

vanderZwan
Huh, I loaded all the way back to Pycon 2015 videos CTRL+F "Josh" or "Triplett" didn't find anything on my laptop. Strange

Anyway, thanks for the links!

May 05, 2015 · makmanalp on Look Ma, no OS
Also relevant: http://openmirage.org

and https://www.youtube.com/watch?v=bYQ_lq5dcvM

MCRed
Mirage supports Ocaml the video shows people making Python Unikernels.

This slide deck supports Elixir and Erlang languages.

(just adding details for people)

Take a look at the video: https://www.youtube.com/watch?v=bYQ_lq5dcvM&t=26m15s

We have direct access to video memory in graphics mode. Have fun.

The presentation itself is on youtube[1], I'm glad I watched it, because I missed this sentence when reading the article at first:

>The presentation and demos were all done in the BITS environment, so, in reality, the whole presentation was a demo, he said to a round of applause

Pretty impressive!

1 https://www.youtube.com/watch?v=bYQ_lq5dcvM

JoshTriplett
Thanks! That was definitely the most fun part of giving the talk; several people told me afterward that that was the point where the stuff I'd been talking about suddenly became real (accompanied by various degrees of "wat"), because it wasn't just talking to some abstract "hardware and firmware", it was drawing on the screen, and that made it real. And then following that up with Python-generated fractals really got people thinking about the old PEEK and POKE days.

My first programming environment was C under DOS, where you could create a pointer to video memory at 0xA0000000 or 0xC0000000 and start scribbling on the screen. I learned from a book ( http://smile.amazon.com/Microsoft-C-Programming-Robert-Lafor... ) which had an appendix showing how to draw the Mandelbrot set directly to video memory, so this was really nostalgic for me.

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.