Re: On the D Blog: Lomuto's Comeback

2020-08-04 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 8/4/20 9:49 AM, Andrei Alexandrescu wrote: On 8/4/20 4:19 AM, Iain Buclaw wrote: On 04/08/2020 03:14, Andrei Alexandrescu wrote: Interesting, thanks! Did a quick benchmark for n in `seq 1 10` ./lomuto.exe ${n}00... [snip] Looks good, so committing patch. :-) Awesome, thanks! That

Re: On the D Blog: Lomuto's Comeback

2020-08-04 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 8/4/20 4:19 AM, Iain Buclaw wrote: On 04/08/2020 03:14, Andrei Alexandrescu wrote: Interesting, thanks! Did a quick benchmark for n in `seq 1 10` ./lomuto.exe ${n}00... [snip] Looks good, so committing patch. :-) Awesome, thanks! That does solve a puzzler I had while benchmarking.

Re: On the D Blog: Lomuto's Comeback

2020-08-04 Thread Iain Buclaw via Digitalmars-d-announce
On 04/08/2020 03:14, Andrei Alexandrescu wrote: > Interesting, thanks! > Did a quick benchmark for n in `seq 1 10` ./lomuto.exe ${n}00... gdc-baseline: min_milliseconds=53.2922 median_milliseconds=56.8761 min_milliseconds=111.2512 median_milliseconds=115.5812 min_milliseconds=168.8659

Re: On the D Blog: Lomuto's Comeback

2020-08-03 Thread Iain Buclaw via Digitalmars-d-announce
On 03/08/2020 13:08, Iain Buclaw via Digitalmars-d-announce wrote: > > > On 15/05/2020 12:28, Joseph Rushton Wakeling via Digitalmars-d-announce wrote: >> On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: >>> After reading a paper that grabbed his curiosity and wouldn't let go, >>>

Re: On the D Blog: Lomuto's Comeback

2020-08-03 Thread Iain Buclaw via Digitalmars-d-announce
On 15/05/2020 12:28, Joseph Rushton Wakeling via Digitalmars-d-announce wrote: > On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: >> After reading a paper that grabbed his curiosity and wouldn't let go, Andrei >> set out to determine if Lomuto partitioning should still be

Re: On the D Blog: Lomuto's Comeback

2020-05-31 Thread Arjan via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his

Re: On the D Blog: Lomuto's Comeback

2020-05-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/14/20 9:26 AM, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his results. Blog:

Re: On the D Blog: Lomuto's Comeback

2020-05-17 Thread Jon Degenhardt via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his

Re: On the D Blog: Lomuto's Comeback

2020-05-17 Thread JN via Digitalmars-d-announce
On Thursday, 14 May 2020 at 14:11:57 UTC, SashaGreat wrote: If possible could you please next time share link with "old" instead of "www"? Like: https://old.reddit.com/r/programming/comments/gjm6yp/lomutos_comeback_quicksort_partitioning/ There is a Chrome extension that automatically

Re: On the D Blog: Lomuto's Comeback

2020-05-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/14/20 11:57 AM, jmh530 wrote: On Thursday, 14 May 2020 at 13:40:24 UTC, Andrei Alexandrescu wrote: [snip] Really interesting. Thanks for sharing. I have recently been spending some spare time learning more about D's topN and pivotPartition implementation, which led me to your paper on

Re: On the D Blog: Lomuto's Comeback

2020-05-15 Thread Steven Schveighoffer via Digitalmars-d-announce
On 5/14/20 9:26 AM, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his results. Blog:

Re: On the D Blog: Lomuto's Comeback

2020-05-15 Thread Les De Ridder via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his

Re: On the D Blog: Lomuto's Comeback

2020-05-15 Thread kinke via Digitalmars-d-announce
On Friday, 15 May 2020 at 10:28:41 UTC, Joseph Rushton Wakeling wrote: One curious question -- unless I've misread things horribly, it looks like the D benchmarks for Lomuto branch-free are consistently slower than for C++. Any idea why that is? I would expect gcc/gdc and clang/ldc to

Re: On the D Blog: Lomuto's Comeback

2020-05-15 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his

Re: On the D Blog: Lomuto's Comeback

2020-05-15 Thread Dmitry Olshansky via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his

Re: On the D Blog: Lomuto's Comeback

2020-05-15 Thread Francesco Mecca via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his

Re: On the D Blog: Lomuto's Comeback

2020-05-14 Thread jmh530 via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:40:24 UTC, Andrei Alexandrescu wrote: [snip] Really interesting. Thanks for sharing. I have recently been spending some spare time learning more about D's topN and pivotPartition implementation, which led me to your paper on fast deterministic selection.

Re: On the D Blog: Lomuto's Comeback

2020-05-14 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:40:24 UTC, Andrei Alexandrescu wrote: On 5/14/20 9:26 AM, Mike Parker wrote: The right way to share something on hackernews is to send people to https://news.ycombinator.com/newest and mention the time of sharing. Okay everyone, please use this link or search

Re: On the D Blog: Lomuto's Comeback

2020-05-14 Thread SashaGreat via Digitalmars-d-announce
On Thursday, 14 May 2020 at 13:26:23 UTC, Mike Parker wrote: ... Reddit: https://www.reddit.com/r/programming/comments/gjm6yp/lomutos_comeback_quicksort_partitioning/ ... If possible could you please next time share link with "old" instead of "www"? Like:

Re: On the D Blog: Lomuto's Comeback

2020-05-14 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/14/20 9:26 AM, Mike Parker wrote: After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his results. Blog:

On the D Blog: Lomuto's Comeback

2020-05-14 Thread Mike Parker via Digitalmars-d-announce
After reading a paper that grabbed his curiosity and wouldn't let go, Andrei set out to determine if Lomuto partitioning should still be considered inferior to Hoare for quicksort on modern hardware. This blog post details his results. Blog: https://dlang.org/blog/2020/05/14/lomutos-comeback/