Learning how to code : C++ or Python ?

Creations

Thorgan

NEW 5 years ago

@eriban
CircuitPython logo + mentions on the Git repository... I'm sure it will be interpreted on the fly.
Testing for syntax errors can be done on the developer's computer. I have no worries there.

As for performance, my only concern is the available ram. Python code may be streamed from the microSD (buffer ?) and the runtime may cache things.

Super cool low level stuff is best left to C++, I'm not worried there.

Sorunome

NEW 5 years ago

eriban eriban

The python port is based on CircuitPython, which, in turn, is based on MicroPython, and thus the code is actually interpreted on the device itself

Thierry

NEW 5 years ago

eriban eriban

It is possible to precompile your python to reduce memory footprint and improve performance.

That's what libraries uses.

I believe the tool is mpy-cross.

more details on Adafruit website.

Sorunome

5 years ago

While that is true, our CircuitPython implementation is for running python directly on the device itself to greatly speed up development (and thus make learning python easier!) and you also have things like a REPL and stuff ^^

Sorunome

NEW 5 years ago

Thierry Thierry

While that is true, our CircuitPython implementation is for running python directly on the device itself to greatly speed up development (and thus make learning python easier!) and you also have things like a REPL and stuff ^^

Thierry

NEW 5 years ago

oh... does that means differences in term of RAM usage and performance compared to the way CircuitPython is used on Adafruit boards ?

Sorunome

5 years ago

It shouldn't - it's just the normal CircuitPython with bindings for the Gamebuino Meta library.

Due to the META library having a screen buffer of about 10k size that RAM is OFC not available for other things

Sorunome

NEW 5 years ago

Thierry Thierry

It shouldn't - it's just the normal CircuitPython with bindings for the Gamebuino Meta library.

Due to the META library having a screen buffer of about 10k size that RAM is OFC not available for other things