Re: DMD svn and contract inheritance

2009-09-30 Thread Robert Clipsham
Dejan Lekic wrote: You guys are doing awesome job with GDC, thank you _VERY MUCH_! GDC is the only D2 compiler for 64bit architecture... Actually, there are no D2 compilers for 64 bit. GDC's support for D2 is very minimal, I don't know how it compares to LDC's, but I'd guess they were about

Re: Null references redux + Cyclone

2009-09-30 Thread Kagamin
bearophile Wrote: If even Andrei, a quite intelligent person that has written big books on C++, may be wrong on such a basic thing, then I think there's a problem. It can be good to create an html page that explains how some basic things of D are implemented in the front-end. Such page

Re: Brain-limited informatics problems

2009-09-30 Thread language_fan
Tue, 29 Sep 2009 18:15:27 -0700, Walter Bright thusly wrote: bearophile wrote: This part of the dialogue shows a possible usage for pure (or more pure) languages: to correctly implement, avoiding to go mad, very tricky transactional algorithms. D's scope statement specifically addresses

Re: Null references redux

2009-09-30 Thread Max Samukha
On Wed, 30 Sep 2009 08:53:57 -0400, bearophile bearophileh...@lycos.com wrote: If nonnull class references are added to D, then it can be good to add nonnull struct pointers too, to avoid similar bugs. (In C# for a struct you define a default one, that gets used by the compiler as the default

Re: Null references redux

2009-09-30 Thread Don
Jeremie Pelletier wrote: Yigal Chripun wrote: On 29/09/2009 16:41, Jeremie Pelletier wrote: What I argued about was your view on today's software being too big and complex to bother optimize it. that is not what I said. I was saying that hand optimized code needs to be kept at minimum and

Re: Null references redux

2009-09-30 Thread Max Samukha
On Wed, 30 Sep 2009 18:26:20 +0300, Max Samukha spam...@d-coding.com wrote: On Wed, 30 Sep 2009 08:53:57 -0400, bearophile bearophileh...@lycos.com wrote: If nonnull class references are added to D, then it can be good to add nonnull struct pointers too, to avoid similar bugs. (In C# for a

Re: Null references redux + Cyclone

2009-09-30 Thread Andrei Alexandrescu
Saaa wrote: bearophile wrote Walter Bright: No, it is done with one indirection. If even Andrei, a quite intelligent person that has written big books on C++, may be wrong on such a basic thing, then I think there's a problem. It can be good to create an html page that explains how some

Re: Null references redux

2009-09-30 Thread Jeremie Pelletier
Don wrote: Jeremie Pelletier wrote: Yigal Chripun wrote: On 29/09/2009 16:41, Jeremie Pelletier wrote: What I argued about was your view on today's software being too big and complex to bother optimize it. that is not what I said. I was saying that hand optimized code needs to be kept at

Re: Null references redux + Cyclone

2009-09-30 Thread Jeremie Pelletier
Andrei Alexandrescu wrote: Saaa wrote: bearophile wrote Walter Bright: No, it is done with one indirection. If even Andrei, a quite intelligent person that has written big books on C++, may be wrong on such a basic thing, then I think there's a problem. It can be good to create an html

Re: Null references redux + Cyclone

2009-09-30 Thread bearophile
Andrei Alexandrescu: I wonder whether this would be a good topic for TDPL. Currently I'm thinking it's too low-level. I do plan to insert a short section about implementation, just not go deep inside the object model. It's a very good topic for the book. Any good book about computer

Re: Null references redux

2009-09-30 Thread bearophile
Max Samukha: Don't get confused by 'new' in struct initializers. Structs in C# are value types. Yes, you are right. But in D structs can be allocated on the heap too, so I think having optional nonnull struct pointers can be useful. The syntax and usage is similar to normal struct pointers.

Re: Null references redux

2009-09-30 Thread Max Samukha
On Wed, 30 Sep 2009 18:26:20 +0300, Max Samukha spam...@d-coding.com wrote: BTW, C# does have null-initialization problems regardless of flow control. I'll probably never learn to proof-read my opuses. It should have been flow analysis.

Re: Null references redux + Cyclone

2009-09-30 Thread Saaa
Andrei Alexandrescu wrote I wonder whether this would be a good topic for TDPL. Currently I'm thinking it's too low-level. I do plan to insert a short section about implementation, just not go deep inside the object model. Andrei I'd really love to see more about implementations as it

Re: The Non-Virtual Interface idiom in D

2009-09-30 Thread Jérôme M. Berger
Jeremie Pelletier wrote: Jérôme M. Berger wrote: Michel Fortin wrote: I fully support having a way to specify a default implementation for a function in an interface. It might get handy for a few things (like implementing the delegate pattern you see everywhere in Cocoa). But it's a bad

Re: Null references redux

2009-09-30 Thread Jarrett Billingsley
On Wed, Sep 30, 2009 at 12:44 PM, bearophile bearophileh...@lycos.com wrote: Max Samukha: Don't get confused by 'new' in struct initializers. Structs in C# are value types. Yes, you are right. But in D structs can be allocated on the heap too, so I think having optional nonnull struct

Re: The Non-Virtual Interface idiom in D

2009-09-30 Thread Jeremie Pelletier
Jérôme M. Berger wrote: Jeremie Pelletier wrote: Jérôme M. Berger wrote: Michel Fortin wrote: I fully support having a way to specify a default implementation for a function in an interface. It might get handy for a few things (like implementing the delegate pattern you see everywhere in

Re: Null references redux

2009-09-30 Thread Denis Koroskin
On Wed, 30 Sep 2009 23:08:40 +0400, Jarrett Billingsley jarrett.billings...@gmail.com wrote: On Wed, Sep 30, 2009 at 12:44 PM, bearophile bearophileh...@lycos.com wrote: Max Samukha: Don't get confused by 'new' in struct initializers. Structs in C# are value types. Yes, you are right.

Re: Null references redux

2009-09-30 Thread Jarrett Billingsley
On Wed, Sep 30, 2009 at 3:30 PM, Denis Koroskin 2kor...@gmail.com wrote: Note that C stdlib (and other libraries/bindings) will need to be updated to reflect changes, e.g. extern(C) void*? malloc(size_t size); // may return null! which is great because it will provide additional safety.

Re: Null references redux

2009-09-30 Thread language_fan
Wed, 30 Sep 2009 12:05:29 -0400, Jeremie Pelletier thusly wrote: Don wrote: Greater risks come from using more complicated algorithms. Brute-force algorithms are always the easiest ones to get right g. I'm not sure I agree with that. Those algorithms are pretty isolated and really easy to

Video Codecs?

2009-09-30 Thread Benji Smith
Does anybody know of any D libraries implementing or wrapping video codecs? I need to read video files (AVI or MPEG would be fine) using DIVX, XVID, or any other popular codec. In addition to playing those files in a media player control, I need to extract individual frames and perform various

It's official: One-day D tutorial at the ACCU Conference 2010 in Oxford, England

2009-09-30 Thread Andrei Alexandrescu
Hello everybody, I just received firm confirmation from Giovanni Asproni, the chair of the ACCU 2010 conference, that a special one-day tutorial on the D programming language featuring Walter Bright and myself is being planned. The ACCU announcement will follow shortly.

Re: Null references redux + Cyclone

2009-09-30 Thread Andrei Alexandrescu
Saaa wrote: Andrei Alexandrescu wrote I wonder whether this would be a good topic for TDPL. Currently I'm thinking it's too low-level. I do plan to insert a short section about implementation, just not go deep inside the object model. Andrei I'd really love to see more about

Re: Null references redux

2009-09-30 Thread Jeremie Pelletier
language_fan wrote: Wed, 30 Sep 2009 12:05:29 -0400, Jeremie Pelletier thusly wrote: Don wrote: Greater risks come from using more complicated algorithms. Brute-force algorithms are always the easiest ones to get right g. I'm not sure I agree with that. Those algorithms are pretty isolated

Re: Video Codecs?

2009-09-30 Thread Jeremie Pelletier
Benji Smith wrote: Does anybody know of any D libraries implementing or wrapping video codecs? I need to read video files (AVI or MPEG would be fine) using DIVX, XVID, or any other popular codec. In addition to playing those files in a media player control, I need to extract individual frames

Re: Null references redux

2009-09-30 Thread Michel Fortin
On 2009-09-30 15:30:02 -0400, Denis Koroskin 2kor...@gmail.com said: Note that C stdlib (and other libraries/bindings) will need to be updated to reflect changes, e.g. extern(C) void*? malloc(size_t size); // may return null! which is great because it will provide additional safety. I've

Re: Video Codecs?

2009-09-30 Thread Jacob Carlborg
On 9/30/09 22:42, Benji Smith wrote: Does anybody know of any D libraries implementing or wrapping video codecs? I need to read video files (AVI or MPEG would be fine) using DIVX, XVID, or any other popular codec. In addition to playing those files in a media player control, I need to extract

Re: Null references redux

2009-09-30 Thread language_fan
Wed, 30 Sep 2009 17:05:18 -0400, Jeremie Pelletier thusly wrote: language_fan wrote: Wed, 30 Sep 2009 12:05:29 -0400, Jeremie Pelletier thusly wrote: Don wrote: Greater risks come from using more complicated algorithms. Brute-force algorithms are always the easiest ones to get right g.

Re: Null references redux

2009-09-30 Thread Jeremie Pelletier
language_fan wrote: Wed, 30 Sep 2009 17:05:18 -0400, Jeremie Pelletier thusly wrote: language_fan wrote: Wed, 30 Sep 2009 12:05:29 -0400, Jeremie Pelletier thusly wrote: Don wrote: Greater risks come from using more complicated algorithms. Brute-force algorithms are always the easiest ones

Re: Null references redux

2009-09-30 Thread bearophile
Michel Fortin: For a return value it's more troublesome because you're implicitly adding a promise that the function will not return null, and you might not realize it's wrong until it does indeed return null and your program crashes with a segfault. I see. It's a matter of how much you

Re: It's official: One-day D tutorial at the ACCU Conference 2010 in

2009-09-30 Thread bearophile
Andrei Alexandrescu: Today's the last day of submissions, and of course the day I submitted my proposals, but Giovanni took the time to discuss the D tutorial with me and wrote (I quote): I'm willing to consider also late submissions...maybe you can encourage some D geeks ;-) So, get on

Unofficial wish list status.(Oct 2009)

2009-09-30 Thread 4tuu4k002
Hi This is the monthly status for the unofficial d wish list: http://all-technology.com/eigenpolls/dwishlist/ I am closing this wish list. New requests should be posted to bugzilla on http://d.puremagic.com/issues/ It would be a great help, if you could help move some of the wish list items

Re: Null references redux

2009-09-30 Thread Yigal Chripun
On 30/09/2009 16:53, Jeremie Pelletier wrote: Yigal Chripun wrote: On 29/09/2009 16:41, Jeremie Pelletier wrote: What I argued about was your view on today's software being too big and complex to bother optimize it. that is not what I said. I was saying that hand optimized code needs to be

Re: Null references redux

2009-09-30 Thread Yigal Chripun
On 30/09/2009 18:44, bearophile wrote: Max Samukha: Don't get confused by 'new' in struct initializers. Structs in C# are value types. Yes, you are right. But in D structs can be allocated on the heap too, so I think having optional nonnull struct pointers can be useful. The syntax and

Re: Null references redux

2009-09-30 Thread Jeremie Pelletier
Yigal Chripun wrote: On 30/09/2009 18:44, bearophile wrote: Max Samukha: Don't get confused by 'new' in struct initializers. Structs in C# are value types. Yes, you are right. But in D structs can be allocated on the heap too, so I think having optional nonnull struct pointers can be

restructuring name hiding around the notion of hijacking

2009-09-30 Thread Andrei Alexandrescu
Today's D has a very strong, principled notion of hijacking: for any given function call, if the call candidates are found in different modules, the call is invalid. I think that works great. Lately I've been thinking of using the same notion of hijacking as a replacement for symbol hiding in

Re: restructuring name hiding around the notion of hijacking

2009-09-30 Thread Michel Fortin
On 2009-09-30 22:01:54 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org said: Today's D has a very strong, principled notion of hijacking: for any given function call, if the call candidates are found in different modules, the call is invalid. I think that works great. Lately I've

Re: looking for an IDE

2009-09-30 Thread Saaa
Phil Deets wrote I tried Descent, but it didn't work well at all with my D2 program. It also didn't support building. I'll look into Poseidon. Thanks. What exactly do you expect from supporting building? I use descent to build my project by using the external tool setup shown here:

Re: looking for an IDE

2009-09-30 Thread Trass3r
Phil Deets schrieb: I tried Descent, but it didn't work well at all with my D2 program. It also didn't support building. I'll look into Poseidon. Thanks. D2 support isn't that good in Descent yet. Building is supported by using the external tools feature, though you should really use

Re: looking for an IDE

2009-09-30 Thread A Bothe
Hi, I think I've got what you want... http://www.alexanderbothe.com/?id=27 - the D-IDE

Re: looking for an IDE

2009-09-30 Thread Jeremie Pelletier
A Bothe wrote: Hi, I think I've got what you want... http://www.alexanderbothe.com/?id=27 - the D-IDE I just tried it (1.0.3.2) and it's still buggy: when I added files to the project manager it also added as many directories, the manager wouldn't let me scroll down either, and I've had

Re: looking for an IDE

2009-09-30 Thread Ary Borenszweig
Trass3r wrote: Phil Deets schrieb: I tried Descent, but it didn't work well at all with my D2 program. It also didn't support building. I'll look into Poseidon. Thanks. D2 support isn't that good in Descent yet. Exactly. I think the parser is ported up to 2.030 but I didn't test it a lot

Re: looking for an IDE

2009-09-30 Thread Phil Deets
On Wed, 30 Sep 2009 02:46:12 -0500, Saaa em...@needmail.com wrote: Phil Deets wrote I tried Descent, but it didn't work well at all with my D2 program. It also didn't support building. I'll look into Poseidon. Thanks. What exactly do you expect from supporting building? I use descent to

Re: looking for an IDE

2009-09-30 Thread Phil Deets
On Wed, 30 Sep 2009 09:01:04 -0500, Trass3r mrmoc...@gmx.de wrote: Phil Deets schrieb: I tried Descent, but it didn't work well at all with my D2 program. It also didn't support building. I'll look into Poseidon. Thanks. D2 support isn't that good in Descent yet. Building is supported by

Re: looking for an IDE

2009-09-30 Thread Trass3r
Phil Deets schrieb: I had never heard of xfBuild. I'll look into it. It looks good based on a brief look at their website. Give it a try. It's much better than rebuild. Though not yet as easily configurable as dsss.

Re: looking for an IDE

2009-09-30 Thread Phil Deets
On Wed, 30 Sep 2009 09:05:37 -0500, A Bothe i...@alexanderbothe.com wrote: Hi, I think I've got what you want... http://www.alexanderbothe.com/?id=27 - the D-IDE I tried that. It has potential, but here is a list of problems I had: * Unpinned panels don't collapse until you unpin a second

Re: looking for an IDE

2009-09-30 Thread Phil Deets
On Wed, 30 Sep 2009 15:49:33 -0500, Phil Deets pjdee...@gmail.com wrote: On Wed, 30 Sep 2009 09:01:04 -0500, Trass3r mrmoc...@gmx.de wrote: Phil Deets schrieb: I tried Descent, but it didn't work well at all with my D2 program. It also didn't support building. I'll look into Poseidon.

Re: looking for an IDE

2009-09-30 Thread Trass3r
Some documentation is at the official site: http://wiki.team0xf.com/index.php?n=Tools.XfBuild Well it's still a WIP. Guess that directory thing isn't implemented properly yet. Using a single module works fine for me, it tracks all dependencies and compiles them.

Re: Access original data from array [OT]

2009-09-30 Thread Tom S
Tom S wrote: 2) Perhaps a custom-fit Delorian will do. DeLorean, even.

[Issue 1170] Cannot forward reference a type defined in a MixinStatement

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1170 --- Comment #4 from Rainer Schuetze r.sagita...@gmx.de 2009-09-29 23:51:07 PDT --- The patch only fixes the name lookup, not the forward reference. As described in comment 1, you'll also need the patch from issue 102 to completely fix the

[Issue 3292] ICE(todt.c) when using a named mixin with an initializer as template alias parameter

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3292 Don clugd...@yahoo.com.au changed: What|Removed |Added Summary|ICE(todt.c) when using a|ICE(todt.c) when using a

[Issue 3325] ICE(func.c) function literal with post-contract

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3325 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||patch --- Comment #7 from

[Issue 3316] Functions nested in a pure templated function cannot reference its local variables

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3316 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||patch --- Comment #1 from

[Issue 3351] New: Reference diagrams

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3351 Summary: Reference diagrams Product: D Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component:

[Issue 3352] New: RangeError in std.conv

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3352 Summary: RangeError in std.conv Product: D Version: 2.032 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos

[Issue 3352] RangeError in std.conv

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3352 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |ASSIGNED

[Issue 3353] New: storage class of a member function is propagated to default arguments

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3353 Summary: storage class of a member function is propagated to default arguments Product: D Version: 2.032 Platform: Other OS/Version: Windows Status: NEW

[Issue 1012] cannot instantiate template with no or default arguments without !()

2009-09-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1012 --- Comment #4 from Rainer Schuetze r.sagita...@gmx.de 2009-09-30 14:48:47 PDT --- Created an attachment (id=466) convert TypeIdentifer refering to TemplateDeclaration to TypeInstance I don't expect any additional ambiguities, because the