digitalmars.D - Needing templates/compile-time functions for debugging
- Ary Borenszweig (7/7) May 25 2009 Hi!
- Andrei Alexandrescu (4/13) May 25 2009 Have you considered Phobos2 itself? E.g.
- Ary Borenszweig (2/18) May 26 2009 Thanks, but only D1. I forgot to mention.
- BCS (7/16) May 25 2009 HECK yes!!!!!
- Robert Clipsham (9/18) May 25 2009 I'd give tools and xf.* a shot, they seem to have their fair share of
- Denis Koroskin (4/26) May 26 2009 Take a look at ctrace by h3: http://h3.team0xf.com/ctrace/
- Tom S (7/12) May 26 2009 xpose2 is pretty mad: http://team0xf.com:1024/xf/file/cc374abe6ab4/xpose...
Hi! I'm in need of heavy (long, complicated, interesting, whatever) templates and/or compile-time functions to help me debug the compile-time debugger I'm writing. Can you paste/attach some here, or give me links? Thanks, Ary
May 25 2009
Ary Borenszweig wrote:Hi! I'm in need of heavy (long, complicated, interesting, whatever) templates and/or compile-time functions to help me debug the compile-time debugger I'm writing. Can you paste/attach some here, or give me links? Thanks, AryHave you considered Phobos2 itself? E.g. http://dsource.org/projects/phobos/browser/trunk/phobos/std/algorithm.d Andrei
May 25 2009
Andrei Alexandrescu escribió:Ary Borenszweig wrote:Thanks, but only D1. I forgot to mention.Hi! I'm in need of heavy (long, complicated, interesting, whatever) templates and/or compile-time functions to help me debug the compile-time debugger I'm writing. Can you paste/attach some here, or give me links? Thanks, AryHave you considered Phobos2 itself? E.g. http://dsource.org/projects/phobos/browser/trunk/phobos/std/algorithm.d Andrei
May 26 2009
Reply to Ary,Hi! I'm in need of heavy (long, complicated, interesting, whatever) templates and/or compile-time functions to help me debug the compile-time debugger I'm writing. Can you paste/attach some here, or give me links? Thanks, AryHECK yes!!!!! http://www.dsource.org/projects/scrapple/browser/trunk/units http://www.dsource.org/projects/scrapple/browser/trunk/dparser Be warned, the first one more or less pollaxes decent just by loading it. If it has errors please reply as I will fix them so you can use it as a test case (I /Really/ want stuff lake that to work).
May 25 2009
Ary Borenszweig wrote:Hi! I'm in need of heavy (long, complicated, interesting, whatever) templates and/or compile-time functions to help me debug the compile-time debugger I'm writing. Can you paste/attach some here, or give me links? Thanks, AryI'd give tools and xf.* a shot, they seem to have their fair share of template/ctfe usage. http://team0xf.com:8080/ - xf.* - If you don't know where to start try hybrid ( http://hybrid.team0xf.com/wiki/Main/GettingStarted ) as that pulls in a fair amount of the xf stuff. http://dsource.org/projects/scrapple/browser/trunk/tools/ - tools, there seems to be a dsss.conf for it, that should give you all you need for compiling it.
May 25 2009
On Mon, 25 May 2009 23:37:30 +0400, Ary Borenszweig <ary esperanto.org.ar> wrote:Hi! I'm in need of heavy (long, complicated, interesting, whatever) templates and/or compile-time functions to help me debug the compile-time debugger I'm writing. Can you paste/attach some here, or give me links? Thanks, AryTake a look at ctrace by h3: http://h3.team0xf.com/ctrace/ A quote from the webpage:Total rendering/compilation time: 26148 seconds (on my 1.7GHz laptop) alias Tuple!( Sphere!(Vec3!(-4.f, 1.5f, -8.f), 3.2f, Vec3!(1.f, .3f, .1f)), Sphere!(Vec3!(2.5f, 1.5f, -5.0f), 1.2f, Vec3!(.2f, 1.f, .4f)), Sphere!(Vec3!( .7f, -1.5f, -4.2f), 1.5f, Vec3!(.2f, .4f, 1.f)), Plane! (Vec3!( 0.f, 1.f, 0.f), 4.f, Vec3!(.5f, .5f, .5f)) ) scene; alias Tuple!( PointLight!(Vec3!(8.f, 8.f, 10.f), scale!(Vec3!(0.7f, 0.7f, 0.6f), 30.f)), PointLight!(Vec3!(-2.f, 2.5f, 0.f), scale!(Vec3!(.6f, .4f, .1f), 8.f)) ) lights; Note: ctrace was developed when D didn't have Compile Time Function Evaluation and uses only the functional sub-language of template metaprogramming. Using CTFE, ctrace could be made hundreds of times faster and look like normal runtime code. But then it wouldn't be fun anymore.Enjoy :)
May 26 2009
Ary Borenszweig wrote:Hi!ohai!I'm in need of heavy (long, complicated, interesting, whatever) templates and/or compile-time functions to help me debug the compile-time debugger I'm writing. Can you paste/attach some here, or give me links?xpose2 is pretty mad: http://team0xf.com:1024/xf/file/cc374abe6ab4/xpose2/ -- Tomasz Stachowiak http://h3.team0xf.com/ h3/h3r3tic on #D freenode
May 26 2009