Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I'm used to programming in C and C++, mainly for embedded and sometimes for computer apps. I would like to explore a new and more modern language. Rust, V lang and Zig seem to be good candidates. ...
#1: Initial revision
Alternative embedded language: Rust, V, Zig
I'm used to programming in C and C++, mainly for embedded and sometimes for computer apps. I would like to explore a new and more modern language. [Rust](https://rust-lang.org), [V lang](https://vlang.io) and [Zig](https://ziglang.org) seem to be good candidates. I've never tested them, based only on I've read in the comments and what I've understood: # Rust ## Advantages - Memory safety - Good community - Big company behind it (Mozilla) - Serious successor to C/C++ in embedded ## Drawbacks - Hard to learn syntax - Not suitable for tiny MCU - Needs a compiler for the MCU ## Questions - Is it possible to call C++ libs, Arduino framework, ESP-IDF framework, etc? - Is it easy to use on any MCU (STM, ESP32, ATmega, ...)? # V ## Advantages - Easy syntax - Tiny binaries - Can compile to C, so compatible with any MCU without additional tools, even tiny MCU - Simple to start (tiny compiler, no dependancies, no makefile, ...) ## Drawbacks - New and less known with a small community - Higher risk of being abandoned ## Questions - Is it possible to call C++ libs, Arduino framework, ESP-IDF framework, etc.? # Zig ## Advantages - Performance and safety - Dedicated to embedded - Tiny binaries ## Drawbacks - New and less known with a small community - Higher risk of being abandoned - Needs a compiler for the MCU ## Questions - Is it possible to call C++ libs, Arduino framework, ESP-IDF framework, etc.? - Is it suitable for OOP? --- Which language do you recommend I try: Rust, Vlang or Zig? or another language?
