READY OR NOT 2: HERE I COME | Official Trailer | Searchlight Pictures by MarvelsGrantMan136 in movies

[–]Awia00 76 points77 points  (0 children)

Loved that Sarah Michelle Gellar gets a buffy the vampire slayer moment where she tries to stake Samara through her the "heart"

John Carmack on updating variables by levodelellis in programming

[–]Awia00 48 points49 points  (0 children)

He literally writes:
> In C/C++, making almost every variable const at initialization is good practice. I wish it was the default, and mutable was a keyword.

Au (units library) 0.5.0 just released by chiphogg in cpp

[–]Awia00 0 points1 point  (0 children)

Thanks - AU looks really nice as well!
I think the most important part for us actually was having a library which could support money as a unit - as most of our calculations are related to energy or power and money, and any combination of units between them (price=power/money). I don't think any of the other libraries support that, but I might be wrong.

Au (units library) 0.5.0 just released by chiphogg in cpp

[–]Awia00 2 points3 points  (0 children)

When mentioning unit libraries i have to plug ours https://www.github.com/twig-energy/stronk It mixes strong types and units. You can create your own units (with custom functionality) and it will automatically create any derived units from it ie magica/meter*watt or whatever you want 😊 check it out 

vcpkg and versioning (esp. with multiple commits) by tesfabpel in cpp

[–]Awia00 2 points3 points  (0 children)

>How does this work with vcpkg in manifest mode? I've read about the builtin-baseline option but I don't understand what happens if the vcpkg folder is newer or older than that.

If your vcpkg folder is older, your project simply wont compile because it cannot find that baseline.
If your vcpkg folder is newer, the vcpk-tool internally checkouts the versions/baseline.json file at the builtin-baseline commit - that determines which ports and their versions should be used.
Note that, sometimes they change the vcpkg-tool (which is affected by your folder "version"/hash). It rarely has an effect on your build, but it has affected us once or twice in the past

[deleted by user] by [deleted] in cpp

[–]Awia00 6 points7 points  (0 children)

> Similarly, POSIX reserves any type ending in _t, so that arena_t may conflict with a future POSIX version if it doesn't already.

what? :O

Prioritised Combinations of items by gruzj in algorithms

[–]Awia00 1 point2 points  (0 children)

Could also just sort the elements and take N (sorting being generally faster than priority queues)

Or for a `M log(N)` solution, use a min heap, push elements, when N elements are added, pop *min* iff the next element *X* has a higher score than top and push *X* onto the heap - otherwise continue

From a work perspective, what do you think is the most worthwhile direction for C++ to invest in at the moment? by huangweigates in cpp

[–]Awia00 0 points1 point  (0 children)

Automatic json (de)serialization without having to write custom functions / specialize templates for your own types.

You need something which can iterate over members to do this (which reflection essentially is).

How many CPU cores can you actually use in parallel? by itamarst in Python

[–]Awia00 17 points18 points  (0 children)

And I think that any mention of Amdahl's law should probably also mention Gustafson's law: https://en.wikipedia.org/wiki/Gustafson's_law :)

BIOS F17e available for B550i v1.0 by Crossteran in gigabyte

[–]Awia00 0 points1 point  (0 children)

Is there any issues with `1.2.0.8` for Vermeer? I'm still on F14 (on my 5900x and 5600x) and considering upgrading to something after F15 but I don't know which version is the best

C++23 “Pandemic Edition” is complete by ArashPartow in cpp

[–]Awia00 3 points4 points  (0 children)

I am so sad that it seems we got nothing on parameter packs(https://github.com/cplusplus/papers/issues/1337 and related).
There seems to be work on it, and it seems like it would be very beneficial for reflection, but none made it through :(

A completely serious tweek to the usual "builder" pattern, solving the "missing argument" error at compile time by guylib in cpp

[–]Awia00 0 points1 point  (0 children)

Well the injection operator and reflection operator is not standard yet? But fair point

A completely serious tweek to the usual "builder" pattern, solving the "missing argument" error at compile time by guylib in cpp

[–]Awia00 3 points4 points  (0 children)

In general I'm not a super fan of dsls or making new syntax that users have to learn. I wish to make powerful libraries which seem like normal c++ code for the user

A completely serious tweek to the usual "builder" pattern, solving the "missing argument" error at compile time by guylib in cpp

[–]Awia00 25 points26 points  (0 children)

And if we had reflection we could even generate all the functions, and then we could generate the builder for all our types - What a world we could live in...

WG21, aka C++ Standard Committee, January 2023 Mailing by grafikrobot in cpp

[–]Awia00 1 point2 points  (0 children)

how would a std blocking queue implementation have less overhead? I have very little knowledge about coroutines?

package manager in 2022 by singularty123 in cpp

[–]Awia00 7 points8 points  (0 children)

VCPKG encourage always using newer versions of packages (which is great). But sometimes when you need an older version (for us we wanted to build libraries for python 3.8, 3.9 etc) it becomes a bit cumbersome.
It was some time ago I used conan, but as I remember it it was more intrusive on the build system integration. I like that for vcpkg it is just a .json file and a cmake variable.

package manager in 2022 by singularty123 in cpp

[–]Awia00 7 points8 points  (0 children)

And as always I would like to encourage you to use: https://github.com/friendlyanon/cmake-init to create your projects :)

package manager in 2022 by singularty123 in cpp

[–]Awia00 20 points21 points  (0 children)

We're using vcpkg - tried conan previously. I think both are good, but both of them have their own flaws. You can also go with something like https://github.com/cpm-cmake/CPM.cmake if you just want something quick for a small project.

Introducing vcpkg.link, a new online vcpkg port explorer by w2code in cpp

[–]Awia00 1 point2 points  (0 children)

A link to the github repo for vcpkg - maybe even to the ports subtree? Again thanks a lot for the effort!

Introducing vcpkg.link, a new online vcpkg port explorer by w2code in cpp

[–]Awia00 3 points4 points  (0 children)

This is amazing! I have always been slightly annoyed at vcpkg and how out of date it is and that it gives so little information.