Re: Unit Testing in Action

2017-10-24 Thread Ali Çehreli via Digitalmars-d-announce
On 10/24/2017 07:15 PM, Walter Bright wrote: On 10/24/2017 3:06 PM, Ali Çehreli wrote: It would be very useful if the compiler could do that automatically. On 10/24/2017 2:58 PM, qznc wrote: > The information is there just not expressed in a useable way. The problem is how to display it in

Re: Unit Testing in Action

2017-10-24 Thread Walter Bright via Digitalmars-d-announce
On 10/24/2017 3:06 PM, Ali Çehreli wrote: It would be very useful if the compiler could do that automatically. On 10/24/2017 2:58 PM, qznc wrote: > The information is there just not expressed in a useable way. The problem is how to display it in a text file with the original source code.

Re: Unit Testing in Action

2017-10-24 Thread Ali Çehreli via Digitalmars-d-announce
On 10/24/2017 01:51 PM, Walter Bright wrote: > On 10/23/2017 4:44 AM, Martin Nowak wrote: > There would be a separate coverage count for line 3 which would be the > sum of counts for (api2 == 2) and (api3 == 3). > > Generally, if this is inadequate, just split the expression into more > lines. I

Re: Unit Testing in Action

2017-10-24 Thread qznc via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 20:51:36 UTC, Walter Bright wrote: On 10/23/2017 4:44 AM, Martin Nowak wrote: On Saturday, 21 October 2017 at 22:50:51 UTC, Walter Bright wrote: Coverage would give: 1|    x = 2; 2|    if (x == 1 || x == 2) I.e. the second line gets an execution count of 2. By

Re: Unit Testing in Action

2017-10-24 Thread Walter Bright via Digitalmars-d-announce
On 10/23/2017 4:44 AM, Martin Nowak wrote: On Saturday, 21 October 2017 at 22:50:51 UTC, Walter Bright wrote: Coverage would give: 1|    x = 2; 2|    if (x == 1 || x == 2) I.e. the second line gets an execution count of 2. By contrast, 1|    x = 1; 1|    if (x == 1 || x == 2) Interesting po

Re: iopipe alpha 0.0.1 version

2017-10-24 Thread Dmitry Olshansky via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 19:05:02 UTC, Martin Nowak wrote: On Tuesday, 24 October 2017 at 14:47:02 UTC, Steven Schveighoffer wrote: iopipe provides "infinite" lookahead, which is central to its purpose. The trouble with bolting that on top of ranges, as you said, is that we have to copy e

Re: iopipe alpha 0.0.1 version

