
18 Sep
2012
18 Sep
'12
8:27 p.m.
On 09/18/2012 08:15 PM, Manjunath Kudlur wrote:
Using a DSL to specify a function object, and transforming that to a C99 string to pass down to the OpenCL driver is a nice idea. But it gets really ugly when the function object is anymore complex than _1+_2. I tried this once before, look here : https://github.com/keveman/carbon/blob/master/examples/thrust/discrete_voron... I wouldn't want to write my function objects like that.
IMO DSELs are only a good idea if your language is high-level. If you're using straight C++ rewritten with a convoluted syntax, there is little advantage to it.