News for hackers. Stuff that matters.
Re:The Memory Models That Underlie Programming Languages by taeric on Sunday January 01, 2017 @01:17AM (#13294886)
Parallel arrays typically don't store non-identically typed things one after the other. Unless I am mistaken, of course.

I think of it this way. Say you have two pieces of related data A and B. If you did this with nested arrays, say Foo{A, B}, than you would have an array that was A_1, B_1, A_2, B_2 in memory. With parallel arrays, you would have A_1, A_2 in one array, and B_1, B_2 in another.

So... is that not accurate?

Re:The Memory Models That Underlie Programming Languages by kragen on Monday January 02, 2017 @04:45PM (#13304814)
Right. I tried to draw this in the diagrams.