www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Curious compile-time perversions: Raytracing

reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
What do you get when you combine 3d graphics with lots of templates ?

Here's one possible answer:
http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/


--
Tomasz Stachowiak
Aug 26 2006
next sibling parent reply kris <foo bar.com> writes:
Tom S wrote:
 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/
 
 
 -- 
 Tomasz Stachowiak

You're a maniac, Tom. A totally cool maniac ;)
Aug 26 2006
parent "John Reimer" <terminal.node gmail.com> writes:
On Sat, 26 Aug 2006 17:02:22 -0700, kris <foo bar.com> wrote:

 Tom S wrote:
 What do you get when you combine 3d graphics with lots of templates ?
  Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/
   -- Tomasz Stachowiak

You're a maniac, Tom. A totally cool maniac ;)

seconded ;D -JJR
Aug 26 2006
prev sibling next sibling parent reply Lutger <lutger.blijdestijn gmail.com> writes:
Just awesome!

[OT] Speaking about which, the link to your bind library is currently 
down. I'm using it and it serves me well, perhaps it should be up for 
people to benefit?

Tom S wrote:
 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/
 
 
 -- 
 Tomasz Stachowiak

Aug 26 2006
parent Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
Lutger wrote:
 Just awesome!
 
 [OT] Speaking about which, the link to your bind library is currently 
 down. I'm using it and it serves me well, perhaps it should be up for 
 people to benefit?

it's mirrored at http://www-users.mat.uni.torun.pl/~h3r3tic/bind.rar
Aug 26 2006
prev sibling next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Tom S" <h3r3tic remove.mat.uni.torun.pl> wrote in message 
news:ecqlq8$1ieo$1 digitaldaemon.com...
 What do you get when you combine 3d graphics with lots of templates ?

 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

Well.. I think you're certainly giving Don a run for his money, if not for template complexity then for sheer ingenuity. I am.. speechless. :)
Aug 26 2006
parent Don Clugston <dac nospam.com.au> writes:
Jarrett Billingsley wrote:
 "Tom S" <h3r3tic remove.mat.uni.torun.pl> wrote in message 
 news:ecqlq8$1ieo$1 digitaldaemon.com...
 What do you get when you combine 3d graphics with lots of templates ?

 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

Well.. I think you're certainly giving Don a run for his money, if not for template complexity then for sheer ingenuity. I am.. speechless. :)

I agree <g>. That's more insane than anything I've come up with. Well done. It really makes the C++ boost metaprogramming look pathetic.
Aug 27 2006
prev sibling next sibling parent Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
Tom S wrote:
 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/
 

What can I say except wow! This is totally crazy (in a good way) :-)
Aug 27 2006
prev sibling next sibling parent Dawid =?UTF-8?B?Q2nEmcW8YXJraWV3aWN6?= <dawid.ciezarkiewicz gmail.com> writes:
Tom S wrote:

 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

Wow. Wymiatasz.
Aug 27 2006
prev sibling next sibling parent Chris Nicholson-Sauls <ibisbasenji gmail.com> writes:
Tom S wrote:
 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/
 
 
 -- 
 Tomasz Stachowiak

You scare me. But in a highly admirable way. :) This belongs in a hall of fame, if we ever get one. -- Chris Nicholson-Sauls
Aug 27 2006
prev sibling next sibling parent pragma <ericanderton yahoo.com> writes:
Tom S wrote:
 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/
 
 
 -- 
 Tomasz Stachowiak

OMG. ::stunned expression:: Well, if this doesn't put D's template system on top, then I don't know what will. Well done!
Aug 27 2006
prev sibling next sibling parent "Craig Black" <cblack ara.com> writes:
Perhaps this compile-time ray tracer could be used by Walter as a benchmark
to improve compiler performance.

-Craig
Aug 28 2006
prev sibling next sibling parent reply Derek Parnell <derek nomail.afraid.org> writes:
On Sun, 27 Aug 2006 00:34:31 +0100, Tom S wrote:

 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

Is this a compiler and an interpreter now? ;-) -- Derek (skype: derek.j.parnell) Melbourne, Australia "Down with mediocrity!" 28/08/2006 5:04:02 PM
Aug 28 2006
next sibling parent Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
Derek Parnell wrote:
 On Sun, 27 Aug 2006 00:34:31 +0100, Tom S wrote:
 
 What do you get when you combine 3d graphics with lots of templates ?

 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

Is this a compiler and an interpreter now? ;-)

That is exactly what I was thinking. The wonderful thing is that Tom's code is actually readable and it isn't hard to understand it.
Aug 28 2006
prev sibling next sibling parent reply Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
Thanks for the feedback everyone ! I thought I'd be trout-slapped for 
doing terrible things to the compiler ;)



Derek Parnell wrote:
 Is this a compiler and an interpreter now? ;-)

Funnily, programming in such a way really feels like coding in a dynamic language - I can dynamically introduce variables around, define covariant types without inheriting anything and alias stuff around as needed. If it wasn't for the memory requirements, meta-D could be considered a scripting language ;)
Aug 28 2006
next sibling parent Don Clugston <dac nospam.com.au> writes:
Tom S wrote:
 Thanks for the feedback everyone ! I thought I'd be trout-slapped for 
 doing terrible things to the compiler ;)
 
 
 
 Derek Parnell wrote:
 Is this a compiler and an interpreter now? ;-)

