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.
Handmade Network»Feed
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 …
»
Alexey
Can't comment on 1) right now, but 2) looks exactly like an off-by-one error. Had plenty of those …
»
zub
Oh thanks! I didn't think of that. That makes so much sense and it did work.
»
Mārtiņš Možeiko
Casey sometimes leaves code in a bit broken state because he's working on some larger changes and …
»
zub
Trying to compile the latest pull from handmadehero github and running into the below errors: ** V…
»
Macoy Madson
This article is also available on my blog. I spend a lot of time thinking about development tools.…
»
Angelo Theodorou
First of all, sorry for the late reply. Thank you for trying the program and for your thorough fee…
»
Angelo Theodorou
pinned_directories.png I have uploaded a new Itch.io release of SpookyGhost, my procedural animati…
»
Mārtiņš Možeiko
Not sure what you mean by loading global guids. There are no guids in dll's. What are you loading?…
»