Re: DConf 2014 Keynote: High Performance Code Using D by Walter Bright
On 7/20/14, 5:57 AM, bearophile wrote: In those slides as other member of the sum type they have used an enumeration of possible error conditions (or at first even just strings of the error messages), sometimes augmented with more information, like: | EmailNotValid of EmailAddress | DbAuthorizationError of ConnectionString * Credentials | SmtpTimeout of SmtpConnection | SmtpBadRecipient of EmailAddress No, those would be stored with the exception (possibly as part of its dynamic type). That's the obvious way to achieve that in D; we don't want to copy verbatim what's most appropriate for other languages. template bind(alias fun) { ... } such that given a function e.g. int fun(string a, double b); bind!fun is this function: Expected!int bind!fun(Expected!string a, Expected!double b) { if (a.sux || b.sux) return composeExceptions(a, b); return fun(a.rox, b.rox); } There would also be bindNothrow: Expected!int bindNothrow!fun(Expected!string a, Expected!double b) { if (a.sux || b.sux) return composeExceptions(a, b); try return fun(a.rox, b.rox); catch (Exception e) return e; } One of the main points of using those two railways is to avoid exceptions. Avoid exceptions as control flow, not as means of passing error information around. I think D's exception chains are very good at the latter. We should use them. Andrei
DMD v2.066.0-b5
The v2.066.0-b5 binaries are now available: http://wiki.dlang.org/DMD_v2.066.0-b5
DConf 2014 Lightning Talks
Now available from youtube by default. http://www.reddit.com/r/programming/comments/2bbklj/dconf_2014_lightning_talks/ https://twitter.com/D_Programming/status/491299147015012352 https://www.facebook.com/dlang.org/posts/888753774471638 Andrei
Re: DConf 2014 Lightning Talks
On Monday, 21 July 2014 at 19:13:55 UTC, Andrei Alexandrescu wrote: Now available from youtube by default. http://www.reddit.com/r/programming/comments/2bbklj/dconf_2014_lightning_talks/ https://twitter.com/D_Programming/status/491299147015012352 https://www.facebook.com/dlang.org/posts/888753774471638 Andrei This video is private.
Re: DConf 2014 Lightning Talks
On 07/21/2014 12:13 PM, Andrei Alexandrescu wrote: Now available from youtube by default. http://www.reddit.com/r/programming/comments/2bbklj/dconf_2014_lightning_talks/ https://twitter.com/D_Programming/status/491299147015012352 https://www.facebook.com/dlang.org/posts/888753774471638 Andrei Ali Çehreli's (first speaker) slides are at http://acehreli.org/AliCehreli_assumptions.pdf Ali
Re: DConf 2014 Lightning Talks
Hi, Brian's talk is enjoyable. I's an evidence that D people are in touch with ground... rolling and laughing... Please keep some PRs open and save some WATs for next year. Also, we still need more explosions and planes in presentations! But seriously, thanks Brian and others for your work. Cheers Piotrek
Re: DConf 2014 Lightning Talks
On Monday, 21 July 2014 at 21:39:52 UTC, Ali Çehreli wrote: Ali Çehreli's (first speaker) slides are at http://acehreli.org/AliCehreli_assumptions.pdf Ali Hi, Assume meme was great too. Cheers, Piotrek
Re: DConf 2014 Lightning Talks
On 07/21/2014 02:51 PM, Piotrek wrote: On Monday, 21 July 2014 at 21:39:52 UTC, Ali Çehreli wrote: Ali Çehreli's (first speaker) slides are at http://acehreli.org/AliCehreli_assumptions.pdf Ali Hi, Assume meme was great too. Cheers, Piotrek Thanks! I will wait at least another year before watching the video. I don't think I can stand seeing myself cramming 26 slides in 10 minutes! :) Ali
Re: DConf 2014 Lightning Talks
On Monday, 21 July 2014 at 22:04:58 UTC, Ali Çehreli wrote: Thanks! I will wait at least another year before watching the video. I don't think I can stand seeing myself cramming 26 slides in 10 minutes! :) Ali I know how you feel. I don't want to watch my talk either.
Re: DConf 2014 Lightning Talks
On Monday, 21 July 2014 at 22:08:26 UTC, Brian Schott wrote: On Monday, 21 July 2014 at 22:04:58 UTC, Ali Çehreli wrote: Thanks! I will wait at least another year before watching the video. I don't think I can stand seeing myself cramming 26 slides in 10 minutes! :) Ali I know how you feel. I don't want to watch my talk either. I did watch mine and I'm a cocky son of a . that will not look in the mirror for a week. But IMO it is a good tool for self-reflection. I learned that my voice is annoying and that I had to much food lately. @Brian and @Ali you're fine, don't worry.
Re: DConf 2014 Lightning Talks
Brian WAT slides were absolutely brilliant, I have totally enjoyed watching those for the second time now :)
Re: DConf 2014 Lightning Talks
On 7/21/2014 3:59 PM, Robert burner Schadek wrote: On Monday, 21 July 2014 at 22:08:26 UTC, Brian Schott wrote: On Monday, 21 July 2014 at 22:04:58 UTC, Ali Çehreli wrote: Thanks! I will wait at least another year before watching the video. I don't think I can stand seeing myself cramming 26 slides in 10 minutes! :) Waiting never helps! I can never stand to watch the videos of myself. I know how you feel. I don't want to watch my talk either. I did watch mine and I'm a cocky son of a . that will not look in the mirror for a week. But IMO it is a good tool for self-reflection. I learned that my voice is annoying and that I had to much food lately. @Brian and @Ali you're fine, don't worry. True. I used to be in the dance business. The coach would never videotape his students until he knew they were hooked. Otherwise, they'd be devastated and quit. How you think you look and how you actually look are very different things. Videotape is the harshest, and most effective, training tool.