Additional Binary Operators

Araq rumpf_a at gmx.de
Mon Mar 4 15:29:08 PST 2013


On Monday, 4 March 2013 at 21:58:34 UTC, Marco Leise wrote:
> Am Fri, 1 Mar 2013 16:36:07 -0800
> schrieb "H. S. Teoh" <hsteoh at quickfur.ath.cx>:
>
>> +1. With D's compile-time capabilities, DSLs give you 
>> arbitrarily
>> complex custom syntax at essentially zero runtime cost. You 
>> can even
>> implement compile-time DSL optimizers that produce optimized 
>> code like
>> no overloaded operator ever can.
>> 
>> 
>> T
>
> Oh my fucking god. That means you can generate complex
> matrix-vector interactions "on the spot" without ever using
> temporary matrices or vectors and the inevitable cost of
> leaving the FPU and rounding to float! That's brilliant.

It's slightly amusing you keep re-inventing Nimrod, albeit poorly:

http://build.nimrod-code.org/docs/manual.html#term-rewriting-macros


More information about the Digitalmars-d mailing list