Lead engineer picked the language and he’s very much an early 2000s C++ guy, for better or worse. That said, when the choice was made two years ago, Rust had almost zero adoption in our organization. It’s more popular now, but we aren’t restarting the project from scratch.
Ask HN: Who is using C++ as the main language for new project?
61–70 of 199 posts
Re: Ask HN: Who is using C++ as the main language for new project?
#62Re: Ask HN: Who is using C++ as the main language for new project?
#63I mostly write system tools and cloud-focused tools. For the former I use C++, for the latter it's Go.
The portability of C++ just can't be beat. At worst you have to restrict yourself to a certain earlier C++ version (e.g. C++14), but the pure "access" you get to the system is unbeatable.
E.g. you need to call exactly these low level functions in exactly this order? C or C++ is all there is.
And manual memory management is a terrible way to live your life, so C++ it is. (the modern kind, the one where you never write `new` or `delete`, basically ever)
Go seems like it tries to be a systems language, but it's failing at it. The portability is just fundamentally misdesigned. +build comments based on OS name are a known antipattern, and just are neither backwards nor forwards compatible.
Even the stdlib has different function signatures depending on the OS, so you can't a portable use of select(2).
Go is great for tying together parts, though. Read some stuff from GCS, stuff it into PostgreSQL, publish a message on Cloud PubSub, and update a load balancer certificate. I sure wouldn't want to do that in C++ for a small tool.
I should learn Rust. I hear good things. But in order to replace Go it'd need great Cloud support, and that seems to be lacking. And to replace C++ I'd need to actually be able to build and run stuff, even on my Debian oldstable. Too many modern languages require you to upgrade your entire OS in order to get a build environment, and that's a showstopper for me in some installations.
If I can't run my tool in that older environment, then it's not solving my problem.
But maybe it's fine. Like I said, I should learn Rust.
Re: Ask HN: Who is using C++ as the main language for new project?
#64I started a project (https://github.com/tedmiddleton/mainframe) last year to make a dataframe in C++ because I was running into some performance limits in Pandas. I’m not sure how useful a C++ dataframe is - but I imagine it as being an alternative to going all the way to Hadoop and spark if you’ve outgrown pandas.
Re: Ask HN: Who is using C++ as the main language for new project?
#65In terms of LoC, I'm probably at 25% C++, 65% Dart (Flutter) and 10% Kotlin/Swift. Probably not enough to qualify as "main language", but enough that I'm writing it multiple times a week. C++ for the low-level machine learning (Kaldi/ONNX) & rendering (Filament) components, Dart for the service/model/view layers and Kotlin/Swift for hooking things up to native APIs. I can't claim to be a C++ expert but I've found tha…
Re: Ask HN: Who is using C++ as the main language for new project?
#66I'm also using it for an animation tool[1]. I've been using 3Blue1Brown's Manim (written in Python) which is amazing, but it lacks real-time editing and proper 3D blending. It also lacks audio synchronization, 3D texture support, and some more complex features that I'd like to add :)
Re: Ask HN: Who is using C++ as the main language for new project?
#67Re: Ask HN: Who is using C++ as the main language for new project?
#68This is a little toy project (an animated 3D wind map), but I started it a couple of days ago so I guess it qualifies as "new": https://github.com/0xf00ff00f/windmap Uses CMake, Qt6, CUDA and OpenGL. Here's a short video showing how it currently looks like: https://twitter.com/0xf00ff00f/status/1557920480564334594
Re: Ask HN: Who is using C++ as the main language for new project?
#69Started a new job which requires me to know c++ so I’m learning that. Half c# and half c++. Bought some books. - Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14 - C++ Concurrency in Action - C++ High Performance: Master the art of optimizing the functioning of your C++ code If anyone has any recommendations would love to hear them.
Abseil Tips of the Week have some gems. https://abseil.io/tips/
Re: Ask HN: Who is using C++ as the main language for new project?
#70Started a new job which requires me to know c++ so I’m learning that. Half c# and half c++. Bought some books. - Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14 - C++ Concurrency in Action - C++ High Performance: Master the art of optimizing the functioning of your C++ code If anyone has any recommendations would love to hear them.