silly question: why can't i alias an expression?

2009-04-05 Thread dennis luehring
why is something like that not possible? (except the missing langauge feature thing) could it be a nice extension? double A,B; alias ( A + B * 10 ) my_expression; double C = my_expression;

Re: what are the most common bugs in your D apps?

2009-04-05 Thread downs
davidl wrote: > > Actually I'm not sure about what kind of bugs my d apps usually have. > But I notice that the harmonia project(I now make it uptodate) gets the > problem of integer overlapping(actually I find it quite hard to detect > and fix). > > What's your opinion and experience? I'd say i

Re: what are the most common bugs in your D apps?

2009-04-05 Thread bearophile
Robert Fraser Wrote: > I'm assuming overflow< Which could be 95% solved by buffer overflow checks :-) My ears are ringing. Bye, bearophile

Re: what are the most common bugs in your D apps?

2009-04-05 Thread Robert Fraser
davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite hard to detect and fix). What's your opinion and experience? Null references/

Re: what are the most common bugs in your D apps?

2009-04-05 Thread Robert Fraser
Jarrett Billingsley wrote: On Mon, Apr 6, 2009 at 12:07 AM, davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite hard to detect and fix)

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread bearophile
Robert Fraser: > Compilers seem like they'd be easier to parallelize than other > applications... Because compilers are (almost) pure functions :-) This is less silly than it sounds. Bye, bearophile

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread Robert Fraser
Brad Roberts wrote: BCS wrote: Hello Daniel, http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreade d-I-O.html&Itemid=29 -- Daniel P.S. "It really seems barbaric in our digital age that we all have motors and levers and gears and spinning things in our boxes." Those damned

Re: what are the most common bugs in your D apps?

2009-04-05 Thread bearophile
davidl Wrote: > Actually I'm not sure about what kind of bugs my d apps usually have. I suggest every serious programmer to keep a document that contains all the bugs he/she/shi has fixed in her/his/hir code, plus a note that explains such bug a bit. This is a bug I have put 3 times in my D pr

Re: Hg error checking out dwt-win

2009-04-05 Thread Bill Baxter
On Mon, Apr 6, 2009 at 12:13 PM, Bill Baxter wrote: > I'm pretty sure this used to work: >   hg clone http://hg.dsource.org/proects/dwt-win dwt-win Duh, I'm blind. Trying to working on too many different "proects" at the same time. Actually I found the error by going back to Mercurial 1.0.1 fo

Re: what are the most common bugs in your D apps?

2009-04-05 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 12:07 AM, davidl wrote: > > Actually I'm not sure about what kind of bugs my d apps usually have. But I > notice that the harmonia project(I now make it uptodate) gets the problem of > integer overlapping(actually I find it quite hard to detect and fix). What the hell is "i

what are the most common bugs in your D apps?

2009-04-05 Thread davidl
Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite hard to detect and fix). What's your opinion and experience?

Re: The version of dsss I use

2009-04-05 Thread davidl
在 Mon, 06 Apr 2009 10:09:05 +0800,Bill Baxter 写道: Hi there folks, Back when Gregor was dragging his feet getting DSSS 0.76 out the door, I build my own release of it because some bug in 0.75 was causing me troubles. As I recall, Gregor subsequently never actually release a 0.76 but jumped str

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s > 2. In storing structs larger than a threshold. I know how to do that and > there's a bugzilla on it, just haven't gotten around to implementing it. I'm looking at this and thinking about how to implement it and submit it. One i

Hg error checking out dwt-win

2009-04-05 Thread Bill Baxter
I'm pretty sure this used to work: hg clone http://hg.dsource.org/proects/dwt-win dwt-win But now I get the error: abort: requirement '' not supported! Did something change with the Dwt-win repository? Did something change with the Dsource handling of hg repositories? Or is it my hg install

Re: The version of dsss I use

2009-04-05 Thread yidabu
On Mon, 6 Apr 2009 11:09:05 +0900 Bill Baxter wrote: > http://www.billbaxter.com/projects/d/ I will give it a try. thank you! -- yidabu http://www.dsource.org/projects/dwin/ D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ htt

The version of dsss I use

