Re: ApplyYourDLang - A YouTube channel for D introduction videos

2014-02-27 Thread simendsjo
On 02/27/2014 12:51 AM, deadalnix wrote: On Sunday, 23 February 2014 at 22:07:39 UTC, simendsjo wrote: The cat's out of the bag.. http://www.reddit.com/r/programming/comments/1ypg91/getting_started_with_d_and_vibed/ We didn't want to announce the site before we had more videos, but it has

Re: ApplyYourDLang - A YouTube channel for D introduction videos

2014-02-27 Thread Mengu
On Thursday, 27 February 2014 at 08:15:26 UTC, simendsjo wrote: On 02/27/2014 12:51 AM, deadalnix wrote: On Sunday, 23 February 2014 at 22:07:39 UTC, simendsjo wrote: The cat's out of the bag.. http://www.reddit.com/r/programming/comments/1ypg91/getting_started_with_d_and_vibed/ We didn't

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Craig Dillabaugh
On Thursday, 27 February 2014 at 02:34:53 UTC, Andrei Alexandrescu wrote: Unfortunately we won't participate in GSoC this year. The decision was not surprising - our application has been rejected. Sadly there are lots of things we could have done better. Our application has been a

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Andrei Alexandrescu
On 2/27/14, 10:10 AM, Craig Dillabaugh wrote: On Thursday, 27 February 2014 at 02:34:53 UTC, Andrei Alexandrescu wrote: Unfortunately we won't participate in GSoC this year. The decision was not surprising - our application has been rejected. Sadly there are lots of things we could have done

Re: ApplyYourDLang - A YouTube channel for D introduction videos

2014-02-27 Thread Jacob Carlborg
On 2014-02-26 21:23, simendsjo wrote: The video quality is good, isn't it? Or did you mean the content quality (which is pretty poor)? No, not the content, I'm referring to the video quality. Hmm, for some reason Youtube only displays it in 360p. If I download the video it's better. It's ok

Re: ApplyYourDLang - A YouTube channel for D introduction videos

2014-02-27 Thread Dicebot
On Thursday, 27 February 2014 at 20:25:50 UTC, Jacob Carlborg wrote: On 2014-02-26 21:23, simendsjo wrote: The video quality is good, isn't it? Or did you mean the content quality (which is pretty poor)? No, not the content, I'm referring to the video quality. Hmm, for some reason Youtube

Re: ApplyYourDLang - A YouTube channel for D introduction videos

2014-02-27 Thread simendsjo
On 02/27/2014 09:25 PM, Jacob Carlborg wrote: On 2014-02-26 21:23, simendsjo wrote: The video quality is good, isn't it? Or did you mean the content quality (which is pretty poor)? No, not the content, I'm referring to the video quality. Hmm, for some reason Youtube only displays it in 360p.

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Andrei Alexandrescu
On 2/27/14, 11:11 AM, Craig Dillabaugh wrote: One more question. Do you feel this is a job that someone who isn't necessarily well versed in the various technologies could take on (in a sort of manager role), or would you need someone who has the expertise to evaluate various proposals. Any

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Andrei Alexandrescu
On 2/27/14, 1:42 PM, Craig Dillabaugh wrote: On Thursday, 27 February 2014 at 21:37:03 UTC, Andrei Alexandrescu wrote: On 2/27/14, 11:11 AM, Craig Dillabaugh wrote: One more question. Do you feel this is a job that someone who isn't necessarily well versed in the various technologies could

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Mathias LANG
On Thursday, 27 February 2014 at 22:25:27 UTC, Brad Roberts wrote: We can still do #2 without #1. And we don't need google to make it happen. How about trying a practice run despite not having google tossing in the funding? If someone would want to contribute, what would be the right

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Mike
On Thursday, 27 February 2014 at 18:47:37 UTC, Andrei Alexandrescu wrote: For better or worse Walter and I are the bottlenecks on a lot of D-related stuff. I would really like to help with this, and (I think) others would too. The ideas for GSoC 2015 could start now. I took the liberty of

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Mike
On Thursday, 27 February 2014 at 23:21:29 UTC, Craig Dillabaugh wrote: https://community.kde.org/Getinvolved/development (at the bottom) Experienced D developers, who feel they could use on a specific project, or who would be otherwise interested in taking on an 'apprentice' could list projects

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Craig Dillabaugh
On Friday, 28 February 2014 at 01:02:11 UTC, Mike wrote: On Thursday, 27 February 2014 at 18:47:37 UTC, Andrei Alexandrescu wrote: For better or worse Walter and I are the bottlenecks on a lot of D-related stuff. I would really like to help with this, and (I think) others would too. The

