I recently wrote an xml parser that follows the 1.0 xml spec to replace the quick and dirty parser…
Just for anyone coming to this post in the future, Casey gives a brief explanation of whats going …
Thanks for the help! It was mainly what firstFree was supposed to be that was messing me up. I kep…
New FeaturesAdded the ",disasm" format specifier for disassembling instructions given an address a…
Explained with images it goes like this. So from right to left imagine that the green line is your…
I'm having trouble understanding Casey's explanation of his free list in the "world" struct with t…
I curious about this as well.
Hello, So, on this day, Casey Muratori reiterates one of his central advises that we must just wri…
I didn't expect to be given a single number, I was more interested in a range of numbers. Kind of …
By it I meant mulps and addps being the same cycle count. It was reply to your statement that mul …
Just to rephrase my question: I was just curious how many cycles it takes to use TLS or atomics. I…
Alexey —
They meant that mulps/mulss and addps/mulss have the same latency on many x64 chips, but that does…
You said: It depends, often it is exactly the same. So I didn't understand what you were referring…
Not sure what you mean by "same". Everything is different. They are not comparable. It's like aski…
What is the same: multiplication vs addition or TLS vs atomics? Also, the link you sent was about …
It depends, often it is exactly the same. MULPS: ADDPS:
I was asking out of curiosity. AFAIK, multiplication takes more cycles than addition. I know they'…
It does not matter which one is slower. You use them in different situations so they will affect p…
Haven't read the link you sent, but what is slower: accessing a thread-local variable or using ato…
Yes, the ThreadProc would look something like this:
I recently bought an Asus Zephyrus G15 (2022) and I was curious to know how much time it would mad…
Alexey —
I've run into the same thought ("what did my professor mean when he said network order is big endi…
Thanks for the link, I will check it out. As for your example, does the globalData of each thread …
TLS storage is allocated in special place that is accessed through register that is set up differe…
But TLS is OS feature that allows to map same "variable" to different places in memory, so differe…
Yes, that's the same thing. By IP packet I mean all kind of IP protocols, which include TCP packet…
Thank you Mārtiņš. Things make much more sense to me now. To be pedantic, you said IP headers i…
Think of it this way - atomics is CPU feature which allows you to inform CPU how to access & manip…
Sending data in "network byte order" (which is big-endian) and conversion "must take a place" is b…
What are the advantages and disadvantages of each approach, and when should I use one or the other…