2009-04-05 Thread Bill Baxter
Hi there folks, Back when Gregor was dragging his feet getting DSSS 0.76 out the door, I build my own release of it because some bug in 0.75 was causing me troubles. As I recall, Gregor subsequently never actually release a 0.76 but jumped straight to 0.77. But 0.77 has some kind of change that

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread Brad Roberts
BCS wrote: > Hello Brad, > >> Careful.. that rule of thumb applies to compute bound use of threads. >> > > I did qualify that as "after the files are loaded". > In the current impl, after files are loaded, it's all one thread still. :)

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread BCS
Hello Brad, Careful.. that rule of thumb applies to compute bound use of threads. I did qualify that as "after the files are loaded".

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread Brad Roberts
BCS wrote: > Hello Daniel, > >> http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreade >> d-I-O.html&Itemid=29 >> >> -- Daniel >> >> P.S. "It really seems barbaric in our digital age that we all have >> motors and levers and gears and spinning things in our boxes." Those >> damne

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread BCS
Hello Daniel, http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreade d-I-O.html&Itemid=29 -- Daniel P.S. "It really seems barbaric in our digital age that we all have motors and levers and gears and spinning things in our boxes." Those damned spinning things! Some sort of

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread Andrei Alexandrescu
Christopher Wright wrote: Your Variant can be extended more easily than mine. Your Variant is faster than mine. But yours cannot be used everywhere, and mine can. But this may be an artificial constraint. For example, you may say "my variant can be used with old-style variadics". Phobos' doesn

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread Christopher Wright
Andrei Alexandrescu wrote: Christopher Wright wrote: Andrei Alexandrescu wrote: Christopher Wright wrote: What information did you find that you needed but is not available in TypeInfo? To have constant-type dispatching without limitations you need the static type information. What do you

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread Walter Bright
bearophile wrote: Is this an improvement of the DMD backend? Now I'm curious: isn't DMD a legacy backend? If this is true, isn't improving it a waste of time, and time is better spent improving something like LLVM? (I am not trying to offend anyone here, I am just curious). Those changes were t

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread Andrei Alexandrescu
dsimcha wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article Christopher Wright wrote: Andrei Alexandrescu wrote: Christopher Wright wrote: What information did you find that you needed but is not available in TypeInfo? To have constant-type dispatching without

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article > Christopher Wright wrote: > > Andrei Alexandrescu wrote: > >> Christopher Wright wrote: > >>> What information did you find that you needed but is not available in > >>> TypeInfo? > >> > >> To have constant-type dispatchi

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread Jarrett Billingsley
On Sat, Apr 4, 2009 at 12:15 PM, Andrei Alexandrescu wrote: > Georg Wrede wrote: >> >> Andrei Alexandrescu wrote: >>> >>> void foo_templated(T...)(T args) >>> { >>>   Variant[args.length] dynatyped; >>>   foreach (i, arg; args) dynatyped[i] = arg; >>>   return foo(dynatyped); >>> } >>> void foo(Va

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread Andrei Alexandrescu
Christopher Wright wrote: Andrei Alexandrescu wrote: Christopher Wright wrote: What information did you find that you needed but is not available in TypeInfo? To have constant-type dispatching without limitations you need the static type information. What do you mean by this? At first I th

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread Christopher Wright
Andrei Alexandrescu wrote: Christopher Wright wrote: What information did you find that you needed but is not available in TypeInfo? To have constant-type dispatching without limitations you need the static type information. What do you mean by this? At first I thought you meant that TypeIn

Re: Objective-D, reflective programming, dynamic typing

2009-04-05 Thread Eljay
Hi Michel, > I'm not exactly sure of what you're trying to do, but perhaps, if > you're on a Mac, you'd be interested in trying the D/Objective-C bridge > I've made. I am on a Mac, and I am very interested in your D/Objective-C bridge. Very cool! Ultimately, what I would like to do, is what

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread dennis luehring
bearophile schrieb: Daniel Keep: http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreaded-I-O.html&Itemid=29 Is this an improvement of the DMD backend? Now I'm curious: isn't DMD a legacy backend? If this is true, isn't improving it a waste of time, and time is better spent im

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread dennis luehring
dennis luehring schrieb: bearophile schrieb: Daniel Keep: http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreaded-I-O.html&Itemid=29 Is this an improvement of the DMD backend? Now I'm curious: isn't DMD a legacy backend? If this is true, isn't improving it a waste of time, an

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread Robert Fraser
bearophile wrote: Daniel Keep: http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreaded-I-O.html&Itemid=29 Is this an improvement of the DMD backend? Now I'm curious: isn't DMD a legacy backend? If this is true, isn't improving it a waste of time, and time is better spent impr

Re: Building D compiler in MSVC IDE

2009-04-05 Thread Robert Fraser
Walter Bright wrote: x-code wrote: I want to build last D 2.0 compiler in Microsoft Visual Studio IDE. Prompt me please, what create and adjust *.vcproj project in MSVC 2003/2005/2008 (or *.dsp for VC6) for assembly of the D compiler in Visual Studio? I tried this do, but faced that that some fi

Re: Building D compiler in MSVC IDE

2009-04-05 Thread Robert Fraser
Tomas Lindquist Olsen wrote: On Sat, Mar 28, 2009 at 11:49 PM, Robert Fraser wrote: x-code wrote: I want to build last D 2.0 compiler in Microsoft Visual Studio IDE. Prompt me please, what create and adjust *.vcproj project in MSVC 2003/2005/2008 (or *.dsp for VC6) for assembly of the D compil

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread dennis luehring
dennis luehring schrieb: dennis luehring schrieb: bearophile schrieb: Daniel Keep: http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreaded-I-O.html&Itemid=29 Is this an improvement of the DMD backend? Now I'm curious: isn't DMD a legacy backend? If this is true, isn't improv

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread bearophile
Daniel Keep: > http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreaded-I-O.html&Itemid=29 Is this an improvement of the DMD backend? Now I'm curious: isn't DMD a legacy backend? If this is true, isn't improving it a waste of time, and time is better spent improving something like

Re: Andrei's interface requests

2009-04-05 Thread Kagamin
Andrei Alexandrescu Wrote: > interface Interface { void foo(); } > void foo(T : Interface)() { ... } > class C { void foo(); } > > C does not explicitly declare abiding to Interface. However, > structurally it does. Should foo be called? If interface is meant for > binary binding, no. If interf

Re: Andrei's interface requests

2009-04-05 Thread Kagamin
Christopher Wright Wrote: > The idea is that the syntax > of template constraints is sufficiently obtuse that you need to use > idioms to get around it So they should be fixed to become usable. > Using that, it's difficult to determine what types you can pass to Template. It's difficult only

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-05 Thread Walter Bright
Daniel Keep wrote: http://dobbscodetalk.com/index.php?option=com_myblog&show=Multithreaded-I-O.html&Itemid=29 Reddit too: http://www.reddit.com/r/programming/comments/8a2y9/walter_bright_multithreaded_io/