7 ms·
I am a retiring engineer/entrepreneur. I made a lot of money with C++. It is hard for me to tell anyone not to use it. I recently developed an oil and gas deri
by deviantbit 3y ago
I am a retiring engineer/entrepreneur. I made a lot of money with C++. It is hard for me to tell anyone not to use it.
I recently developed an oil and gas derivative tool in Rust. IMO Rust has a long way to go. It reminds me of OCaml. I spent 2 years developing a Compliance System on DEC/OSF1 in OCaml. We made the mistake of adopting that language too early. Also, the C++ community is a lot more tolerant. A big plus for C++.
- not-my-account 3y agoIn which ways does Rust need to improve, in your opinion?
- slekker 3y agoCompile time, async, steep learning curve are things that come to mind
- not-my-account 3y agoThank you
- nickpsecurity 3y agoI’ll add, thanks to their age, C and C++ have more compatibility with boards, OS’s, GUI’s, libraries you might need, etc. Especially in embedded, you have way more options if using or hiring for C/C++. There were also more tooling for analyzing the C/C++ software but they often cost $$$. For common scenarios and platforms, Rust’s library situation did get way better really quickly.
- deviantbit 3y agoHere we go. I'm not taking this bait.
- deleted 3y ago[deleted]
- not-my-account 3y agoI’m not trying to bait you, and people who attack you for what you say are morons. I don’t have much experience in either language, and I don’t have an opinion on which is better. I am just interested in your opinion.
- enjeyw 3y agoI understand your hesitation, but I’d really appreciate your take, given you seem to know your stuff. Personally I think the sibling comment is pretty accurate, and rust is held back by: - slow compiling of larger projects - async stuff can quickly lead to very complex shenanigans - embedded still requires you to write HAL stuff for MCUs that is supported out of the box for C
- vpastore 3y ago[dead]
- iphorde 3y ago[dead]
- sliken 3y agoI'm fond of rust, but compared to go, I dislike that you need a different code path to support sync vs async in a module. Or pick a different runtime like Tokio. So you end up with modules that are async only, sync only, or both. Makes me miss go, which has channels build in, has a runtime built in, and both are generally solid. None of use flavor A for this, use flavor B for that, or write wrappers for the wrong color function.
- iknowstuff 3y agoRust has channels built in. In fact, the std channels were recently rebuilt on top of the excellent crossbeam crate. Function colors is kind of a meme but maybe-async functions are coming. https://lib.rs/tokio https://lib.rs/tokio is king for std environments, https://lib.rs/embassy https://lib.rs/embassy for no_std.
- sliken 3y agoYes, MPSC, single consumer which is limiting.
- iknowstuff 3y agoOh. cargo add crossbeam-channel
- slekker 3y agoTolerant towards what exactly?
- iphorde 3y ago[dead]
- lutoma 3y ago> Also, the C++ community is a lot more tolerant. Yeah the biggest turnoff for me with Rust isn't even the language anymore, but the community surrounding it. I realize it's mostly a vocal minority and the vast majority of Rust people, including the ones I know personally, are very nice. But boy are there some obnoxious Rust evangelists out there.
- dralley 3y ago> Also, the C++ community is a lot more tolerant. A big plus for C++. Well I completely disagree with this. The C and C++ communities seem to me personally to be a lot more "elitist", engaging in extreme pedantry or dunking on each other over knowing obscure language trivia. Both the language and the community are beginner-hostile in comparison to Rust. Not that the Rust community is perfect, because it's obviously not - but lack of "tolerance" has never seemed like one of the problems it has.
- p4ul 3y agoThis echos my personal experience as well. I would also add that there now seems to be more of an emphasis around being intentional in how languages foster community. The C and C++ communities (in my opinion) became how they are not by design, but mostly by accident or chance.
- wuschel 3y ago> I recently developed an oil and gas derivative tool in Rust Sounds cool! Could you elaborate? Would you have a website somewhere? Do you have any contacts details? Cheers!
- gaws 3y ago> I made a lot of money with C++. Please elaborate.
- vpastore 3y ago[dead]
- b20000 3y agocan you share more about how/at what type of jobs you made a lot of money with c++?