digitalmars.D.announce - Curious compile-time perversions: Raytracing
- Tom S <h3r3tic remove.mat.uni.torun.pl> Aug 26 2006
- kris <foo bar.com> Aug 26 2006
- "John Reimer" <terminal.node gmail.com> Aug 26 2006
- Lutger <lutger.blijdestijn gmail.com> Aug 26 2006
- Tom S <h3r3tic remove.mat.uni.torun.pl> Aug 26 2006
- "Jarrett Billingsley" <kb3ctd2 yahoo.com> Aug 26 2006
- Don Clugston <dac nospam.com.au> Aug 27 2006
- Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> Aug 27 2006
- Dawid =?UTF-8?B?Q2nEmcW8YXJraWV3aWN6?= <dawid.ciezarkiewicz gmail.com> Aug 27 2006
- Chris Nicholson-Sauls <ibisbasenji gmail.com> Aug 27 2006
- pragma <ericanderton yahoo.com> Aug 27 2006
- "Craig Black" <cblack ara.com> Aug 28 2006
- Derek Parnell <derek nomail.afraid.org> Aug 28 2006
- Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> Aug 28 2006
- Tom S <h3r3tic remove.mat.uni.torun.pl> Aug 28 2006
- Don Clugston <dac nospam.com.au> Aug 28 2006
- James Dunne <james.jdunne gmail.com> Aug 28 2006
- Walter Bright <newshound digitalmars.com> Aug 29 2006
- Kyle Furlong <kylefurlong gmail.com> Aug 29 2006
- Max Samuha <maxter i.com.ua> Aug 28 2006
- =?iso-8859-1?q?Knud_S=F8rensen?= <12tkvvb02 sneakemail.com> Aug 28 2006
- Walter Bright <newshound digitalmars.com> Aug 30 2006
- Walter Bright <newshound digitalmars.com> Aug 29 2006
- BCS <BCS pathlink.com> Aug 29 2006
- BCS <BCS pathlink.com> Aug 29 2006
- Walter Bright <newshound digitalmars.com> Aug 29 2006
- Kyle Furlong <kylefurlong gmail.com> Aug 30 2006
- Kyle Furlong <kylefurlong gmail.com> Aug 30 2006
- Kristian <kjkilpi gmail.com> Aug 30 2006
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
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
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
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
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
"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
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
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
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
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
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
Perhaps this compile-time ray tracer could be used by Walter as a benchmark to improve compiler performance. -Craig
Aug 28 2006
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
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
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
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
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
Derek Parnell wrote:Is this a compiler and an interpreter now? ;-)
No, it's a compiler *and* a dessert topping!
Aug 29 2006
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
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
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
Knud Sørensen wrote:Nice job. Have anybody posted this on digg ??
Feel free to!
Aug 30 2006
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
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
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
BCS wrote:fixed link (for real this time):
You're right. Thanks.
Aug 29 2006
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
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
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









"John Reimer" <terminal.node gmail.com> 