Re: C compatibility

2009-07-15 Thread Bill Baxter
On Wed, Jul 15, 2009 at 8:50 AM, BCSn...@anon.com wrote: Hello grauzone, BCS wrote: Reply to Jacob, I've read posts in several threads complaining about the C compatibility, the latest was the % operator. Other complains are that you can use the C syntax for pointers, arrays and function

Re: Developing a plan for D2.0: Getting everything on the table

2009-07-15 Thread Bill Baxter
On Wed, Jul 15, 2009 at 2:42 PM, Jarrett Billingsleyjarrett.billings...@gmail.com wrote: On Wed, Jul 15, 2009 at 5:37 PM, bearophilebearophileh...@lycos.com wrote: Daniel Keep: Because: struct NonNullable(T) {   T ptr;   alias ptr this;   this(T ptr)   {     assert(ptr !is

Re: All this talk about finalising D2 makes me worried

2009-07-15 Thread Bill Baxter
On Wed, Jul 15, 2009 at 6:21 PM, Steven Schveighofferschvei...@yahoo.com wrote: On Wed, 15 Jul 2009 13:22:30 -0400, Stewart Gordon smjg_1...@yahoo.com wrote: With apologies to Bruno Medeiros All this talk about getting D2 finished (and other things like what comes next) makes me

Re: Conditional compilation inside asm and enum declarations

2009-07-14 Thread Bill Baxter
On Mon, Jul 13, 2009 at 10:05 PM, Walter Brightnewshou...@digitalmars.com wrote: Julian Salazar wrote: It's been rehashed here several times (not to rag on you, just to point out that it isn't something that's been overlooked). To sum up, I've worked a lot with both styles - #ifdef, and

Re: new DIP2: Const code bloat

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 7:26 AM, Leandro Lucarellallu...@gmail.com wrote: Kagamin, el  9 de julio a las 09:46 me escribiste: DiP2 is here. Check it. http://www.prowiki.org/wiki4d/wiki.cgi?DiPs http://www.prowiki.org/wiki4d/wiki.cgi?DiP2 ps code markup is not very nice. It would be very

Re: Developing a plan for D2.0: Getting everything on the table

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 10:02 AM, dsimchadsim...@yahoo.com wrote: == Quote from Jarrett Billingsley (jarrett.billings...@gmail.com)'s article On Tue, Jul 14, 2009 at 12:42 PM, Andrei Alexandrescuseewebsiteforem...@erdani.org wrote: - opImplicitCast I think alias this should render that

Re: Conditional compilation inside asm and enum declarations

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 10:01 AM, Walter Brightnewshou...@digitalmars.com wrote: Bill Baxter wrote: But from where I sit it looked like Walter didn't really convince anyone.  To me this seems like a point where D is overly patronizing, to use the phrase from a recent post. You could argue

Re: Conditional compilation inside asm and enum declarations

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 12:04 PM, Walter Brightnewshou...@digitalmars.com wrote: Bill Baxter wrote: I do think you make a convincing argument that in general lots of micro ifdefs everywhere is not the right approach. But I remain unconvinced that potential for abuse is a good reason

Re: Developing a plan for D2.0: Getting everything on the table

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 1:37 PM, bearophilebearophileh...@lycos.com wrote: Robert Clipsham: But LLVM offers many interesting things that are hard to do with DMD's back-end, often such things are already implemented in LLVM (maybe not fully refined yet, but they are working on it) and they

Re: Conditional compilation inside asm and enum declarations

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 2:52 PM, Walter Brightnewshou...@digitalmars.com wrote: Leandro Lucarella wrote: The same goes for version (!X) ..., I think it should be available, there are cases when the use is valid and you have to do artificial hacks like version (X) else It's like Java not

Re: Conditional compilation inside asm and enum declarations

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 5:02 PM, Walter Brightnewshou...@digitalmars.com wrote: Bill Baxter wrote: You do realize you're being patronizing, right?  I have so much experience with these things, and I know the right way to write code, and you don't, so I'm not going to give you this thing you

Re: Conditional compilation inside asm and enum declarations

2009-07-14 Thread Bill Baxter
On Tue, Jul 14, 2009 at 5:13 PM, Walter Brightnewshou...@digitalmars.com wrote: Rainer Deyke wrote: Walter Bright wrote: It's not about protecting idiots. It's about making the better way to do things the easier and more natural way, and making the worse more difficult. Making the better

Re: Case Range Statement ..

2009-07-13 Thread Bill Baxter
On Mon, Jul 13, 2009 at 2:59 AM, Donnos...@nospam.com wrote: Michiel Helvensteijn wrote: Andrei Alexandrescu wrote: void main() {     foreach_reverse (i; 0.7 .. 100.7)     {         write(i, );     } } The last number printed is -0.3. A question if I may. Why does D allow

Re: Oh Dear

2009-07-12 Thread Bill Baxter
On Sun, Jul 12, 2009 at 5:36 PM, Walter Brightnewshou...@digitalmars.com wrote: Rainer Deyke wrote: Walter Bright wrote: According to the python pep, the integer / divide semantics changed from C style to match what the floating point / does. While this makes sense for a language that is

Re: How to search for an element in the array. D2 phobos.

2009-07-12 Thread Bill Baxter
On Sun, Jul 12, 2009 at 3:56 PM, bearophilebearophileh...@lycos.com wrote: Eldar Insafutdinov: I think I completely misunderstood how to use it. Yes, it's too much complex. It tries to do many different things in the most efficient way possible, the result is a high complexity in usage.

Re: Case Range Statement ..

2009-07-10 Thread Bill Baxter
On Thu, Jul 9, 2009 at 9:09 PM, Walter Brightnewshou...@digitalmars.com wrote: Bill Baxter wrote: If it's internal to the parse tree can't you make the syntax whatever you want? Something like (expr1 __exprSequencer expr2) should do just fine, right? No reason it has to be a precious one

Re: Can we fix reverse operator overloading (opSub_r et. al.)?

2009-07-10 Thread Bill Baxter
On Fri, Jul 10, 2009 at 8:15 AM, Andrei Alexandrescuseewebsiteforem...@erdani.org wrote: Don wrote: The other thing that's desperately missing from D is multi-dimensional indexing. What are the limitations of multiple-argument []? Andrei I don't know what Don had in mind, but

Re: Case Range Statement ..

2009-07-10 Thread Bill Baxter
On Fri, Jul 10, 2009 at 12:24 PM, Walter Brightnewshou...@digitalmars.com wrote: Bill Baxter wrote: On Thu, Jul 9, 2009 at 9:09 PM, Walter Brightnewshou...@digitalmars.com wrote: Bill Baxter wrote: If it's internal to the parse tree can't you make the syntax whatever you want? Something

Re: Case Range Statement ..

2009-07-09 Thread Bill Baxter
On Wed, Jul 8, 2009 at 8:26 PM, Walter Brightnewshou...@digitalmars.com wrote: Bill Baxter wrote: I think what Jerome is getting at is that we could be getting more mileage out of the xpr1..xpr2 syntax.  It would be useful syntax for more than just integral, dense ranges in foreach and slices

Re: Case Range Statement ..

2009-07-09 Thread Bill Baxter
On Thu, Jul 9, 2009 at 7:08 PM, Walter Brightnewshou...@digitalmars.com wrote: Jérôme M. Berger wrote: Walter Bright wrote: Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message It's handy when you want to prefix one expression to another, as in:   (foo(), x +

Re: Array indices and (in|ex)clusive ranges

2009-07-08 Thread Bill Baxter
On Wed, Jul 8, 2009 at 10:48 AM, Michiel Helvensteijnm.helvensteijn.rem...@gmail.com wrote: I've been reading the Case Range Statement topic with some interest. It has occurred to me that all those problems would be solved if array indices started with 1 instead of 0. Just let arrays be

Re: Case Range Statement ..

2009-07-08 Thread Bill Baxter
On Wed, Jul 8, 2009 at 4:12 PM, Andrei Alexandrescuseewebsiteforem...@erdani.org wrote: Jérôme M. Berger wrote:    So, the correct way to define an inclusive range is with +1 except when it's with nextUp, unless you're talking about the right end of the range where it is inclusive by default

Re: Case Range Statement ..

2009-07-07 Thread Bill Baxter
On Tue, Jul 7, 2009 at 5:24 PM, Tim Matthewstim.matthe...@gmail.com wrote: Andrei Alexandrescu wrote: Existing actual or perceived inconsistencies are not an argument for adding more of them. Seriously? d00d. Does that really need explanation? Two wrongs don't make a right is all he's

Re: Case Range Statement ..

2009-07-07 Thread Bill Baxter
On Tue, Jul 7, 2009 at 9:48 AM, Derek Parnellde...@psych.ward wrote: On Tue, 07 Jul 2009 11:01:12 -0500, Andrei Alexandrescu wrote: To me they look the same, but if people are happier with wasting vertical space, sure. I think I've finally worked out why I don't like this syntax. Consider

Re: help with c translation

2009-07-02 Thread Bill Baxter
On Thu, Jul 2, 2009 at 9:07 AM, BCSn...@anon.com wrote: Hello Ary, Well, it should work! const means, once a value is assigned to that variable, it never changes again. The compiler can do static analysis to verify this. And that's why it works. And that's why D should also work this way,

Re: optlink on multicore machines

2009-06-30 Thread Bill Baxter
On Tue, Jun 30, 2009 at 11:01 AM, Walter Brightnewshou...@digitalmars.com wrote: BCS wrote: I IS running fine on 3 or 4 multicore machines around here. That's a mystery, then. It works fine for me most of the time, but hangs about 1 out of 20 links or so. Not insurmountable for a 1-link

Re: Descent with compile-time debug for testing

2009-06-10 Thread Bill Baxter
On Wed, Jun 10, 2009 at 10:55 AM, Steve Tealesteve.te...@britseyeview.com wrote: Trass3r Wrote: Ary Borenszweig schrieb: That's ddbg working wrong, not Descent. :-P   Ah, damn so no way this gets fixed. Debugging D is a pain :( So is ddbg dead? Author hasn't been heard from round here

Re: D2 std.conv to D1 please

2009-06-10 Thread Bill Baxter
On Wed, May 27, 2009 at 4:38 PM, Saaaem...@needmail.com wrote: I've been wanting to write a D-styled data format module but just got extremely discouraged :) Most of the functionality I need for this is already available in D2's std.conv. Is it possible to add this functionality into D1's

Re: Count your blessings!

2009-06-10 Thread Bill Baxter
On Wed, Jun 10, 2009 at 4:35 PM, Andrei Alexandrescuseewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Wed, Jun 10, 2009 at 4:09 PM, Andrei Alexandrescuseewebsiteforem...@erdani.org wrote: I agree. D has it already by the way: Exp1 Exp2; Doesn't that evaluate to a bool rather

Re: Source control for all dmd source (Git propaganda =)

2009-06-04 Thread Bill Baxter
2009/6/4 Jérôme M. Berger jeber...@free.fr: Bill Baxter wrote: On Wed, Jun 3, 2009 at 3:14 PM, Leandro Lucarella llu...@gmail.com wrote: and because it supports local branches (I didn't read about how branches are managed in Mercurial yet, but I understand that Mercurial doesn't support

Re: Source control for all dmd source (Git propaganda =)

2009-06-03 Thread Bill Baxter
On Wed, Jun 3, 2009 at 3:14 PM, Leandro Lucarella llu...@gmail.com wrote: and because it supports local branches (I didn't read about how branches are managed in Mercurial yet, but I understand that Mercurial doesn't support local branches).       It does through the LocalBranch extension.

Re: Source control for all dmd source (Git propaganda =)

2009-06-02 Thread Bill Baxter
2009/6/2 Jérôme M. Berger jeber...@free.fr: Leandro Lucarella wrote:        I've started. I'll give you a full report tomorrow when I have tested it more completely, but I have to tell you that it doesn't look good for Git. Now, I have to ask: have *you* tried Mercurial or Bazaar? And what, in

Re: Source control for all dmd source (Git propaganda =)

2009-06-02 Thread Bill Baxter
2009/6/2 Jérôme M. Berger jeber...@free.fr: Bill Baxter wrote: 2009/6/2 Jérôme M. Berger jeber...@free.fr: Leandro Lucarella wrote:       I've started. I'll give you a full report tomorrow when I have tested it more completely, but I have to tell you that it doesn't look good for Git. Now

Re: Serialization for D. Comments, please!

2009-05-26 Thread Bill Baxter
On Tue, May 26, 2009 at 2:35 AM, Denis Koroskin 2kor...@gmail.com wrote: On Tue, 26 May 2009 13:29:39 +0400, Qian Xu quian...@stud.tu-ilmenau.de wrote: BCS wrote: I'm planning on taking a crack at a Serialization template library and I'm looking for feed back. My thinking so far is up on

Re: Serialization for D. Comments, please!

2009-05-26 Thread Bill Baxter
On Tue, May 26, 2009 at 12:19 PM, Denis Koroskin 2kor...@gmail.com wrote: On Tue, 26 May 2009 21:44:49 +0400, Bill Baxter wbax...@gmail.com wrote: On Tue, May 26, 2009 at 2:35 AM, Denis Koroskin 2kor...@gmail.com wrote: On Tue, 26 May 2009 13:29:39 +0400, Qian Xu quian...@stud.tu-ilmenau.de

Re: Serialization for D. Comments, please!

2009-05-26 Thread Bill Baxter
On Tue, May 26, 2009 at 2:26 PM, Denis Koroskin 2kor...@gmail.com wrote: On Wed, 27 May 2009 01:23:58 +0400, Bill Baxter wbax...@gmail.com wrote: On Tue, May 26, 2009 at 12:19 PM, Denis Koroskin 2kor...@gmail.com wrote: On Tue, 26 May 2009 21:44:49 +0400, Bill Baxter wbax...@gmail.com wrote

Re: How many people here use stackoverflow.com?

2009-05-23 Thread Bill Baxter
On Sat, May 23, 2009 at 11:36 AM, BCS n...@anon.com wrote: Hello Tim, On Sat, 23 May 2009 08:36:44 +1200, hasen hasan.alj...@gmail.com wrote: If I have some questions about D, should I ask on stackoverflow instead  of here? Are there enough D'ers there? I personally think that asking

Re: with still sucks + removing features + adding features

2009-05-20 Thread Bill Baxter
On Wed, May 20, 2009 at 7:28 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Denis Koroskin wrote: On Wed, 20 May 2009 00:43:56 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: It's an awful idea. It's a non-idea. If idea had an antonym, that  would be it. I

Re: the last change for ranges

2009-05-20 Thread Bill Baxter
On Wed, May 20, 2009 at 11:44 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason House wrote: Andrei Alexandrescu Wrote: Jason House wrote: I feel like there are too many differences between input and forward ranges for such a minor difference. Many range functions are

Re: the last change for ranges

2009-05-20 Thread Bill Baxter
On Wed, May 20, 2009 at 9:19 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I'm thinking a better design is to require any range that's forward or better to define a function save(). Ranges that don't implement it are input ranges; those that do, will guarantee a brand new range

Re: the last change for ranges

2009-05-20 Thread Bill Baxter
On Wed, May 20, 2009 at 12:05 PM, dsimcha dsim...@yahoo.com wrote: == Quote from Bill Baxter (wbax...@gmail.com)'s article On Wed, May 20, 2009 at 11:44 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jason House wrote: Andrei Alexandrescu Wrote: Jason House wrote: I

Re: OT: on IDEs and code writing on steroids

2009-05-20 Thread Bill Baxter
On Wed, May 20, 2009 at 1:09 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Yigal Chripun wrote: I think you miss the point here. Generics and code generation are two separate and orthogonal features that where conflated together by C++. It's kind of odd, then, that for

Re: the last change for ranges

2009-05-20 Thread Bill Baxter
On Wed, May 20, 2009 at 4:03 PM, dsimcha dsim...@yahoo.com wrote: == Quote from Jason House (jason.james.ho...@gmail.com)'s article IMHO, D should have a type with low size and function call overhead like a struct as well as reference semantics like a class. What's wrong with a pointer to a

Re: the last change for ranges

2009-05-20 Thread Bill Baxter
On Wed, May 20, 2009 at 5:11 PM, Jason House jason.james.ho...@gmail.com wrote: Bill Baxter Wrote: On Wed, May 20, 2009 at 4:03 PM, dsimcha dsim...@yahoo.com wrote: == Quote from Jason House (jason.james.ho...@gmail.com)'s article IMHO, D should have a type with low size and function call

Re: While we're lynching features, how bout' them omittable parens?

2009-05-19 Thread Bill Baxter
On Tue, May 19, 2009 at 1:15 AM, Nick Sabalausky a...@a.a wrote: Jesse Phillips jessekphill...@gmail.com wrote in message news:gutbro$14e...@digitalmars.com... On Mon, 18 May 2009 21:53:06 -0400, Nick Sabalausky wrote: I still want to get rid of omittable parens (and function-call-as-a-lhs)

Re: with still sucks + removing features + adding features

2009-05-19 Thread Bill Baxter
On Tue, May 19, 2009 at 10:51 AM, div0 d...@users.sourceforge.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bearophile wrote: Alexander Pánek: Same here. I too don't like .56, I add a zero when I see a literal like that in the code. But what about Walter? :-) Bye,

Re: with should be deprecated with extreme prejudice

2009-05-18 Thread Bill Baxter
On Sun, May 17, 2009 at 9:53 PM, Robert Fraser fraseroftheni...@gmail.com wrote: Nick Sabalausky wrote: BCS n...@anon.com wrote in message news:a6268ff5f5d8cba54f824da...@news.digitalmars.com... Hello Nick, I'm not a touch-typer, but I've never seen much of a point to with. If I have to

Re: foreach (x; a .. b) and foreach_reverse (x; a .. b) should be

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 5:46 AM, Jason House jason.james.ho...@gmail.com wrote: Here's a recent misuse by Andrei that made its way into Phobos: if (is(T == struct) is(T.toString)) Hmm, 'is' isn't supposed to accept values is it? But it quietly ignores anything wrong and returns false. Is

Re: foreach (x; a .. b) and foreach_reverse (x; a .. b) should be disallowed for floats

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 9:21 AM, Steven Schveighoffer schvei...@yahoo.com wrote: On Mon, 18 May 2009 12:02:30 -0400, Andrei Alexandrescu I'm a bit leery about this - what if user code has a bug and I transform that into a feature? hm... I guess that's one way to look at it.  I don't

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 10:46 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Johan Granberg wrote: BCS wrote: Hello Andrei, I think with is a very dangerous feature due to the way it hides symbols. It essentially makes the feeblest attempt at modular reasoning utterly

Re: Inlining Ref Functions

2009-05-18 Thread Bill Baxter
On Sun, May 17, 2009 at 11:12 AM, grauzone n...@example.net wrote: grauzone wrote: Bill Baxter wrote: On Fri, May 15, 2009 at 9:16 PM, grauzone n...@example.net wrote: 1.  Some uber-hardcore performance freaks will not even consider D if it has the slightest bit of performance overhead

Re: OT: on IDEs and code writing on steroids

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 12:09 PM, Robert Fraser fraseroftheni...@gmail.com wrote: Steven Schveighoffer wrote: The IDE is excellent.  The docs are reasonable once you figure out how they are laid out. I really don't get what's so great about VS. After using JDT (Eclipse Java), I find Vs kind

Re: with should be deprecated with extreme prejudice

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 1:14 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Nick Sabalausky wrote: Leandro Lucarella llu...@gmail.com wrote in message news:20090518141908.gb9...@burns.springfield.home... bearophile, el 18 de mayo a las 04:33 me escribiste: Andrei, I agree

Re: with should be deprecated with extreme prejudice

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 1:36 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: That's not an equiv of. It's completely missing the point of. Each using costs one new scope and one level of indentation which makes it non-scalable. Indentation is *expensive*. I think the C# folks

Re: with should be deprecated with extreme prejudice

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 2:56 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Mon, May 18, 2009 at 1:36 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: That's not an equiv of. It's completely missing the point of. Each using costs one new scope

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 3:29 PM, Jason House jason.james.ho...@gmail.com wrote: It's all a matter of perspective. I see both as begin .. end. That may be the same reason why I think addition when I see foo(bar()) + baz(37). The extra cruft is more or less ignored when figuring out the basics

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 4:02 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Mon, May 18, 2009 at 3:29 PM, Jason House jason.james.ho...@gmail.com wrote: It's all a matter of perspective. I see both as begin .. end. That may be the same reason why I think

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 4:15 PM, Bill Baxter wbax...@gmail.com wrote: But it's not blarf. It's case. I am floored that nobody sees the elegance of that syntax. So your argument is that case inherently deserves a special case? Thinking about it more, I guess you must actually be seeing

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 5:33 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Mon, May 18, 2009 at 4:15 PM, Bill Baxter wbax...@gmail.com wrote: But it's not blarf. It's case. I am floored that nobody sees the elegance of that syntax. So your argument

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 8:48 PM, Derek Parnell de...@psych.ward wrote: On Mon, 18 May 2009 20:05:14 -0600, Rainer Deyke wrote: Bill Baxter wrote: Although non-inclusive ranges are common enough that they deserve their own syntax, I think inclusive ranges are *also* important enough

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 8:00 PM, Rainer Deyke rain...@eldwood.com wrote: Andrei Alexandrescu wrote: Even Perl would turn its nose at a significant semantic difference brought by the third period. Not true: Perl has a '..' operator and a '...' operator with distinct but similar meanings.  And

Re: with still sucks + removing features + adding features

2009-05-18 Thread Bill Baxter
On Mon, May 18, 2009 at 9:17 PM, Derek Parnell de...@psych.ward wrote: On Mon, 18 May 2009 23:02:37 -0500, Andrei Alexandrescu wrote: Derek Parnell wrote: On Mon, 18 May 2009 21:47:01 -0500, Andrei Alexandrescu wrote: Derek Parnell wrote: On Mon, 18 May 2009 19:31:23 -0500, Andrei

Re: Please Vote: Exercises in TDPL?

2009-05-17 Thread Bill Baxter
On Fri, May 15, 2009 at 7:40 PM, Georg Wrede georg.wr...@iki.fi wrote: Bill Baxter wrote: Incidentally, here, or in D.learn, somebody was asking for symbolic derivation with D templates. I think one of the excercises in SICP was to write a lisp snippet that did just that. You're probably

Re: Inlining Ref Functions

2009-05-17 Thread Bill Baxter
On Fri, May 15, 2009 at 9:16 PM, grauzone n...@example.net wrote: 1.  Some uber-hardcore performance freaks will not even consider D if it has the slightest bit of performance overhead compared to C++. I don't understand why D should pander to C++ freaks? If they think their language is

Re: SciD (Was: Real Close to the Machine: Floating Point in D )

2009-05-15 Thread Bill Baxter
On Fri, May 15, 2009 at 12:22 PM, Georg Wrede georg.wr...@iki.fi wrote: Lars T. Kyllingstad wrote: 2. I have to figure out some licensing issues. Some algorithms are clearly public domain, while some things -- like code I've ripped off Numerical Recipes, for instance -- is more questionable.

Re: Inlining Ref Functions

2009-05-15 Thread Bill Baxter
On Fri, May 15, 2009 at 1:36 PM, dsimcha dsim...@yahoo.com wrote: The fact that DMD does not inline functions with ref parameters has come up several times deep in threads on this NG before, but it's never really received proper attention.  After changing a few swaps in performance-critical

Re: Inlining Ref Functions

2009-05-15 Thread Bill Baxter
missing something, but that looks pretty darn straightforward. --bb On Fri, May 15, 2009 at 2:01 PM, dsimcha dsim...@yahoo.com wrote: == Quote from Bill Baxter (wbax...@gmail.com)'s article On Fri, May 15, 2009 at 1:36 PM, dsimcha dsim...@yahoo.com wrote: The fact that DMD does not inline

Re: Please Vote: Exercises in TDPL?

2009-05-15 Thread Bill Baxter
On Thu, May 14, 2009 at 5:05 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: A chunky fragment of TDPL will hit Rough Cuts soon enough. I'm pondering whether I should be adding exercises to the book. Some books have them, some don't. Pros: As I'm writing, I've come up with some

Re: SciD (Was: Real Close to the Machine: Floating Point in D )

2009-05-15 Thread Bill Baxter
On Fri, May 15, 2009 at 5:15 PM, Georg Wrede georg.wr...@iki.fi wrote: We don't need to copy NR. All we need is to glipse at their algorithms. And anyway, D is so much more powerful that those algorithms would be, implemented in another way, anyhow. THe NR in C code is basically a translated

Challenge: Automatic differentiation in D

2009-05-12 Thread Bill Baxter
If I had the time I'd love to play around with automatic differentiation in D. http://en.wikipedia.org/wiki/Automatic_differentiation I played around with it a bit in C++ before, using the operator overloading approach, but didn't go much beyond basic polynomials with it. The page above offers

Re: Challenge: Automatic differentiation in D

2009-05-12 Thread Bill Baxter
On Tue, May 12, 2009 at 10:48 AM, Steve Teale steve.te...@britseyeview.com wrote: Bill Baxter Wrote: If I had the time I'd love to play around with automatic differentiation in D. http://en.wikipedia.org/wiki/Automatic_differentiation I played around with it a bit in C++ before, using

Re: Plotting Using PLPlot

2009-05-10 Thread Bill Baxter
A D-ish wrapper around PLPlot's low-level D-to-C bindings sounds great to me too. I frequently use the D - data file - Python matplotlib route myself. Something more direct would be great. --bb On Sun, May 10, 2009 at 5:51 AM, Fawzi Mohamed fmoha...@mac.com wrote: On 2009-05-10 05:19:53

Re: when will D2 be stable?

2009-05-10 Thread Bill Baxter
On Fri, May 8, 2009 at 11:00 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: zsxxsz wrote: I found D is a wonderful programming language and start to use it in my projects. I use D2 now, but which is still unstable although it's version is D2.029. Can anyone tell me when D2 will

Re: Fixing the imaginary/complex mess

2009-05-03 Thread Bill Baxter
On Sun, May 3, 2009 at 2:35 AM, Walter Bright newshou...@digitalmars.com wrote: Don wrote: I don't think anyone expects to be able to divide an integer by an imaginary, and then assign it to an integer. I was astonished that the compiler accepted it. There actually is a reason -

Re: line drawing package?

2009-05-03 Thread Bill Baxter
SDL via Derelict is probably the easiest thing to get working quickly. I think SDL has some kind of simple line drawing API. SDL for opening the window with drawing done by GL wouldn't be hard either, if you already know the GL api. Neither will give you high-quality antialiased lines, though.

Re: line drawing package?

2009-05-03 Thread Bill Baxter
On Sun, May 3, 2009 at 5:15 AM, John C johnch_a...@hotmail.com wrote: BCS Wrote: I find my self in need of a line drawing package. I need to pop a window and draw lines and points. Text would be nice but I can live without it. Most importantly, I need something that is dirt simple to get

Re: RFC: naming for FrontTransversal and Transversal ranges

2009-05-02 Thread Bill Baxter
On Fri, May 1, 2009 at 6:25 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Fri, May 1, 2009 at 4:23 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I guess at that point the would-be D user would be entitled to make me a lavaliere out of my

Re: RFC: naming for FrontTransversal and Transversal ranges

2009-05-01 Thread Bill Baxter
On Fri, May 1, 2009 at 4:23 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Rainer Deyke wrote: Robert Jacques wrote: Precisely, so it's always passed by reference and doesn't need to support copying. All containers need to support copying. Speaking of which, I'm thinking of

Re: RFC: naming for FrontTransversal and Transversal ranges

2009-05-01 Thread Bill Baxter
On Fri, May 1, 2009 at 5:36 PM, bearophile bearophileh...@lycos.com wrote: Bill Baxter: Much more often the discussion on the numpy list takes the form of how do I make this loop faster becuase loops are slow in Python so you have to come up with clever transformations to turn your loop

Re: Splitter quiz / survey

2009-04-28 Thread Bill Baxter
On Tue, Apr 28, 2009 at 10:23 AM, Steven Schveighoffer schvei...@yahoo.com wrote: On Tue, 28 Apr 2009 13:12:41 -0400, Robert Fraser fraseroftheni...@gmail.com wrote: Steven Schveighoffer wrote: On Mon, 27 Apr 2009 18:36:55 -0400, Sean Kelly s...@invisibleduck.org wrote: == Quote from

Re: Splitter quiz / survey

2009-04-27 Thread Bill Baxter
On Mon, Apr 27, 2009 at 9:55 AM, Robert Fraser fraseroftheni...@gmail.com wrote: Andrei Alexandrescu wrote: Jason House wrote: Before reading your post, I was going to say that I'd expect 4, would accept 1, and consider 2 or 3 to be buggy! Notice how under your new proposal everyone would

Re: Few mixed things

2009-04-21 Thread Bill Baxter
On Tue, Apr 21, 2009 at 2:24 PM, Paul D. Anderson paul.d.removethis.ander...@comcast.andthis.net wrote: Nick Sabalausky Wrote: BCS a...@pathlink.com wrote in message news:78ccfa2d3e7918cb909fe7a39...@news.digitalmars.com... Reply to Denis, I'd be fine depricating /**/. You mean,

Re: Few mixed things

2009-04-21 Thread Bill Baxter
On Tue, Apr 21, 2009 at 3:50 PM, Nick Sabalausky a...@a.a wrote: Bill Baxter wbax...@gmail.com wrote in message news:mailman.1179.1240349493.22690.digitalmar...@puremagic.com... On Tue, Apr 21, 2009 at 2:24 PM, Paul D. Anderson paul.d.removethis.ander...@comcast.andthis.net wrote: Nick

Re: bigfloat

2009-04-08 Thread Bill Baxter
On Thu, Apr 9, 2009 at 2:54 AM, Frank Torte frankt123...@gmail.com wrote: Paul D. Anderson Wrote: Is there an active project to develop arbitrary-precision floating point numbers for D? I've got a little extra time at the moment and would like to contribute if I can. I've done some work

Re: Contract programming syntax

2009-04-08 Thread Bill Baxter
More agreement here. --bb On Thu, Apr 9, 2009 at 2:41 AM, Nick Sabalausky a...@a.a wrote: bearophile bearophileh...@lycos.com wrote in message news:gridbr$mv...@digitalmars.com... I like contract programming, it helps me avoid bugs. This is an example from the docs: long squareRoot(long x)  

Re: bigfloat

2009-04-08 Thread Bill Baxter
On Thu, Apr 9, 2009 at 5:46 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Paul D. Anderson wrote: Walter Bright Wrote: Paul D. Anderson wrote: b) the features and functions that should be included. I'd say NaNs and unordered comparisons. In other words, it should support

Re: why Unix?

2009-04-06 Thread Bill Baxter
On Tue, Apr 7, 2009 at 9:47 AM, Denis Koroskin 2kor...@gmail.com wrote: On Tue, 07 Apr 2009 04:41:39 +0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jussi Jumppanen wrote: Jason House Wrote: For example, as an emacs user, I can easilly program for an hour without touching

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

2009-04-06 Thread Bill Baxter
On Tue, Apr 7, 2009 at 9:36 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Daniel Keep wrote: Warning: semi-rant ahead.  Feel free to ignore.  :) [...] Windows is a pain in the arse, and there isn't a day that goes by where I don't wish I could get rid of it from my life.  

Re: two patches for dsss

2009-04-06 Thread Bill Baxter
There is a tracker for DSSS bugs on dsource. You should probably attach these to a ticket there too, to make sure they are not lost in newsgroup limbo. (But I agree posting something about it here too was a good thing to do) --bb 2009/4/7 davidl dav...@nospam.org: fix dsss incorrect abort by

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

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 '!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN' not supported! Did something change with the Dwt-win repository? Did something change with the

Re: Hg error checking out dwt-win

2009-04-05 Thread Bill Baxter
On Mon, Apr 6, 2009 at 12:13 PM, Bill Baxter wbax...@gmail.com 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

Re: What Scala?

2009-04-01 Thread Bill Baxter
On Thu, Apr 2, 2009 at 11:38 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Georg Wrede wrote: There's been a lot of talk about Scala when various new aspects of D have been discussed. I stumbled upon a video where exactly those things are talked about.

Re: Declaring Ref Variables Inside Function Calls

2009-03-31 Thread Bill Baxter
On Wed, Apr 1, 2009 at 5:03 AM, Sergey Gromov snake.sc...@gmail.com wrote: Tue, 31 Mar 2009 12:18:21 -0700, Andrei Alexandrescu wrote: Jarrett Billingsley wrote: On Tue, Mar 31, 2009 at 1:32 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jarrett Billingsley wrote:

Re: Declaring Ref Variables Inside Function Calls

2009-03-31 Thread Bill Baxter
On Wed, Apr 1, 2009 at 6:16 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Wed, Apr 1, 2009 at 5:03 AM, Sergey Gromov snake.sc...@gmail.com wrote: Tue, 31 Mar 2009 12:18:21 -0700, Andrei Alexandrescu wrote: Jarrett Billingsley wrote: On Tue, Mar 31

Re: Declaring Ref Variables Inside Function Calls

2009-03-31 Thread Bill Baxter
On Wed, Apr 1, 2009 at 6:16 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Wed, Apr 1, 2009 at 5:03 AM, Sergey Gromov snake.sc...@gmail.com wrote: Tue, 31 Mar 2009 12:18:21 -0700, Andrei Alexandrescu wrote: Jarrett Billingsley wrote: On Tue, Mar 31

Re: Declaring Ref Variables Inside Function Calls

2009-03-31 Thread Bill Baxter
On Wed, Apr 1, 2009 at 5:03 AM, Sergey Gromov snake.sc...@gmail.com wrote: Tue, 31 Mar 2009 12:18:21 -0700, Andrei Alexandrescu wrote: Jarrett Billingsley wrote: On Tue, Mar 31, 2009 at 1:32 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Jarrett Billingsley wrote: 2009/3/30

Re: Declaring Ref Variables Inside Function Calls

2009-03-31 Thread Bill Baxter
On Wed, Apr 1, 2009 at 9:55 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Wed, Apr 1, 2009 at 5:03 AM, Sergey Gromov snake.sc...@gmail.com wrote: Tue, 31 Mar 2009 12:18:21 -0700, Andrei Alexandrescu wrote: Jarrett Billingsley wrote: On Tue, Mar 31

Re: Declaring Ref Variables Inside Function Calls

2009-03-31 Thread Bill Baxter
On Wed, Apr 1, 2009 at 10:53 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I guess I can't bring myself to dislike tuple(1, 2) in D. I'd actually be a heck of a lot happier with that than Tuple!(1,2). Especially if using it didn't require any explicit import. --bb

Re: Declaring Ref Variables Inside Function Calls

2009-03-31 Thread Bill Baxter
On Wed, Apr 1, 2009 at 11:15 AM, dsimcha dsim...@yahoo.com wrote: == Quote from Bill Baxter (wbax...@gmail.com)'s article We're going to vote complex types off the island, right?   Maybe we could get rid of associative arrays as a built-in too. Aren't builtin complex types on the way out

<    1   2   3   4   5   6   7   8   9   10   >