4 ms·
Can you link to it? We're using expression templates on a new library and I find it useful.
by shaklee3 5y ago
Can you link to it? We're using expression templates on a new library and I find it useful.
- WalterBright 5y agoOh man, you sure know how to drive a stake in my heart! What have I done! Some curses should just not be uttered. I'm not sure where it is on my backups. But it was done just like you'd do it in C++. The same thing, just with D syntax.
- shaklee3 5y agoWe're making a numerical computing library that expression templates are used for compile-time evaluation of expressions. It's a very niche hpc library, so it might be one of the few places it's appropriate.
- WalterBright 5y agoI wish you luck with it. If you send me an email, when I find what I wrote about it I'll pass it along to you.
- 1980phipsi 5y agoThey probably aren't the only people interested in that...
- acehreli 5y agoI don't know what code Walter is referring to but I had similar experiences during a presentation of the Boost Spirit library (at our Silicon Valley C++ Meeting; must be about a decade ago now). The speaker was proud and beaming for showing how powerful C++ is and the audience was in awe. I was incredulous! Jaw open! The "solution" was horrible with a bunch of workarounds for a bunch of shortcomings. It was a "the emperor does not have cloths" moment for me. Boost Spirit may be better today with newer C++ features; I don't know.
- shaklee3 5y agoThat's kind of the key. We require c++17. Without that it gets extremely ugly and more verbose.