I dun a DIP, possibly the best DIP ever

Walter Bright newshound2 at digitalmars.com
Mon Apr 27 22:15:53 UTC 2020


On 4/27/2020 7:41 AM, Atila Neves wrote:
> On Monday, 27 April 2020 at 13:02:03 UTC, jmh530 wrote:
>> On Monday, 27 April 2020 at 12:08:11 UTC, Atila Neves wrote:
>>> [snip]
>>>
>>> ETs are very much alive in C++. Both Eigen and Boost.Spirit are popular 
>>> libraries, and this despite the colossal hit to compile-times.
>>
>> Eigen is also a dependency in a number of other libraries. When people really 
>> need extra performance, they will tolerate longer compile-times until they 
>> have a better solution. The error messages are not fun.
> 
> I know. Eigen is literally the reason why I can't convince any friends who work 
> at CERN to try D. My dream would be to have dpp somehow enable calling it from 
> D, but I'm not sure that'll ever be possible.

Actually, you can write expression templates in D (I've done it as a demo). But 
it is a bit more limited in D because D doesn't allow separate overloads for < 
<= > >=, for example.

A far as Boost Spirit goes, more than one person has made a D parser generator 
using mixins that is far better.


More information about the Digitalmars-d mailing list