Funnily, programming in such a way really feels like coding in a dynamic language - I can dynamically introduce variables around, define covariant types without inheriting anything and alias stuff around as needed. If it wasn't for the memory requirements, meta-D could be considered a scripting language ;)

Yeah, it's an interesting language in itself. It seems to be a fairly pure functional language with some unusual twists. And with alias template parameters, it's had lazy evaluation for a long time <g>. The thing I've found amazing is that string processing in meta-D is no more difficult than in many other languages I've used, thanks to D's superb array handling.
Aug 28 2006
prev sibling parent James Dunne <james.jdunne gmail.com> writes:
Tom S wrote:
 Thanks for the feedback everyone ! I thought I'd be trout-slapped for 
 doing terrible things to the compiler ;)
 

Not so fast... *slaps with trout* Seriously though, you're sick. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/MU/S d-pu s:+ a-->? C++++$ UL+++ P--- L+++ !E W-- N++ o? K? w--- O M-- V? PS PE Y+ PGP- t+ 5 X+ !R tv-->!tv b- DI++(+) D++ G e++>e h>--->++ r+++ y+++ ------END GEEK CODE BLOCK------ James Dunne
Aug 28 2006
prev sibling parent reply Walter Bright <newshound digitalmars.com> writes:
Derek Parnell wrote:
 Is this a compiler and an interpreter now? ;-)

No, it's a compiler *and* a dessert topping!
Aug 29 2006
parent Kyle Furlong <kylefurlong gmail.com> writes:
Walter Bright wrote:
 Derek Parnell wrote:
 Is this a compiler and an interpreter now? ;-)

No, it's a compiler *and* a dessert topping!

It always surprises me how funny you can be. I have this idea of a wizened hacker hermit, up on a mountain top, conceiving great things in the dark of night. I suppose if we ever met, I would be pleasantly surprised. :-D /me goes back to lurking -- Kyle Furlong // Physics Undergrad, UCSB "D is going wherever the D community wants it to go." - Walter Bright
Aug 29 2006
prev sibling next sibling parent Max Samuha <maxter i.com.ua> writes:
On Sun, 27 Aug 2006 00:34:31 +0100, Tom S
<h3r3tic remove.mat.uni.torun.pl> wrote:

What do you get when you combine 3d graphics with lots of templates ?

Here's one possible answer:
http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

Tom, that's really impressive!
Aug 28 2006
prev sibling next sibling parent reply =?iso-8859-1?q?Knud_S=F8rensen?= <12tkvvb02 sneakemail.com> writes:
Nice job.

Have anybody posted this on digg ??

I am just wondering when we will start see 
things like compiler time madelbrot 
on  http://shootout.alioth.debian.org/


On Sun, 27 Aug 2006 00:34:31 +0100, Tom S wrote:

 mat

Aug 28 2006
parent Walter Bright <newshound digitalmars.com> writes:
Knud Sørensen wrote:
 Nice job.
 
 Have anybody posted this on digg ??

Feel free to!
Aug 30 2006
prev sibling next sibling parent reply Walter Bright <newshound digitalmars.com> writes:
Tom S wrote:
 What do you get when you combine 3d graphics with lots of templates ?
 
 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

I had to put a link to that on http://www.digitalmars.com/d/templates-revisted.com Thanks!
Aug 29 2006
parent reply BCS <BCS pathlink.com> writes:
Walter Bright wrote:
 Tom S wrote:
 
 What do you get when you combine 3d graphics with lots of templates ?

 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

I had to put a link to that on http://www.digitalmars.com/d/templates-revisted.com Thanks!

fixed link: http://www.digitalmars.com/d/templates-revisted.html
Aug 29 2006
parent reply BCS <BCS pathlink.com> writes:
BCS wrote:
 Walter Bright wrote:
 
 Tom S wrote:

 What do you get when you combine 3d graphics with lots of templates ?

 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/

I had to put a link to that on http://www.digitalmars.com/d/templates-revisted.com Thanks!

fixed link (for real this time):

http://www.digitalmars.com/d/templates-revisited.html
Aug 29 2006
parent reply Walter Bright <newshound digitalmars.com> writes:
BCS wrote:
 fixed link (for real this time):


You're right. Thanks.
Aug 29 2006
next sibling parent Kyle Furlong <kylefurlong gmail.com> writes:
Walter Bright wrote:
 BCS wrote:
 fixed link (for real this time):


You're right. Thanks.

I took the liberty of posting it. Do a search for Ctrace and DIGG DIGG DIGG!. -- Kyle Furlong // Physics Undergrad, UCSB "D is going wherever the D community wants it to go." - Walter Bright
Aug 30 2006
prev sibling parent Kyle Furlong <kylefurlong gmail.com> writes:
Walter Bright wrote:
 BCS wrote:
 fixed link (for real this time):


You're right. Thanks.

Here's the link: http://digg.com/programming/Ctrace_A_compile_time_raytracer_in_D -- Kyle Furlong // Physics Undergrad, UCSB "D is going wherever the D community wants it to go." - Walter Bright
Aug 30 2006
prev sibling parent Kristian <kjkilpi gmail.com> writes:
On Sun, 27 Aug 2006 02:34:31 +0300, Tom S  
<h3r3tic remove.mat.uni.torun.pl> wrote:

 What do you get when you combine 3d graphics with lots of templates ?

 Here's one possible answer:
 http://www-users.mat.uni.torun.pl/~h3r3tic/ctrace/


 --
 Tomasz Stachowiak

........ !!! (<- meaning that I'm absolutely speechless!)
Aug 30 2006