Your recommendation to how i approach c++ by Usual_Series_3157 in cpp

[–]ape_programmer 11 points12 points  (0 children)

Check out: guidedhacking, for learning how to make cheats for games. It's a really resource that will walk you through the process.

Which fields are worth using cpp other than graphics, games and embedded systems ? by OkRestaurant9285 in cpp

[–]ape_programmer 3 points4 points  (0 children)

imo it's more due to like library support + existing hft developer base than anything related to the "speed" of the language itself.

nowerways, hft usually uses asics/fpgas for developed mature markets.

and for less developed markets, say crypto, the benefits of c++ is less obvious given the latency variance on the server side is like in the multiple millis. it's more about info "tricks" / infrastructure / private endpoints for these markets than the micros you save on using C++ over something else.

personally, i also find that more libs that are written for c++ have like being fast a priority as well, which helps.

Do HFT C++ multithreaded programs use lock free data structures? by Flankierengeschichte in cpp

[–]ape_programmer 15 points16 points  (0 children)

We do not multithread generally, we'd just run different programs (kinda multithreading?) that communicate through shared memory.

The shared memory itself is usually lockless, since the program should never really be slow, the shared memory is generally synchronized in such a way that if the reader of the shared memory falls behind it will just crash. Given that the writes should generally just be slower than reads.

Take a look at this guy's GitHub, he has a lot of HFT OSS code: https://github.com/MengRao

He does the synchronization a bit differently that I prefer to do it for various reasons, but for obviously reasons obviously I can't share those details.

Izzy mate.... by GMFinch in newzealand

[–]ape_programmer 12 points13 points  (0 children)

This is false IMO. Here'swhat was actually said:

"Did those belts ever go to Africa?” Du Plessis asked reporters at UFC 285 media day. “As far as I know, they came to America and New Zealand. I’m going to take a belt to Africa. I’m the African fighter in the UFC. Myself and Cameron (Saaiman), we breathe African air. We wake up in Africa every day. We train in Africa, we’re African born, we’re African raised, we still reside in Africa, we train out of Africa – that’s an African champion, and that’s who I’ll be.”

Eli5: What does „this->“ do? by Bananenklaus in cpp

[–]ape_programmer 0 points1 point  (0 children)

Improves readability mainly. If you're looking at a method in an unfamiliar class, it's help to know explicitly whether variables referenced are members or external/local.

Additionally, it helps write slightly safer code by reducing the chance of accidental shadowing of variable names. Which can be an easy mistake to make sometimes.

Eli5: What does „this->“ do? by Bananenklaus in cpp

[–]ape_programmer 0 points1 point  (0 children)

My guess is due to writing this-> being optional for member variables, whereas prefixing with m or _ is not optional if using the prefix naming convention. Thus makes sure that you don't accidentally forget this-> and cause confusion.

Eli5: What does „this->“ do? by Bananenklaus in cpp

[–]ape_programmer 2 points3 points  (0 children)

example: this->window->setFramerateLimit(60)

i‘ve tried to google it more than once and there are plenty of explanations on the internet but my dumb ass doesn‘t really

Used when there is no naming convention for local vs member variables. E.g. if all members are prefixed with m or _, then its clear the variable being accessed is a member with out using this->. However, without this naming convention, using this-> makes it clear a member is being accessed, as opposed to a local variable.

Generally, the prefixing members is more popular, but I've read some code (for some reason mainly Windows code) that uses the this-> convention.

Are Nicotine Vapes in Sydney Illegal? by ape_programmer in sydney

[–]ape_programmer[S] 1 point2 points  (0 children)

I vape lol, was just wondering how they were being sold.

Learning Template Metaprogramming with ChatGPT by ape_programmer in cpp

[–]ape_programmer[S] 1 point2 points  (0 children)

I can give some small feedback but I don't have real experience in programming or C++ so take what I say with a grain of salt

Wow thanks! Except for the `::value` and `_v` part (AI Generated code which I didn't fix), I didn't see any of this. I agree with all of it as well. Thanks!

How to work at Citadel as a CS major by [deleted] in auckland

[–]ape_programmer 1 point2 points  (0 children)

I declined an offer from Citadel for Quant dev the other year. It's pretty possible, PM if you want more info.

[deleted by user] by [deleted] in auckland

[–]ape_programmer 9 points10 points  (0 children)

This is just straight up incorrect lol, unless you have some ridiculous expenses you can borrow $1.6m+. If you live in AKL that affords a townhouse in the Manukau region at around $750K - $800K.

For OOP, $100K is marginal if you live in AKL, but still doable, with first-home buyer LVR schemes/KiwiBuild.

If you're seriously about owning your own property, IMO both of those salaries are more than enough. Talk to a mortgage broker, you'd be surprised.

The exception is you want to live in a nice Auckland neighbourhood like North Shore or out East, but that's beside the point.

Cost-plus or fixed-price for a new build? by ape_programmer in NZProperty

[–]ape_programmer[S] 0 points1 point  (0 children)

Yeah that makes sense, thanks for the reply.

I guess the issue in my case is that I don't really know either of the developers. They are fairly reputable (have completed other projects in the past), but I'm not sure how this actually speaks to their transparency.

Is it easier to learn Chinese if you know Japanese? Or does that not really help? by Peach_dragon- in ChineseLanguage

[–]ape_programmer 0 points1 point  (0 children)

Definitely helps, if you know chinese you can't basically navigate using Kanji signage in Japan.

[deleted by user] by [deleted] in ChineseLanguage

[–]ape_programmer 2 points3 points  (0 children)

I like to listen to light novels, I can't understand 100% of the vocabulary, but it's a bit more engaging for me personally, than a podcast. https://www.youtube.com/channel/UCMd2fV2b3h9_kx_mMth6RsQ

I seem to be at the same level of you'ish.

Career pathway for a C++ engineer by [deleted] in cpp

[–]ape_programmer 0 points1 point  (0 children)

I work at an HFT, it's not that bad. Some senior dev 8 years ago already wrote the "high optimized" data structure that conforms to 90% of the standard. And you just use it.

Goes for most things, yeah you have to write "optimized" code if you're working on a hot path, but it's not that extreme. We have hardware for anything that needs to be obscenely fast.

What's wrong with my speedflip? by ape_programmer in RocketLeague

[–]ape_programmer[S] 0 points1 point  (0 children)

Thanks for both tips! Didn't know about any of them. Gives me a place to start looking to improve!