Re: DigitalMars' GSoC application has been rejected

2014-02-27 Thread Andrei Alexandrescu
On 2/27/14, 3:22 PM, Mathias LANG wrote: On Thursday, 27 February 2014 at 22:25:27 UTC, Brad Roberts wrote: We can still do #2 without #1. And we don't need google to make it happen. How about trying a practice run despite not having google tossing in the funding? If someone would want to

Re: http://www.rust-ci.org/

2014-02-27 Thread Piotr Szturmaj
On 2014-02-26 05:50, Brad Roberts wrote: Later, Brad Now I've received your email but it seems I can't reply :) Instead, I'm receiving mail delivery error: The mail system bra...@puremagic.com: host mail2.puremagic.com[99.179.5.161] said: 451 4.7.1 Please try again later (TEMPFAIL) (in

Surprised by hashes of arrays of arrays

2014-02-27 Thread Jens Mueller
Dear list, I stumbled over odd behavior which took quite some time of debugging. Sharing my results may help find a solution or just make others aware and reduce their debugging time. To illustrate consider the code: auto array1 = [ [1, 2], [3, 4] ]; auto array2 = array1.dup; array2[0] =

Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Timothee Cour
A1) Google's Dart (https://www.dartlang.org) looks like a very promising replacement for javascript. It can compile to javascript to ensure portability (but chromium runs it natively) but the language itself reminds more of D to a surprising extent. Dart language has features such as: static

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Suliman
What needed to create language that can be run everywhere? I mean would it be hard to add support of running D code in web-browser? it's better to write all logic at one language, that on 2 or 3.

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread bearophile
Timothee Cour: * better way to define default constructors: class Point { num x; num y; num z; // Syntactic sugar for setting z and x before the constructor body runs. Point(this.z, this.x){...} } This is more explicit and flexible than D's way for default struct constructors,

Re: Surprised by hashes of arrays of arrays

2014-02-27 Thread thedeemon
On Thursday, 27 February 2014 at 10:12:46 UTC, Jens Mueller wrote: As you may conclude from this post I find this behavior odd. I expect a hash implementation to follow indirections by calling the hashing functions recursively. How shall it work with cycles in object graphs?

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread w0rp
I don't like any of the syntax changes mentioned. I do like the suggestions for better IDEs and similar tools. We can always do more to improve these.

Duals or ranges and reactive D

2014-02-27 Thread Szymon Gatner
C#'s IObservable/IObserver made me think how would a dual [1][2] of a range concept look in D. Since D has no equivalent IEnumerable (as it is no needed thanks to templates) it is only about IEnumerator / IObserver part which relates to a D range. Ranges/enumerators are models of 'pull' style

Re: Duals or ranges and reactive D

2014-02-27 Thread Szymon Gatner
On Thursday, 27 February 2014 at 12:41:14 UTC, Szymon Gatner wrote: C#'s IObservable/IObserver made me think how would a dual Topic should of course be: Duals OF ranges and reactive D

Re: Typed GC

2014-02-27 Thread w0rp
Having precise GC in D eventually would be cool. Not having to worry about false pointers is always good.

Re: Minor std.stdio.File.ByLine rant

2014-02-27 Thread Steven Schveighoffer
On Wed, 26 Feb 2014 18:44:10 -0500, H. S. Teoh hst...@quickfur.ath.cx wrote: First of all, the way ByLine works is kinda tricky, even in the previous releases. The underlying cause is that at least on Posix, the underlying C feof() call doesn't actually tell you whether you're really at EOF

Re: A Proposal to Add 2D Graphics Rendering and Display to C++

2014-02-27 Thread Steve Teale
On Wednesday, 26 February 2014 at 16:40:59 UTC, NA wrote: This is an updated document and is quite interesting. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3888.pdf NA Don't we already have it? Called gtkD. Steve

Re: Surprised by hashes of arrays of arrays

2014-02-27 Thread Jens Mueller
thedeemon wrote: On Thursday, 27 February 2014 at 10:12:46 UTC, Jens Mueller wrote: As you may conclude from this post I find this behavior odd. I expect a hash implementation to follow indirections by calling the hashing functions recursively. How shall it work with cycles in object

Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Remo
Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ?

Range proposals from Eric Niebler

2014-02-27 Thread Alessandro Stamatto
Eric Niebler did a very interesting discussion targeting Range proposals for C++17. I think it would be great inspiration for future improvements on D ranges: The shortcomings of classical C++ (begin, end) ranges: http://ericniebler.com/2014/02/16/delimited-ranges/ The shortcomings of

Re: Typed GC

2014-02-27 Thread Namespace
Would be so nice if we finally fix issue 12256 (https://d.puremagic.com/issues/show_bug.cgi?id=12256). I hate it...

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Asman01
On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ? I was

Re: Minor std.stdio.File.ByLine rant

2014-02-27 Thread H. S. Teoh
On Thu, Feb 27, 2014 at 07:55:59AM -0500, Steven Schveighoffer wrote: On Wed, 26 Feb 2014 18:44:10 -0500, H. S. Teoh hst...@quickfur.ath.cx wrote: First of all, the way ByLine works is kinda tricky, even in the previous releases. The underlying cause is that at least on Posix, the

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Asman01
On Thursday, 27 February 2014 at 10:27:41 UTC, Timothee Cour wrote: A1) Google's Dart (https://www.dartlang.org) looks like a very promising replacement for javascript. It can compile to javascript to ensure portability (but chromium runs it natively) but the language itself reminds more of D

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Chris Williams
On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ? I like

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Jesse Phillips
On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ? Wish I

Re: Differences between D2 and TDPL wiki page

2014-02-27 Thread Nick Treleaven
On 24/02/2014 22:26, Brad Anderson wrote: I threw this together from an old post by Jonathan. http://wiki.dlang.org/Differences_With_TDPL People are always asking about what has changed since TDPL was released and I think it'd be good to have a single resource we can point people at. The items

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Robert Clipsham
On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ? D doesn't

Re: Minor std.stdio.File.ByLine rant

2014-02-27 Thread Sean Kelly
Are the peek routines standard? I'm on my phone so I can't easily check right now. Barring that, there's an ioctl call that can tell whether data is available, though I'm not sure offhand what the result would be for a file if you haven't read anything yet.

Re: Manual Memory Management Example for dlang.org Docs (Code Review)

2014-02-27 Thread Sean Kelly
On Wednesday, 26 February 2014 at 15:00:13 UTC, Dicebot wrote: On Wednesday, 26 February 2014 at 04:43:30 UTC, Mike wrote: Please review this (http://dpaste.dzfl.pl/2377217c7870) instead. throw new Exception(Out of memory); I don't think it is a good thing to do. Of course GC is likely to

Re: Minor std.stdio.File.ByLine rant

2014-02-27 Thread Steven Schveighoffer
On Thu, 27 Feb 2014 10:04:47 -0500, H. S. Teoh hst...@quickfur.ath.cx wrote: On Thu, Feb 27, 2014 at 07:55:59AM -0500, Steven Schveighoffer wrote: On Wed, 26 Feb 2014 18:44:10 -0500, H. S. Teoh hst...@quickfur.ath.cx wrote: First of all, the way ByLine works is kinda tricky, even in the

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Chris Williams
On Thursday, 27 February 2014 at 16:08:26 UTC, Robert Clipsham wrote: D doesn't need this, you can implement monadic null checking in the library: By that argument, I can implement anything that D can do in assembler, hence I don't need D.

Re: Minor std.stdio.File.ByLine rant

2014-02-27 Thread Steven Schveighoffer
On Thu, 27 Feb 2014 11:22:45 -0500, Sean Kelly s...@invisibleduck.org wrote: Are the peek routines standard? I'm on my phone so I can't easily check right now. Barring that, there's an ioctl call that can tell whether data is available, though I'm not sure offhand what the result would be

Re: Differences between D2 and TDPL wiki page

2014-02-27 Thread Brad Anderson
On Thursday, 27 February 2014 at 15:56:48 UTC, Nick Treleaven wrote: On 24/02/2014 22:26, Brad Anderson wrote: I threw this together from an old post by Jonathan. http://wiki.dlang.org/Differences_With_TDPL People are always asking about what has changed since TDPL was released and I think

Re: Range proposals from Eric Niebler

2014-02-27 Thread Brad Anderson
On Thursday, 27 February 2014 at 14:46:25 UTC, Alessandro Stamatto wrote: Eric Niebler did a very interesting discussion targeting Range proposals for C++17. I think it would be great inspiration for future improvements on D ranges: The shortcomings of classical C++ (begin, end) ranges:

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Ary Borenszweig
On 2/27/14, 7:19 AM, Timothee Cour wrote: And then some design decisions which wouldn't work for D: everything is an object, no struct (just class), VM, etc. In a programming language you can make everything look like an object but implement it as a primitive type. So that could work in D

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Robert Clipsham
On Thursday, 27 February 2014 at 16:32:18 UTC, Chris Williams wrote: On Thursday, 27 February 2014 at 16:08:26 UTC, Robert Clipsham wrote: D doesn't need this, you can implement monadic null checking in the library: By that argument, I can implement anything that D can do in assembler, hence

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Paulo Pinto
Am 27.02.2014 17:48, schrieb Ary Borenszweig: On 2/27/14, 7:19 AM, Timothee Cour wrote: And then some design decisions which wouldn't work for D: everything is an object, no struct (just class), VM, etc. In a programming language you can make everything look like an object but implement it as

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread thedeemon
On Thursday, 27 February 2014 at 10:27:41 UTC, Timothee Cour wrote: A1) Google's Dart (https://www.dartlang.org) looks like a very promising replacement for javascript. It can compile to javascript to ensure portability (but chromium runs it natively) No, neither Chromium nor even Chrome

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Chris Williams
On Thursday, 27 February 2014 at 17:02:02 UTC, Robert Clipsham wrote: On Thursday, 27 February 2014 at 16:32:18 UTC, Chris Williams wrote: On Thursday, 27 February 2014 at 16:08:26 UTC, Robert Clipsham wrote: D doesn't need this, you can implement monadic null checking in the library: By

Re: Minor std.stdio.File.ByLine rant

2014-02-27 Thread H. S. Teoh
On Thu, Feb 27, 2014 at 11:26:42AM -0500, Steven Schveighoffer wrote: On Thu, 27 Feb 2014 10:04:47 -0500, H. S. Teoh hst...@quickfur.ath.cx wrote: On Thu, Feb 27, 2014 at 07:55:59AM -0500, Steven Schveighoffer wrote: On Wed, 26 Feb 2014 18:44:10 -0500, H. S. Teoh hst...@quickfur.ath.cx

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Robert Clipsham
On Thursday, 27 February 2014 at 17:25:22 UTC, Chris Williams wrote: just(myObject).method1().method2().method3() You can't do that. You're reducing your example code - which was several dozen lines and only applied to objects for which you had added the special handler code - to the end

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Paulo Pinto
Am 27.02.2014 18:29, schrieb thedeemon: On Thursday, 27 February 2014 at 10:27:41 UTC, Timothee Cour wrote: A1) Google's Dart (https://www.dartlang.org) looks like a very promising replacement for javascript. It can compile to javascript to ensure portability (but chromium runs it natively)

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Craig Dillabaugh
On Thursday, 27 February 2014 at 18:20:20 UTC, Paulo Pinto wrote: clip Like it or not, JavaScript is good enough. Really? I've been stuck for the past week or so trying to put together a browser based UI using JavaScript + HTML for a work related project. It has been a painful experience.

