August 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!
August 28, 2006
Perhaps this compile-time ray tracer could be used by Walter as a benchmark to improve compiler performance.

-Craig


August 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
August 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.
August 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 ;)
August 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.
August 28, 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!
August 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
August 29, 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

August 29, 2006
Derek Parnell wrote:
> Is this a compiler and an interpreter now? ;-)

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