←back to thread

271 points mithcs | 1 comments | | HN request time: 0s | source
Show context
krapht ◴[] No.45953071[source]
C++: "look at what others must do to mimic a fraction of my power"

This is cute, but also I'm baffled as to why you would want to use macros to emulate c++. Nothing is stopping you from writing c-like c++ if that's what you like style wise.

replies(7): >>45953166 #>>45953176 #>>45953287 #>>45953573 #>>45954009 #>>45954016 #>>45961205 #
sesm ◴[] No.45954009[source]
Embedded CPU vendors not shipping C++ compilers is what usually stops people.
replies(2): >>45955450 #>>45956852 #
kjs3 ◴[] No.45955450[source]
Yup. And I like the implication that Rust is 'cross platform', when it's 'tier 1' support consists of 2 architectures (x86 & arm64). I guess we're converging on a world where those 2 + riscv are all that matter to most people, but it's not yet a world where they are all that matter to all people.

[1] https://doc.rust-lang.org/beta/rustc/platform-support.html

replies(2): >>45956560 #>>45960439 #
okanat ◴[] No.45960439[source]
You are misunderstanding what Tiers are. Embedded architectures cannot be Tier 1 which requires running Rust compiler compiled on the architecture itself and testing stuff on with it. Only full desktop systems will be Tier 1, because those are the systems that you can run Rustc and all the nice desktop environments.

However most of the embedded world uses ARM chips and they are Tier 2 like thumbv6m and thumbv7em (there are still odd ones like 8051 or AVR or m68k, many of them lack a good C++ compiler already). They are guaranteed to be built and at the release time the tests still run for them.

replies(1): >>45975984 #
1. kjs3 ◴[] No.45975984[source]
I understand your tiers just fine. You are misunderstanding what "cross platform" means. Or rather, you're trying to redefine it to mean "what Rust supports, in the way we want to support it, on the few architectures we care about, because in our view nothing else of value exists".

However most of the embedded world uses ARM chips

My point exactly.