Re: Dscanner - It exists

2012-08-02 Thread Jacob Carlborg
On 2012-08-01 22:20, Jonathan M Davis wrote: If you want really good performance out of a range-based solution operating on ranges of dchar, then you need to special case for the built-in string types all over the place, and if you have to wrap them in other range types (generally because of

Re: Dscanner - It exists

2012-08-02 Thread Jacob Carlborg
On 2012-08-02 00:23, David wrote: I think the best way here is to define a BufferedRange that takes any other range and supplies a buffer for it (with the appropriate primitives) in a native array. Andrei Don't you think, this range stuff is overdone? Define some fancy Range stuff, if an

Re: Dscanner - It exists

2012-08-02 Thread Jonathan M Davis
On Thursday, August 02, 2012 08:18:39 Jacob Carlborg wrote: On 2012-08-01 22:20, Jonathan M Davis wrote: If you want really good performance out of a range-based solution operating on ranges of dchar, then you need to special case for the built-in string types all over the place, and if you

Re: Dscanner - It exists

2012-08-02 Thread Jacob Carlborg
On 2012-08-02 08:26, Jonathan M Davis wrote: It's really not all that hard to special case for strings, especially when you're operating primarily on code units. And I think that the lexer should be flexible enough to be usable with ranges other than strings. We're trying to make most stuff in

Re: Dscanner - It exists

2012-08-02 Thread Jonathan M Davis
On Thursday, August 02, 2012 08:51:26 Jacob Carlborg wrote: On 2012-08-02 08:26, Jonathan M Davis wrote: It's really not all that hard to special case for strings, especially when you're operating primarily on code units. And I think that the lexer should be flexible enough to be usable

Re: Pull freeze

2012-08-02 Thread Russel Winder
On Wed, 2012-08-01 at 07:56 -0400, Andrei Alexandrescu wrote: [….] Well this doesn't do a lot in the way of substantiating. I do want to be illuminated. I want to get DVCS! And my understanding is that we need to branch whenever we plan a new release, and cherry-pick bugfixes from the

Re: Dscanner - It exists

2012-08-02 Thread Jacob Carlborg
On 2012-08-02 09:43, Jonathan M Davis wrote: For instance, I have this function which I use to generate a mixin any time that I want to get the first code unit: string declareFirst(R)() if(isForwardRange!R is(Unqual!(ElementType!R) == dchar)) { static if(isNarrowString!R)

Re: Dscanner - It exists

2012-08-02 Thread Andrei Alexandrescu
On 8/2/12 3:43 AM, Jonathan M Davis wrote: A range-based function operating on strings without special-casing them often _will_ harm performance. But if you special-case them for strings, then you can avoid that performance penalty - especially if you can avoid having to decode any characters.

Re: Pull freeze

2012-08-02 Thread Andrei Alexandrescu
On 8/2/12 8:47 AM, Andrei Alexandrescu wrote: On 8/2/12 5:00 AM, Russel Winder wrote: On Wed, 2012-08-01 at 07:56 -0400, Andrei Alexandrescu wrote: [….] Well this doesn't do a lot in the way of substantiating. I do want to be illuminated. I want to get DVCS! And my understanding is that we

Re: Pull freeze

2012-08-02 Thread Andrei Alexandrescu
On 8/2/12 5:00 AM, Russel Winder wrote: On Wed, 2012-08-01 at 07:56 -0400, Andrei Alexandrescu wrote: [….] Well this doesn't do a lot in the way of substantiating. I do want to be illuminated. I want to get DVCS! And my understanding is that we need to branch whenever we plan a new release, and

dmd 1.075 and 2.060 release

2012-08-02 Thread Walter Bright
Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread bearophile
Walter Bright: Another big pile of bug fixes. More contributors than ever! And there is the first step of this change too: http://d.puremagic.com/issues/show_bug.cgi?id=6652 Bye, bearophile

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Alex Rønne Petersen
On 02-08-2012 21:40, Peter Alexander wrote: Nice update, but broke Derelict2 :-( Regression: delegates with default arguments are broken (worked in 2.059) void foo(void delegate(int x = 0) fun) { fun(); // Error: expected 1 function arguments, not 0 } I think it was decided that this

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Paul D. Anderson
On Thursday, 2 August 2012 at 19:19:04 UTC, Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Andrej Mitrovic
On 8/2/12, Walter Bright newshou...@digitalmars.com wrote: Known issue, it's an inevitable result (it never worked right anyway): http://d.puremagic.com/issues/show_bug.cgi?id=8454 P.S. You might want to monitor the beta releases. I've posted about that exact Derelict case in Issue 3866

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Alex Rønne Petersen
On 02-08-2012 21:18, Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread dnewbie
Memory usage of my program when compiled by dmd2.057, 2.058, 2.059 2.060: http://postimage.org/image/hqn6l4l8p/ It's a great improvement. Thanks for the new release.

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Alex Rønne Petersen
On 02-08-2012 21:48, Alex Rønne Petersen wrote: On 02-08-2012 21:18, Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Philippe Sigaud
On Thu, Aug 2, 2012 at 10:18 PM, dnewbie r...@myopera.com wrote: Memory usage of my program when compiled by dmd2.057, 2.058, 2.059 2.060: http://postimage.org/image/hqn6l4l8p/ It's a great improvement. Thanks for the new release. Wow.

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Peter Alexander
Ok, got another regression. Quite a scary bug. http://d.puremagic.com/issues/show_bug.cgi?id=8497

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Andrej Mitrovic
On 8/2/12, Philippe Sigaud philippe.sig...@gmail.com wrote: On Thu, Aug 2, 2012 at 10:18 PM, dnewbie r...@myopera.com wrote: Memory usage of my program when compiled by dmd2.057, 2.058, 2.059 2.060: http://postimage.org/image/hqn6l4l8p/ It's a great improvement. Thanks for the new release.

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Peter Alexander
On Thursday, 2 August 2012 at 20:38:11 UTC, Andrej Mitrovic wrote: On 8/2/12, Philippe Sigaud philippe.sig...@gmail.com wrote: On Thu, Aug 2, 2012 at 10:18 PM, dnewbie r...@myopera.com wrote: Memory usage of my program when compiled by dmd2.057, 2.058, 2.059 2.060:

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Marco Leise
Am Thu, 02 Aug 2012 12:18:37 -0700 schrieb Walter Bright newshou...@digitalmars.com: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Timon Gehr
On 08/02/2012 09:28 PM, bearophile wrote: Walter Bright: Another big pile of bug fixes. More contributors than ever! And there is the first step of this change too: http://d.puremagic.com/issues/show_bug.cgi?id=6652 Bye, bearophile Which is the wrong thing to do. 'ref' means that the range

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Andrei Alexandrescu
On 8/2/12 4:36 PM, Jacob Carlborg wrote: On 2012-08-02 21:18, Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Piotr Szturmaj
Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.060.zip It's

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Alex Rønne Petersen
On 02-08-2012 23:25, Walter Bright wrote: On 8/2/2012 1:08 PM, Alex Rønne Petersen wrote: Unfortunately ran into a couple of regressions (though nothing major). Please join the beta program! I usually do, but didn't really get the time to try it out this release. -- Alex Rønne Petersen

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Walter Bright
On 8/2/2012 1:08 PM, Alex Rønne Petersen wrote: Unfortunately ran into a couple of regressions (though nothing major). Please join the beta program!

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Walter Bright
On 8/2/2012 1:46 PM, Marco Leise wrote: By the way, it would be great if the bash completion script was also available in the .zip distribution. Please submit a pull request.

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Marco Leise
Am Thu, 02 Aug 2012 14:54:01 -0700 schrieb Walter Bright newshou...@digitalmars.com: On 8/2/2012 1:46 PM, Marco Leise wrote: By the way, it would be great if the bash completion script was also available in the .zip distribution. Please submit a pull request. I'm not its maintainer.

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Jonathan M Davis
On Thursday, August 02, 2012 12:18:37 Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip http://www.digitalmars.com/d/2.0/changelog.html

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Andrei Alexandrescu
On 8/2/12 6:46 PM, Jonathan M Davis wrote: On Thursday, August 02, 2012 12:18:37 Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.075.zip

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Jonathan M Davis
On Thursday, August 02, 2012 19:04:06 Andrei Alexandrescu wrote: On 8/2/12 6:46 PM, Jonathan M Davis wrote: On Thursday, August 02, 2012 12:18:37 Walter Bright wrote: Another big pile of bug fixes. More contributors than ever! http://www.digitalmars.com/d/1.0/changelog.html

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Andrei Alexandrescu
On 8/2/12 7:15 PM, Jonathan M Davis wrote: We need changelog.dd for the new/changes section (which is where the problem is in this case), but your suggestion makes sense for the bugzilla section. It requires someone doing the work though. I threw together a quick program to grab the bugfix list

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Mike Parker
On 8/3/2012 4:50 AM, Andrej Mitrovic wrote: On 8/2/12, Walter Bright newshou...@digitalmars.com wrote: Known issue, it's an inevitable result (it never worked right anyway): http://d.puremagic.com/issues/show_bug.cgi?id=8454 P.S. You might want to monitor the beta releases. I've posted

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Mike Parker
On 8/3/2012 4:40 AM, Peter Alexander wrote: Nice update, but broke Derelict2 :-( Regression: delegates with default arguments are broken (worked in 2.059) void foo(void delegate(int x = 0) fun) { fun(); // Error: expected 1 function arguments, not 0 } I've committed the fix Derelict2.

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Marco Leise
Am Thu, 02 Aug 2012 19:23:15 -0700 schrieb Walter Bright newshou...@digitalmars.com: The beauty of git is you don't have to be the maintainer. Anyone can submit pull requests for any project. I did use GitHub fork pull request before to fix a small bug in Phobos. What I mean is, the person