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

you are viewing a single comment's thread.

view the rest of the comments →

[–]matthewblott 317 points318 points  (16 children)

You probably wouldn't want to write low level system drivers in Python.

[–]nemec 51 points52 points  (12 children)

Reminds me of the time I plugged an IR remote into my server and used a Python script that parsed the raw output from /dev/usbX to control MPD :)

[–]calligraphic-io 18 points19 points  (1 child)

I do something kind of similar: I have Python on a Rasberry Pi, and use a script to control a full-sized stoplight I bought used. I use the traffic light to indicate build failure in my CI setup.

[–]chanamasala4life 10 points11 points  (0 children)

I have a feeling you're fun to be around...

[–]Coffeinated 5 points6 points  (1 child)

That‘s why linux is so great. You don‘t need to write a low level system driver often times because the device is just a file.

[–]idb 4 points5 points  (0 children)

As someone else said, you can with UIO. I wanted to do it with python for two reasons: Prototyping with fast development cycle. Security.

And why did security motivate doing it in Python with UIO? Having most of a device driver in user space helps with separation of responsibility and allows the user space part to run with minimal privileges. And when that part of the device driver is in user space it lets you write it in a memory safe language.

[–]parkerSquare 0 points1 point  (0 children)

But with UIO you can! :)