We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Mattie
If MergeIfPossible() returns the pointer to the merged block when the merge succeeds, what should…
»
Raxfale
gingerBill What do your templated vectors offer over a simple implementation? Your generalizati…
»
Ginger Bill
I cannot believe I am saying this but one good thing about MatLab is its builtin math. It does ha…
»
Johannes Norneby
Could anyone point me to a write up about why Casey thinks C++ is so bad, I mean really specifica…
»
Andrew Bromage
gingerBill I know that in C++17, they will/might implement concepts which act very similar but I …
»
Rowan Crawford
Part of HMH's fun is trying to anticipate how Casey is going to write something before he writes …
»
Casey Muratori
gingerBill If I was to make a templated vector, I would do something like this: That is not gener…
»
Casey Muratori
Yes, as Martins says, there are a lot of benefits to a metaprogrammed vector type. The problem w…
»
Mārtiņš Možeiko
His implementation avoids reimplementing for each Vector type functions like dot, length, lerp an…
»
Ginger Bill
raxfale Casey often mentioned that one (but not he) might do the vector classes as templates. Fo…
»
Zoltan Stomfai
Ok, here is the solution (thank you Dot): In the System environment there was a Variable with th…
»
Casey Muratori
No problem at all - it is always better to be safe than sorry! - Casey
»
Ginger Bill
I use Go(lang) a lot at work and Go interfaces can be useful. In the io package, there are a few …
»
Ginger Bill
Here is a very good example of Immediate Mode GUI in C++: https://github.com/ocornut/imgui
»
NoobSaibot
Yep, right you are. Sorry for the noise.
»
Krzysiek
Well, yes, it is a vtable, but I like it better this way. I can control it and who knows what wil…
»
Mox
Yeah, I guess that will work. But isn't that just implementing your own vtable? I was hoping for…
»
Krzysiek
I'm not sure what you want to achieve. If you really need to inline these functions then I have n…
»
Casey Muratori
Please look at the call site for MergeIfPossible and note that it is called twice, once for B-C (…
»
Matt Mascarenhas
Cheers, debiatan! It's good to be back. Ha, okay. Well your script eases the process a lot. Mayb…
»
NoobSaibot
Hey, i think in your implementation of MergeIfPossible you're missing to merge with all free chu…
»
Miguel Lechón
Hi Miblo. Glad you're back! I agree with the scheme you propose and I'm also too lazy to pass …
»
Zoltan Stomfai
One more thing: I've tried to setup earlier a Handmade project in VS2013 Community edition, to us…
»
Matt Mascarenhas
Aye, agreed. So I think it'd be worthwhile recognising one person as the habitual issue creator, …
»
Mārtiņš Možeiko
C standard comes with set of functions any C standard compliant compiler should provide. For exam…
»
Bryan Taylor
johno Ok, so STL isn't very OOP, all well and good. I am definitely moving away from OOP. To cla…
»
elle
The term (c) runtime and (c) runtime library comes up frequently in HH. But what is a runtime spe…
»
Zoltan Stomfai
Removed /K not helped... Tomorrow I am moving, but in the evening probably can check the CL envir…
»
Mārtiņš Možeiko
Well yes, it's invoked with /K. Maybe that's the problem? Try running cl.exe without invoking any…
»
Zoltan Stomfai
Shell.bat is invoked with /k It seems to me, the CL getting somehow the path to the vcvarsall.ba…
»