Live data from Hacker News

Ask HN: Who is using C++ as the main language for new project?

news.ycombinator.com

61–70 of 199 posts

Re: Ask HN: Who is using C++ as the main language for new project?

#61
We’re using C++ for a new blob storage service at work. 95% C++; build is configured with buck (bazel) and there is a small amount of Python and shell scripting.

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.

Re: Ask HN: Who is using C++ as the main language for new project?

#62
I work for a Fortune 500 on a pretty large app, and we use C++ as the core language for all the platforms we support with the UI layer being written in whatever makes sense (Swift -> iOS/Mac, Kotlin -> Android) Its not new new but its been this way for about 5 years now.

Re: Ask HN: Who is using C++ as the main language for new project?

#63
Yeah, it's one of my two main languages for new projects.

I 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?

#64
Just about any project you do in Unreal is a C++ project and Unreal is used all over the place - in games but also in industrial design and architecture for demos and visualization.

I 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?

#65

In 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…

IMO the C++11 and later features can make it easier to use, less error-prone, and slightly more like Rust. Avoiding them entirely is probably a mistake.

Re: Ask HN: Who is using C++ as the main language for new project?

#66
I'm using C++ for a minecraft clone that I've been tinkering on for the past year[0]. I also plan on using embedded lua for scripting, and I'm using RML UI for game HUDs, ImGui for development tools, and OpenGL for graphics. I use premake for my build system but plan on switching to CMake.

I'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 :)

[0]: https://youtu.be/UAUdIQZKV88

[1]: https://github.com/ambrosiogabe/MathAnimation

Re: Ask HN: Who is using C++ as the main language for new project?

#68

This 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

That’s really cool.

Re: Ask HN: Who is using C++ as the main language for new project?

#69
post #52

Started 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/

[deleted]

Re: Ask HN: Who is using C++ as the main language for new project?

#70

Started 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.

https://github.com/isocpp/CppCoreGuidelines
Post reply on HN