Chris Green's Avatar

Chris Green

@aachrisg.bsky.social

Back at Valve. gfx,simulation,parallelism,math,AI,HW,VR,game engines. MTG Online,Ultima Underworld,AmigaOS,Flight Sim,Scuba,Paleontology. ~40years experience. I made both a Mastodon and Bluesky account so I could check them both out.

22 Followers  |  13 Following  |  7 Posts  |  Joined: 07.04.2024  |  1.4346

Latest posts by aachrisg.bsky.social on Bluesky

Wild. Top is the NBC upload, bottom is the one aired as the live feed

21.01.2025 05:45 — 👍 22036    🔁 8492    💬 766    📌 1395
Preview
Compiler Explorer - C++ auto TestFMAVectorization( float flScale, float *a, float const *b, int n ) { for( int i = 0; i < n; i++ ) { a[i] = std::fma( flScale, b[i], a[i] ); } }

D-oh:
std:fma will generate the fused multiply add instruction in MSVC and GCC, regardless of the setting of fp:precise as you would hope..
But MSVC doesn't know how to auto vectorize it, which kind of defeats the purpose :-( :-(. GCC does though:

godbolt.org/z/4f91hWKEE

23.11.2024 21:41 — 👍 0    🔁 0    💬 0    📌 0

I only do audiobooks if stuck in a car, but fairly recently read really good books:

James
When we cease to understand the world
The maniac
The warmth of other suns
The third reich history trilogy by Richard j Evans

www.goodreads.com/user/show/28...

19.11.2024 02:33 — 👍 1    🔁 0    💬 0    📌 0
Preview
Approaches for efficient unique symbols in C++ A very useful system to have, especially in large codebases (including in game development) is an automated unique symbol generator. A unique symbol is a mapping from a textual identifier that has …

A rare programming blog post. My favored approach for unique symbols/magic enums in c++.

chrisgreendevelopmentblog.wordpress.com/2024/10/03/a...

03.10.2024 00:44 — 👍 0    🔁 0    💬 0    📌 0

They ruined it a long while ago when they removed the ability to actually search for videos matching strings as opposed to "videos that I think you want to see because you typed this pattern".

03.09.2024 16:20 — 👍 0    🔁 0    💬 0    📌 0

Mastodon let's you edit posts.that big enough to make the choice clear

31.08.2024 01:57 — 👍 0    🔁 0    💬 0    📌 0

I don't want it mixed up with my largely inactive FB and Instagram accounts. Can I make a separate threads account under the same email address as those?

26.08.2024 21:19 — 👍 0    🔁 0    💬 1    📌 0

Is this thing on?

I've made both mastodon and bluesky accounts to replace twitter so I can check them out and decide which to keep.

c++ should have an abbreivated lambda syntax for simple functions. Like:

[]( int arg ) = arg * 2

26.08.2024 20:50 — 👍 13    🔁 1    💬 3    📌 0

@aachrisg is following 11 prominent accounts