Problem
Rust is a programming language that is being funded by major big-tech companies such as Google, Microsoft and Mozilla, (CorpoSlop, as they say.) which means it is under their control, meaning at any time things could change, not only that, Rust is less compatible than C, meaning users (such as those running BSD, plan9, etc) may be unable to run it. Also, Rust has a reputation for being an entry for bad programmers and AI programming (which your users will hate), being "memory safe", you trade performance, reliability and user trust for real-time automatic memory management, whereas managing memory by yourself is almost always more performant and safer. C is a much safer, faster, and more trustworthy alternative to Rust, and, to drop the extremely professional writing, me, my friends and other users like us would probably be much more receptive to moving to Fluxer. (I think I'd still use it even with Rust, but C would be better, :3) I believe many people (including me and my friends) would also be happy to help with writing C code too. :3
Proposed solution
C replacements for Rust components :3
Notes (optional)
Even if it's a long range goal, it'd be highly appreciated by many, in my opinion :3
36 comments
Comment by Rex
Comment by @shininghero
Comment by @zleepyzeezee
Comment by @shininghero
Comment by @Atrophied
Comment by @zleepyzeezee
Comment by @SafeShows
Comment by @ctudor0
Comment by @zleepyzeezee
Comment by @ctudor0
Comment by @whimbree
Comment by @oax90
Comment by @zleepyzeezee
Comment by @Speykious
Comment by @ctudor0
Comment by @Speykious
Comment by @Speykious
unsafeif you need to. The trade-off is more time spent checking the code at compile time, not runtime performance. Though the Rust compiler mostly spends time generating code and handling generics. At runtime, it is as performant as C and more in some cases. There is no world in which C is safer than Rust. It always baffles me that people always try to attack the least attackable aspect of the language, the one that's empirically proven, when it has actual real problems that people could be talking about instead. (I'll also note that most Rust devs don't like being associated with cryptobros, but unfortunately we're stuck with the state of the job market. It is what it is.)Comment by @ctudor0
Comment by @Speykious
Comment by @electron271
Comment by @ctudor0
Comment by @electron271
Comment by @Chailotl
- Typescript
- Developed and maintained by Microsoft
- JavaScript
- Major code contributions from Google and Meta
- Python
- Sponsored by Google, Meta, Amazon, and Microsoft
This is patently false; as previously stated by electron271, the Rust Foundation does not decide what technical features or changes happen to the Rust language, and they have an RFC process for discussing Rust features, and the Rust team is "primarily composed of volunteers from the open-source community". As previously stated by Speykious, Rust does in fact officially support FreeBSD, but this ends up being irrelevant as Fluxer is an Electron app which uses client-side Rust code on the WASM target. If your OS can run Chromium, it is supported by Fluxer. What? This isn't an argument, this is an ad hominen. This displays a fundamental misunderstanding of how Rust and its borrow checker work. Rust is not slower than C. Safe Rust may be slower than C, but you can write unsafe Rust to achieve performance parity with C. The number of performance-critical situations where you need to write unsafe Rust is vanishingly rare, if you even need to write your own unsafe Rust in the first place as many open-source libraries have already handled all the common situations. Rust does not trade away any reliability. If anything, memory safety grants you more reliability by making memory leaks impossible. It also nudges you to write better code in the first place, rather than letting your reference graph (how and where memory is allocated and stored) become a convoluted spaghetti mess. I don't know what your point about "user trust" is supposed to mean here. Rust's memory safety model is not "real-time". It is compiled. It is never safer than Rust's borrow checker, which is based on formal mathematical principles to guarantee memory safety at compile time. In other words, it is mathematically proven to be memory safe. It is also never faster than Rust, which still lets you write unsafe Rust to achieve performance parity with C.Comment by @Speykious
Comment by @Chailotl
Comment by @Speykious
leakexplicitly, or your code is a smart pointer fest of potentially cyclingRcs/Arcs... Not a lot of cases really, especially since the latter is an antipattern and people usually don't code like that.Comment by @zleepyzeezee
Comment by @zleepyzeezee
Comment by @Speykious
tokeiall the time for instance. Never hurts to learn a bit! At least if you end up still not liking it you'll have better reasons B) The official resources are excellent to get started. https://rust-lang.org/learn/Comment by @zleepyzeezee
Comment by @Speykious
Comment by @zleepyzeezee
Comment by @zulc22
Comment by @zleepyzeezee
Comment by @jessielw
Comment by @zleepyzeezee