Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread BCS
Hello Nick, re: the slides, are they avalable in .ppt or pdf for us ludites? http://www.semitwist.com/download/NWCPP-D-meta-baxter-11-18-2009.ppt http://www.semitwist.com/download/NWCPP-D-meta-baxter-11-18-2009.odp OpenOffice 3 can open the original .pptx, but the font sizes are all messed u

Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread Nick Sabalausky
"BCS" wrote in message news:a6268ffd6138cc3b42e6f50...@news.digitalmars.com... > Hello Lutger, > >> Walter Bright wrote: >> >>> Looks like Bill Baxter is giving a presentation on D Nov. 18! >>> >>> http://www.nwcpp.org/ >>> >> slides are there! Very pretty, I bet it was a fine presentation. The >

Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread BCS
Hello Lutger, Walter Bright wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/ slides are there! Very pretty, I bet it was a fine presentation. The slides are informative, good examples. re: the slides, are they avalable in .ppt or pdf for us ludit

Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread Bill Baxter
On Tue, Nov 24, 2009 at 4:55 PM, Nick Sabalausky wrote: > "Bill Baxter" wrote in message > news:mailman.513.1259106953.20261.digitalmars-d-annou...@puremagic.com... >> On Tue, Nov 24, 2009 at 3:15 PM, Lutger >> wrote: >>> Walter Bright wrote: >>> Looks like Bill Baxter is giving a presentat

Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread Nick Sabalausky
"Bill Baxter" wrote in message news:mailman.513.1259106953.20261.digitalmars-d-annou...@puremagic.com... > On Tue, Nov 24, 2009 at 3:15 PM, Lutger > wrote: >> Walter Bright wrote: >> >>> Looks like Bill Baxter is giving a presentation on D Nov. 18! >>> >>> http://www.nwcpp.org/ >> >> slides are

Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread Bill Baxter
On Tue, Nov 24, 2009 at 3:15 PM, Lutger wrote: > Walter Bright wrote: > >> Looks like Bill Baxter is giving a presentation on D Nov. 18! >> >> http://www.nwcpp.org/ > > slides are there! Very pretty, I bet it was a fine presentation. The slides > are informative, good examples. > Thanks Walter, L

Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread Andrei Alexandrescu
Lutger wrote: Walter Bright wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/ slides are there! Very pretty, I bet it was a fine presentation. The slides are informative, good examples. Seconded. Very well done Bill. Andrei

Re: Metaprogramming in D : Some Real-world Examples

2009-11-24 Thread Lutger
Walter Bright wrote: > Looks like Bill Baxter is giving a presentation on D Nov. 18! > > http://www.nwcpp.org/ slides are there! Very pretty, I bet it was a fine presentation. The slides are informative, good examples.

Re: Metaprogramming in D : Some Real-world Examples

2009-11-22 Thread Long Chang
nice work

Re: Metaprogramming in D : Some Real-world Examples

2009-11-19 Thread Walter Bright
Walter Bright wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/ And Bill did a great job!

Re: Metaprogramming in D : Some Real-world Examples

2009-11-13 Thread Bill Baxter
On Fri, Nov 13, 2009 at 11:38 AM, Tomas Lindquist Olsen wrote: > On Thu, Nov 12, 2009 at 8:24 PM, Bill Baxter wrote: >> On Thu, Nov 12, 2009 at 10:46 AM, Tomas Lindquist Olsen >> wrote: >>> On Tue, Nov 10, 2009 at 1:27 AM, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright >>

Re: Metaprogramming in D : Some Real-world Examples

2009-11-13 Thread Tomas Lindquist Olsen
On Thu, Nov 12, 2009 at 8:24 PM, Bill Baxter wrote: > On Thu, Nov 12, 2009 at 10:46 AM, Tomas Lindquist Olsen > wrote: >> On Tue, Nov 10, 2009 at 1:27 AM, Bill Baxter wrote: >>> On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright >>> wrote: Looks like Bill Baxter is giving a presentation on D No

Re: Metaprogramming in D : Some Real-world Examples

