Re: Code Poet, an IDE for D

2009-11-12 Thread watching
most programmer want use the language and a lot libraries that come with it. instead of gui, db etc. you guys discuss until all prospective users are gone off to use something that lets them do the job maybe it is time to put a large effort into libraries by all the bright people that are

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Bill Baxter
On Mon, Nov 9, 2009 at 6:03 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright newshou...@digitalmars.com wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/ Yep, that's

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Bill Baxter
2009/11/10 Denis Koroskin 2kor...@gmail.com: On Tue, 10 Nov 2009 03:27:20 +0300, Bill Baxter wbax...@gmail.com wrote: kprintf (a printf variant) in XoMB is a nice example imo. It accepts format as a template parameter, doing all the checks at compile-time (and more).

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Jacob Carlborg
On 11/11/09 17:58, grauzone wrote: Andrei Alexandrescu wrote: grauzone wrote: Don wrote: Christopher Wright wrote: grauzone wrote: You're not testing for types, you're testing if it compiles. Inside the tested block of code, all sorts of things could go wrong. You can't know if

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Nick Sabalausky
Bill Baxter wbax...@gmail.com wrote in message news:mailman.337.1258023453.20261.digitalmars-d-annou...@puremagic.com... Hi Nick, Thanks for the response. More below. However, the unescape() function used in traceVal looks like it might be a useful CTFE example. Some kind of compile-time

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Nick Sabalausky
Nick Sabalausky a...@a.a wrote in message news:hdgt9q$vt...@digitalmars.com... Bill Baxter wbax...@gmail.com wrote in message news:mailman.337.1258023453.20261.digitalmars-d-annou...@puremagic.com... Hi Nick, === Compile-time checking on types with non-identifier strings === That is kinda

Re: Code Poet, an IDE for D

2009-11-12 Thread Jeremie Pelletier
watching wrote: most programmer want use the language and a lot libraries that come with it. instead of gui, db etc. you guys discuss until all prospective users are gone off to use something that lets them do the job maybe it is time to put a large effort into libraries by all the bright

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Jeremie Pelletier
Andrei Alexandrescu wrote: grauzone wrote: Don wrote: Christopher Wright wrote: grauzone wrote: You're not testing for types, you're testing if it compiles. Inside the tested block of code, all sorts of things could go wrong. You can't know if is(typeof(...)) really did what you wanted, or

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Andrei Alexandrescu
Bill Baxter wrote: On Mon, Nov 9, 2009 at 6:03 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright newshou...@digitalmars.com wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Bill Baxter
On Thu, Nov 12, 2009 at 7:53 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Mon, Nov 9, 2009 at 6:03 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright newshou...@digitalmars.com

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Lutger
Bill Baxter wrote: ... This is almost just a preprocessor macro trick, except for this line: mixin( FoldStringsOf!visitMethodOf( [Sum, Product] ) ); The essence is to generate a bunch of methods from a list of names. I was thinking to include a similar example from the world of 3d

Re: Code Poet, an IDE for D

2009-11-12 Thread Walter Bright
Jeremie Pelletier wrote: watching wrote: most programmer want use the language and a lot libraries that come with it. instead of gui, db etc. you guys discuss until all prospective users are gone off to use something that lets them do the job maybe it is time to put a large effort into

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Tomas Lindquist Olsen
On Tue, Nov 10, 2009 at 1:27 AM, Bill Baxter wbax...@gmail.com wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright newshou...@digitalmars.com wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/ Yep, that's right, and I'd be quite grateful to you smart

Re: Code Poet, an IDE for D

2009-11-12 Thread dsimcha
== Quote from Walter Bright (newshou...@digitalmars.com)'s article Jeremie Pelletier wrote: watching wrote: most programmer want use the language and a lot libraries that come with it. instead of gui, db etc. you guys discuss until all prospective users are gone off to use something that

Re: Code Poet, an IDE for D

2009-11-12 Thread Walter Bright
Jeremie Pelletier wrote: That's what I'm already doing, the STL and boost make it much easier to do. I have string_t, wstring_t and dstring_t types derived from std::basic_string to cover D strings, as well as ustring_t which is set to the platform's native unicode encoding. I derived

Re: Code Poet, an IDE for D

2009-11-12 Thread Robert Jacques
On Thu, 12 Nov 2009 14:34:31 -0500, Walter Bright newshou...@digitalmars.com wrote: dsimcha wrote: I thought (I'm not 100% sure on either of these counts) that: 1. We don't want anything in Phobos that requires attribution for works distributed exclusively in binary form, even if the

Re: dmd 1.052 for Mac OSX 10.6

2009-11-12 Thread Walter Bright
Fixed url: http://ftp.digitalmars.com/dmd.1.052.zip

dmd 1.052 for Mac OSX 10.6

2009-11-12 Thread Walter Bright
An update just to support Mac OSX 10.6. That also means the end of the line for official support of 10.5 and earlier. http://ftp.digitalmars.com/dmd.1.051.zip

Re: dmd 1.052 for Mac OSX 10.6

2009-11-12 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:hdim1s$30m...@digitalmars.com... An update just to support Mac OSX 10.6. That also means the end of the line for official support of 10.5 and earlier. http://ftp.digitalmars.com/dmd.1.051.zip I propose that the first person to

Re: dmd 1.052 for Mac OSX 10.6

2009-11-12 Thread Walter Bright
Anders Bergh wrote: No, but you'll need to use the 10.4 SDK (it's optional when you install Xcode though). Same problem as last time, between 10.4 and 10.5. But any binaries you compile for 10.4 should work on 10.6 as well. I did have the 10.4 SDK installed, but apparently the upgrade deleted