Thread overview | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 29, 2018 std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D Blog. The blog: https://dlang.org/blog/2018/03/29/std-variant-is-everything-cool-about-d/ Reddit: https://www.reddit.com/r/programming/comments/881hmi/stdvariant_is_everything_cool_about_d/ |
March 29, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | Awesome. I just scanned the "learn" section of the dlang.org, and didn't immediately see a section titled "pattern matching" which includes the nice D code from this blog post (sorry if it's in there---but it isn't jumping out at me). Maybe worth including or emphasizing. |
March 29, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote:
> Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D Blog.
>
> The blog:
> https://dlang.org/blog/2018/03/29/std-variant-is-everything-cool-about-d/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/881hmi/stdvariant_is_everything_cool_about_d/
There are some quite criticisms being made in the comments section.
|
March 29, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to 12345swordy | On 3/29/2018 10:30 AM, 12345swordy wrote:
> There are some quite criticisms being made in the comments section.
The main criticism is a misunderstanding about std.variant's allocation strategy. I have been trying to correct that.
|
March 29, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to 12345swordy | On 03/29/2018 01:30 PM, 12345swordy wrote:
>
> There are some quite criticisms being made in the comments section.
Some of them I actually agree with. Much as I love D, its Variant/Arithmetic *is* a terribly inferior hack compared to various languages that have built-in sum types. (Like Nemerle).
|
March 29, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to 12345swordy | On Thursday, 29 March 2018 at 17:30:04 UTC, 12345swordy wrote:
> There are some quite criticisms being made in the comments section.
Hopefully there will be a time in the future where D stops selling itself as a dialect of C++. Whether the criticisms are right or wrong, they show the difficulty of selling D to C++ developers, and worse, these discussions tell the world that D and C++ are two sides of the same coin.
|
March 30, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote:
> Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D Blog.
>
> The blog:
> https://dlang.org/blog/2018/03/29/std-variant-is-everything-cool-about-d/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/881hmi/stdvariant_is_everything_cool_about_d/
Unfortunately, this turned out to be the worst possible day for me to try to actively monitor the thread and respond to questions. I'm surprised that people latched onto my little quip about C++ using the name variant for a tagged union.
|
March 30, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Thursday, 29 March 2018 at 14:10:39 UTC, Mike Parker wrote:
> Jared Hanson (a.k.a Meta and MetaLang around these parts) was inspired by an article titled "std::visit is everything wrong with modern C++" to contrast it with D's std.variant.visit. The result is this well-written post for the D Blog.
>
> The blog:
> https://dlang.org/blog/2018/03/29/std-variant-is-everything-cool-about-d/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/881hmi/stdvariant_is_everything_cool_about_d/
I think we need a book about D's std Phobos, like `mastering STL` or something like C++ world do, but of course, I didn't mean selling to C++ world, I mean newbie may need knowledge about the Phobos and the design and using the power of the library for real practice, not to compare with the C++ world.
|
March 30, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Meta | On Friday, 30 March 2018 at 00:37:27 UTC, Meta wrote:
>
> Unfortunately, this turned out to be the worst possible day for me to try to actively monitor the thread and respond to questions. I'm surprised that people latched onto my little quip about C++ using the name variant for a tagged union.
It seems that any comment in a D article that refers to C++ will be construed in the worst possible way on reddit...
|
March 30, 2018 Re: std.variant Is Everything Cool About D | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On Friday, 30 March 2018 at 02:46:13 UTC, jmh530 wrote:
> On Friday, 30 March 2018 at 00:37:27 UTC, Meta wrote:
>>
>> Unfortunately, this turned out to be the worst possible day for me to try to actively monitor the thread and respond to questions. I'm surprised that people latched onto my little quip about C++ using the name variant for a tagged union.
>
> It seems that any comment in a D article that refers to C++ will be construed in the worst possible way on reddit...
That's fine by me. Right now, this post is the fourth most-viewed this year and it's not far off from number three.
While I would love to please the reddit crowd to the extent that we see no negativity, I'm quite happy with the fact that our comment threads there are nowhere near as negative as they used to be. Posts that do generate this level of discussion have higher views.
I can't dismiss reddit comments completely, but I don't put as much weight on them as I used to. A subreddit is somewhat comparable to a forum for a popular video game -- lots of vocal people who are actually a small minority of the player base. We can't measure the number of people who click the reddit link to the blog and come away from it with a positive impression. They aren't going to bother commenting on reddit.
|
Copyright © 1999-2021 by the D Language Foundation