PSP-Hacks.com

Join the Dashhacks Fan Club on FacebookFollow Dashhacks on TwitterDashhacks YouTube ChannelPSP-Hacks RSS Feed

Hack your Sony PSP

Forums | Tutorials | Custom Firmwares | PSP Themes | Search


 

Stackless Python PSP Port

greg | June 19, 2007

Way back in November of 2005 fraca7 released a Python port for the PSP. By the way, for those who don’t know, Python is a high-level object oriented programming language developed by Guido van Rossum in 1991.

Yesterday a new developer by the name of “The Mindcaster” released a stackless Python port. Stackless is an experimental implementation of Python as it does not depend on using the C call stack. Great for programmers who aren’t vastly familiar with C and those who wish to steer away from LUA. Here’s what The Mindcaster had to say about his release:

I recently saw the great work from Richard Tew in porting Stackless to Nintendo DS and decided to give a try. Checked out the 2.4.3 PSP port from python-psp repository and merged the Stackless 2.4.4 tag into it.

The first thing to be done, was fixing up some conflicts mostly related to IO and threads. Next Richard pointed me out that the Stackless needs to save and restore stack pointers and this is done in assembly.

Based on trial and error, it took me a day to figure out and have a compiled interpreter.

To install, create a directory under /PSP/GAME150 and copy the supplied EBOOT.PBP there. The ‘python’ directory contains the necessary libraries and must be copied to the root of your memory stick, i.e.) X: (if your PSP is mounted as drive letter X:).

Perhaps soon we’ll see a variety of new PSP homebrew written in Python! Nice work.

Download: Stackless PyPSP 2.4.4

- source: The Mindcaster @ blogspot

Share This With...
  • Facebook
  • Digg
  • Twitter
  • RSS
  • Slashdot
  • Technorati
  • del.icio.us
  • Reddit
  • Blogosphere News
  • HackerNews
  • StumbleUpon
  • Google Bookmarks
  • email
Comments (16)

Tagged: :: :: ::

RSS feed | Trackback URI

16 Comments »

Comment by abood
2007-06-19 14:18:37

so wat is this ?

 
Comment by Stellar
2007-06-19 15:15:34

Python is an ‘interpreted’ script… not a ‘compiled’ language…. for anyone who cares. I assume you could use it for game development on your psp much like python is currently used on pc for script support.

Comment by Stellar
2007-06-19 15:17:13

… im no expert on python yet, so correct me if im wrong. but i belive this is why we keep our python game scripts very short, as to not use too much overhead for processing/interpreting

 
 
Comment by Josh
2007-06-19 15:58:36

Wow it’s about bloody time. I heard about this coming out but it took so long. Thanks though!

 
Comment by SlashV
2007-06-19 17:11:18

script.py is the program the interpreter wants to run i.e. your python program ! So you’ll have to provide that yourself.

Comment by greg
2007-06-19 17:18:09

oops – thanks for reminding me. I figured that out afterwards, forgot to amend the post. :)

 
 
Comment by everyone
2007-06-19 23:55:31

I tried installing this a few times, a few different ways, on my PSP running 3.10 OE-A` and it does not load.

 
Comment by egamer25
2007-06-20 02:45:39

@everyone I am just curious did you supply a script.py file for it to execute. Maybe that would be why it doesn’t load. Haven’t tried it myself but from reading other comments this would appear to be just an interpreter.

 
Comment by unknown007
2007-06-20 05:27:33

is it like u can play DS game on psp or sumthing

Comment by wappa
2007-06-20 13:09:33

NO! idiot

 
 
Comment by Ciesson
2007-06-20 08:39:19

@Everyone who doesnt understand
This is just another scripting languag like LUA or C
What this program does is let you run python scripts
They are not included so that is why it ‘wont start’
You currently cannot play DS on PSP
Why would you want to anyway – PSP pwns the world

Comment by everyone
2007-06-20 10:02:00

so how would one go about installing one of these python scripts and where can i find them?

 
 
Comment by Carlos Eduardo
2007-06-20 13:08:18

Hey guys… the previously comments clears it all. Stackless Python is a variant of Python Scripting Language. For all that dont know about it visit Python.org and Stackless.com.
I will post a small tutorial on how to create a Python app with Stackless functionality soon.

Just keep your eye on my site.

Carlos

Comment by everyone
 
 
Comment by The Underminer
2007-06-21 06:26:30

“for those who want to steer away from LUA” Well, that would be me. But I’m not sure if python is the answer. Whatever scripting language does not give you the speed and memory of ‘pure’ C/C++. As far as I know. And I remember this python for PSP from the old days: It flopped because LUA had a head start with support for music etc.

 
Comment by Carlos Eduardo
2007-06-22 08:25:27

Relax, I’m currently working on MP3 and OGG support in Python….

Just give me a few more days.

Carlos

 
<< Login :: Register >>
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)


Affiliates



Video Games






PSP Hacks Archives