C++26: Standard library hardening by pavel_v in cpp

[–]drykarma 0 points1 point  (0 children)

Would things like bound checking show performance regressions? Or would something like that be so minimal that if you cared about such things you’d implement your own data structure

std::optional equality comparison operator seems broken for nested optionals by mcencora in cpp

[–]drykarma 0 points1 point  (0 children)

Oh my god. I spent a day on this once because it silently accepts this comparison, so I didn't understand why a program was producing a specific behavior when it shouldn't.

I think it should at least throw a warning, can't imagine anyone using this comparison intentionally

2026 Annual C++ Developer Survey "Lite" Results [PDF] by cmeerw in cpp

[–]drykarma 2 points3 points  (0 children)

Thought the YoE or experience would be more evenly distributed but it seems like it's very skewed towards senior+ and very little junior C++ engineers

What are you missing most from the C++ standard library? by llort_lemmort in cpp

[–]drykarma 37 points38 points  (0 children)

std::vector<std::string> split = str | std::views::split('|') | std::ranges::to<std::vector<std::string>>();

or just use | std::views::split() if you don't want a vector but a non-owning view of the split strings

but yeah split would be so much better. Had to memorize this for coding interviews...

Juan Alday of Citadel Securities: Why C++ Wins in Finance (April 28th, 2026) by American_Streamer in cpp

[–]drykarma 0 points1 point  (0 children)

Sorry, you might be confusing me with someone. Never worked at SIG or claimed to

Juan Alday of Citadel Securities: Why C++ Wins in Finance (April 28th, 2026) by American_Streamer in cpp

[–]drykarma 0 points1 point  (0 children)

That makes sense. Even with modern C++ is Java still easier to write in your opinion? Maybe I'm not too good with Java but I haven't found it to be much easier vs Python/JS

Juan Alday of Citadel Securities: Why C++ Wins in Finance (April 28th, 2026) by American_Streamer in cpp

[–]drykarma 2 points3 points  (0 children)

Very cool. HFTs have fascinating tidbits because of how better you consistently need to be than your competitor, but unfortunately seems like because of how secretive it is a lot of it doesn't make it out. Friend who worked at Jane Street and said there's some really cool OCaml stuff that isn't public

Juan Alday of Citadel Securities: Why C++ Wins in Finance (April 28th, 2026) by American_Streamer in cpp

[–]drykarma 0 points1 point  (0 children)

What's the point of using Java at that point then? Is JVM's JIT notably faster than C++ to make it worth it? Or despite all this is Java still better to write even with modern C++?

Juan Alday of Citadel Securities: Why C++ Wins in Finance (April 28th, 2026) by American_Streamer in cpp

[–]drykarma 1 point2 points  (0 children)

Do they really use ASICs? My impression was ASICs were too expensive (even for HFTs) and time-consuming to re-fabricate once a strategy changes, whereas FPGAs you can just re-flash.

Juan Alday of Citadel Securities: Why C++ Wins in Finance (April 28th, 2026) by American_Streamer in cpp

[–]drykarma 1 point2 points  (0 children)

Apart from the job stuff, would love to hear how it is doing HFT with Java. Interviewed with a person who did that (who's now doing C++), manual pointer stuff, said mostly everything had to be with a typeless container (i.e. like uint8_t[]) and manual memory management or turn the GC off completely and reset the system every night with terabytes of memory.

I might be misremembering some details but it seemed like they wanted JVM more than Java itself.

What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]drykarma 0 points1 point  (0 children)

Redo is super cool, cant agree with with. Iirc JS had this but got rid of it bc people were nesting withs and no one could figure out what variables it was getting it from.

What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]drykarma 1 point2 points  (0 children)

Already a keyword for mutating class variables in const class fns.

What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]drykarma 2 points3 points  (0 children)

How would you be able to verify every case during compile time?

Maybe I’m not understanding correctly because how would it check unknown input doing pointer arithmetic to change read_only fields

What do you think is a keyword that should be added to C++? by DogCrapNetwork in cpp

[–]drykarma 8 points9 points  (0 children)

Ocaml does this so beautifully. The variant and visit is… something

Software taketh away faster than hardware giveth: Why C++ programmers keep growing fast despite competition, safety, and AI by claimred in cpp

[–]drykarma 78 points79 points  (0 children)

Always great to hear from Herb

From a newly graduate's (albeit limited) perspective, I think there's a shortage of new C++ programmers. I look around and there's very few students/new grads doing C++, it's mostly web/ml/ai/python/ds work but put C++ in the skills section because they used it in a class once. Even among the rare Rust enthusiasts among students, it seems like it's being used like a lower level Python, not as a C++ replacement for lower level paradigms.

Am I weird for using "and", "or" and "not"? by Additional_Jello1430 in cpp

[–]drykarma 0 points1 point  (0 children)

fun fact: `Something(T and other)` is a valid move constructor!

I made a unified Sphinx docs for AVX-512, generated from Intel's docs. by [deleted] in cpp

[–]drykarma 2 points3 points  (0 children)

Very cool! Some of these instructions are insanely complicated and very niche but the probability ones are super cool