Problems with the Rust Language

Hacker News by 5 min read 140x views
Problems with the Rust Language

Share Post

Problems alongside the Rust languageBack

I think memory-safety is a awesome idea. I’m chiefly a C programmer and I’m all too acquainted alongside the “fun” of debugging recollection issues. But I accept the gait at which Rust is being adopted is hazardous for the following reasons:

  • Rust is managed by the Rust Foundation, which defines itself as “an autonomous nonprofit committed to a safe, secure, and sustainable forthcoming powered by the Rust programming language”. Alright, fair enough. But who owns the Rust Foundation? Its founding members are Amazon, Google, Huawei, Microsoft, and Mozilla. The semantics of “independent” and “nonprofit” could be asserted concerning all day, but I think it would be naïve to rely that five corporations would arrive together to oversee a project without believing it would advantage them. Rust is a tongue that has been expanding from company interests since the extremely beginning. A dedicated place on the Rust Foundation Board of Directors can be bought for the humble sum of $325,000 per year.1

  • There is a certain “social momentum” whenever it comes to the dispersed of Rust. A fear of missing out, a civilization of replacing the old alongside the new, a trend. I accept Rust have to be viewed the identical way as any new technology—with suspicion. Rust has somehow rotate into a tag to acknowledge yourself with. A individual can be viewed as smart, progressive, safe, if they merely use Rust. It has managed to convince several programmers that it’s the lone way forward, and that it have to be used without thinking critically of its trade-offs.2

  • One of the Rust community’s chief passtimes, a meme at this point, is rewriting existing projects into Rust. This is in my opinion the complete worst way to go concerning expanding security. It power fair be the finest way to addition Rust use without receiving any of its benefits. Rust is not magic, it can’t fix logical errors. Rust programmers motionless need to be fine programmers. But equal a fine programmer’s power is constricted whenever tasked alongside reinventing the wheel. When did it rotate into desirable to substitute reliable, tested application that has been subjected to years and years of bugfixes, alongside entirely new rewrites? How is that harmless at all?

  • I accept this civilization of rewriting existing projects benefits corporations (again). Currently, projects that normally end up being rewritten in Rust commencement off alongside a GPL license, and end up alongside MIT. Corporations can’t use code from GPL projects without contributing to them in several way. Once the licence is changed to MIT through a Rust rewrite, the project is liberated to be used for any intent benefits corporations the most. An example would be creating locked-down Linux distributions, creating digital prisons. In short, Rust programmers are doing liberated labor for corporations that fear repercussions from embedding GPL code into their products. They are being tricked into creating a jail for themselves under the guise of “safety” and “efficiency”. I owe this disagreement to Jody Bruchon.3

  • It’s entirely imaginable that Rust’s compiler contains a backdoor. And nobody would know. Now this final item is extremely speculative and conspiratorial, but I’m not the lone one concerned concerning it.4 The lone way to compile Rust’s compiler is using a binary bundle of the former type released by the Rust Foundation. In theory, this binary publish could merge a backdoor that gets copied into any consequent type of the compiler during bootstrapping. It’s additionally entirely imaginable that the binary publish is entirely fine. That’s the problem. Since there exists lone a sole fully-functional, usable implementation of the Rust compiler, the Rust Foundation must be trusted. Considering its history, owners, and track document of issues alongside mismanagement,5 I discover it difficult to rely it at all.

Now all this chattering concerning problems would be incomplete without outlining a solution. My recommendation is: dilatory down. First, the community should concentration on improving the Rust tongue itself alternatively of trying to “improve” another projects by rewriting them. I propose using that energy to assistance the GCC Front-End for Rust project6—an substitute compiler which would alleviate the concerns for the imaginable existence of a backdoor. Currently, it’s in an first phase of development.

It could be stated that none of these issues are problems alongside the Rust tongue itself—the “language” being the genuine ceremonial grammar that defines how Rust is written. This is true. Personally, I accept Rust is undeniably an betterment complete C++ on a purely specialized basis. But innovation relies on people. And the group connected alongside Rust frequently don’t appear to have the finest intentions in mind, or are fair following a trend without thinking for themselves.

To study concerning issues alongside Rust’s tongue design, I propose study Nimfsoft’s blog post.7

Other Article Hacker News
↑
Close Right Ads
Close Left Ads