Hi there fellow Handmade Heroes! I've just started the series, and not a big fan of emacs. Trying …
Mattie —
If you have to explicitly declare that you're going to be referencing data in a "popped" stack fra…
Another good code to look at: It's a very small library that opens window and allows you to write…
Yes, currently compilers use stack like this. But nothing is preventing compiler writers to use/al…
One more tip on STL containers - preallocate memory for containers before using them (with reserve…
Adam —
Just an update to this, thought I would add in a link I found as a helpful starting point for anyo…
Hoho, I didn't know about unordered_map, maybe I should read the STL documentation... :) Most ofte…
Hello everyone! Casey, just wanted to point out that in the process of replacing the "slot" thing,…
I don't even know where to complain about my previous new topic being lost, I guess a moderator co…
That's a much bigger difference than I have personally seen in practice. You have to know visual …
Isn't the nature of stack allocation such that if a frame has been popped out, that frame is essen…
Could you elaborate on this use case? A factor of 7 seems so high that I suspect your usage of st…
While vector and unordered_map may be among the more performant containers in the STL, they have b…
Also, if you have the option for a newish compiler, the ranged base for loops can get rid of many …
I don't know why, wherever I go, whichever website I visit, anything that even remotely attempts t…
itzjac —
That's the reason! Thanks!
Oh, I see the problem now. First of all - when such program is compiled with optimizations turned …
itzjac —
I've got it. With such optimizer option it runs, I can use also -O1, -O2 and will still work. See…
itzjac —
I don't know how would I corrupt my stack by entering WinMain, the big array is declared right in …
If you are embracing C++ then I see no reason to not use STL. And if you don't care about items be…
Are you sure it is allocation that crashes not some stack corruption? _chkstk typically asserts if…
itzjac —
Alright I found the problem, Debug builds. How come your builds are by default in release mode? Sw…
itzjac —
Hi! Thank you for the hint. Still doesn't work. I tried also executing the commands from an admin …
I used to write all my own datastructures, and used template based linked lists a LOT. I pretty mu…
I count four in favor of issue creation and none against, so I've created the issues I skipped thi…
I used my remedial Joomla skills to add a "Search the Forums" option to the "Your Account" menu th…
dvkirn —
Techne is a text editor partially inspired by HMH that I've been working on in my spare time. I do…
We could change it to a SafeTruncateToInt16 if you remind me...Casey
Yeah, ML and friends do type inference in a much better way, without making you do all kinds of te…
Yes, that would be fine, although I don't really know that it's necessary. If the asset loading f…