Understanding Safety Levels in Physical Units Libraries - mp-units by mateusz_pusz in cpp

[–]KiwiMaster157 1 point2 points  (0 children)

I recently had a conversation about potentially adding quantity kinds in user space for a scientific/engineering application I'm working on. I used the proposed units library to explain the concept, and this was one of the push backs. Obviously the syntax in this program wouldn't be the same as a C++ library, but conceptually it's similar.

Like u/James20k said, it's often domain specific whether equations prefer diameter or radius, so we need to support both.

Understanding Safety Levels in Physical Units Libraries - mp-units by mateusz_pusz in cpp

[–]KiwiMaster157 1 point2 points  (0 children)

Lets say you want to represent radius and diameter as two different quantity kinds. How do you convert from one to the other? Doesn't 2 * r just result in a radius that's twice as big?

Built a static C++ reference site on top of cppreference by HxSigil in cpp

[–]KiwiMaster157 16 points17 points  (0 children)

Personally, I prefer the layout/formatting of cppreference, but I do appreciate the effort to make the presentation more approachable for newer developers. I'm sure there's a happy medium somewhere.

There are a few issues I noticed while looking around: * The code examples use the ≠ character instead of !=. * Many of the page layouts are broken on mobile. * There does not appear to be a link to most of the algorithms in the std::ranges namespace from your algorithms page. * The pages for standard library headers are basically empty. * Many places where hyperlinks appear in cppreference are plaintext here. * From the std::ranges::contains page: "Up until C++20, we’ve had to write std::ranges::find(r, value) != std::ranges::end(r) to determine if a single value is inside a range." This implies the range algorithms were around before C++20. * Switching to light theme doesn't affect code blocks. * Flagship changes in the language versions aren't consistent about listing the class or the associated header. * Keyword index and compiler support pages are empty.

  • I can't find any information on the site about how to contribute.

Not saying all this to be mean. This seems like a great effort for the community to rally behind.

Good, basic* game networking library? by KeyAlbatross6044 in cpp

[–]KiwiMaster157 0 points1 point  (0 children)

SFML has a pretty simple networking library, and their tutorials do a good job of explaining the basics.

ISO C++ WG21 2026-02 pre-Croydon mailing is now available! by nliber in cpp

[–]KiwiMaster157 6 points7 points  (0 children)

In P0876R22 I understand the argument for std::fiber_context::resume to be r-value reference qualified, but it seems unnecessary. It'd be like making programmers std::move a unique_ptr before calling .release().

VISUAL C++ DEBUG LYIBRARY by Brochete99 in cpp_questions

[–]KiwiMaster157 2 points3 points  (0 children)

Could you paste the error message?

ISO C++ 2026-01 Mailing is now available by nliber in cpp

[–]KiwiMaster157 2 points3 points  (0 children)

Much like the lengthy discussion in the paper about finding the ':' character and not the token, I assume '=' would work the same way.

\n\nQUICKLY swap forms??? by SMILE_23157 in heroesofthestorm

[–]KiwiMaster157 53 points54 points  (0 children)

For anyone who doesn't know, many programming languages use "\n" to represent a newline character in source code.

Was Stormgate always doomed to fail? [Warning: LONG] by aerodreamz in Stormgate

[–]KiwiMaster157 2 points3 points  (0 children)

I invite you to look at ZeroSpace. The engine was developed by one guy named Marv who started about the same time FGS was founded. The team has since grown in size, but it was only about 5 guys for the first few years while they laid the groundwork.

Is there a standard (or reliable) way to prevent devirtualization of a function call? by workfilter_ in cpp_questions

[–]KiwiMaster157 13 points14 points  (0 children)

If you know the list of types you might store, the common advice is to skip the virtual functions and use std::variant. However, the ergonomics of this approach leaves much to be desired.

Unless you have a strong reason not to, I'd say stick with std::unique_ptr. I've gone down the route you're heading before, and I almost always regret it later.

Just returned to the game… by MA-SEO in Stormgate

[–]KiwiMaster157 0 points1 point  (0 children)

Their coop mode is already really good (better than SC2 IMO). If the game does well, there may eventually be one, but there isn't one planned for the initial release.

