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.
Max
That make sense. I guess there are some ways to elevate this issue. Having an placeholder asset …
»
Simon Anciaux
I don't think there is anything special. The name is just there to tell you that if you want only …
»
Mārtiņš Možeiko
Because having it in language would be way easier to use & share. Otherwise you would need to inst…
»
Mārtiņš Možeiko
It is different way of writing offsetof(sim_region, Origin). Casey does not like to depend on comp…
»
Oliver Marsh
It's getting the number of bytes offset from the start of the struct. So in the user code, you can…
»
da447m
In the file handmade_generated.h we find My first question here is why casting 0 like that? Is thi…
»
da447m
Thx for the reply! No, I'm actually just asking why he named that "legacy". Usually this means som…
»
da447m
Yes, that's correct. It requires exactly that. So basically this is a metalanguage that could have…
»
Mārtiņš Možeiko
Yes, that's correct. It requires exactly that.
»
da447m
Alright Martins, now I'm at day 206 and 207, now I understood why Casey created the tokenizer and …
»
Simon Anciaux
If you're speaking about how to use the assets to run the game, there should be a readme file in t…
»
Simon Anciaux
There are also ways to mitigate the issue, like having "required" assets and "optional" assets. Fo…
»
Max
Thanks for the response! I was worried that might be the answer haha. The problem doesn't seem to…
»
Mārtiņš Možeiko
or just play through the game with a very large memory allocation and record largest amount of mem…
»
Mārtiņš Možeiko
What I don't get, using your example, is why wouldn't you just want the entire struct memcpy() to …
»
x13pixels
This is caused by the /JMC compiler option. We could consider supporting this option at some poi…
»
da447m
Hi Martins, if I understood correctly, you want: 1 - compiler unfolds types inside a struct for yo…
»
Max
How does one pre-allocate the correct amount of memory for game assets? I have been working my way…
»
Mārtiņš Možeiko
Because you want all that logic be resolved in compile time (thus the codegen) not runtime. Same c…
»
da447m
Is there any video where he explains the naming? I went to vid 599 but didn't find anything.
»
da447m
For my previous serialization example, you need type information to actually iterate over members …
»
da447m
The author of C3 language has some pretty cool ideas for a macro system. Casey had a rant where …
»
longtran2904
The author of C3 language has some pretty cool ideas for a macro system. Casey had a rant where …
»
Taylor Robbins
Hey Miles, sorry for not really following through with this intent. It ended up not being a high e…
»
Mārtiņš Možeiko
Jai does this with #run: In C# you can do similar things with DynamicMethod/ILGenerator & System.…
»
da447m
doing codegen in separate program/script Curious. How does this work? How do you do code generatio…
»
Mārtiņš Možeiko
Advantage compared to what other ways? Advantage over manually writing N similar copies of same fu…
»
da447m
it's about what you can do at compile time (similar to C++ template arguments). OK but then you kn…
»
Mārtiņš Možeiko
Why won't you just write a function? That requires using specific types. What if I want "print" fu…
»
da447m
Current macro implementation is is pretty poor. Try writing macro that accept arbitrary argument c…
»