Re: Microsoft's Channel 9 to cover the D programming language

2011-07-30 Thread Walter Bright
On 7/30/2011 9:27 PM, Andrei Alexandrescu wrote: http://blogs.msdn.com/b/usisvde/archive/2011/07/30/channel-9-goes-native-with-show-for-c-developers.aspx TIL I'm going to be a guest on it!

Re: Clang static analysis results for dmd

2011-07-30 Thread dennis luehring
Am 29.07.2011 22:02, schrieb Walter Bright: > Here's another one: > >T* p; >... >if (A) >p = &t; >... >if (B) >... *p ... > > B is true if and only if A is true. B can even be the same expression as > A, such as a->b->c. Clang complains on the *p that p is "uni

Re: What library functionality would you most like to see in D?

2011-07-30 Thread Alex Rønne Petersen
On 31-07-2011 07:27, Jonathan M Davis wrote: I think that it would be useful to query the community for what piece of library functionality they don't currently have in D and would most like to see. For instance, there is no official logging framework in D or any 3rd party libraries which do it A

Re: What library functionality would you most like to see in D?

2011-07-30 Thread Jonathan M Davis
On Sunday 31 July 2011 01:53:25 Nick Sabalausky wrote: > "Jonathan M Davis" wrote in message > news:mailman.1978.1312090051.14074.digitalmar...@puremagic.com... > > >I think that it would be useful to query the community for what piece of > > > > library functionality they don't currently have in

Re: What library functionality would you most like to see in D?

2011-07-30 Thread Nick Sabalausky
"Jonathan M Davis" wrote in message news:mailman.1978.1312090051.14074.digitalmar...@puremagic.com... >I think that it would be useful to query the community for what piece of > library functionality they don't currently have in D and would most like > to > see. For instance, there is no officia

What library functionality would you most like to see in D?

2011-07-30 Thread Jonathan M Davis
I think that it would be useful to query the community for what piece of library functionality they don't currently have in D and would most like to see. For instance, there is no official logging framework in D or any 3rd party libraries which do it AFAIK. So, that could be one type of function

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Jonathan M Davis
On Sunday 31 July 2011 00:04:33 Caligo wrote: > 7k views in one day, now that's just epic. 2011 might as be the year for D. However, the vote count isn't anywhere near 7k, so either people are deciding not to vote, or (more likely) it's seeing a lot of views from people who don't normally visit

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Caligo
7k views in one day, now that's just epic. 2011 might as be the year for D.

Microsoft's Channel 9 to cover the D programming language

2011-07-30 Thread Andrei Alexandrescu
http://blogs.msdn.com/b/usisvde/archive/2011/07/30/channel-9-goes-native-with-show-for-c-developers.aspx Andrei

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Nick Sabalausky
"Peter Alexander" wrote in message news:j129s3$29oh$1...@digitalmars.com... > On 31/07/11 12:38 AM, Andrei Alexandrescu wrote: >> On 07/30/2011 03:37 PM, Walter Bright wrote: >>> On 7/30/2011 1:19 PM, Andrei Alexandrescu wrote: You may want to kindly message the moderators to approve manuall

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Peter Alexander
On 31/07/11 12:38 AM, Andrei Alexandrescu wrote: On 07/30/2011 03:37 PM, Walter Bright wrote: On 7/30/2011 1:19 PM, Andrei Alexandrescu wrote: You may want to kindly message the moderators to approve manually - the post has been autobanned. Done. It's up. Comment away! http://www.reddit.co

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Adam D. Ruppe
Ugh, I hate seeing so much factually wrong stuff. It's one thing to have different opinions, but half the anti-D folks remind me of myself circa 2003. I went to digitalmars.com to update my copy of the 16 bit C compiler (yes, I used that thing for a long time. Sometimes still do!). I saw a link t

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Andrei Alexandrescu
On 07/30/2011 03:37 PM, Walter Bright wrote: On 7/30/2011 1:19 PM, Andrei Alexandrescu wrote: You may want to kindly message the moderators to approve manually - the post has been autobanned. Done. It's up. Comment away! http://www.reddit.com/r/programming/comments/j48tf/how_is_c_better_tha

Out-of-date minit.obj in 2.054 zip

