Hacker News new | ask | show | jobs
by thesnide 892 days ago
i wonder how much of that is due to rust being too young to have myriads of dubious code to copy from.

Perl is even more memory safe than Rust, but the amount of crappy code is overwhelming...

1 comments

That's the thing about a compiler enforcing rules: you can't even get some kinds of dubious code to compile, so therefore, it will never meaningfully be copied.

Of course, that doesn't mean that all bugs are prevented, or that Rust code has no bugs, or that you can't write bad Rust code. But in the context of robotics and embedded control systems, Rust solves a lot of those "bad code" issues at compile time. And you're not using Perl in that context regardless.

oh, now I'm wondering if Ada might be interesting for robotics.

As it is another language that is said 'compiler driven'

It is one of the domains it was created for, so I would assume that it is. I barely know Ada, however, and so can't really say.