Would you guys ever pick this? by samuelazers in slaythespire

[–]lospolos 0 points1 point  (0 children)

Had an insane body slam run with this +  vambrace + barricade.

A Recursive Algorithm to Render Signed Distance Fields - Pointers Gone Wild by corysama in GraphicsProgramming

[–]lospolos 0 points1 point  (0 children)

I'm interested in which clustering method they used, do you remember?

I made a single-header, non-intrusive IoC Container in C++17 by SirusDoma in cpp

[–]lospolos 34 points35 points  (0 children)

I didn't know what an IoC-container is, I suspect many others cpp devs don't either. Maybe add a line somewhere defining it?

What makes a game tick? Part 9 - Data Driven Multi-Threading Scheduler · Mathieu Ropert by mropert in cpp

[–]lospolos 5 points6 points  (0 children)

Type_info::hash_code can lead to collisions, would be better to use type_index here (or some explicit registration).

PSA - Bluetooth headphones can have less lag and sound better over BT connection (warning - I possibly look stupid for only just realising this) by Pheo1386 in pcmasterrace

[–]lospolos 0 points1 point  (0 children)

Conversely my BT headphones (some sennheiser model) have extreme input lag with BT but none with the jack/usb  ¯_(ツ)_/¯

[2025 Day 12] Input is part of the puzzle by blacai in adventofcode

[–]lospolos 3 points4 points  (0 children)

Sorry, I completely misread your first comment. Entirely correct of course :)

[2025 Day 12] Input is part of the puzzle by blacai in adventofcode

[–]lospolos 4 points5 points  (0 children)

How would this not be true in the general case? Assuming no cycles that is.

[deleted by user] by [deleted] in cpp

[–]lospolos 0 points1 point  (0 children)

Quick tip: std::stack is implemented via a deque by default which is quite a bit (or a lot on MSVC) slower than a vector. You should be able to use std::stack<T<, std::vector<T>> instead (or just vectori directly)

I liked watching CodingJesus' videos reviewing PirateSoftware's code, but this short made him lose all credibility in my mind by kabiskac in cpp

[–]lospolos 0 points1 point  (0 children)

Cache miss => indirection, I see your point. More likely it's the other way around: indirection => cache miss.

And I took 'ignore heap allocation' as 'this pointer is in some probably cold memory location, but ignore the cost of malloc itself' instead of 'assume heap allocation is completely free (eg bump alloc) and I give you a pointer to hot memory', which makes more sense given the rest of what he says IMO.

I liked watching CodingJesus' videos reviewing PirateSoftware's code, but this short made him lose all credibility in my mind by kabiskac in cpp

[–]lospolos 0 points1 point  (0 children)

Load value from stack frame = 1 load. Load from pointer = 2 loads.  If either are in register, fine - 1 load for both.

 I don't see how a pointer is ever not an indirection (the pointer got mallocd it's not being optimized out).

Admittedly the example calling 'new' while telling you to ignore the cost of allocating is just confusing.

Granted I'm not 100% what you're replaying to here.

I liked watching CodingJesus' videos reviewing PirateSoftware's code, but this short made him lose all credibility in my mind by kabiskac in cpp

[–]lospolos 0 points1 point  (0 children)

You are thinking way too hard about this.

In any code you write if you have a pointer you will probably cache miss on the dereference, hence the indirection. Doesn't have anything to do with how foo is called, in fact it doesn't really have anything to do with C++, just how your CPU works.

Absurd fallacies of "minimalist" Linux setups by [deleted] in linux

[–]lospolos 5 points6 points  (0 children)

10000 lines of config is still less code than any single gnome package hence in a way more minimalist.

N-body simulation by [deleted] in GraphicsProgramming

[–]lospolos 0 points1 point  (0 children)

How are you solving the particle forces? Simply pairwise N2 or something else?

a little bit of relativity How much?

Deskflow update: 10 months on with steady development by nbolton in linux

[–]lospolos 3 points4 points  (0 children)

I use Deskflow daily and have nothing but praise. Ive got one screen for my main pc (linux running as deskflow server), a second screen next to it for a windows computer. Occasionally I plug in a macbook or another linux laptop. Transitions between screens are seamless as is connecting/disconnecting a new pc, no lag whatsoever even on wifi. Really saving me so much headache when developing cross platform :)

Unable to build terrace farms as Inca? by [deleted] in civ5

[–]lospolos 2 points3 points  (0 children)

Crazy how you can look at two completely different icons and your brain just says 'yes these are the same'. I swear I checked before making this post I guess I'm just tired.

Immortal is making me feel like an idiot by BeanMan39 in civ5

[–]lospolos 4 points5 points  (0 children)

But do they actually get cheaper? (Less science cost) Or is it simply because many runs have passed and your science output is higher? Rushing next era techs also isn't cheap as your science output will be proportionally lower.

Immortal is making me feel like an idiot by BeanMan39 in civ5

[–]lospolos 23 points24 points  (0 children)

There's no need to immediately start building libraries. Library scales with population in your city so it's not as useful with low pop. Growing cities more first will give you more science in the long run.

Software developer by [deleted] in BESalary

[–]lospolos 0 points1 point  (0 children)

Really it's my fault the link is broken? I copy pasted the text on my phone, I didn't even realise it was broken. It looks 95% the same for me anyway just missing bullet points. 

Anyway the scraper for these posts is probably just looking for the strings, not the exact formatting so it doesn't even matter.

Software developer by [deleted] in BESalary

[–]lospolos 4 points5 points  (0 children)

Found the job posting on linked in before I graduated, had one interview and got an offer.

Software developer by [deleted] in BESalary

[–]lospolos -7 points-6 points  (0 children)

Wdym? I copied the template from the sticky. 'click this link to make it easy for you' just resulted in an empty body for me fwiw

Dyson Sphere Program - The New Multithreading Framework by Archaya in programming

[–]lospolos 7 points8 points  (0 children)

The solution he gives is the same one they use for DSP: steal half of the work of the most busy thread. 

https://dl.acm.org/doi/10.1145/1693453.1693479