Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Seb via Digitalmars-d-announce
On Sunday, 6 October 2019 at 02:33:15 UTC, Walter Bright wrote: On 10/5/2019 6:58 AM, Seb wrote: Phobos is essentially dead/frozen (feature-wise). I beg to disagree. A couple cases in point: https://github.com/dlang/phobos/pull/7211 which is a re-imagining, rethinking of hexString. I'm

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Walter Bright via Digitalmars-d-announce
On 10/5/2019 6:58 AM, Seb wrote: Phobos is essentially dead/frozen (feature-wise). I beg to disagree. A couple cases in point: https://github.com/dlang/phobos/pull/7211 which is a re-imagining, rethinking of hexString. and: https://github.com/dlang/phobos/pull/7130

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread SrMordred via Digitalmars-d-announce
I wonder about the generated Assembly: In Rust if u add #[repr(usize)] to the enum the generated code as only two lines. In D, Look like the first assembly lines are checking for errors(or out of bounds index?). But why if this is a final switch? (also assert(0); at the end donĀ“t help )

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 10/5/19 7:58 AM, Seb wrote: On Saturday, 5 October 2019 at 06:40:35 UTC, Arun Chandrasekaran wrote: On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Paul Backus via Digitalmars-d-announce
On Saturday, 5 October 2019 at 13:58:52 UTC, Seb wrote: On Saturday, 5 October 2019 at 06:40:35 UTC, Arun Chandrasekaran wrote: Good one. Any plans to push SumType as a replacement of Phobo's Algebraic? Phobos is essentially dead/frozen (feature-wise). Though if someone ever manages to get

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Paul Backus via Digitalmars-d-announce
On Saturday, 5 October 2019 at 04:07:45 UTC, Meta wrote: I'm not sure if you're aware, but funnily enough, I also wrote an article[1] on std::variant vs. the D alternative that references Matt Kline's article on std::visit. It seems we're really making getting our money's worth from his

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 5 October 2019 at 12:27:06 UTC, Mike Parker wrote: On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated assembly for

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Seb via Digitalmars-d-announce
On Saturday, 5 October 2019 at 06:40:35 UTC, Arun Chandrasekaran wrote: On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated

Re: New Funding Initiatives from the D Language Foundation

2019-10-05 Thread Ethan via Digitalmars-d-announce
On Friday, 4 October 2019 at 10:22:56 UTC, Mike Parker wrote: The latest post on the blog details some new funding initiatives from the D Language Foundation. This includes putting some of the HR Fund to use and seeding the first two of a set of forthcoming Bugzilla bounties.

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Mike Parker via Digitalmars-d-announce
On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated assembly for each of them. You can read about it at the link below. And as you

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread user1234 via Digitalmars-d-announce
On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated assembly for each of them. You can read about it at the link below. And as you

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Johan Engelen via Digitalmars-d-announce
On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated assembly for each of them. You can read about it at the link below. And as you

Re: Blog Post: Beating std::visit Without Really Trying

2019-10-05 Thread Arun Chandrasekaran via Digitalmars-d-announce
On Saturday, 5 October 2019 at 02:59:58 UTC, Paul Backus wrote: I was curious how C++17's std::variant compared to the options we have in D, like Algebraic and SumType, so I did a simple comparison of the generated assembly for each of them. You can read about it at the link below. And as you