Re: Where's "This week in D?"

2015-03-24 Thread tcak via Digitalmars-d
On Monday, 23 March 2015 at 21:28:27 UTC, Andrei Alexandrescu wrote: No issue for the past week? -- Andrei I checked this page: http://arsdnet.net/this-week-in-d/mar-22.html I do not see any content that cannot be automated at all. Or is there an article missing that was supposed to be writte

Re: uniform tuple syntax

2015-03-24 Thread Vlad Levenfeld via Digitalmars-d
On Wednesday, 25 March 2015 at 04:13:03 UTC, Andrei Alexandrescu wrote: On 3/24/15 8:00 PM, Rikki Cattermole wrote: There is one thing blatantly missing atleast to me. Unpacking into function arguments. void myfunc(int x, string y) { // ... } myfunc({1, "hi!"}.unpack); myfunc(tuple(1, "h

Re: uniform tuple syntax

2015-03-24 Thread Rikki Cattermole via Digitalmars-d
On 25/03/2015 5:13 p.m., Andrei Alexandrescu wrote: On 3/24/15 8:00 PM, Rikki Cattermole wrote: On 25/03/2015 7:11 a.m., Martin Nowak wrote: On 03/24/2015 03:11 PM, Vlad Levenfeld wrote: Anything going on with this? Been looking forward to seeing it for awhile. I think we should settle on a

Re: Solution to problems:

2015-03-24 Thread Paul O'Neil via Digitalmars-d
On 03/23/2015 05:34 PM, Jake The Baker wrote: > If D had an ide that could do the following I think development and > testing could be better managed. > > 1. IDE that works with a centralized server to be able to change D > versions at a drop of a time. e.g., click "Master" and it checks to see >

Re: uniform tuple syntax

2015-03-24 Thread Andrei Alexandrescu via Digitalmars-d
On 3/24/15 8:00 PM, Rikki Cattermole wrote: On 25/03/2015 7:11 a.m., Martin Nowak wrote: On 03/24/2015 03:11 PM, Vlad Levenfeld wrote: Anything going on with this? Been looking forward to seeing it for awhile. I think we should settle on a syntax and split DIP32 in a tuple part and a pattern

Re: Solution to problems:

2015-03-24 Thread lobo via Digitalmars-d
On Wednesday, 25 March 2015 at 03:30:19 UTC, Jake The Baker wrote: On Tuesday, 24 March 2015 at 17:49:56 UTC, CraigDillabaugh wrote: On Tuesday, 24 March 2015 at 17:13:07 UTC, Jake The Baker wrote: You guys are complete ignoring 90% of the post. It is not just about configuration. Regardless,

Re: Solution to problems:

2015-03-24 Thread Jake The Baker via Digitalmars-d
On Tuesday, 24 March 2015 at 17:49:56 UTC, CraigDillabaugh wrote: On Tuesday, 24 March 2015 at 17:13:07 UTC, Jake The Baker wrote: You guys are complete ignoring 90% of the post. It is not just about configuration. Regardless, I'll be back in another year to see what progress has been made. G

Re: Solution to problems:

2015-03-24 Thread Rikki Cattermole via Digitalmars-d
You have never tried compiling Chromium have you.. Dmd, druntime and phobos do not compare in complexity to that. And that's with Google backing it.

Re: uniform tuple syntax

2015-03-24 Thread Rikki Cattermole via Digitalmars-d
On 25/03/2015 7:11 a.m., Martin Nowak wrote: On 03/24/2015 03:11 PM, Vlad Levenfeld wrote: Anything going on with this? Been looking forward to seeing it for awhile. I think we should settle on a syntax and split DIP32 in a tuple part and a pattern matching part. The proposal wasn't yet formal

Re: Where's "This week in D?"

2015-03-24 Thread Rikki Cattermole via Digitalmars-d
On 25/03/2015 7:40 a.m., Adam D. Ruppe wrote: On Monday, 23 March 2015 at 21:28:27 UTC, Andrei Alexandrescu wrote: No issue for the past week? -- Andrei I forgot to post it online this Sunday. Really, I need to move these to Saturday, Sundays are just packed full of non-computer time for me.

Re: Solution to problems:

2015-03-24 Thread Israel via Digitalmars-d
On Monday, 23 March 2015 at 21:34:09 UTC, Jake The Baker wrote: In 10 more years I doubt Andrei or Walter will have as much energy to do all the work that they are doing... Better build the infrastructure now while there is time. Make an atom plugin. The one stop shop for all things D.

Re: uniform tuple syntax

2015-03-24 Thread ixid via Digitalmars-d
On Tuesday, 24 March 2015 at 18:12:03 UTC, Martin Nowak wrote: On 03/24/2015 03:11 PM, Vlad Levenfeld wrote: Anything going on with this? Been looking forward to seeing it for awhile. I think we should settle on a syntax and split DIP32 in a tuple part and a pattern matching part. The propos

Re: uniform tuple syntax

2015-03-24 Thread Brian Schott via Digitalmars-d
On Tuesday, 24 March 2015 at 23:07:29 UTC, Vlad Levenfeld wrote: Anything wrong with using {}? It looks good to me, does it lead to any parsing ambiguities? Before: auto x = {}; // struct or function? After: auto x = {}; // struct, function, or tuple??

Re: uniform tuple syntax

2015-03-24 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 24 March 2015 at 23:07:29 UTC, Vlad Levenfeld wrote: Anything wrong with using {}? It looks good to me, does it lead to any parsing ambiguities? In this context, it would look like a delegate/function literal or perhaps the start of a scope in other contexts. auto a = { arg1, arg

Re: uniform tuple syntax

2015-03-24 Thread deadalnix via Digitalmars-d
On Tuesday, 24 March 2015 at 23:07:29 UTC, Vlad Levenfeld wrote: On Tuesday, 24 March 2015 at 18:12:03 UTC, Martin Nowak wrote: I think we should settle on a syntax and split DIP32 in a tuple part and a pattern matching part. The proposal wasn't yet formally accepted, partly because we wanted

Re: uniform tuple syntax

2015-03-24 Thread Vlad Levenfeld via Digitalmars-d
On Tuesday, 24 March 2015 at 18:12:03 UTC, Martin Nowak wrote: I think we should settle on a syntax and split DIP32 in a tuple part and a pattern matching part. The proposal wasn't yet formally accepted, partly because we wanted to wait, whether more needs come up. By now it's already 2 years

Re: I like D

2015-03-24 Thread Steven Schveighoffer via Digitalmars-d
On 3/24/15 4:38 PM, Dylan Knutson wrote: immutable nfields = header.count('\t'); ... output.writeln(cycle("\t-").take(2 * nfields)); Super-win, now I only ever have to update the original column list. Little things like this are what make me love D. -Steve I see that `take` returns a lazy ra

Re: Where's "This week in D?"

2015-03-24 Thread Steven Schveighoffer via Digitalmars-d
On 3/24/15 4:27 PM, Adam D. Ruppe wrote: On Tuesday, 24 March 2015 at 20:22:14 UTC, Steven Schveighoffer wrote: How do I get to past issues of this week in d? go to the RSS link in the header text http://arsdnet.net/this-week-in-d/twid.rss It lists all of them with links. OK thanks. I sugge

Re: I like D

2015-03-24 Thread John Colvin via Digitalmars-d
On Tuesday, 24 March 2015 at 13:09:21 UTC, Steven Schveighoffer wrote: Recently, while updating a D utility I wrote to process a binary log file into a tab-separated text file, I found a nice use for ranges. So I have N columns, separated by tabs. The header looks like this: "TIME\tCOL1\tCO

Re: Formal review of dtoh

2015-03-24 Thread John Colvin via Digitalmars-d
On Tuesday, 24 March 2015 at 18:48:11 UTC, Adam D. Ruppe wrote: On Thursday, 19 March 2015 at 11:51:59 UTC, John Colvin wrote: Adam, have you considered sprucing this up for review? Not possible right now, my schedule is already overloaded (I'm working two full-time jobs in addition to a vari

Re: I like D

2015-03-24 Thread Dylan Knutson via Digitalmars-d
immutable nfields = header.count('\t'); ... output.writeln(cycle("\t-").take(2 * nfields)); Super-win, now I only ever have to update the original column list. Little things like this are what make me love D. -Steve I see that `take` returns a lazy range. That's really neat! How does write

Re: Where's "This week in D?"

2015-03-24 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 24 March 2015 at 20:22:14 UTC, Steven Schveighoffer wrote: How do I get to past issues of this week in d? go to the RSS link in the header text http://arsdnet.net/this-week-in-d/twid.rss It lists all of them with links.

Re: Where's "This week in D?"

2015-03-24 Thread Steven Schveighoffer via Digitalmars-d
On 3/24/15 2:40 PM, Adam D. Ruppe wrote: http://arsdnet.net/this-week-in-d/mar-22.html How do I get to past issues of this week in d? -Steve

Re: I like D

2015-03-24 Thread Steven Schveighoffer via Digitalmars-d
On 3/24/15 4:11 PM, Andrei Alexandrescu wrote: On 3/24/15 11:56 AM, "Jacques =?UTF-8?B?TcO8bGxlciI=?= " wrote: On Tuesday, 24 March 2015 at 13:09:21 UTC, Steven Schveighoffer wrote: New code: immutable nfields = header.count('\t'); ... output.writeln(cycle("\t-").take(2 * nfields)); output.w

Re: I like D

2015-03-24 Thread Andrei Alexandrescu via Digitalmars-d
On 3/24/15 11:56 AM, "Jacques =?UTF-8?B?TcO8bGxlciI=?= " wrote: On Tuesday, 24 March 2015 at 13:09:21 UTC, Steven Schveighoffer wrote: New code: immutable nfields = header.count('\t'); ... output.writeln(cycle("\t-").take(2 * nfields)); output.writeln("\t-".repeat(nfields).join); output.wri

Re: I like D

2015-03-24 Thread Walter Bright via Digitalmars-d
On 3/24/2015 11:35 AM, Adam D. Ruppe wrote: On Tuesday, 24 March 2015 at 18:16:08 UTC, Dicebot wrote: Can be nice entry for weekly D newsletter tips & tricks. Aye, write it up! Also, as a Phobos example for take or cycle.

Re: std.typecons: PrimitiveRef

2015-03-24 Thread Dicebot via Digitalmars-d
On Tuesday, 24 March 2015 at 15:38:04 UTC, Andre wrote: I think it is useful to add to std.typecons as there is no possibility to use ref for type tuples. This sounds like a bad idea because in D `ref` is not a type qualifier and thus not part of a type. Not though that you can apply ref sto

Re: I like D

2015-03-24 Thread via Digitalmars-d
On Tuesday, 24 March 2015 at 13:09:21 UTC, Steven Schveighoffer wrote: New code: immutable nfields = header.count('\t'); ... output.writeln(cycle("\t-").take(2 * nfields)); output.writeln("\t-".repeat(nfields).join);

Re: std.typecons: PrimitiveRef

2015-03-24 Thread Andre via Digitalmars-d
On Tuesday, 24 March 2015 at 16:58:48 UTC, Gary Willoughby wrote: On Tuesday, 24 March 2015 at 15:38:04 UTC, Andre wrote: The use case is a type tuple where you cannot use the keyword ref. Could template alias parameters not be used here? http://dlang.org/template.html#aliasparameters Event

Re: Formal review of dtoh

2015-03-24 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 19 March 2015 at 11:51:59 UTC, John Colvin wrote: Adam, have you considered sprucing this up for review? Not possible right now, my schedule is already overloaded (I'm working two full-time jobs in addition to a variety of little things). I'm also not really up with all the rec

Re: Where's "This week in D?"

2015-03-24 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 23 March 2015 at 21:28:27 UTC, Andrei Alexandrescu wrote: No issue for the past week? -- Andrei I forgot to post it online this Sunday. Really, I need to move these to Saturday, Sundays are just packed full of non-computer time for me. http://arsdnet.net/this-week-in-d/mar-22.htm

Re: I like D

2015-03-24 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 24 March 2015 at 18:16:08 UTC, Dicebot wrote: Can be nice entry for weekly D newsletter tips & tricks. Aye, write it up!

Re: uniform tuple syntax

2015-03-24 Thread via Digitalmars-d
On Tuesday, 24 March 2015 at 18:12:03 UTC, Martin Nowak wrote: wait, whether more needs come up. By now it's already 2 years old and it still looks complete IMO. http://wiki.dlang.org/DIP32 Using "$" for something completely different is confusing, but it looks ok. Maybe rename existing use

Re: I like D

2015-03-24 Thread Dicebot via Digitalmars-d
On Tuesday, 24 March 2015 at 13:09:21 UTC, Steven Schveighoffer wrote: Recently, while updating a D utility I wrote to process a binary log file into a tab-separated text file, I found a nice use for ranges. So I have N columns, separated by tabs. The header looks like this: "TIME\tCOL1\tCO

Re: uniform tuple syntax

2015-03-24 Thread Martin Nowak via Digitalmars-d
On 03/24/2015 03:11 PM, Vlad Levenfeld wrote: > Anything going on with this? Been looking forward to seeing it for awhile. I think we should settle on a syntax and split DIP32 in a tuple part and a pattern matching part. The proposal wasn't yet formally accepted, partly because we wanted to wait,

Re: Where's "This week in D?"

2015-03-24 Thread David Gileadi via Digitalmars-d
On 3/24/15 11:09 AM, Andrei Alexandrescu wrote: On 3/24/15 10:52 AM, CraigDillabaugh wrote: On Monday, 23 March 2015 at 21:28:27 UTC, Andrei Alexandrescu wrote: No issue for the past week? -- Andrei Maybe Adam was vaporized by Aliens! Adam was on reddit a couple of hours ago. This is a bit

Re: Where's "This week in D?"

2015-03-24 Thread Andrei Alexandrescu via Digitalmars-d
On 3/24/15 10:52 AM, CraigDillabaugh wrote: On Monday, 23 March 2015 at 21:28:27 UTC, Andrei Alexandrescu wrote: No issue for the past week? -- Andrei Maybe Adam was vaporized by Aliens! Adam was on reddit a couple of hours ago. This is a bit of a bummer because an important feature of a we

Re: Where's "This week in D?"

2015-03-24 Thread CraigDillabaugh via Digitalmars-d
On Monday, 23 March 2015 at 21:28:27 UTC, Andrei Alexandrescu wrote: No issue for the past week? -- Andrei Maybe Adam was vaporized by Aliens!

Re: Solution to problems:

2015-03-24 Thread CraigDillabaugh via Digitalmars-d
On Tuesday, 24 March 2015 at 17:13:07 UTC, Jake The Baker wrote: You guys are complete ignoring 90% of the post. It is not just about configuration. Regardless, I'll be back in another year to see what progress has been made. Good luck. I really do hope you guys can get your shit together and

Re: Solution to problems:

2015-03-24 Thread CraigDillabaugh via Digitalmars-d
On Tuesday, 24 March 2015 at 17:13:07 UTC, Jake The Baker wrote: You guys are complete ignoring 90% of the post. It is not just about configuration. clip Regardless, I'll be back in another year to see what progress has been made. Good luck. I really do hope you guys can get your shit tog

Re: A few notes on choosing between Go and D for a quick project

2015-03-24 Thread bachmeier via Digitalmars-d
Just saw this message. Thanks for trying it out. I will have to look at what Rcpp does on Windows. I've never used D on Windows either so will have to figure that out as well. On Friday, 20 March 2015 at 02:38:02 UTC, jmh530 wrote: On Wednesday, 18 March 2015 at 18:48:59 UTC, bachmeier wrote

Re: A reason to choose D over Go

2015-03-24 Thread Martin Nowak via Digitalmars-d
On Sunday, 22 March 2015 at 20:35:31 UTC, Mengu wrote: trust me, from an undecided but experienced developer's perspective there are so many reasons to choose D over Go. on the otherhand same person has a lot more reasons to choose Go over D. i'm writing a very long blog post about this. if a

Re: pureity of closures

2015-03-24 Thread Stefan Koch via Digitalmars-d
On Monday, 23 March 2015 at 09:45:41 UTC, Dicebot wrote: I think this was not intended and is simply a side effect of limited D call graph analysis. Relaxing that limitation makes sense to me because unused impure function can be used for compile-time reflection or returned from pure function

Re: Solution to problems:

2015-03-24 Thread Jake The Baker via Digitalmars-d
You guys are complete ignoring 90% of the post. It is not just about configuration. 1. Whatever you claim to be easy is irrelevant. Just because X can be done by you. If you want "Me" to do X it better be easy, else I'm not going to waste my time. Just because you can write 10 lines of scri

Re: std.typecons: PrimitiveRef

2015-03-24 Thread Gary Willoughby via Digitalmars-d
On Tuesday, 24 March 2015 at 15:38:04 UTC, Andre wrote: The use case is a type tuple where you cannot use the keyword ref. Could template alias parameters not be used here? http://dlang.org/template.html#aliasparameters

Re: A few notes on choosing between Go and D for a quick project

2015-03-24 Thread Mike James via Digitalmars-d
On Friday, 20 March 2015 at 20:34:36 UTC, Walter Bright wrote: On 3/20/2015 8:25 AM, weaselcat wrote: All of the content on rosettacode appears to be licensed under GNU FDL, I believe it would just have to be released under the GNU FDL or a similar copyleft license that fulfills the GNU FDL.

Re: Solution to problems:

2015-03-24 Thread Nick Sabalausky via Digitalmars-d
On 03/23/2015 08:18 PM, ketmar wrote: On Mon, 23 Mar 2015 21:34:08 +, Jake The Baker wrote: I don't want to spend 30mins to an hour to download the latest version, compile it if I have to, make sure all the configuration stuff is correct, create a setup program... just to find out there is

std.typecons: PrimitiveRef

2015-03-24 Thread Andre via Digitalmars-d
Hi, Namespace helped me to get following template working. struct PrimitiveRef(T) { private T* _value; @property ref inout(T) get() inout pure nothrow { assert(_value); return *_value; } alias get this;

Re: std.typecons: PrimitiveRef

2015-03-24 Thread Andre via Digitalmars-d
Definition of BoolRef: alias BoolRef = PrimitiveRef!bool;

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-24 Thread Dejan Lekic via Digitalmars-d
On Tuesday, 24 March 2015 at 14:17:26 UTC, Dejan Lekic wrote: On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particula

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-24 Thread Dejan Lekic via Digitalmars-d
On Wednesday, 18 March 2015 at 18:48:53 UTC, Walter Bright wrote: I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult. I could take this task, with help of Brian's

uniform tuple syntax

2015-03-24 Thread Vlad Levenfeld via Digitalmars-d
Anything going on with this? Been looking forward to seeing it for awhile.

I like D

2015-03-24 Thread Steven Schveighoffer via Digitalmars-d
Recently, while updating a D utility I wrote to process a binary log file into a tab-separated text file, I found a nice use for ranges. So I have N columns, separated by tabs. The header looks like this: "TIME\tCOL1\tCOL2\t..." With about 30 or 40 columns. The first output is a line like thi

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-24 Thread Steven Schveighoffer via Digitalmars-d
On 3/24/15 7:04 AM, Daniel Murphy wrote: "Steven Schveighoffer" wrote in message news:mepo3t$8ka$1...@digitalmars.com... I would also find handy a switch to simply display publicly undocumented functions in the documentation. I recently went through and documented all core.stdc items with empt

Re: Solution to problems:

2015-03-24 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 23 March 2015 at 21:34:09 UTC, Jake The Baker wrote: 1. IDE that works with a centralized server to be able to change D versions at a drop of a time. e.g., click "Master" and it checks to see if you have the latest, if not it downloads it, configures it, and sets it up hands free to

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-24 Thread Kagamin via Digitalmars-d
Another good task for dfix.

Re: Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-24 Thread Daniel Murphy via Digitalmars-d
"Steven Schveighoffer" wrote in message news:mepo3t$8ka$1...@digitalmars.com... I would also find handy a switch to simply display publicly undocumented functions in the documentation. I recently went through and documented all core.stdc items with empty docs so they would just show up. Was a

Re: Solution to problems:

2015-03-24 Thread rumbu via Digitalmars-d
On Monday, 23 March 2015 at 21:34:09 UTC, Jake The Baker wrote: If D had an ide that could do the following I think development and testing could be better managed. ... Basically you want something like Nuget in Visual Studio: https://www.nuget.org/ There is something similar for D called

Re: Solution to problems:

2015-03-24 Thread tcak via Digitalmars-d
On Monday, 23 March 2015 at 21:34:09 UTC, Jake The Baker wrote: If D had an ide that could do the following I think development and testing could be better managed. 1. IDE that works with a centralized server to be able to change D versions at a drop of a time. e.g., click "Master" and it che

Re: Static Const Object Polymorphism

2015-03-24 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-23 20:17, klodkevin wrote: What are your thoughts on this? I didn't read the whole post but it looks like you've come up with what's called Policy-based design [1]. The only difference is that you combined several template parameters in one single parameter. I have actually start