Arduino C++ vs MicroPython Smackdown

preview_player
Показать описание
Which Language is best Arduino C++ or MicroPython? Lets find out.

PCBWay, your ultimate destination for PCB manufacturing and assembly. Whether you're a hobbyist, a startup, or a seasoned professional, PCBWay has got you covered.

🎖To join the membership at 🥉bronze, 🥈silver or 🥇gold levels, head over to

#Arduino​ #MicroPython​ #Programming
Рекомендации по теме
Комментарии
Автор

Great comparison - this deserves a lot of views!

tiagdvideo
Автор

The C++ statement

float result = (1234.56 * 7890.12) / 345.67;

is not a good benchmark: the right hand side being constant, it is evaluated at compile-time. You end up with just an assignment of a constant to be done at run time.

Wait, no, not event that! As the variable `result` is not used anywhere in the sketch, it gets optimized-out by the compiler. So the whole “calculation” benchmark gets optimized into this:

while (millis() < endTime) {
calculations++;
}

I don't know whether the Python interpreter can do this kind of optimizations, but the C++ compiler can absolutely not miss them.

edgarbonet
Автор

I have been waiting for this type of comparison. Thanx Kevin! I have done initial selections between C and Python several times. My main arguments have been: Files, sound or strings -> Python. Complex logic, multiple interfaces -> C. Hardware testing -> Python. The application is to be maintained by a person with limited programming skills -> Python. For the Python implementations I still need to choose between CircuitPython and MicroPython.

infrapale
Автор

24:33 You don't need to click the Verify button, unless you don't intend to upload it afterwards. Just click the Upload button. It then does the same thing, but without compiling it twice.

I agree it compiles when there's no need to though, e.g. after failing to upload because of forgetting to set the port correctly. There's no Stop button either. Despite what I've read, the only reliable way to stop it compiling, when I know I've made a mistake, is to exit the IDE, which doesn't help much because it takes a while to start up again.

TooSlowTube
Автор

Which programming language did you use for your smackdown scores ?

After comparing File systems the score was 7/5 then one comparison later after Development Workflow the score was 7/8

Something fishy is going on here

Bob_Burton
Автор

Thank you for sharing this knowledge. I am currently trying to learn viper and asm_thumb but there is little to no documentation to support this important part of MicroPython. Therefore, please make a series similar to how Life with David did for PIO.

Also, I noticed at 44:20 of your video that MicroPython performed 65536 calculations per second. This number, 65536 is the same as 0xFFFF. When I see an exact number like 65536, this makes me suspicious there is an anomaly with the test that needs further investigation to understand if there is something that is artificially biasing the results.

movie
Автор

pico is my favorite microcontroller (running MicroPython)

dougblanding
Автор

Can we work with an RTOS using microPython?

handlewithoutsuitcase
Автор

This is the first I've heard that there's an official Arduino IDE for MicroPython. Does it do CircuitPython too? Is there a legitimate reason for CircuitPython to exist, or should Adafruit have just contributed board support packages for MicroPython instead?

TooSlowTube
Автор

TLDR: micropython is easier than C++, especially for noobs. C/C++ a lot faster and more powerful.

chuckcrizer