Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  has anybody made a python interpreter yet?
« previous next »
  • Print
Pages: [1]

Author Topic: has anybody made a python interpreter yet?  (Read 1815 times)

Offline XPGeek

  • Member
  • *
  • Posts: 3
has anybody made a python interpreter yet?
« on: October 15, 2013, 10:06:09 AM »
Im wondering if anybody has made a python interpreter for rockbox yet, cause i would like to run python scripts on my Sansa Clip v2. And if rockbox has a lua interpreter doesnt that mean that somebody could make a python one?
« Last Edit: October 15, 2013, 11:17:24 AM by XPGeek »
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: has anybody made a python interpreter yet?
« Reply #1 on: October 15, 2013, 04:54:08 PM »
Nobody did this. In theory this should be possible but lua is lightweight compared to python and still pretty slow on rb devices.
Logged

Offline XPGeek

  • Member
  • *
  • Posts: 3
Re: has anybody made a python interpreter yet?
« Reply #2 on: October 16, 2013, 10:42:23 AM »
Ok. just wondering, cause it would be cool to run python on a mp3 player, who knows, somebody might make a python interpreter for rockbox with a rockbox flavor of tkinter for gui.
Logged

Offline XPGeek

  • Member
  • *
  • Posts: 3
Re: has anybody made a python interpreter yet?
« Reply #3 on: October 16, 2013, 10:47:30 AM »
...or make a patch for the lua interpreter so it can run python code, but you would have to make something lika python mode, cause it could have errors otherwise.
Logged

Offline Echo

  • Member
  • *
  • Posts: 28
  • Peace And Love
Re: has anybody made a python interpreter yet?
« Reply #4 on: October 16, 2013, 07:26:59 PM »
I had some experience with cross-compiling python and python packages. They all ended very badly. It is possible to do but very hard. Another thing to consider is that python has a very high memory consumption, something you don't want in low-memory MP3-players.
That being said - If anyone managed to do this, I'll be extremely impressed, althow I don't see why this is necessary, except for the coolnes factor of course :)
Logged
Peace And Love
Raz

Offline phr

  • Member
  • *
  • Posts: 25
Re: has anybody made a python interpreter yet?
« Reply #5 on: November 15, 2013, 06:31:19 AM »
I think this is doable on multimedia players.  32-bit x86 Linux python (just the interactive interpreter you run from the shell prompt) has about 8MB virtual memory footprint and 4MB resident.  The embedded version would presumably be smaller (ISTR the figure 2MB or so) but then you'd want some space for libraries and user scripts. 
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  has anybody made a python interpreter yet?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 15 queries.