Python as an input language for MoSync

11 posts / 0 new
Last post
David Freitas
jddcef's picture
Offline
Mobile Conjurer
Joined: 28 Jul 2011
Posts:
Python as an input language for MoSync

Theoretically, one could code stuff in Python and generate the C++ equivalent using tinypy2c++ or Shed Skin.
See, a python to c++ convertor:
http://shed-skin.blogspot.com/

TinyPy is a minimalist 64k version of Python

This could be made as part of the MoSync environment or you could convert it yourself and then put it in your MoSync project.

Just throwing the idea out there.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Niklas Nummelin
niklas's picture
Offline
Mobile Wizard
Joined: 18 Dec 2007
Posts:

Really cool ideas! Thanks for the links. I will check these things out as they look really promising.

You should also check out this python interpreter https://github.com/MoSync/MoSync. It has a MoSync port made by a guy called Oscar Lindberg.

// Niklas

edit: I of course meant this http://code.google.com/p/python-on-a-chip/ :)

 

gretty
gretty's picture
Offline
Mobile Wizard
Joined: 27 Jan 2011
Posts:

+1 for python support

Ovidiu
ovidiu's picture
Offline
Mobile Wizard
Joined: 27 Jan 2011
Posts:

+1 for Python support

Chris Hughes
qlmhuge's picture
Offline
Mobile Archmage
Joined: 11 Jan 2010
Posts:

+3 -- Python is a language I actually understand!

Cipri_Filipas
Cipri_Filipas's picture
Offline
Joined: 16 Feb 2011
Posts:

+1 :)

David Freitas
jddcef's picture
Offline
Mobile Conjurer
Joined: 28 Jul 2011
Posts:

So it seems Python is popular :-)
Theoretically anyone could build the python interface to mosync because it's open source, but I think MoSync themselves probably have a better knowledge of the system and the scope.

Forgot to add a link to http://www.tinypy.org

SteveW
SteveW's picture
Offline
Joined: 21 May 2010
Posts:

Is there any possibility of Python being introduced to MoSync?

I've just had a go with Cython on the desktop and it seems to work really well.

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

So, I was taking a break poking around with tinypy. After about 30 minutes, I gave up. It kinda requires python to make, and it didn't look too hard, but I was wondering if there was a tiny python port which would be easier to do, and I found http://www.pythononachip.org. So I download the source and start poking around, only this time, I'm a bit smarter, and I read the 'readme' first.

Which is where I found this line:

Quote:

Thanks
------

My personal thanks go out to these people for their recent contribution to p14p:

- Oscar Lindberg: Porting p14p to the MoSync platform.

Err, Oscar, where are you dude? Where's your MoSync Python port?

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

Ahh, here it is:
http://code.google.com/p/python-on-a-chip/source/browse/src/platform/mosync/?r=b1499de8e932c6710719e5c874653243eadd3912

orashwan
orashwan's picture
Offline
Joined: 8 Mar 2012
Posts:

Hi , 

 

I think adding python support in official MoSync distribution is a grate addition especially for developer not very familiar with C++ or came from java background like my self :) .

For http://www.pythononachip.org it does not support the full API 

Quote:

 

The ma.py contains many of the maapi functions and definitions. So far almost

all of the graphics and most of the basic events are supported.