2011-07-30 Thread Nick Sabalausky
The file "dmd2\src\druntime\src\rt\minit.obj" in the 2.054 zip is out of date WRT the matching asm file. (At least as far as the timestamps, I don't know about the actual file content.) On systems without masm386 installed, this causes automated DMD builders to fail without manual user intervent

Re: Time for Phobos CTFE-ability unittests...right? RIGHT?

2011-07-30 Thread Jonathan M Davis
On Saturday 30 July 2011 21:09:48 Don wrote: > dsimcha wrote: > > The following look like they are simple matters of programming and could > > be implemented eventually: > > > > With statements, scope statements, try-catch-finally statements, throw > > statements. > > > > Delete expressions. > >

Re: std.path review: second update

2011-07-30 Thread Jonathan M Davis
On Saturday 30 July 2011 15:38:33 Lars T. Kyllingstad wrote: > On Sat, 30 Jul 2011 23:27:33 +0800, KennyTM~ wrote: > > On Jul 30, 11 17:00, Lars T. Kyllingstad wrote: > >> On Sat, 30 Jul 2011 03:47:55 +0800, KennyTM~ wrote: > >>> - hasDrive, isDriveRoot: the path > >>> > >>> "#:\x" > >>> >

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Jonathan M Davis
On Saturday 30 July 2011 10:16:49 bearophile wrote: > Jonathan M Davis: > > This is part 7 of your answer: > >Member functions of classes are polymorphic by default. You can't declare > >them non-virtual. It's up to the compiler to decide if they can be (which > >really is only the case if they're

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Walter Bright
On 7/30/2011 1:19 PM, Andrei Alexandrescu wrote: You may want to kindly message the moderators to approve manually - the post has been autobanned. Done.

Re: Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Brad Roberts
On Saturday, July 30, 2011 1:29:13 PM, Nick Sabalausky wrote: > "Walter Bright" wrote in message > news:j11hfi$10tv$1...@digitalmars.com... >> On 7/30/2011 2:05 AM, Lars T. Kyllingstad wrote: >>> http://d-programming-language.org/version.html#PredefinedVersions >>> >>> Why is the "linux" version

Re: Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Nick Sabalausky
"Walter Bright" wrote in message news:j11hfi$10tv$1...@digitalmars.com... > On 7/30/2011 2:05 AM, Lars T. Kyllingstad wrote: >> http://d-programming-language.org/version.html#PredefinedVersions >> >> Why is the "linux" version identifier all lowercase? > > Because gcc's predefined macro is "linux

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Nick Sabalausky
"Andrei Alexandrescu" wrote in message news:j11p0f$1fq7$1...@digitalmars.com... > On 07/30/2011 12:58 PM, Walter Bright wrote: >> Now on reddit! >> >> http://www.reddit.com/r/programming/comments/j48tf/how_is_c_better_than_d/ > > You may want to kindly message the moderators to approve manually -

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Nick Sabalausky
> What does C++ do better than D? It's better at giving you enough time during a compile to grab a sandwich and a latte, and generally goof off with the excuse "Can't do anything else right now - it's compiling". Boo to D, for making me have to be productive!

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Andrei Alexandrescu
On 07/30/2011 12:58 PM, Walter Bright wrote: Now on reddit! http://www.reddit.com/r/programming/comments/j48tf/how_is_c_better_than_d/ You may want to kindly message the moderators to approve manually - the post has been autobanned. Andrei

Re: Array allocations [was: Re: What does C++...]

2011-07-30 Thread Peter Alexander
On 30/07/11 8:45 PM, bearophile wrote: Don: Yeah, it's not fundamental, and not even very complicated. The current implementation was a quick hack to provide the functionality, that hasn't been replaced with a proper implementation yet. All that's required to fix it is a bit of code in e2ir.c.

Re: Array allocations [was: Re: What does C++...]

2011-07-30 Thread bearophile
Don: > Yeah, it's not fundamental, and not even very complicated. The current > implementation was a quick hack to provide the functionality, that > hasn't been replaced with a proper implementation yet. All that's > required to fix it is a bit of code in e2ir.c. Thank you for your (positive)

Re: State of the Unicode in D

2011-07-30 Thread Walter Bright
On 7/30/2011 12:09 PM, Dmitry Olshansky wrote: Let me expand a bit my reply on bugzilla. There are other things I'd like to note, besides conforming to unicode regex standard, that is (going to be) fully supported in upcoming next-gen std.regex. Things I'd love to see in an upgrade of std.uni: -

Re: Time for Phobos CTFE-ability unittests...right? RIGHT?

2011-07-30 Thread Don
dsimcha wrote: Ok, now that the new docs are up, I'm kind of curious about what's a fundamental limitation vs. a todo. I assume the following are fundamental limitations, since CTFE has no concept of threading or global state and works by interpreting the code, not executing it directly on the

Re: State of the Unicode in D

2011-07-30 Thread Dmitry Olshansky
On 30.07.2011 5:21, Walter Bright wrote: On 7/29/2011 4:24 PM, Walter Bright wrote: http://training.perl.com/OSCON2011/index.html This is a good starting point for seeing where we are with Unicode support and where we need to go. One problem: http://d.puremagic.com/issues/show_bug.cgi?id=64

Re: Array allocations [was: Re: What does C++...]

2011-07-30 Thread Don
bearophile wrote: Peter Alexander: I also posted my thoughts, although I think I was a bit more negative towards D than you were :-) I think your answer is among the best of that thread. Regarding this you have written: int[3] a = [1, 2, 3]; // in D, this allocates then copies int a[3] = {1

Re: Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Walter Bright
On 7/30/2011 2:05 AM, Lars T. Kyllingstad wrote: http://d-programming-language.org/version.html#PredefinedVersions Why is the "linux" version identifier all lowercase? Because gcc's predefined macro is "linux".

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Walter Bright
On 7/30/2011 3:22 AM, Jonathan M Davis wrote: Ouch. Now you're going to make me think. My first reaction is to answer "nothing," but there almost has to be _something_. At the moment, however, I have no clue what that could be. I'll definitely have to think about this one. You wrote a nice repl

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Walter Bright
Now on reddit! http://www.reddit.com/r/programming/comments/j48tf/how_is_c_better_than_d/

Array allocations [was: Re: What does C++...]

2011-07-30 Thread bearophile
Peter Alexander: > I also posted my thoughts, although I think I was a bit more negative > towards D than you were :-) I think your answer is among the best of that thread. Regarding this you have written: > int[3] a = [1, 2, 3]; // in D, this allocates then copies > int a[3] = {1, 2, 3}; // in

