News for hackers. Stuff that matters.
Re:Rust Survey 2021 Results by jamil7 on Wednesday February 16, 2022 @03:16AM (#30357516)
It shares that as well as horrendous compile times with Swift.
Re:Rust Survey 2021 Results by pjmlp on Wednesday February 16, 2022 @04:27AM (#30357923)
The irony being that while C++ is known for its compile times, the ecosystem relience on binary libraries makes it much more tolerable.

Microsoft is also shipping pre-compiled projections for Rust/WinRT.

Then we have examples like image, that compile rayon twice, with different versions, because we just love to watch third party crates being compiled.

However I should also add that compile times have improved greatly, my travel netbook can finally handle small Rust projects without killing the battery.

Re:Rust Survey 2021 Results by zozbot234 on Wednesday February 16, 2022 @04:41AM (#30357988)
C++ binary libraries are a disaster. At least Rust is honest and tells you to just fall back to the C ABI for interop, and rebuild high-level abstractions around it in code that's built with the project - much like a 'header-only library' in C++.
Re:Rust Survey 2021 Results by pjmlp on Wednesday February 16, 2022 @05:12AM (#30358191)
I beg to differ, and until Rust community acknowledges they are relevant, there are industry domains where C++ will keep its dominance.
Re:Rust Survey 2021 Results by zozbot234 on Wednesday February 16, 2022 @05:19AM (#30358240)
Take a look at the C++ community discussion around the feasibility of "ABI breaks". The C++ community is acknowledging the issues, and how they're getting in the way of continued "dominance" in many sectors.
Re:Rust Survey 2021 Results by pjmlp on Wednesday February 16, 2022 @05:47AM (#30358424)
I am fully aware of them, a vocal minority that only cares about FOSS libs.

Why do you think Apple has spent such a big effort making Swift work for shipping binary libraries?

Most devs would just stick with Objective-C, C and C++ otherwise.

Re:Rust Survey 2021 Results by ChrisSD on Wednesday February 16, 2022 @08:24AM (#30359622)
> Microsoft is also shipping pre-compiled projections for Rust/WinRT.

Eh, sort of. They're basically shipping the Rust equivalent of C header files and import libraries. Whereas before they would parse metadata in a build script which would then generate the Rust code on the fly (which was hell for a number of reasons). And the installed Windows SDK was used for the import libraries.

Re:Rust Survey 2021 Results by pjmlp on Wednesday February 16, 2022 @09:27AM (#30360358)
Nope, I was speaking about this,

https://github.com/microsoft/windows-rs/tree/23ff38bbbf46fb5...

Apparently since last November they decided to replace it with another approach, so my information is outdated.