2009-11-13 Thread rmcguire
Bill Baxter wrote: > On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright > 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 folks here > if you could share your meta-programming favorites

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Bill Baxter
On Thu, Nov 12, 2009 at 10:46 AM, Tomas Lindquist Olsen wrote: > On Tue, Nov 10, 2009 at 1:27 AM, Bill Baxter wrote: >> On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright >> wrote: >>> Looks like Bill Baxter is giving a presentation on D Nov. 18! >>> >>> http://www.nwcpp.org/ >> >> Yep, that's right,

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 wrote: > On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright > 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 folks here > if you could share y

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 worl

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 wrote: > Bill Baxter wrote: >> >> On Mon, Nov 9, 2009 at 6:03 PM, Andrei Alexandrescu >> wrote: >>> >>> Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright wrote: > > Looks like Bill Baxter is giving a prese

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 wrote: Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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 smar

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 i

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Denis Koroskin
On Thu, 12 Nov 2009 16:01:20 +0300, Bill Baxter wrote: On Wed, Nov 11, 2009 at 8:23 AM, 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

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Bill Baxter
On Wed, Nov 11, 2009 at 8:23 AM, 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(..

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Bill Baxter
On Tue, Nov 10, 2009 at 3:32 AM, Lutger wrote: > Bill Baxter wrote: > >> On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright >> 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 folks he

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:hdgt9q$vt...@digitalmars.com... > >"Bill Baxter" 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 neat, I s

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Nick Sabalausky
>"Bill Baxter" 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 string >esca

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 is(typeof(...

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 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). > > http://github.com/xomboverlord/xom

Re: Metaprogramming in D : Some Real-world Examples

2009-11-12 Thread Bill Baxter
Hi Nick, Thanks for the response. More below. On Mon, Nov 9, 2009 at 6:46 PM, Nick Sabalausky wrote: > "Bill Baxter" wrote in message > news:mailman.290.1257812868.20261.digitalmars-d-annou...@puremagic.com... >> On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright >> wrote: > I have a few things, m

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 wrote: > Bill Baxter wrote: >> >> On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright >> 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 y

Re: Metaprogramming in D : Some Real-world Examples

2009-11-11 Thread Max Samukha
On Wed, 11 Nov 2009 10:30:24 -0600, Andrei Alexandrescu wrote: > >Then different isXxxRange are used by higher-order ranges in defining >refined interfaces depending on the interfaces offered by their inputs. >I fail to see how that's terrible. It is not terrible. It just doesn't give any clue

Re: Metaprogramming in D : Some Real-world Examples

2009-11-11 Thread grauzone
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 i

Re: Metaprogramming in D : Some Real-world Examples

2009-11-11 Thread Andrei Alexandrescu
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 if something broke. You're

Re: Metaprogramming in D : Some Real-world Examples

2009-11-11 Thread grauzone
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 if something broke. You're testing, "is eve

Re: Metaprogramming in D : Some Real-world Examples

2009-11-11 Thread Don
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 if something broke. You're testing, "is everything insi

Re: Metaprogramming in D : Some Real-world Examples

2009-11-11 Thread Christopher Wright
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 if something broke. So it requires caution, and you want to keep the contents small

Re: Metaprogramming in D : Some Real-world Examples

2009-11-11 Thread grauzone
Andrei Alexandrescu wrote: grauzone wrote: Lars T. Kyllingstad wrote: Jacob Carlborg wrote: On 11/10/09 01:27, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/ Yep, that's right, a

Re: Metaprogramming in D : Some Real-world Examples

2009-11-10 Thread Andrei Alexandrescu
grauzone wrote: Lars T. Kyllingstad wrote: Jacob Carlborg wrote: On 11/10/09 01:27, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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

Re: Metaprogramming in D : Some Real-world Examples

2009-11-10 Thread grauzone
Lars T. Kyllingstad wrote: Jacob Carlborg wrote: On 11/10/09 01:27, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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 folks h

Re: Metaprogramming in D : Some Real-world Examples

2009-11-10 Thread Bill Baxter
On Tue, Nov 10, 2009 at 4:29 AM, Lars T. Kyllingstad wrote: > Jacob Carlborg wrote: >> >> On 11/10/09 01:27, Bill Baxter wrote: >>> >>> On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright >>>  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-10 Thread Jacob Carlborg
On 11/10/09 13:29, Lars T. Kyllingstad wrote: Jacob Carlborg wrote: On 11/10/09 01:27, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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

Re: Metaprogramming in D : Some Real-world Examples

2009-11-10 Thread Lars T. Kyllingstad
Jacob Carlborg wrote: On 11/10/09 01:27, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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 folks here if you could share your

Re: Metaprogramming in D : Some Real-world Examples

2009-11-10 Thread Jacob Carlborg
On 11/10/09 01:27, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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 folks here if you could share your meta-programming favori

Re: Metaprogramming in D : Some Real-world Examples

2009-11-10 Thread Lutger
Bill Baxter wrote: > On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright > 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 folks here > if you could share your meta-programming favorites w

Re: Metaprogramming in D : Some Real-world Examples

2009-11-10 Thread Denis Koroskin
On Tue, 10 Nov 2009 03:27:20 +0300, Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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 folks here if you could share your meta-

Re: Metaprogramming in D : Some Real-world Examples

2009-11-09 Thread Nick Sabalausky
"Bill Baxter" wrote in message news:mailman.290.1257812868.20261.digitalmars-d-annou...@puremagic.com... > On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright > 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 g

Re: Metaprogramming in D : Some Real-world Examples

2009-11-09 Thread Andrei Alexandrescu
Bill Baxter wrote: On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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 folks here if you could share your meta-programming favorites with me! If yo

Re: Metaprogramming in D : Some Real-world Examples

2009-11-09 Thread Bill Baxter
On Mon, Nov 9, 2009 at 4:09 PM, Walter Bright 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 folks here if you could share your meta-programming favorites with me! If you've got a real-wo

Metaprogramming in D : Some Real-world Examples

2009-11-09 Thread Walter Bright
Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/