Re:How to abuse a C++ compiler?
by ohyes on Thursday March 20, 2014 @11:01AM
(#7435918)
It's funny that in C++ this is 'abuse of the compiler' and it is awkward, in lisp this is called 'writing lisp code'.
[ Parent
| on HN ]
Re:How to abuse a C++ compiler?
by marcosdumay on Thursday March 20, 2014 @12:52PM
(#7436806)
That's because it is awkward.
One of the fundamental properties people expect from a step called "compilation" is that it finishes. Also templates notation wasn't designed for this kind of use, and does not scale well for complex programs.
In Lisp code generation is done in Lisp, a notation that scales quite well, and there isn't a separarted step called "compilation". There is no general assumption that "execution" finishes.
> That's because it is awkward.
It's more than a bit awkward really.
Still, the OP is right: it's funny.
Re:How to abuse a C++ compiler?
by AnimalMuppet on Thursday March 20, 2014 @01:06PM
(#7436918)
Well, if you wrote a Lisp macro that recursively called itself until the compiler crashed, you might call that 'abuse of the compiler', too...