by serbuvlad · 2y ago · 0 comments
Excluding CLI, Go's use cases virtually did not exist when Go was created. So Go was "the right language at the right time" to grow up with it's niches (decent performance, easy to learn, easy to reuse library code, easy to deploy, easy concurrency). It is virtually non-existent anywhere else.
On the other hand, Rust competes in exactly the same high-performance/low-overhead space that C++ dominates. Because of Rust's complexity, it is very unlikely that it can compete anywhere else. Rust must displace C++, or at least be a viable alternative to it.
I would’ve written it in Python a year ago. Now I wrote it in Rust because it was genuinely fun and the results came out nicely.
I have zero interest, none, nada, in C++. (Readers: please don’t try to win me over. I know more about the subject than you might think and it’s an informed opinion.) For me, Rust doesn’t compete with C++ at all. It’s probably replacing my Python coding more than anything else. The output looks and feels quite Pythonic, but with strict types and AOT compilation to native code. I’m loving it.
A BBS? Does this have a different meaning now than in 1986? Where do I dial up to it?
See https://honeypot.net/2024/11/28/first-light-of.html for screenshots.
I would argue there is 2 types of complexities here:
1. Complexities when developing (Rust) 2. Complexities once running in production (C++)
I’d much much prefer to have errors and frustrations developing than users dropping out of the sky at 40,000ft
But C++ devs aren’t trying to convince rust devs to change their stack.
The me of yesteryear probably would have developed such a thing in C++. In an alternate universe, there's a version of me that learned Rust 5-10 years ago and would have chosen that.
How does it deal with GC pauses? Wouldn't they introduce unacceptable jitter for this kind of application?
Anyway, it's relatively straightforward to rewrite from Go to Rust if you aren't doing things that essentially rely on GC (which is quite rare).