Gregor Gullwi (@GregorGullwi) profile picture

Principal Gameplay Engineer @GregorGullwi@mastodon.gamedev.place

Sweden
Joined July 2012
Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)Photo by Gregor Gullwi (@GregorGullwi)
Another not so intuitive optimization: Turn: dst[i] = mask[i] ? 0 : src[i] Into: uint_t s = src[i]; dst[i] = mask[i] ? 0 : s; Unlocked auto vectorization. Why? 👇
1
27
Because in the C++ standard, it’s not allowed to access src in each loop iteration if there’s a conditional. Adding a local variable breaks that conditional and unlocks the compiler to assume it’s always safe!
21
Today’s easiest code optimization: Adding __restrict__ to all dst pointers in a function. Before: 2.5 ms After: 0.3 ms
26
I’ve been struggling to refactor the sema and name fallback lookups in the template and codegen code paths of FlashCpp for months now. I finally asked Codex to evaluate if there was any hope, but the conclusion was that it was better to start over.
1
1
70
There has been a lot of progress since I started and I also learned more about how different parts of a compiler should work since then. So I hope this is the right call 😅
1
28
Step one was better error diagnostics. Not sure why, but it made me happy as well for some reason even though it was never the focus. Let’s see where revision two takes me 🙂
14
I know the buzz is all about Opus 5, but I just put $20 into Cursor for the first time and I’m loving both Composer and Grok 4.5 as well as getting $20 API credits for both Anthropic and OpenAI models!
3
143
My prediction after seeing #Unrealfest’s State of Unreal. A lot of people will stay on UE 5 since they plan on removing Blueprint support. Maybe this is an opportunity to make an UE6 plugin to make it backwards compatible? Probably can’t sell it in this AI era though…
1
84
This was the best tweet this year
After 9 years of marriage, one toddler, two full-time jobs, and approximately 900 tiny arguments about dishes, daycare, and who forgot to move the laundry... My wife and I have a few weird rules that keep our house from turning into roommate mode with a mortgage. 18 rules we use to run our house with less resentment and more connection:
51
Day 1 of GitHub Copilot going from premium requests to token based usage. Used up 5000/7000 tokens on two commits, one with Opus 4.8 medium and one with GPT 5.5 high. Good results with both, but felt like Opus was slightly cheaper?
1
346
Did a small Haiku refactoring, which felt very cost effective.
1
110
The rest of the tasks were spent in Codex with GPT-5.3-Codex which also felt very cost effective! That’s my current favorite, let’s see if it sticks for harder tasks later on.
139
Not even through half of May... I think I need to stop my addiction/long running Copilot agent sessions in June 😅
1
1
139
What happens when you ask @GitHubCopilot to do a large refactoring? It asks a subagent, which asks a subagent, which asks a subagent, which asks a subagent… which actually does the work!
34
What is GPT smoking?! Related to year 1697??!
57
TIL, C++ have function level exceptions: int main () try { C c; } catch (const std::exception& e) { std::cout << "main() failed to create C with: " << e.what(); }
66
I’ve been using a Unity/single compile unit in FlashCpp from the start almost. I asked GPT 5.4 to add support for individual compile units like a classical C++ setup. The result was: Current compile time 55s, regular build 3m52s on a Github runner.
1
95
I use plenty of templates, so I can shave off compile time if I really want to. Right now, the compiler and all ~1500 test files run in about 3 minutes. Perfect for an LLM to be able to verify its work every run.
1
47
This is a perfect demonstration of what’s wrong with C++. I shouldn’t have to care about this! I really hope I can finish this project so I can test out all my ideas on how to improve C++ compiler speeds overall!
24