Re: Structure of Arrays vs Array of Structures

2019-08-26 Thread a11e99z via Digitalmars-d-learn
On Monday, 26 August 2019 at 09:58:30 UTC, Per Nordlöw wrote: On Monday, 26 August 2019 at 09:54:30 UTC, Per Nordlöw wrote: I have made some significant optimizations with regards to compilation performance at https://github.com/nordlow/phobos-next/blob/master/src/soa.d What is the

Re: Structure of Arrays vs Array of Structures

2019-08-26 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 26 August 2019 at 09:54:30 UTC, Per Nordlöw wrote: I have made some significant optimizations with regards to compilation performance at https://github.com/nordlow/phobos-next/blob/master/src/soa.d What is the preferred way to implement to support foreach over `x` in struct

Structure of Arrays vs Array of Structures

2019-08-26 Thread Per Nordlöw via Digitalmars-d-learn
https://forum.dlang.org/post/cvsajblducyanpqah...@forum.dlang.org On Monday, 15 May 2017 at 06:44:53 UTC, Nordlöw wrote: After having watched Jonathan Blow's talk on Jai https://www.youtube.com/watch?v=TH9VCN6UkyQ=2880s I realized that we should add his Array-of-Structures (AoS) concept to

Re: Structure of Arrays vs Array of Structures

2017-05-23 Thread Stanislav Blinov via Digitalmars-d-learn
On Tuesday, 23 May 2017 at 16:48:31 UTC, Nordlöw wrote: On Tuesday, 23 May 2017 at 16:46:18 UTC, Nordlöw wrote: http://forum.dlang.org/post/wvulryummkqtskiwr...@forum.dlang.org Correction; should be:

Re: Structure of Arrays vs Array of Structures

2017-05-23 Thread Nordlöw via Digitalmars-d-learn
On Tuesday, 23 May 2017 at 16:46:18 UTC, Nordlöw wrote: http://forum.dlang.org/post/wvulryummkqtskiwr...@forum.dlang.org Correction; should be: https://github.com/nordlow/phobos-next/blob/a324f16515bd1c3c1185ba0482dae2886d811bb1/src/soa.d

Re: Structure of Arrays vs Array of Structures

2017-05-23 Thread Nordlöw via Digitalmars-d-learn
On Monday, 15 May 2017 at 19:52:03 UTC, Nordlöw wrote: soa.d-mixin-143(143,7): Error: variable soa.SOA!(S).SOA.container0LU cannot be further field because it will change the determined SOA size soa.d-mixin-143(143,28): Error: variable soa.SOA!(S).SOA.container1LU cannot be further field

Re: Structure of Arrays vs Array of Structures

2017-05-15 Thread Nordlöw via Digitalmars-d-learn
On Monday, 15 May 2017 at 17:10:49 UTC, Per Nordlöw wrote: On Monday, 15 May 2017 at 07:31:25 UTC, Nordlöw wrote: On Monday, 15 May 2017 at 06:50:04 UTC, Nicholas Wilson wrote: Yes, https://maikklein.github.io/post/soa-d/ Ok, great. Thanks. I can't seem to find any Github code repo, tough.

Re: Structure of Arrays vs Array of Structures

2017-05-15 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 15 May 2017 at 07:31:25 UTC, Nordlöw wrote: On Monday, 15 May 2017 at 06:50:04 UTC, Nicholas Wilson wrote: Yes, https://maikklein.github.io/post/soa-d/ Ok, great. Thanks. I can't seem to find any Github code repo, tough. Does it exist? Here's my fixed version of soa-d that

Re: Structure of Arrays vs Array of Structures

2017-05-15 Thread Stanislav Blinov via Digitalmars-d-learn
On Monday, 15 May 2017 at 06:50:04 UTC, Nicholas Wilson wrote: On Monday, 15 May 2017 at 06:44:53 UTC, Nordlöw wrote: Have anybody done this already? Yes, https://maikklein.github.io/post/soa-d/ The code in that article is overly simplified. Concrete use cases would require more than

Re: Structure of Arrays vs Array of Structures

2017-05-15 Thread Nordlöw via Digitalmars-d-learn
On Monday, 15 May 2017 at 06:50:04 UTC, Nicholas Wilson wrote: Yes, https://maikklein.github.io/post/soa-d/ Ok, great. Thanks. I can't seem to find any Github code repo, tough. Does it exist?

Re: Structure of Arrays vs Array of Structures

2017-05-15 Thread Nicholas Wilson via Digitalmars-d-learn
On Monday, 15 May 2017 at 06:44:53 UTC, Nordlöw wrote: After having watched Jonathan Blow's talk on Jai https://www.youtube.com/watch?v=TH9VCN6UkyQ=2880s I realized that we should add his Array-of-Structures (AoS) concept to Phobos, preferrably in std.typecons.StructArrays, as something like

Structure of Arrays vs Array of Structures

2017-05-15 Thread Nordlöw via Digitalmars-d-learn
After having watched Jonathan Blow's talk on Jai https://www.youtube.com/watch?v=TH9VCN6UkyQ=2880s I realized that we should add his Array-of-Structures (AoS) concept to Phobos, preferrably in std.typecons.StructArrays, as something like template StructArrays(Members...) { struct