Re: Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Jesse Phillips
Nick Sabalausky Wrote: > "Lars T. Kyllingstad" wrote in message > news:j10hg0$2c11$3...@digitalmars.com... > > http://d-programming-language.org/version.html#PredefinedVersions > > > > Why is the "linux" version identifier all lowercase? > > Because it's from the time when D/Phobos policy was t

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Jesse Phillips
bearophile Wrote: > Jonathan M Davis: > > This is part 7 of your answer: > > >Member functions of classes are polymorphic by default. You can't declare > >them non-virtual. It's up to the compiler to decide if they can be (which > >really is only the case if they're final and aren't overriding

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Peter Alexander
On 30/07/11 1:09 PM, Jonathan M Davis wrote: On Saturday 30 July 2011 12:43:34 Klaim - Joël Lamotte wrote: On Sat, Jul 30, 2011 at 12:22, Jonathan M Davis wrote: Ouch. Now you're going to make me think. My first reaction is to answer "nothing," but there almost has to be _something_. At the mo

Re: std.path review: second update

2011-07-30 Thread Lars T. Kyllingstad
On Sat, 30 Jul 2011 23:27:33 +0800, KennyTM~ wrote: > On Jul 30, 11 17:00, Lars T. Kyllingstad wrote: >> On Sat, 30 Jul 2011 03:47:55 +0800, KennyTM~ wrote: >>> - hasDrive, isDriveRoot: the path >>> >>> "#:\x" >>> >>> should not pass hasDrive. In Windows only /[a-zA-Z]/ are supported >>> dri

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Timon Gehr
Jeff Nowakovski wrote: > On 07/30/2011 07:16 AM, Alix Pexton wrote: >> >> Looks like that "current most voted answer" got some heavy edits to make >> it more objective. I didn't see the original, but what I read was full >> of misconceptions. He didn't really do much in these edits. He exchanged s

Re: std.path review: second update

2011-07-30 Thread KennyTM~
On Jul 30, 11 17:00, Lars T. Kyllingstad wrote: On Sat, 30 Jul 2011 03:47:55 +0800, KennyTM~ wrote: On Jul 30, 11 02:06, Lars T. Kyllingstad wrote: [snip] Thanks for the nice work! Comments: - pathSplitter: empty, front, back could be const. Also, make the struct 'static struct'. Will do

Re: std.path review: second update

2011-07-30 Thread Lars T. Kyllingstad
Ok, I've pushed some improvements based on Johannes Pfau and KennyTM~'s comments now. The relevant commits are dated 2011-07-30: https://github.com/kyllingstad/phobos/commits/std-path -Lars

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Jeff Nowakowski
On 07/30/2011 07:16 AM, Alix Pexton wrote: Looks like that "current most voted answer" got some heavy edits to make it more objective. I didn't see the original, but what I read was full of misconceptions. Since the "current most voted answer" has changed to one that hasn't been edited, I don

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread bearophile
Jonathan M Davis: This is part 7 of your answer: >Member functions of classes are polymorphic by default. You can't declare them >non-virtual. It's up to the compiler to decide if they can be (which really is >only the case if they're final and aren't overriding a function from a base >class).

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread so
On Sat, 30 Jul 2011 15:11:35 +0300, Jonathan M Davis wrote: Looks like that "current most voted answer" got some heavy edits to make it more objective. I didn't see the original, but what I read was full of misconceptions. It's now better worded than it was, and it's less offensively writte

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Jonathan M Davis
On Saturday 30 July 2011 12:16:46 Alix Pexton wrote: > On 30/07/2011 11:22, Jonathan M Davis wrote: > > On Saturday 30 July 2011 11:43:29 Klaim - Joël Lamotte wrote: > >> Hi, > >> > >> I just wanted to point this question to make sure there are feedbacks > >> from several points of view. > >> Some

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Jonathan M Davis
On Saturday 30 July 2011 12:43:34 Klaim - Joël Lamotte wrote: > On Sat, Jul 30, 2011 at 12:22, Jonathan M Davis wrote: > > Ouch. Now you're going to make me think. My first reaction is to answer > > "nothing," but there almost has to be _something_. At the moment, > > however, I > > have no clue w

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Alix Pexton
On 30/07/2011 11:22, Jonathan M Davis wrote: On Saturday 30 July 2011 11:43:29 Klaim - Joël Lamotte wrote: Hi, I just wanted to point this question to make sure there are feedbacks from several points of view. Some points in the current most voted answer are interesting and I guess some people

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Klaim - Joël Lamotte
On Sat, Jul 30, 2011 at 12:22, Jonathan M Davis wrote: > > Ouch. Now you're going to make me think. My first reaction is to answer > "nothing," but there almost has to be _something_. At the moment, however, > I > have no clue what that could be. I'll definitely have to think about this > one. >

Re: What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Jonathan M Davis
On Saturday 30 July 2011 11:43:29 Klaim - Joël Lamotte wrote: > Hi, > > I just wanted to point this question to make sure there are feedbacks from > several points of view. > Some points in the current most voted answer are interesting and I guess > some people here will want to comment it. > Howe

What does C++ do better than D? - StackOverflow.com

2011-07-30 Thread Klaim - Joël Lamotte
Hi, I just wanted to point this question to make sure there are feedbacks from several points of view. Some points in the current most voted answer are interesting and I guess some people here will want to comment it. However I don't think it's a very good idea, It would be better to just try to p

Re: Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:j10hg0$2c11$3...@digitalmars.com... > http://d-programming-language.org/version.html#PredefinedVersions > > Why is the "linux" version identifier all lowercase? Because it's from the time when D/Phobos policy was to expect users know where an identifi

Re: Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Michel Fortin
On 2011-07-30 09:05:04 +, "Lars T. Kyllingstad" said: http://d-programming-language.org/version.html#PredefinedVersions Why is the "linux" version identifier all lowercase? It really should be "Linux" (see e.g. www.kernel.org). Because Walter saw some code using "#ifdef linux" and thou

Re: Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Jonathan M Davis
On Saturday 30 July 2011 09:05:04 Lars T. Kyllingstad wrote: > http://d-programming-language.org/version.html#PredefinedVersions > > Why is the "linux" version identifier all lowercase? It really should be > "Linux" (see e.g. www.kernel.org). Yeah. I keep screwing up and using version(Linux). To

Why is the "linux" version identifier all lowercase?

2011-07-30 Thread Lars T. Kyllingstad
http://d-programming-language.org/version.html#PredefinedVersions Why is the "linux" version identifier all lowercase? It really should be "Linux" (see e.g. www.kernel.org). -Lars

Re: std.path review: second update

2011-07-30 Thread Lars T. Kyllingstad
On Sat, 30 Jul 2011 03:47:55 +0800, KennyTM~ wrote: > On Jul 30, 11 02:06, Lars T. Kyllingstad wrote: >> Here's a new update based on your comments and requests. Code and docs >> are in the usual place, >> >>https://github.com/kyllingstad/phobos/blob/std-path/std/path.d >>http://www.kylli

Re: std.path review: second update

2011-07-30 Thread Lars T. Kyllingstad
On Fri, 29 Jul 2011 21:10:30 +0200, Johannes Pfau wrote: > Lars T. Kyllingstad wrote: >>Here's a new update based on your comments and requests. Code and docs >>are in the usual place, >> >> https://github.com/kyllingstad/phobos/blob/std-path/std/path.d >> http://www.kyllingen.net/code/std-path