+ 2

Programming languages for low-energy consumption

Is correct the assumption that pre-compiled langs (such as C/C++) consume less energy than interpreted langs (Python, Java)? For either embedded (Arduino) and PC/RaspberryPi. I mean, use an array of some electronic devices with batteries.

26th Sep 2021, 12:57 PM
Kiwwi#
Kiwwi# - avatar
8 Respostas
+ 2
AKSHAY🇮🇳 You can use Python for scripting and for communication with a program that runs on your pc. But that means it doesn't run directly on the Arduino board.
26th Sep 2021, 2:50 PM
Lisa
Lisa - avatar
0
Martin Taylor thx for answer By array of devices I refer a "cluster" of physical electronics, not the software array sense. About the timer triggered is something already thought in; use a sensor or fixed intervals to perform tasks. Not involved with Arduino yet, but Im convinced that it supports it in some way. Maybe there are better options aditionally to Arduino and Raspberry Pi, though, to automate stuff inside home, in a farm, industry, etc.
26th Sep 2021, 2:57 PM
Kiwwi#
Kiwwi# - avatar
0
@Martin Taylor Oh I see, firmata (or pyfirmata) is based on c++. The RealPython blog didn't covered this and they said is "Using high level language like python on Arudino". So, before reading your statement I thought that Arudino also supports python. But we can run python codes with Arudino using PyFrimata
26th Sep 2021, 4:04 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
- 1
Martin, I think python is supported on Arudino
26th Sep 2021, 1:53 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar