Re: Compare boost::hana to D

2017-04-24 Thread Adrian Matoga via Digitalmars-d
On Saturday, 22 April 2017 at 07:53:49 UTC, Johannes Pfau wrote: OT but is there any benefit to identify events with strings? As long as you use compile time only events I'd prefer a syntax as in https://github.com/WebFreak001/EventSystem (one benefit is that it's 100% IDE autocomplete

Re: Compare boost::hana to D

2017-04-23 Thread Steven Schveighoffer via Digitalmars-d
On 4/23/17 12:22 AM, Jesse Phillips wrote: On Friday, 21 April 2017 at 13:10:43 UTC, Adam D. Ruppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html BTW in your D foreach, you could also have done `switch` void

Re: Compare boost::hana to D

2017-04-22 Thread Jesse Phillips via Digitalmars-d
On Friday, 21 April 2017 at 13:10:43 UTC, Adam D. Ruppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html BTW in your D foreach, you could also have done `switch` void trigger(string event) { switch(event) {

Re: Compare boost::hana to D

2017-04-22 Thread Nicholas Wilson via Digitalmars-d
On Friday, 21 April 2017 at 19:48:53 UTC, Adrian Matoga wrote: On Friday, 21 April 2017 at 12:37:03 UTC, Mike Parker wrote: And I should add (for anyone paying attention), this is exactly the sort of thing I'm looking for more of on the D Blog. Submissions welcome :-) This, and the

Re: Compare boost::hana to D

2017-04-22 Thread Nicholas Wilson via Digitalmars-d
On Saturday, 22 April 2017 at 07:53:49 UTC, Johannes Pfau wrote: [1] https://www.youtube.com/watch?v=X_p9X5RzBJE [2] https://epi.github.io/2017/03/18/less_fun.html OT but is there any benefit to identify events with strings? As long as you use compile time only events I'd prefer a syntax as

Re: Compare boost::hana to D

2017-04-22 Thread Johannes Pfau via Digitalmars-d
Am Wed, 19 Apr 2017 18:02:46 + schrieb Adrian Matoga : > On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: > > I'm brushing up on my C++ to prepare for my C++Now 2017 > > presentation[1]. boost::hana is an impressive library that > > overlaps with many

Re: Compare boost::hana to D

2017-04-22 Thread Walter Bright via Digitalmars-d
On 4/19/2017 3:58 AM, Laeeth Isharc wrote: I think not enough has been written on D's plasticity - Andrei and Walter talk about it in passing a couple of times. But I have the impression that it's maybe quite important for merits of D's real world commercial value. Compare using refactoring

Re: Compare boost::hana to D

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 13:10:43 UTC, Adam D. Ruppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html BTW in your D foreach, you could also have done `switch` void trigger(string event) { switch(event) {

Re: Compare boost::hana to D

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 12:37:03 UTC, Mike Parker wrote: On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC,

Re: Compare boost::hana to D

2017-04-21 Thread Adrian Matoga via Digitalmars-d
On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet?

Re: Compare boost::hana to D

2017-04-21 Thread Joakim via Digitalmars-d
On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet?

Re: Compare boost::hana to D

2017-04-21 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html BTW in your D foreach, you could also have done `switch` void trigger(string event) { switch(event) { foreach (i, e; events) { case e: foreach (c;

Re: Compare boost::hana to D

2017-04-21 Thread Mike Parker via Digitalmars-d
On Friday, 21 April 2017 at 12:34:53 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet?

Re: Compare boost::hana to D

2017-04-21 Thread Mike Parker via Digitalmars-d
On Thursday, 20 April 2017 at 07:37:17 UTC, Mike Parker wrote: On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet? I haven't posted it there, I don't have an account. I'll

Re: Compare boost::hana to D

2017-04-20 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 20 April 2017 at 09:32:02 UTC, Ali Çehreli wrote: My motivation is learning enough about modern C++ to not make a fool of myself in front of an expert C++ crowd. :) If I hadn't known about boost::hana, I could have easily stressed D's compile-time features as if C++ did not have

Re: Compare boost::hana to D

2017-04-20 Thread Ali Çehreli via Digitalmars-d
On 04/20/2017 02:06 AM, Ola Fosheim Grøstad wrote: > On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: >> I'm brushing up on my C++ to prepare for my C++Now 2017 >> presentation[1]. boost::hana is an impressive library that overlaps >> with many D features: >> >>

Re: Compare boost::hana to D

2017-04-20 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you

Re: Compare boost::hana to D

2017-04-20 Thread Mike Parker via Digitalmars-d
On Thursday, 20 April 2017 at 05:01:17 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet? I haven't posted it there, I don't have an account. I'll post it, but not today. It will get more attention if I wait

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 19:22:11 UTC, Ali Çehreli wrote: Thank you. Has this been on Reddit yet? I haven't posted it there, I don't have an account. Two typos: 1) A missing underscore made me believe C++ gained a new keyword (make). :) auto events = make event_system("foo"_s,

Re: Compare boost::hana to D

2017-04-19 Thread Joakim via Digitalmars-d
On Wednesday, 19 April 2017 at 18:30:49 UTC, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html Great article! Thanks! I should

Re: Compare boost::hana to D

2017-04-19 Thread Ali Çehreli via Digitalmars-d
On 04/19/2017 12:12 PM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:57:19 UTC, David Gileadi wrote: On 4/19/17 11:30 AM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2]

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 18:57:19 UTC, David Gileadi wrote: On 4/19/17 11:30 AM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html

Re: Compare boost::hana to D

2017-04-19 Thread David Gileadi via Digitalmars-d
On 4/19/17 11:30 AM, Adrian Matoga wrote: On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html Great article! Thanks! I should mention I've also got somewhat

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 18:26:20 UTC, Sebastiaan Koppe wrote: On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html Great article! Thanks! I should mention I've also got somewhat positive feedback from Louis [1]. [1]

Re: Compare boost::hana to D

2017-04-19 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 19 April 2017 at 18:02:46 UTC, Adrian Matoga wrote: [2] https://epi.github.io/2017/03/18/less_fun.html Great article!

Re: Compare boost::hana to D

2017-04-19 Thread Adrian Matoga via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you

Re: Compare boost::hana to D

2017-04-19 Thread Ali Çehreli via Digitalmars-d
On 04/19/2017 03:58 AM, Laeeth Isharc wrote: > Hope you're well. I'm doing very well. Hoping to see you at DConf. :) Here's another reminder to all: The registration deadline is this Sunday! > On the other hand I was reading some object oriented C++ code of 20k > lines split between 200

Re: Compare boost::hana to D

2017-04-19 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 19 April 2017 at 11:58:07 UTC, Kagamin wrote: On Wednesday, 19 April 2017 at 09:01:25 UTC, Sebastiaan Koppe wrote: Haven't used C++ for a while actually. And seeing it after some time, makes me tremble convulsively. // basic_string INSERTERS AND EXTRACTORS [...] :) Ah yes C++

Re: Compare boost::hana to D

2017-04-19 Thread Kagamin via Digitalmars-d
On Wednesday, 19 April 2017 at 09:01:25 UTC, Sebastiaan Koppe wrote: Haven't used C++ for a while actually. And seeing it after some time, makes me tremble convulsively. _STD_BEGIN // basic_string INSERTERS AND EXTRACTORS template inline basic_istream<_Elem, _Traits>& operator>>(

Re: Compare boost::hana to D

2017-04-19 Thread Joakim via Digitalmars-d
On Wednesday, 19 April 2017 at 10:58:06 UTC, Laeeth Isharc wrote: One last thing. D is a pretty good language for getting stuff done quickly in for a prototype that can be cleaned up quickly. That's a point Andy Smith made, and that Liran made in his talk also. I am having to deal with that

Re: Compare boost::hana to D

2017-04-19 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you

Re: Compare boost::hana to D

2017-04-19 Thread Sebastiaan Koppe via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: Have you used boost::hana? What are your thoughts on it? And please share your ideas for the presentation. There has been threads here about C++ closing the gap. Does D still bring competitive advantage or is it becoming

Re: Compare boost::hana to D

2017-04-19 Thread Nicholas Wilson via Digitalmars-d
On Wednesday, 19 April 2017 at 08:19:52 UTC, Ali Çehreli wrote: I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you

Compare boost::hana to D

2017-04-19 Thread Ali Çehreli via Digitalmars-d
I'm brushing up on my C++ to prepare for my C++Now 2017 presentation[1]. boost::hana is an impressive library that overlaps with many D features: http://www.boost.org/doc/libs/1_64_0_b2/libs/hana/doc/html/index.html Have you used boost::hana? What are your thoughts on it? And please share