Apprendre à coder : C++ ou Python ?

Créations

Thorgan

NEW il y a 5 ans

@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 il y a 5 ans

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 il y a 5 ans

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

il y a 5 ans

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 il y a 5 ans

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 il y a 5 ans

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

Sorunome

il y a 5 ans

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 il y a 5 ans

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