Click here to Skip to main content
15,898,035 members

Comments by parths (Top 12 by date)

parths 23-Oct-13 2:56am View    
I thought I'd put it in as a comment (sort of addendum) to your post :). Would it add any value if it were post as a separate solution?
parths 22-Oct-13 6:27am View    
I liked the information provided here (http://discrete.gr/complexity/) a lot when I first read it.
parths 12-Jun-13 13:53pm View    
I wanted to point out that the assembly listings generated by compilers can actually be viewed.
I learned what little I know about assembly by looking at compiler listings and check google (also a lot by reading Art of Assembly).
Should I have given reference links?

Exactly what kind of explanation would you expect? I'll try to improve my answer.

The behaviour is compiler dependent and theoretically the compiler can actually implement both cases in a similar fashion, right?
For instance _cs$[ebp] seems to indicate the compiler is using an indexed addressing mode (similar to arrays), but it can as well have done something like computing the address, storing in a register and using register indirect addressing. It's not optimal, but theoretically correct, right?

[Modified]I just noticed, nv3 posted a similar explanation. Is that the kind of explanation you are looking for?[/Modified]
parths 15-Apr-13 8:31am View    
Thanks for the info. I didn't mean to say anything against using threads with blocking socket io.
Also, thanks for mentioning epoll, didn't know about that. I had checked out IO completion ports on windows for high performance servers, didn't know about epoll, thanks for pointing it out.
parths 15-Apr-13 6:32am View    
Just to clarify, I am not against using threads, I had already modified my answer (below) to add that note before continuing our discussion. It'd be informative for me to try and understand any comparisons between the 2 methods. I'm checking google, but if you have any references, please share. Thanks