Re: Lang.NEXT panel (dfix)

2014-06-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 17/06/14 22:00, Bruno Medeiros wrote: And perhaps rightly so, one could make a case that string mixins should be used sparsely? We have to realize that string mixins are very useful, but are a dirty hack that is a replacement for AST macros. I fully agree, but that won't stop anyone from

Re: core.checkedint added to druntime

2014-06-18 Thread bearophile via Digitalmars-d-announce
Walter Bright: https://github.com/D-Programming-Language/druntime/pull/839 Why aren't functions with ubyte/byte/short/ushort arguments included? -- Here Lionello Lunesu has suggested a __traits(valueRange, expression) for built-in values:

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-18 Thread Kapps via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 22:00:42 UTC, Tofu Ninja wrote: On Tuesday, 17 June 2014 at 17:10:16 UTC, Mengu wrote: and also the genius idea to post each talk seperately instead of having a nice talks page on dconf.org and providing a link for that. i'd understand the keynotes but for the rest

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-18 Thread Jacob Carlborg via Digitalmars-d-announce
On 2014-06-17 05:38, Adam D. Ruppe wrote: On Monday, 16 June 2014 at 22:23:31 UTC, Dicebot wrote: I have found many of talks this year incredibly interesting for actual D users but not as catchy for something that passes by. Also lot of stuff has been discussed live in #d and ustream chat room.

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-18 Thread John via Digitalmars-d-announce
On Tuesday, 17 June 2014 at 22:09:06 UTC, Joakim wrote: Nobody paid attention to ruby for a decade, until David Hansson built rails with it. I am hoping the vibe.d will do that magic to D. I need support for MS SQL Server to use it in production though.

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-18 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 18 June 2014 at 18:50:40 UTC, Jacob Carlborg wrote: Downloading from youtube takes around a minute (HD quality). Your internet must be a lot faster than mine :P I only get about 2 Mbps down so I like to get a lower quality file that downloads faster but still plays reliably...

Re: core.checkedint added to druntime

2014-06-18 Thread Walter Bright via Digitalmars-d-announce
On 6/18/2014 2:43 AM, bearophile wrote: Walter Bright: https://github.com/D-Programming-Language/druntime/pull/839 Why aren't functions with ubyte/byte/short/ushort arguments included? Because there is no ubyte/byte/short/ushort math in C, C++ or D. There is only int/long math.

Re: core.checkedint added to druntime

2014-06-18 Thread bearophile via Digitalmars-d-announce
Walter Bright: Because there is no ubyte/byte/short/ushort math in C, C++ or D. There is only int/long math. A little of ubyte math is present, perhaps for this you add uinc, sinc, udec, sdec functions to core.checkedint that support ubyte/byte/short/ushort types too: void main() {

Re: DConf Day 1 Talk 6: Case Studies in Simplifying Code with Compile-Time Reflection by Atila Neves

2014-06-18 Thread Saurabh Das via Digitalmars-d-announce
I find it impossible to even find the posts on HN. Within a few hours of them being posted by Andrei, they are buried 4-5 pages deep in the 'new' section with very few upvotes. Last year I saw most of the talks (DConf13) on HN and r/programming. This year I find them only on this forum

Re: core.checkedint added to druntime

2014-06-18 Thread David Bregman via Digitalmars-d-announce
On Wednesday, 18 June 2014 at 01:26:16 UTC, Walter Bright wrote: https://github.com/D-Programming-Language/druntime/pull/839 I think the mulu implementation is incorrect. There can be an overflow even when r = 0. For example consider the int version with x = y = 116.