Re: Minor std.stdio.File.ByLine rant

2014-02-27 Thread Steven Schveighoffer
On Thu, 27 Feb 2014 12:32:44 -0500, H. S. Teoh hst...@quickfur.ath.cx wrote: Actually, now that I think about it, can't we just make ByLine lazily constructed? It's already a wrapper around ByLineImpl anyway (since it's being refcounted), so why not just make the wrapper create ByLineImpl

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread w0rp
On Thursday, 27 February 2014 at 18:37:51 UTC, Craig Dillabaugh wrote: On Thursday, 27 February 2014 at 18:20:20 UTC, Paulo Pinto wrote: clip Like it or not, JavaScript is good enough. Really? I've been stuck for the past week or so trying to put together a browser based UI using

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Craig Dillabaugh
On Thursday, 27 February 2014 at 19:54:04 UTC, w0rp wrote: On Thursday, 27 February 2014 at 18:37:51 UTC, Craig Dillabaugh wrote: On Thursday, 27 February 2014 at 18:20:20 UTC, Paulo Pinto wrote: clip Like it or not, JavaScript is good enough. Really? I've been stuck for the past week or

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Martin Drasar
On 27.2.2014 20:54, w0rp wrote: I developed 99% of the JavaScript part of an application for a year, and I have extensive JavaScript knowledge. After all that, I wrote this. https://w0rp.com/blog/post/javascript-sucks/ I think it was someone on Slashdot who posted this wonderful comment:

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Paulo Pinto
Am 27.02.2014 19:37, schrieb Craig Dillabaugh: On Thursday, 27 February 2014 at 18:20:20 UTC, Paulo Pinto wrote: clip Like it or not, JavaScript is good enough. Really? I've been stuck for the past week or so trying to put together a browser based UI using JavaScript + HTML for a work

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Walter Bright
On 2/27/2014 2:19 AM, Timothee Cour wrote: * optional named parameters arguments (with simplest possible syntax) This comes up now and then. The problem with it is it makes function overloading a near impossibility to untangle.

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread deadalnix
On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ? Chaining

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Walter Bright
On 2/27/2014 2:19 AM, Timothee Cour wrote: * import all except specified symbols: import 'package:lib2/lib2.dart' hide foo; // Import all names EXCEPT foo. As a general rule, negation features are frequently misunderstood, our brains tend to just not see the negation. One should positively

'dmd -color' flag to colorize error/warning messages

2014-02-27 Thread Timothee Cour
after the success of '-vcolumns', I suggest introducing a flag for colorized error messages, see enhancement proposal: https://d.puremagic.com/issues/show_bug.cgi?id=12273

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Jacob Carlborg
On 2014-02-27 14:27, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ? I like it. -- /Jacob Carlborg

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Walter Bright
On 2/27/2014 2:19 AM, Timothee Cour wrote: * cascade operations: they perform a series of operations on the members of a single object: foo.bar(1)..baz(3) equivalent to: foo.bar(1) foo.baz(3) D has ranges and algorithms to conveniently chain operations. * better way to define default

Accelerating domain-specific languages in CTFE

2014-02-27 Thread Tove
Projects such as Pegged and our CTFE regex engine often serve as poster-children of what is possible in D and many agree they are among the more important projects. I was thinking, after std.lexer is accepted, we have a stable interface, but no matter how great the code is and even if it

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Peter Alexander
On Thursday, 27 February 2014 at 20:49:59 UTC, deadalnix wrote: On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version.

Re: Cumulative

2014-02-27 Thread Shammah Chancellor
On 2014-02-26 16:05:19 +, Steve Teale said: On Wednesday, 26 February 2014 at 13:30:15 UTC, Leandro Motta Barros wrote: Hello, I'm coming late to the discussion, but I believe that you can use the following idiom to achieve the same results in a different way: Yes we went through that,

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Steven Schveighoffer
On Thu, 27 Feb 2014 16:20:47 -0500, Peter Alexander peter.alexander...@gmail.com wrote: On Thursday, 27 February 2014 at 20:49:59 UTC, deadalnix wrote: On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version.

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Steven Schveighoffer
On Thu, 27 Feb 2014 16:45:11 -0500, Steven Schveighoffer schvei...@yahoo.com wrote: ifnull(parent).child.child.child brain fart... ifvalid(parent).child.child.child -Steve

Re: Surprised by hashes of arrays of arrays

2014-02-27 Thread Shammah Chancellor
On 2014-02-27 10:11:53 +, Jens Mueller said: Dear list, I stumbled over odd behavior which took quite some time of debugging. Sharing my results may help find a solution or just make others aware and reduce their debugging time. To illustrate consider the code: auto array1 = [ [1, 2],

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Araq
On Thursday, 27 February 2014 at 20:49:59 UTC, deadalnix wrote: On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version.

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread deadalnix
On Thursday, 27 February 2014 at 21:49:20 UTC, Steven Schveighoffer wrote: On Thu, 27 Feb 2014 16:45:11 -0500, Steven Schveighoffer schvei...@yahoo.com wrote: ifnull(parent).child.child.child brain fart... ifvalid(parent).child.child.child -Steve What you want is a maybe monad, and we

Re: Surprised by hashes of arrays of arrays

2014-02-27 Thread Jens Mueller
Shammah Chancellor wrote: On 2014-02-27 10:11:53 +, Jens Mueller said: Dear list, I stumbled over odd behavior which took quite some time of debugging. Sharing my results may help find a solution or just make others aware and reduce their debugging time. To illustrate consider the

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread bearophile
Walter Bright: * optional named parameters arguments (with simplest possible syntax) This comes up now and then. The problem with it is it makes function overloading a near impossibility to untangle. Do you have an example of the problem? * better way to define default constructors: class

Re: http://www.rust-ci.org/

2014-02-27 Thread Brad Roberts
Well, it sounds like one of two issues: 1) you're mail client is sending directly to the mx hosts for puremagic.com mails (ie, mail1 or mail2) and never retrying to send. Neither is a good idea. or 2) your mail transport agent is never retrying. I suspect the former more than the latter,

Re: Testing some singleton implementations

2014-02-27 Thread Cecil Ward
On Friday, 7 February 2014 at 20:09:29 UTC, Stanislav Blinov wrote: There's a lot more to these singletons than meets the eye. - It would seem that such usage of raw MemoryOrder in AtomicSingleton would be wrong (e.g. return to acq/rel is in order, which should not pose any performance issues

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Timothee Cour
On Thu, Feb 27, 2014 at 12:56 PM, Walter Bright newshou...@digitalmars.comwrote: On 2/27/2014 2:19 AM, Timothee Cour wrote: * cascade operations: they perform a series of operations on the members of a single object: foo.bar(1)..baz(3) equivalent to: foo.bar(1) foo.baz(3) D has ranges

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Timothee Cour
* better syntax for optional positional arguments: void fun(int x, [int y, int z=3]){...} Thinking of which, this would actually solve a long standing problem in D, that of specifying optional parameters AFTER a variadic template: void fun(T...)(T args, [string file=__FILE__,int

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Timothee Cour
On Thu, Feb 27, 2014 at 2:40 PM, bearophile bearophileh...@lycos.comwrote: Walter Bright: * optional named parameters arguments (with simplest possible syntax) This comes up now and then. The problem with it is it makes function overloading a near impossibility to untangle. Do you have

Re: Range proposals from Eric Niebler

2014-02-27 Thread bearophile
Brad Anderson: Reddit discussions on these are interesting too. Eric talks about why he doesn't like D's ranges a bit. What are the downsides of D ranges he sees? Bye, bearophile

Re: Range proposals from Eric Niebler

2014-02-27 Thread Brad Anderson
On Friday, 28 February 2014 at 00:43:57 UTC, bearophile wrote: Brad Anderson: Reddit discussions on these are interesting too. Eric talks about why he doesn't like D's ranges a bit. What are the downsides of D ranges he sees? Here's what he wrote:

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Adam D. Ruppe
We could kinda do named parameters today like this: ParameterTypeTuple!foo args; args.named_param = 3; foo(args); It would be nice if we could declare a variable inside a with(auto x = foo) like we can in if() too.

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Timothee Cour
* better way to define default constructors: class Point { num x; num y; num z; // Syntactic sugar for setting z and x before the constructor body runs. Point(this.z, this.x){...} } This is more explicit and flexible than D's way for default struct constructors,

Re: Range proposals from Eric Niebler

2014-02-27 Thread Timothee Cour
On Thu, Feb 27, 2014 at 4:55 PM, Brad Anderson e...@gnuk.net wrote: On Friday, 28 February 2014 at 00:43:57 UTC, bearophile wrote: Brad Anderson: Reddit discussions on these are interesting too. Eric talks about why he doesn't like D's ranges a bit. What are the downsides of D ranges he

Re: Range proposals from Eric Niebler

2014-02-27 Thread Walter Bright
On 2/27/2014 4:55 PM, Brad Anderson wrote: On Friday, 28 February 2014 at 00:43:57 UTC, bearophile wrote: Brad Anderson: Reddit discussions on these are interesting too. Eric talks about why he doesn't like D's ranges a bit. What are the downsides of D ranges he sees? Here's what he

Re: A Proposal to Add 2D Graphics Rendering and Display to C++

2014-02-27 Thread Steve Teale
On Wednesday, 26 February 2014 at 17:10:01 UTC, Russel Winder wrote: On Wed, 2014-02-26 at 16:40 +, NA wrote: This is an updated document and is quite interesting. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3888.pdf https://groups.google.com/a/isocpp.org/forum/#!

Old Machines and XP for Linux(not really a D topic)

2014-02-27 Thread Steve Teale
I was in a discussion here recently about 64 bit and how much memory people had in their machines these days. A somewhat unrelated topic is that Microsoft are in the process of dumping XP. Now all those old desktop boxes with only 500k of memory will increasingly migrate in containers to

Re: Cumulative

2014-02-27 Thread Steve Teale
On Thursday, 27 February 2014 at 21:44:20 UTC, Shammah Chancellor wrote: On 2014-02-26 16:05:19 +, Steve Teale said: Actually, D has the ability to walk the object hierarchy at compile time, and generate a function call containing all the super classes's handleCommands. You could also

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Russel Winder
On Thu, 2014-02-27 at 20:49 +, deadalnix wrote: On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx

Re: Dart and D: features that could be used in D, D-dart for web programming

2014-02-27 Thread Russel Winder
On Thu, 2014-02-27 at 19:20 +0100, Paulo Pinto wrote: […] From what I understood on Dart talks last Google IO, work was planned to have V8 and Dart VM play together inside Chrome. Dartium is a build of Chromium with both, so this is very much the direction that is possible. Personally, I

GC for noobs

2014-02-27 Thread Szymon Gatner
Hi, I am evaluating D for future projects and coming from C++ I find it really hard to understand semantics of destruction of GC-managed code. After many application-shutdown crashes caused by invalid order of class destructor calls I really think I need to change the way I am thinking

Re: GC for noobs

2014-02-27 Thread Tobias Pankrath
On Thursday, 27 February 2014 at 09:49:08 UTC, Szymon Gatner wrote: My crashes (still have them and can't track all as debugging D sucks) are caused by the fact that d-tor of parent object can be called before child d-tors. Adding destroy() calls in parent d-tors helped with some of crashes

Re: GC for noobs

2014-02-27 Thread Tobias Pankrath
On Thursday, 27 February 2014 at 09:55:14 UTC, Tobias Pankrath wrote: On Thursday, 27 February 2014 at 09:49:08 UTC, Szymon Gatner wrote: My crashes (still have them and can't track all as debugging D sucks) are caused by the fact that d-tor of parent object can be called before child d-tors.

Re: GC for noobs

2014-02-27 Thread Szymon Gatner
On Thursday, 27 February 2014 at 09:57:51 UTC, Tobias Pankrath wrote: On Thursday, 27 February 2014 at 09:55:14 UTC, Tobias Pankrath wrote: On Thursday, 27 February 2014 at 09:49:08 UTC, Szymon Gatner wrote: My crashes (still have them and can't track all as debugging D sucks) are caused by

Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread DS6
Though this post may seem long, my questions are indeed asked. I just kinda started typing and didn't stop; I guess this is both a question post and a vent post. Please bear with me. Hello, I'm a hobbyist programmer, and I'm tired of the way things are going. I'm looking for a change. I must

Re: GC for noobs

2014-02-27 Thread Tobias Pankrath
Szymon Gatner wrote: Parent-child in the sense of object graph. I did read the spec when I started to notice crashes. I must say that it really terrified me to my very bones. I always though that higher-level memory management environments would give more and not less guarantees. Anyway,

Re: GC for noobs

2014-02-27 Thread Szymon Gatner
On Thursday, 27 February 2014 at 10:40:15 UTC, Tobias Pankrath wrote: Szymon Gatner wrote: Parent-child in the sense of object graph. I did read the spec when I started to notice crashes. I must say that it really terrified me to my very bones. I always though that higher-level memory

Re: Switching from Java to D: Beginner questions, multiplatform issues, etc.

2014-02-27 Thread John Colvin
On Thursday, 27 February 2014 at 10:23:40 UTC, DS6 wrote: Okay, down to the questions I have about D: - Why should I use D over another language? What general benefits does it provide me, in relation to the points I made about it above? Is it a solid base to build off of, but still simple in

Re: GC for noobs

2014-02-27 Thread bearophile
Szymon Gatner: I just want them to do their cleanup first as they should. Why? Perhaps if you explain what's behind your needs better, people can help better. Bye, bearophile

Re: GC for noobs

2014-02-27 Thread Szymon Gatner
On Thursday, 27 February 2014 at 11:13:17 UTC, bearophile wrote: Szymon Gatner: I just want them to do their cleanup first as they should. Why? Perhaps if you explain what's behind your needs better, people can help better. Bye, bearophile In my specific example I am creating OpenGL

  1   2   3   >