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.
Gaurav Gautam
Explained with images it goes like this. So from right to left imagine that the green line is your…
»
baublebeard
I'm having trouble understanding Casey's explanation of his free list in the "world" struct with t…
»
»
Gaurav Gautam
Hello, So, on this day, Casey Muratori reiterates one of his central advises that we must just wri…
»
longtran2904
I didn't expect to be given a single number, I was more interested in a range of numbers. Kind of …
»
Mārtiņš Možeiko
By it I meant mulps and addps being the same cycle count. It was reply to your statement that mul …
»
longtran2904
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…
»
longtran2904
You said: It depends, often it is exactly the same. So I didn't understand what you were referring…
»
Mārtiņš Možeiko
Not sure what you mean by "same". Everything is different. They are not comparable. It's like aski…
»
longtran2904
What is the same: multiplication vs addition or TLS vs atomics? Also, the link you sent was about …
»
Mārtiņš Možeiko
It depends, often it is exactly the same. MULPS: ADDPS:
»
longtran2904
I was asking out of curiosity. AFAIK, multiplication takes more cycles than addition. I know they'…
»
Mārtiņš Možeiko
It does not matter which one is slower. You use them in different situations so they will affect p…
»
longtran2904
Haven't read the link you sent, but what is slower: accessing a thread-local variable or using ato…
»
Mārtiņš Možeiko
Yes, the ThreadProc would look something like this:
»
Angelo Theodorou
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…
»
longtran2904
Thanks for the link, I will check it out. As for your example, does the globalData of each thread …
»
Mārtiņš Možeiko
TLS storage is allocated in special place that is accessed through register that is set up differe…
»
longtran2904
But TLS is OS feature that allows to map same "variable" to different places in memory, so differe…
»
Mārtiņš Možeiko
Yes, that's the same thing. By IP packet I mean all kind of IP protocols, which include TCP packet…
»
Lachlan
Thank you Mārtiņš. Things make much more sense to me now. To be pedantic, you said IP headers i…
»
Mārtiņš Možeiko
Think of it this way - atomics is CPU feature which allows you to inform CPU how to access & manip…
»
Mārtiņš Možeiko
Sending data in "network byte order" (which is big-endian) and conversion "must take a place" is b…
»
longtran2904
What are the advantages and disadvantages of each approach, and when should I use one or the other…
»
ratchetfreak
if you memcpy &msg2 to a 2 char array you will see {0xEF, 0xBE} That's how little endian works. Th…
»
Lachlan
As I understand it, network byte order is big-endian, while most consumer PCs are little-endian. S…
»
Mārtiņš Možeiko
"very slow" depends on context. Sometimes it can be very slow, sometimes not. If you use them in s…
»
longtran2904
On day 178, someone asked Casey why did he consider using atomics for the timers instead of using …
»