Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: amorphous

I am also a big fan of tkinter, the graphical library that comes with every python install. My tcl/tk days got me used to tk and it’s idiosychncrasies. It’s possible to write a non-trivial gui program with python in tens of line of code that will run on a toaster. That is where the script vs compiled code difference shines. Beautiful.


49 posted on 12/28/2015 2:50:16 PM PST by SpaceBar
[ Post Reply | Private Reply | To 47 | View Replies ]


To: SpaceBar
It’s possible to write a non-trivial gui program with python in tens of line of code that will run on a toaster.

Those ten lines of code may require ten thousand lines of Python interpreter code, not to mention the library files, which must be up and running first. This increase CPU power and memory requirements greatly, which explains why Python doesn't come installed on most toasters, or practically any MPUs for that matter. :-)

A Raspberry PI will run Python script, IIRC. And I'm sure more and more similar devices will run Python in the future, but when it comes to speed and maximum processing - like code for autonomous self-righting/landing quad-copters and etc. - C/C++ will be the first/best choice for now and in the future.

51 posted on 12/28/2015 3:22:47 PM PST by amorphous
[ Post Reply | Private Reply | To 49 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson