[DUB] Does anyone have some time to look at PR #785?

2016-04-18 Thread Sönke Ludwig via Digitalmars-d
This is a rather important pull request and the last big milestone for the 1.0.0 release. I'd like to get the next version out shortly, but this PR is sitting idle for over a month now and partially blocks development. It consists of mostly just documentation additions, deprecations/name chan

Re: DIP64: Attribute Cleanup

2016-04-18 Thread Jonathan M Davis via Digitalmars-d
On Monday, April 18, 2016 20:49:45 jmh530 via Digitalmars-d wrote: > As an aside, the reason for not having function attribute > inference everywhere is that it doesn't work when function bodies > are not available. How common is this? I feel like I never write > functions like this. Why not just m

Re: On attribute inference...

2016-04-18 Thread Jonathan M Davis via Digitalmars-d
On Tuesday, April 19, 2016 03:27:46 Marco Leise via Digitalmars-d wrote: > No case makes the distinction between "function body > availability" and "API stability" more clear than auto return. > Even though their source code is copied verbatim into the .di > files to allow the return of voldemort t

On attribute inference...

2016-04-18 Thread Marco Leise via Digitalmars-d
Currently the compiler makes sure, that it can see the entire nested call chain when performing attribute inference. So it limits itself to function literals and templates where the source has to be right there for them to compile. The remaining functions could roughly be classified as functions t

Re: stc.experimental.ndslice -> sci.ndslice

2016-04-18 Thread Seb via Digitalmars-d
On Tuesday, 19 April 2016 at 01:13:01 UTC, deadalnix wrote: On Sunday, 17 April 2016 at 06:10:34 UTC, Ilya Yaroshenko wrote: We plan to add a set of numeric packages and this would be real pain if they would be one-by-one moved from experimental to stable std. So sci.* should be considered as e

Re: stc.experimental.ndslice -> sci.ndslice

2016-04-18 Thread deadalnix via Digitalmars-d
On Sunday, 17 April 2016 at 06:10:34 UTC, Ilya Yaroshenko wrote: We plan to add a set of numeric packages and this would be real pain if they would be one-by-one moved from experimental to stable std. So sci.* should be considered as experimental during few years. https://github.com/dlang/ph

Re: DIP64: Attribute Cleanup

2016-04-18 Thread Marco Leise via Digitalmars-d
Am Mon, 18 Apr 2016 20:49:45 + schrieb jmh530 : > As an aside, the reason for not having function attribute > inference everywhere is that it doesn't work when function bodies > are not available. How common is this? I feel like I never write > functions like this. Why not just make the rul

Re: A Recurring Question

2016-04-18 Thread w0rp via Digitalmars-d
On Monday, 18 April 2016 at 20:24:40 UTC, Jesse Phillips wrote: On Sunday, 17 April 2016 at 15:23:50 UTC, w0rp wrote: void main() { // Print all directories from this one up to and including /. getcwd() .unaryRecurrence!dirName .until("/", OpenRight.no) .each!writeln; } F

Re: A Recurring Question

2016-04-18 Thread w0rp via Digitalmars-d
On Monday, 18 April 2016 at 12:02:24 UTC, thedeemon wrote: On Sunday, 17 April 2016 at 15:23:50 UTC, w0rp wrote: auto unaryRecurrence(alias func, T)(T initialValue) { return recurrence!((values, index) => func(values[0]))(initialValue); } This is kind of neat. My question is, should som

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-18 Thread Marco Leise via Digitalmars-d
Am Mon, 18 Apr 2016 15:15:26 + schrieb Atila Neves : Just remember that makefiles are well integrated with other systems (i.e. package managers) and there are some conventions, about what certain environment variables mean. To name a few: MAKEOPTS=-j4 (parallel build with N processes) DC=/op

Re: DIP64: Attribute Cleanup

2016-04-18 Thread jmh530 via Digitalmars-d
On Monday, 18 April 2016 at 19:57:42 UTC, cym13 wrote: @default = @safe @nogc @pure int foo(int i) { ... } // This function is @safe @nogc @pure int bar(int i) @pure { ... } // This function is only @pure Why not just put @safe @nogc pure: at the top? I feel like @default would

Re: DIP64: Attribute Cleanup

2016-04-18 Thread Basile B. via Digitalmars-d
On Monday, 18 April 2016 at 19:57:42 UTC, cym13 wrote: On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote: http://wiki.dlang.org/DIP64 Attributes in D have two problems: 1. There are too many of them and declarations are getting too verbose 2. New attributes use @ and the old ones do

Re: A Recurring Question

2016-04-18 Thread Jesse Phillips via Digitalmars-d
On Sunday, 17 April 2016 at 15:23:50 UTC, w0rp wrote: void main() { // Print all directories from this one up to and including /. getcwd() .unaryRecurrence!dirName .until("/", OpenRight.no) .each!writeln; } FYI, OS independent version: void main() { // Print all direc

Re: DIP64: Attribute Cleanup

2016-04-18 Thread cym13 via Digitalmars-d
On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote: http://wiki.dlang.org/DIP64 Attributes in D have two problems: 1. There are too many of them and declarations are getting too verbose 2. New attributes use @ and the old ones do not. I've created a DIP to address these issues. Two

Is your passport up-to-date for travel to DConf?

2016-04-18 Thread Ali Çehreli via Digitalmars-d
I know people who discovered at the check-in counter that their passport had expired. :) Ali

Re: Is your passport up-to-date for travel to DConf?

2016-04-18 Thread Nordlöw via Digitalmars-d
On Monday, 18 April 2016 at 17:41:56 UTC, Ali Çehreli wrote: I know people who discovered at the check-in counter that their passport had expired. :) Thanks for the reminder. Mine is ok.

Re: stc.experimental.ndslice -> sci.ndslice

2016-04-18 Thread Steven Schveighoffer via Digitalmars-d
On 4/18/16 12:13 PM, Dejan Lekic wrote: On Sunday, 17 April 2016 at 06:10:34 UTC, Ilya Yaroshenko wrote: We plan to add a set of numeric packages and this would be real pain if they would be one-by-one moved from experimental to stable std. So sci.* should be considered as experimental during fe

Re: stc.experimental.ndslice -> sci.ndslice

2016-04-18 Thread Jack Stouffer via Digitalmars-d
On Monday, 18 April 2016 at 16:13:54 UTC, Dejan Lekic wrote: As I have said many times on both IRC and NG, I would prefer to have `stdx` instead of ridiculously long (4x) `std.experimental`. Then you would have a nice package named `stdx.sci`. How often are you typing in import statements tha

Re: stc.experimental.ndslice -> sci.ndslice

2016-04-18 Thread jmh530 via Digitalmars-d
On Monday, 18 April 2016 at 16:13:54 UTC, Dejan Lekic wrote: As I have said many times on both IRC and NG, I would prefer to have `stdx` instead of ridiculously long (4x) `std.experimental`. Then you would have a nice package named `stdx.sci`. Fantastic idea (that I had not heard before).

Re: stc.experimental.ndslice -> sci.ndslice

2016-04-18 Thread Dejan Lekic via Digitalmars-d
On Sunday, 17 April 2016 at 06:10:34 UTC, Ilya Yaroshenko wrote: We plan to add a set of numeric packages and this would be real pain if they would be one-by-one moved from experimental to stable std. So sci.* should be considered as experimental during few years. https://github.com/dlang/ph

Re: stc.experimental.ndslice -> sci.ndslice

2016-04-18 Thread Steven Schveighoffer via Digitalmars-d
On 4/17/16 6:04 AM, ag0aep6g wrote: On 17.04.2016 11:44, Ilya Yaroshenko wrote: This would be a real pain for a user if he supports few compiler versions. static if(__VERSION__ < 2072) { import std.experimental.sci.ndslice; } else { import std.sci.ndslice; } [...] Breakage is what

Re: Phobos posix.mak -> D file using reggae: round 2

2016-04-18 Thread Jack Stouffer via Digitalmars-d
On Monday, 18 April 2016 at 15:15:26 UTC, Atila Neves wrote: Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. Great work! This transition cannot happen soon enough. Maintaining the make files is a huge pain and something always falls through the cra

Phobos posix.mak -> D file using reggae: round 2

2016-04-18 Thread Atila Neves via Digitalmars-d
Here's[1] another attempt at converting the Makefile for POSIX systems to D using reggae[2]. I first tried my hand at writing a parser for Makefiles using Pegged and machine translating to D. I learned a lot about parsing and GNU make in the process and also that: 1. It was about two orders o

Re: DIP64: Attribute Cleanup

2016-04-18 Thread Jonathan M Davis via Digitalmars-d
On Monday, April 18, 2016 13:10:59 jmh530 via Digitalmars-d wrote: > On Monday, 18 April 2016 at 12:11:46 UTC, Jonathan M Davis wrote: > > Regardless, changing any of the attributes now would break a > > _lot_ of code, and such a change would have to be worth the > > pain that it would cause, which

Re: DIP64: Attribute Cleanup

2016-04-18 Thread jmh530 via Digitalmars-d
On Monday, 18 April 2016 at 12:11:46 UTC, Jonathan M Davis wrote: Regardless, changing any of the attributes now would break a _lot_ of code, and such a change would have to be worth the pain that it would cause, which is questinonable. dfix has a DIP64 switch, right?

Re: So what does (inout int = 0) do?

2016-04-18 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 18 April 2016 at 08:53:31 UTC, Guillaume Piolat wrote: And shared and @property :) I still want to see @property fixed rather than removed - the edge case with returning a delegate is an interesting one to me (though that's ALL I want it to do, leave everything else alone)

Re: DIP64: Attribute Cleanup

2016-04-18 Thread Jonathan M Davis via Digitalmars-d
On Monday, April 18, 2016 10:32:39 Satoshi via Digitalmars-d wrote: > On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote: > > http://wiki.dlang.org/DIP64 > > > > Attributes in D have two problems: > > 1. There are too many of them and declarations are getting too > > verbose > > 2. New att

Re: A Recurring Question

2016-04-18 Thread thedeemon via Digitalmars-d
On Sunday, 17 April 2016 at 15:23:50 UTC, w0rp wrote: auto unaryRecurrence(alias func, T)(T initialValue) { return recurrence!((values, index) => func(values[0]))(initialValue); } This is kind of neat. My question is, should something like this function be included in std.range? Either

Re: [PRs] How to update on Github

2016-04-18 Thread Basile B. via Digitalmars-d
On Thursday, 21 May 2015 at 13:40:22 UTC, Rikki Cattermole wrote: On 22/05/2015 1:30 a.m., Baz wrote: Still the best git GUI but it has some obvious problems and bugs. IMO making a good UI for VC is hard. As you said even SourceTree isn't perfect. If only somebody could make a better cross

Re: DIP64: Attribute Cleanup

2016-04-18 Thread Basile B. via Digitalmars-d
On Monday, 18 April 2016 at 10:32:39 UTC, Satoshi wrote: On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote: http://wiki.dlang.org/DIP64 Attributes in D have two problems: 1. There are too many of them and declarations are getting too verbose 2. New attributes use @ and the old ones

Re: DIP64: Attribute Cleanup

2016-04-18 Thread Satoshi via Digitalmars-d
On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote: http://wiki.dlang.org/DIP64 Attributes in D have two problems: 1. There are too many of them and declarations are getting too verbose 2. New attributes use @ and the old ones do not. I've created a DIP to address these issues. Lan

Re: Who wore it better?

2016-04-18 Thread Kagamin via Digitalmars-d
On Friday, 15 April 2016 at 21:01:44 UTC, Andrei Alexandrescu wrote: Jesus. C++ has const without inout. We used to have const without inout - and we probably should again. -- Andrei What about immutability? E.g. Java gets away with immutable in a library and it just werks.

Re: Better mixin error messages

2016-04-18 Thread Timon Gehr via Digitalmars-d
On 18.04.2016 00:08, Bauss wrote: On Sunday, 17 April 2016 at 21:59:38 UTC, Timon Gehr wrote: On 17.04.2016 23:49, Bauss wrote: On Sunday, 17 April 2016 at 21:23:58 UTC, Timon Gehr wrote: mixin(generate()); pragma(msg,generate()); That's not a solution to the problem, because you will be pr

Re: So what does (inout int = 0) do?

2016-04-18 Thread Marc Schütz via Digitalmars-d
On Saturday, 16 April 2016 at 11:49:21 UTC, Nick Treleaven wrote: On 16/04/2016 12:40, Marc Schütz wrote: What are the plans for DIP25's `return` attribute? Because with it, the compiler has enough information to know that the return value aliases `s`: const(T)[] replaceSlice(T)(const(T)[] s

Re: So what does (inout int = 0) do?

2016-04-18 Thread Guillaume Piolat via Digitalmars-d
On Monday, 18 April 2016 at 08:52:19 UTC, Guillaume Piolat wrote: Personnally I wish synchronized, comma operator, and actively harmful things would go. nothrow provides little value, but no negative value. And shared and @property :) But I guess this isn't Christmas already.

Re: So what does (inout int = 0) do?

2016-04-18 Thread Guillaume Piolat via Digitalmars-d
On Sunday, 17 April 2016 at 23:03:26 UTC, Adam D. Ruppe wrote: On Sunday, 17 April 2016 at 21:20:49 UTC, Timon Gehr wrote: On 17.04.2016 18:44, Nick Treleaven wrote: I think @property is OK. No, it isn't: Seriously, @property is one of the biggest SNAFUs of the language. I think I'll wr