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.
pragmatic_hero
I played around with it a bit, and my asm is a bit rusty, but the difference is roughly: A) B) I…
»
ratchetfreak
gun_types[dude->gun_idx].damage and dude->gun_type->damage are basically the same with regards to …
»
Per Vognsen
Martins got it. I'd already changed it to just int n = 1024 in my own code since there isn't a str…
»
Oliver Marsh
Great read, thanks for sharing!
»
pragmatic_hero
There's was a small typo, should have been So in case A) it would be, load 1 on gun_types base a…
»
Jeremiah Goerdt
This is good stuff. I'm still struggling to shake my OOP roots from Java in college. I'm curious a…
»
Jeremiah Goerdt
Never put off until tomorrow what you can do today. ;-)
»
Mārtiņš Možeiko
Yes, there is an indirection. First you load gun_idx from memory by using dude_idx index, then yo…
»
ratchetfreak
actually a larger problem is that the value of dude->gun_idx has to be loaded before damage starti…
»
ragezor
Thank you. My brain is now at ease :)
»
pragmatic_hero
A) Is barely extra level of indirection [base + index * size + offset] vs [address + offset] The…
»
pragmatic_hero
Are there better alternatives that work on Windows and Linux?[/quote] I doubt you'll find anythin…
»
Mārtiņš Možeiko
I also use these kind of enums for constants. Why? Because enum values don't have "type", sometime…
»
ragezor
Hi, I have a couple of questions I did not manage to answer myself. They are mostly about C. 1. Wh…
»
Charles Nicholson
Heya! Thanks for doing this, project based learning is great in my experience.
»
Marshel Helsper
Hello everyone!
»
Mike T
Thanks for doing this, it is immeasurably helpful to get practical content like you have been pres…
»
Allen Webster
Awesome read! I totally empathize with that feeling where OOP is all you know and you can't help …
»
Mārtiņš Možeiko
This is exactly my point. OS directly gives you 4k aligned memory (via VirtualAlloc or mmap). Why…
»
Finalspace
Maybe I don't understand the purpose of your MemoryAllocate/MemoryAlignedAllocate functions? From…
»
Mārtiņš Možeiko
Wait, I'm not talking about aligned_malloc. I'm talking about your functions which don't use align…
»
Per Vognsen
Thanks for helping us with this! I'm going to update links in the repository to point people here …
»
Finalspace
As an unrelated topic - valgrind and similar tools won't show up this as memory leak in case you…
»
Per Vognsen
Yup, I had fuzzing planned starting as soon as we have a bit more code in place, but maybe I shoul…
»
Mārtiņš Možeiko
Btw, I recommend to use fuzzers to catch these kind of errors in any kind of parser - source code …
»
Mārtiņš Možeiko
Same as with I am sharing Bitwise videos on . For those who doesn't know Resilio Sync - its a pee…
»
Per Vognsen
Yeah, Pratt parsing is neat and easy to code, but most people couldn't have invented it from scrat…
»
Per Vognsen
That's a good catch with token_kind_name. It's funny I made a big note and then proceeded to use i…
»
Anikki
I think this is a very simple way of parsing expressions. It's called a . Changing the associativi…
»
Maykeye
One day has passed since last stream. Probably time to start discussing the findings. Here're fun …
»