Hacker News new | ask | show | jobs
by Philip-J-Fry 1075 days ago
>I really hate how for microcontrollers the only two choices are either C++ or Micropython

There's TinyGo as well. https://tinygo.org/

I'd say that's the middle ground for me.

2 comments

It is nice, but nowhere near as complete feature-wise than C/C++. The fact that it exists does not mean you can use it to achieve the same thing.
What do you mean no where near as complete feature wise? Go or specifically the TinyGo implementation?

Seems to do exactly what 99% of people need.

Feature parity is fine but support is not quite there. Doesn't support WiFi on NodeMCU boards last I checked.
"Seems" is an outside perspective. There are loads of hardware features that it just doesn't support on various boards, and lots of extra hardware (like sensors) that it has no libraries for. It's not just the MCU/CPU that matters here.
There's a niche doing C++ (vs. straight C) on microcontrollers but the rest are just tinkerer choices.