I'm using C++ for everything because this is all I know.
Ask HN: Who is using C++ as the main language for new project?
101–110 of 199 posts
Re: Ask HN: Who is using C++ as the main language for new project?
#102tried Rust for a few times, finally gave up due to the learning curve and still young ecosystem, it's hard to learn multiple languages and become good with them, I will pinpoint on c++ for other new projects as it seems can do all I wanted.
Re: Ask HN: Who is using C++ as the main language for new project?
#103C++ is still often the best or only way to write performant code on embedded platforms, while having a rich library ecosystem available. Hence, my first choice for a new embedded project is almost always C++. I would love to be able to use something like Rust, but the RTOS options and library support are not quite there yet. With more powerful embedded processors becoming available, Micropython is an option for some…
Re: Ask HN: Who is using C++ as the main language for new project?
#104To me the choice was between C# or C++, but I ultimately chose C++, because while C# is much faster to code in, when there is a problem, coding directly against the OS, I have much more control in what actually happens and in what dependencies I really have.
Edit:
I also must confess that I'm enamored with the idea of having a comparatively tiny executable without any other runtime dependencies than itself and the OS.
For build system I use meson, and cross compile the Windows targets. It works from Windows XP through Windows 10. (If you have any 32-bit version of Windows, you get the "32 bit XP" version. If you have 64 bit but it's older than Vista, you also get the "32 bit version".)
Re: Ask HN: Who is using C++ as the main language for new project?
#105-- Bjarne Stroustrup, inventor of C++
Re: Ask HN: Who is using C++ as the main language for new project?
#106C++ is still often the best or only way to write performant code on embedded platforms, while having a rich library ecosystem available. Hence, my first choice for a new embedded project is almost always C++. I would love to be able to use something like Rust, but the RTOS options and library support are not quite there yet. With more powerful embedded processors becoming available, Micropython is an option for some…
I think the RTOS side is being addressed pretty well for rust, which libraries do you feel are missing now?
Re: Ask HN: Who is using C++ as the main language for new project?
#107The other language that gets used a lot is Python for tooling and similar.
Re: Ask HN: Who is using C++ as the main language for new project?
#108Cpp still has the (huge) advantage of maturity. Rust is great but still half-backed. Things like thread-local-storage, custom allocators and async are either unstable or incredibly rough around the edges.
Finally, my experience has been that third-party libraries in cpp are fewer but of greater quality than the ones in rust. There are many many libraries available in rust due to the amazing dependency system. But the average quality is quite poor.
In cpp you tend to be conservative when adding dependencies which means you have a much better understanding of the code you run. Or, you write your own code that’s usually custom made for your purpose, which generally end up as being more performant.