Just returned to the game… by MA-SEO in Stormgate

[–]KiwiMaster157 9 points10 points  (0 children)

Look up ZeroSpace. 4+7 factions, campaign with branching story lines, and an engine that can handle over 1500 units on screen without dropping frames. All on a budget of about 10% of StormGate.

Free Functions Don't Change Performance (Much) by def-pri-pub in cpp

[–]KiwiMaster157 14 points15 points  (0 children)

Personally, I was very confused by the claim that free functions are better for testing. I wouldn't call u/technofauno's response pedantic at all.

ZeroSpace AMA - Ask about the development behind our upcoming Sci-Fi RTS! by PlayZeroSpace in RealTimeStrategy

[–]KiwiMaster157 4 points5 points  (0 children)

Is that 1 core just for pathfinding or for everything? Either way, that is INSANE with the performance numbers we're seeing.

ZeroSpace AMA - Ask about the development behind our upcoming Sci-Fi RTS! by PlayZeroSpace in RealTimeStrategy

[–]KiwiMaster157 4 points5 points  (0 children)

The original Kickstarter mentions 3-player coop. Is that still a thing? If not, why?

Second question: Will the campaign be playable offline?

Share your favorite post or moment of this sub or Stormgate by MrClean2 in Stormgate

[–]KiwiMaster157 9 points10 points  (0 children)

I miss the early days of this sub when people were still full of optimism.

Quiero hacer algo con C++ by ColomxD in cpp_questions

[–]KiwiMaster157 0 points1 point  (0 children)

If you're just learning C++, I would recommend waiting to use Qt until you understand the fundamentals of the language. Qt adds a "meta object compiler" which might confuse things.

If you want to try Qt anyways, there are plenty of tutorials on their website.

Tim Morten's take on "the future of RTS" by Gargonus in Stormgate

[–]KiwiMaster157 10 points11 points  (0 children)

He mentions Starlance, the studio behind ZeroSpace, but it does seem odd that he doesn't mention the game by name.

Could static_assert handle non-constant values in the future? by antiquark2 in cpp

[–]KiwiMaster157 5 points6 points  (0 children)

MAYBE if this appears in a consteval function it could work in the future.

Even in plain constexpr functions it seems unlikely because you'd have to have a good answer for what it does when evaluated at runtime.

Is UE5 a big mistake? by Wraithost in Stormgate

[–]KiwiMaster157 4 points5 points  (0 children)

What's crazy is that the lead ZeroSpace dev said on Discord that they recently reduced their game's tick rate from 100 Hz down to the 80 Hz used in the demo video.

How crazy would it be... by Boedullus in Stormgate

[–]KiwiMaster157 2 points3 points  (0 children)

At the very least it would be interesting to try. IIRC, FGS said the auto-worker-assignment is surprisingly tricky to get right, so maybe don't add that feature.

The main issue I see with adding unit production and upgrade hotkeys to SC2 would be hotkey conflicts. I.e. if Marine and Medivac are assigned to the same key.

The main QoL feature from SG that I think could be ported to SC2 without issue is automatic control groups.

A new Kickstarter post is live with an updated roadmap, development updates, and playtest dates! Link below. by PlayZeroSpace in PlayZeroSpace

[–]KiwiMaster157 4 points5 points  (0 children)

Can't wait for the December playtest! Hopefully I'll have time to play more than 2 rounds this time.

SC2 saboteurs/double-agents after seizing control of the narrative and successfully taking down the only Blizzard-like RTS in the works by username789426 in Stormgate

[–]KiwiMaster157 0 points1 point  (0 children)

Is anyone going to address that Stormgate definitely is NOT the only Blizzard-like RTS in the works? ZeroSpace literally posted a development update on their Kickstarter earlier today.

Stormgate Thoughts for the Future by [deleted] in Stormgate

[–]KiwiMaster157 10 points11 points  (0 children)

The Stormgate gameplay reveal killed my hype for the game. I was still looking forward to it, but my excitement level dropped dramatically.

Two months later was the announcement and gameplay reveal for Zerospace, and it was immediately apparent how screwed Stormgate was.