News for hackers. Stuff that matters.
Re:Ask HN: Why would you ever use C++ for a new project over... by justin66 on Monday April 01, 2024 @09:15PM (#39901322)
Rust doesn’t even have a real GUI library yet, let alone support from common game libraries. C++ supports a hundred times as many compilation targets and platforms.
Re:Ask HN: Why would you ever use C++ for a new project over... by TillE on Tuesday April 02, 2024 @12:08AM (#39902292)
Games would probably be the biggest, most common scenario where C++ isn't going anywhere any time soon.

More generally, if you need to use existing C++ or even C libraries, Rust is at best an awkward fit unless someone else has already built and is actively maintaining the necessary bindings.

Re:Ask HN: Why would you ever use C++ for a new project over... by thesuperbigfrog on Monday April 01, 2024 @10:02PM (#39901610)
>> C++ supports a hundred times as many compilation targets and platforms.

I would not want to be the one writing that CMakeLists.txt

Re:Ask HN: Why would you ever use C++ for a new project over... by helloiamsomeone on Tuesday April 02, 2024 @12:21PM (#39907534)
If you are hardcoding anything platform related into your CML, you are doing that wrong. The default path must not be anything other than build and usage requirements. To support more usecases with CMake, you have to write less of it.
Re:Ask HN: Why would you ever use C++ for a new project over... by LeFantome on Monday April 01, 2024 @09:27PM (#39901402)
You do not think Iced counts yet?
Re:Ask HN: Why would you ever use C++ for a new project over... by speedgoose on Tuesday April 02, 2024 @04:46AM (#39903583)
https://tauri.app seems to be fine.

I agree that the gaming industry is a place where starting a C++ project still makes sense.

Re:Ask HN: Why would you ever use C++ for a new project over... by the__alchemist on Thursday April 04, 2024 @08:38AM (#39929645)
EGUI. (I agree with you on lack of games libs)