https://opensrcsec.com/open_source_security_announces_rust_g...
https://www.embecosm.com/2021/01/12/gcc-rust-how-it-can-be-a...
This is an entirely new frontend written in C++, that shares no code with rustc (the official rust compiler). It might be merged some day in GCC proper.
But honestly, I'm more excited for rustc_codegen_gcc:
https://github.com/antoyo/rustc_codegen_gcc
It adds gcc as an alternative backend of the official Rust compiler. That way it is much more feasible to stay up to date as the language evolves.
Anyway the former two don't actually work right now. The one that does work today is mrustc, or at least it works for bootstrapping rustc; it doesn't have a borrow checker though (and instead assumes the program is correct). Also, mrustc isn't based on gcc.
https://github.com/thepowersgang/mrustc
(There's a fourth project, https://github.com/sapir/gcc-rust, but it seems abandoned)
On the other hand, I use gcc, clang, and MSVC++ on a regular basis. But... I think the reason I care about multiple C++ compilers is mostly because there’s no “one compiler that is ergonomic to use everywhere” and I end up writing better code because of it (eg gcc warning about something clang doesn’t care about).
For Python, I mostly just care that it Just Works everywhere (modulo compiler setup for building C modules)
I'm glad that pypy exists because it forces cpython to do something about performance, but for python overall it's a pretty niche tool.
Not to mention the terrible tooling to make multiple deployment targets possible (webpack, polyfills and whatnot)
Disclaimer : I'm still new and learning Java.
See the History section of https://en.wikipedia.org/wiki/OpenJDK?wprov=sfla1
The problem is when you have multiple implementations of languages that are effectively defined by their reference implementation, then the alternatives are usually an exercise in frustration.
If that's important, why not pretend that your project is in "Clang C++" rather than C++? Clang compiles to at least all the platforms that Rust does.
> not to mention the whole mess around dependencies in C++ code
Agreed. I feel like the proliferation of header-only libraries is a sign that something's seriously wrong here.
My opinion echoed by many top people in reverse engineering industry.
Modern C++ is obfuscated by default due to templates, inlined functions and of course OOP.
For example, Marcus Hutchins famously echoed Boost is a cluster fuck of sadness.
My point is not about obfuscation anyway but it does helps obfuscation to some extent. It's about reverse engineering the optimized code and recover the original non-optimized code which can have a lot of use-cases.
https://www.msreverseengineering.com had a course on this subject. Experienced ones can reverse everything but my point is that it increase the barrier.
Standards exist to make multiple implementations palatable.
See Python for a stunning example where they botched the standardization effort and ruined the language for good.
https://thephilbert.io/ is the primary developer's blog and has status updates.
I've implemented a basic ML variant before, and maybe half a dozen different lisps. Rust is only BARELY functional. A C++ guy ought to know better!
Believe me, I'm not interested in Rust for Rust's sake. If there were a GNU implementation, I could see writing code generators for Rust a little less cumbersome than trying to target C or LLVM IR or Wasm.
Realistically, I see Zig winning the fight that Rust is trying to fight, and C++'s headaches being replaced with Rust's headaches.
There is no fight. There is made-up flame-war. Every war happen at HN and Reddit's Echochamber not at Real World.
Every languages has headaches. You won't find a perfect language ever.
You can't do serious Rust if you don't understand functional aspects.
I know C++, Haskell and Rust. Like many says Rust is a functional language disguised as imperative. There were case studies on Rust where a one with Haskell background more like to learn it faster than a one with C++ background.
The Rust book don't show you the functional parts at beginning to build your intuition but once you drive deeper you will realize what I meant.
https://ceronman.com/2020/09/17/is-rust-a-functional-languag...
Rust does have a lot of nice ideas borrowed (hehe) from functional programming, but it's far from being FP!
On a tangent: you're comment about learning a FP before learning Rust is great advice, but not for the reasons you initially intended perhaps. Learning FP in general is great, since it teaches you a different way of thinking from the "classical" way programmers think. So, it's great to learn FP for anyone, regardless of whether it's for Rust's sake (it will help a bit with reasoning about some Rust concepts and idioms, though), or not.
Graydon Hoare mentions Rust as linear ML in C++ clothing.
https://twitter.com/graydon_pub/status/1154476823557754880
I empathized the can't deny relationship between Rust and FP. It doesn't means Rust is a pure FP language. I always said same thing about C++ templates too.