Shop OBEX P1 Docs P2 Docs Learn Events
Programing the propeller in python — Parallax Forums

Programing the propeller in python

Devin FrioudDevin Frioud Posts: 17
edited 2013-07-21 13:48 in Propeller 1
Hello everybody!

I was wondering if there were python modules for the propeller, so one could program the propeller in python.
If there isn't, would anybody like to collaborate on a project like this?
Is it even feasible?

Thanks,
Devin

Comments

  • prof_brainoprof_braino Posts: 4,313
    edited 2013-07-21 11:49
    At the bottm of the this forum thread in the Similar threads box are a bunch of python threads.

    Also google for "http://forums.parallax.com: python"
  • Heater.Heater. Posts: 21,230
    edited 2013-07-21 12:49
    No.

    In Python I can do this:
    x = 986**123456 + 58**123456

    The result of that statement is over three hundred thousand digits.
    For sure the Propeller does not have enough memory to handle that.

    I would be surprised if the Prop had enough memory for Python to start up and print the result of 1 + 1.

    We can add external memory to the Prop now a days to handle that but it would be horrible slow.

    By the way, the second favorite programming language of Guido van Rossum, the creator of Python, is C. After all Python is implemented in C.
    Perhaps C is what you need:)
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2013-07-21 13:48
    Some people love to tinker with automobiles, others prefer motorcycles, and some enjoy both.

    A PC is like an automobile, lots of power under the hood.
    A Propeller is like a motorcycle, and a powerful one at that -- but it will never quite be what an automobile is.

    So considering using Python is somewhat like trying to use automotive parts on a motorcycle. Maybe it can be done, but there are lots of things a motorcycle can do that a car cannot.. and it does these things better when it just doesn't try to use automotive parts.

    And a lot of those things are fun in their own way. You might set aside Python and learn what the Propeller really does before you fully commit to one language as your tool kit.
Sign In or Register to comment.