Re: pfft 0.1

2012-07-20 Thread jerro
Are all your benchmarks done on a 64 bit system? They are. Here's one comparison with 32 bit (for complex single precision transform using sse)if you are interested in that: http://imgur.com/CTuCD . The 32 bit executable is slower, probably because there are less general purpose and SSE register

Re: pfft 0.1

2012-07-20 Thread bearophile
jerro: Are all your benchmarks done on a 64 bit system? I think what Phobos does in this case is wrong. The fact that one class works on all floating point types results in very poor precision when the data consists of doubles or reals. I guess that precomputed tables are stored as floats. You

Re: pfft 0.1

2012-07-20 Thread jerro
On Friday, 20 July 2012 at 23:36:37 UTC, bearophile wrote: jerro: I'm announcing the release of pfft, a fast FFT written in D. Everything looks nice. Are you using "in", pure/nothrow/immutable/const enough? Not yet, but I plan to add those. Is it worth changing the Phobos API to something

Re: pfft 0.1

2012-07-20 Thread bearophile
jerro: I'm announcing the release of pfft, a fast FFT written in D. Everything looks nice. Are you using "in", pure/nothrow/immutable/const enough? Is it worth changing the Phobos API to something similar to this API? Bye, bearophile

pfft 0.1

2012-07-20 Thread jerro
I'm announcing the release of pfft, a fast FFT written in D. Code: https://github.com/jerro/pfft/ Downloads: https://github.com/jerro/pfft/downloads Documentation: http://jerro.github.com/pfft/doc/pfft.pfft.html Benchmarks: http://jerro.github.com/pfft/benchmarks/

Re: DStep - Bindings Generator 0.0.1

2012-07-20 Thread Andrej Mitrovic
On 7/7/12, Walter Bright wrote: > so you could do things like: > > import "stdio.h"; > > and the D compile would fork/exec Dstep, generate the corresponding .d file, > and > import the .d file. Personally I think this is heading in the wrong direction. A D user shouldn't have to deal with C

Re: DStep - Bindings Generator 0.0.1

2012-07-20 Thread Andrej Mitrovic
On 7/20/12, Jacob Carlborg wrote: > In libclang, the kind of "Foo::Val1" in the above example is: > > CXCursor_FirstExpr -> CXCursor_DeclRefExpr -> CXCursor_NamespaceRef. > > What I did here was I checked the kind of "Foo::Val1" cursor, drilled > down into the cursor children as far as possible. >

Re: DStep - Bindings Generator 0.0.1

2012-07-20 Thread Jacob Carlborg
On 2012-07-20 15:04, Andrej Mitrovic wrote: On 7/7/12, Jacob Carlborg wrote: snip Nice work! Can I ask you something? Do you know if (lib)clang exports typeinfo for default values? For example: namespace Foo { enum En { Val1, Val2 }; } void test(int x = Foo

Re: DStep - Bindings Generator 0.0.1

2012-07-20 Thread Jacob Carlborg
On 2012-07-20 15:04, Andrej Mitrovic wrote: Nice work! Thanks. Can I ask you something? Do you know if (lib)clang exports typeinfo for default values? For example: namespace Foo { enum En { Val1, Val2 }; } void test(int x = Foo::Val1) { } 'x' has typeinfo

Re: DStep - Bindings Generator 0.0.1

2012-07-20 Thread Andrej Mitrovic
On 7/7/12, Jacob Carlborg wrote: > snip Nice work! Can I ask you something? Do you know if (lib)clang exports typeinfo for default values? For example: namespace Foo { enum En { Val1, Val2 }; } void test(int x = Foo::Val1) { } 'x' has typeinfo (it's an int), but I'