News for hackers. Stuff that matters.
Re:Rust on Espressif chips – 29-09-2023 by asyx on Saturday September 30, 2023 @06:55AM (#37714255)
The ESP chips are barely power efficient enough to run on battery with C.

Like, honestly, I'd not put anything but compiled languages without some sort of runtime on those chips except if I have something like "update an eink display twice a day" use cases.

Re:Rust on Espressif chips – 29-09-2023 by Kuinox on Saturday September 30, 2023 @07:31AM (#37714445)
I'm trying to make a natural gas live monitoring, I reused a single use e-cig battery (that is rechargeable). From calculation it should last at least a year in deep sleep.
Re:Rust on Espressif chips – 29-09-2023 by jLaForest on Saturday September 30, 2023 @08:41AM (#37714874)
>The ESP chips are barely power efficient enough to run on battery with C.

Incorrect, Esp32-s3 uses 8 micro amps in deep sleep.

Re:Rust on Espressif chips – 29-09-2023 by doug_life on Saturday September 30, 2023 @08:50AM (#37714931)
8uA is still large compared to some other options. I work on medical implants that average 15uA while actively sensing biological signals 24hr/day. This includes the analog front end hardware to condition the signals as well. 8uA of deep sleep current would be a non starter.
Re:Rust on Espressif chips – 29-09-2023 by markhahn on Saturday September 30, 2023 @09:41AM (#37715348)
and your devices probably don't cost $3 on aliexpress, right?
Re:Rust on Espressif chips – 29-09-2023 by antoniuschan99 on Saturday September 30, 2023 @01:14PM (#37717518)
Wow that’s amazing what components are some of those?
Re:Rust on Espressif chips – 29-09-2023 by fulafel on Saturday September 30, 2023 @10:34AM (#37715820)
How much does power usage of computation tend to matter in microcontroller applications? Vs "sleep" state power usage and being smart about waking up.
Re:Rust on Espressif chips – 29-09-2023 by brianhorakh on Saturday September 30, 2023 @11:25AM (#37716329)
You do realise that there are two architecture xtensa & RISC v. RISC v isn't as power efficient.

The xtensa super low power mode can deep sleep, wake on timer or external interrupt, and (based on duty cycle) probably run for year or more on a 9v battery.

Micropython is similar in performance to Arduino on esp32. Poor Async, around 10x slower than rust and much harder to do Async, etc. Possibly better for beginners, but even that won't be true in another year thanks to projects like embassy-rs

Rust and C have similar compiled performance. The difference is rust Dev on esp32 is easier to target with other architectures, also rust will probably be a bit easier to detect & debug any crashes during design making it a lower cost to develop than C equivalent (because C is more permissive, it's easier to make accident mistakes)