by nerdponx · 3y ago · 0 comments
However, I have to ask: why C? Apparently the author is very comfortable using it, and I'm sure using C has enabled them to make a very efficient implementation with a small binary size.
But this program is just slinging around strings, right? Is manual memory management actually important, or even desirable?
If he used, say Rust, then the target system needs a rust compiler, and furthermore, the language is not even close to being as standardized a C is at the moment, i.e. who knows if in the future you will still be able to compile your program that you write on 2023's dialect?
I think C is also fine though.
Is the only time you choose C when you need manual memory management? I suspect that had nothing to do with their decision.
Similarly, few things infuriate me more than the installation of some random Python package having to pull an entire Rust toolchain with it.
Whereas this? Just the very basics, fully portable, pretty much any C compiler has you covered.