« first day (2557 days earlier)      last day (2393 days later) » 
00:00 - 23:0023:00 - 00:00

11:01 PM
I wonder if the speedup is higher for system that have QPI (the way Intel combines multiple processors)
 
@Mikhail I would assume so. The slower the memory, the more these sort of optimizations will matter.
 
@Mystical is that in place? Read from memory, and then write back to it?
 
@Froglegs No. Read from memory that's hot in cache, then write it out to memory where it won't be used again for a while.
This was an optimization opportunity that I didn't do years ago when I first experimented with NT stores due to the lack of alignment guarantees in the output buffer as well as the small amount of bandwidth that it consumed. It was something that I considered to be high-effort low reward.
 
@DiegoPereira I hope you meet one of these critters sometime soon
 
as a science project, you could measure the decrease in performance against the rising in temperature of your CPU
 
11:06 PM
The other part is that the code needed to fix the alignment was non-trivial and would add a non-negligible amount of computational overhead.
This is actually why I have "unaligned and masked NT-stores" as my x86 ISA wishlist. The load/store unit is already good at handing misalignment and combining writes. It should be able to use the same logic to handle misaligned NT-stores. Even if it's not free - it should be a hella lot cheaper than all the shitty run-time permute hacks with masks, rotations, etc...
 
@Mysticial Is there some pernicious way to force the caches on two dies to be out of alignment, causing it to see different data when memory is accessed? I guess there are torn reads/writes... But any way to do more damage?
 
@Mikhail That depends on your definition of "see different data". If you have a cacheline that's in two different cores in the shared state. You have one write to it in T=0, then both cores simultaneously read it in T=1. One core will read the updated value, the other core will read the old value.
The core that wrote to it will eventually invalid all other copies of the cache. But that happens in the background. It won't block the core from continuing execution unless it maxes out the re-order buffer.
 
how important is it for a newbie to know the data ranges and sizes off by heart
 
@CoderCat On a scale of 1 to 10, I'd say roughly "rainbows".
 
wtf is a data range
 
11:20 PM
a rainbow dont have 10 colors
 
data ranges/sizes of what, ?
 
eg an int is 255 and has a max value of aprox 32.000
11
 
Will it be in your exams? If so, then very ...
 
depending on platform
I dont have exams
 
@CoderCat int is 255?!?!
 
11:21 PM
just think its kinda hard to renember them all
3
 
✧・゚: *✧・゚:*( ͡ᵔ ͜ʖ ͡ᵔ )*:・゚✧*:・゚✧
 
char 1 byte -128 to 127 or 0 to 255
unsigned char 1 byte 0 to 255
signed char 1 byte -128 to 127
int 2 or 4 bytes -32,768 to 32,767 or -2,147,483,648 to 2,147,483,647
unsigned int 2 or 4 bytes 0 to 65,535 or 0 to 4,294,967,295
short 2 bytes -32,768 to 32,767
unsigned short 2 bytes 0 to 65,535
long 4 bytes -2,147,483,648 to 2,147,483,647
unsigned long 4 bytes 0 to 4,294,967,295
 
It's stupid to. Though I know no one coding professionally who doesn't know 2^7, 2^8, 2^4, most will know 2^16
Maybe I just revealed the secret.
 
Also this is god damn America and we use commas instead of periods to delimit groups of three digits.
 
@CoderCat Hint: -2,147,483,648 = -2^31 (4 bytes is 32 bits)
So, you remember the amount of binary digits/bytes, whether there is a sign bit and have your calculator at the ready
 
11:24 PM
@CoderCat if you run out of memory, it's most probably because you have a logic error not become you are using double instead of int ... @ your current stage
 
@sehe I think anyone who does enough programming will know them up to 1024 by heart. And then 65536 as well.
 
im not doing c++ yet just C btw
shouldnt matter tho
 
Low level programmers will probably know 4096 as well due it being the page size.
 
@CoderCat Spelling does, though.
@Mysticial But then ask them what power of two it is.
 
@sehe Yeah. That's not obvious. :)
 
11:27 PM
to answer a newbie question, you need to be able to think like a newbie ... most newbies don't know page size for sure
 
@Mysticial I happen to know 1024 is 10th, because it makes for nice shorthands (15u<<10 is 15kiB, 200u<<20 is 200 MiB and even 1ul<<30 for a GiB)
@Telkitty And it wasn't related. Crisis averted!
 
does surrounding code in a function with {} have a particular name?
maybe block level scope
 
nwp
@CoderCat If you have C++ questions you might want to go to the appropriate room.
 
So I just asked my boss to get some assistance for this upcoming period. Some easy tasks really. So he sends out a department wide email. "Can you and do you dare and want to work with the Giraffe on these simple tasks?"
 
oh ok
 
nwp
11:38 PM
Sounds like a good boss. Unless nobody answered and it turned awkward.
 
Nobody will answer, it is not the proper forum for that request.
 
@CoderCat The braces form a block. The block, in turn, defines a scope (but it's not the name for the braces or the block they create).
 
code doesn't have scope, variables have scope
 
nwp
Functions and types do too. There isn't much left in code after you remove variables, functions and types.
 
@Mysticial Back when main memory sizes were measured in kilobytes, I learned (one at a time) every power of two up to 512K. Then things got stuck at 640K for far too long, at least for many of us. After that memory sizes mattered enough less that I never ended up remembering the exact values for the larger powers or two.
@Telkitty If you're going to get technical, it's actually names that have scope (at least in most programming languages).
 
11:46 PM
@JerryCoffin It's not like I know all the digits of M_PI. Just the first 17 of them.
 
@CaptainGiraffe I don't know how many digits they included in M_PI. But as a bored, excessively nerdy high-school kid I memorized the first 100 digits of Pi.
 
@JerryCoffin The top of my fingers are turning red from another wholesome Jerryslap =)
 
Still ... code doesn't have scope, variables have scope :p To answer newblet's question after correcting it to 'does surrounding variables in a function with {} have a particular name?', the answer is yes, they're called local variables :x
 
@CaptainGiraffe You should know by now that I don't slap fingers. I demand virgins (or money--money is always good).
 
ok thanks :)
bbl
 
11:50 PM
you need to be more specific
 
@Telkitty ...and you should know by now that my definition of "virgins" includes young, human, female, and attractive (with actual virginity not particularly relevant).
 
00:00 - 23:0023:00 - 00:00

« first day (2557 days earlier)      last day (2393 days later) »