2017-10-24 Thread Martin Nowak via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 14:47:02 UTC, Steven Schveighoffer wrote: iopipe provides "infinite" lookahead, which is central to its purpose. The trouble with bolting that on top of ranges, as you said, is that we have to copy everything out of the range, which necessarily buffers somehow (if

Re: Caching D compiler - preview version

2017-10-24 Thread Dmitry Olshansky via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 14:17:32 UTC, Dmitry Olshansky wrote: On Tuesday, 24 October 2017 at 13:29:12 UTC, Mike Parker wrote: On Tuesday, 24 October 2017 at 13:19:15 UTC, Dmitry Olshansky wrote: What is dcache? It's a patch for dmd that enables a *persistent* shared-memory hash-map, pr

Re: iopipe alpha 0.0.1 version

2017-10-24 Thread Steven Schveighoffer via Digitalmars-d-announce
On 10/24/17 5:32 AM, Martin Nowak wrote: On Monday, 23 October 2017 at 16:34:19 UTC, Steven Schveighoffer wrote: On 10/21/17 6:33 AM, Martin Nowak wrote: On 10/19/2017 03:12 PM, Steven Schveighoffer wrote: On 10/19/17 7:13 AM, Martin Nowak wrote: On 10/13/2017 08:39 PM, Steven Schveighoffer w

Re: LDC 1.5.0-beta1

2017-10-24 Thread kinke via Digitalmars-d-announce
On Monday, 23 October 2017 at 22:43:15 UTC, Guillaume Piolat wrote: So far my benchmark scripts are Windows-only so no LTO is available AFAIK. I can work on providing such measures (or any flags you want) on OSX in the future. I performed an extremely rudimentary -flto=full test on Win64 for

Re: LDC 1.5.0-beta1

2017-10-24 Thread Guillaume Piolat via Digitalmars-d-announce
On Monday, 23 October 2017 at 22:57:00 UTC, Nicholas Wilson wrote: would it help to have them grouped/filterable by category? e.g. $ldc2 -help-hidden=category Perhaps, but the sheer amount of customizability makes you wish for a superoptimizer for compiler flags (hard to do this generically

Re: Caching D compiler - preview version

2017-10-24 Thread Dmitry Olshansky via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 13:29:12 UTC, Mike Parker wrote: On Tuesday, 24 October 2017 at 13:19:15 UTC, Dmitry Olshansky wrote: What is dcache? It's a patch for dmd that enables a *persistent* shared-memory hash-map, protected by a spin-lock from races. Dmd processes with -cache flag wou

Re: Caching D compiler - preview version

2017-10-24 Thread Nicholas Wilson via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 13:19:15 UTC, Dmitry Olshansky wrote: What is dcache? It's a patch for dmd that enables a *persistent* shared-memory hash-map, protected by a spin-lock from races. Dmd processes with -cache flag would detect the following pattern: Ooooh, very nice! Looking fo

Re: Caching D compiler - preview version

2017-10-24 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 13:19:15 UTC, Dmitry Olshansky wrote: What is dcache? It's a patch for dmd that enables a *persistent* shared-memory hash-map, protected by a spin-lock from races. Dmd processes with -cache flag would detect the following pattern: Blog post or it didn't happen!

Caching D compiler - preview version

2017-10-24 Thread Dmitry Olshansky via Digitalmars-d-announce
What is dcache? It's a patch for dmd that enables a *persistent* shared-memory hash-map, protected by a spin-lock from races. Dmd processes with -cache flag would detect the following pattern: enum/static variable = func(args..); And if mangle of func indicates it is from std.* we use a cach

Re: DMD Installation Wiki

2017-10-24 Thread Nicholas Wilson via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 10:09:44 UTC, Mike Parker wrote: On Tuesday, 24 October 2017 at 08:26:17 UTC, Nicholas Wilson wrote: On Tuesday, 24 October 2017 at 07:32:52 UTC, Mike Parker wrote: In preparation for an upcoming blog post Speaking of which, I've sent you a draft for an article

Re: Unit Testing in Action

2017-10-24 Thread Mario Kröplin via Digitalmars-d-announce
On Monday, 23 October 2017 at 12:38:01 UTC, Atila Neves wrote: "parallel test execution (from it’s name, the main goal of unit-threaded) was quite problematic with the first test suite we converted" I'd love to know what the problems were, especially since it's possible to run in just one thr

Re: DMD Installation Wiki

2017-10-24 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 08:26:17 UTC, Nicholas Wilson wrote: On Tuesday, 24 October 2017 at 07:32:52 UTC, Mike Parker wrote: In preparation for an upcoming blog post Speaking of which, I've sent you a draft for an article on DCompute. Yes, sorry. I should have acknowledged that I saw

Re: iopipe alpha 0.0.1 version

2017-10-24 Thread Martin Nowak via Digitalmars-d-announce
On Monday, 23 October 2017 at 16:34:19 UTC, Steven Schveighoffer wrote: On 10/21/17 6:33 AM, Martin Nowak wrote: On 10/19/2017 03:12 PM, Steven Schveighoffer wrote: On 10/19/17 7:13 AM, Martin Nowak wrote: On 10/13/2017 08:39 PM, Steven Schveighoffer wrote: It's solving a different problem tha

Re: DMD Installation Wiki

2017-10-24 Thread Nicholas Wilson via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 07:32:52 UTC, Mike Parker wrote: In preparation for an upcoming blog post Speaking of which, I've sent you a draft for an article on DCompute.

DMD Installation Wiki

2017-10-24 Thread Mike Parker via Digitalmars-d-announce
In preparation for an upcoming blog post on DMD & Windows, I've edited the DMD installation page on the Wiki with more up-to-date and generic instructions than what was there before. I invite anyone and everyone to look it over and fix any errors, grammatical or otherwise. More to the point,

Re: DMD Installation Wiki

2017-10-24 Thread Mike Parker via Digitalmars-d-announce
On Tuesday, 24 October 2017 at 07:32:52 UTC, Mike Parker wrote: In preparation for an upcoming blog post on DMD & Windows, I've edited the DMD installation page on the Wiki with more up-to-date and generic instructions than what was there before. I invite anyone and everyone to look it over and