3 ms·
Maybe depends on the project. Writing a web API in C almost certainly isn't pareto-optimal. A linux/raspberry-pi driver for your hobby-project that needs to int
by ryanianian 9y ago
Maybe depends on the project. Writing a web API in C almost certainly isn't pareto-optimal. A linux/raspberry-pi driver for your hobby-project that needs to interact with other low-level linux-based software however, C is probably the most efficient fit.
Rust (and maybe Go) do seem like very good long-term replacements for C, but imho it's too early to say that. Until there's a "full stack" of software (OS to user-space/desktop), you still kinda need to know C if you want to be able to understand how your whole computer works.
- Inityx 9y agoI don't see Go as any sort of replacement for C. The fact that it's garbage-collected means that it's really not suitable for use in embedded or kernel programming. AFAICT, Rust was created to be a safer C, and Go was created to be a faster Python; completely separate domains.
- ryanianian 9y agoYou’re quite right.
- zephyrfalcon 9y ago>> Go was created to be a faster Python That would surprise me; Go has little in common with Python.
- kqr 9y agoI'd recommend Ada over C for embedded hobby applications; mostly because it will reduce the time you spend debugging by detecting more errors up front and forcing you to be very clear with what you are trying to say. Less frustration and more secure (matters now with internet of things). But also because it makes it easier to deal with asynchronous actions and has facilities for higher level programming should there be room for it.