Re: [OT] Music to Program Compilers To

2016-07-29 Thread ketmar via Digitalmars-d
On Saturday, 30 July 2016 at 03:41:10 UTC, Jack Stouffer wrote: On Friday, 29 July 2016 at 22:44:04 UTC, Walter Bright wrote: ... I open pandora and type in "death metal", and when working on really hard problems, "thrash metal". To each his own ¯\_(ツ)_/¯ yep. http://www.youtube.com/watch

Re: [OT] Music to Program Compilers To

2016-07-29 Thread eugene via Digitalmars-d
On Saturday, 30 July 2016 at 03:41:10 UTC, Jack Stouffer wrote: On Friday, 29 July 2016 at 22:44:04 UTC, Walter Bright wrote: ... I open pandora and type in "death metal", and when working on really hard problems, "thrash metal". To each his own ¯\_(ツ)_/¯ something like http://cannibalcor

Re: [OT] Music to Program Compilers To

2016-07-29 Thread Jack Stouffer via Digitalmars-d
On Friday, 29 July 2016 at 22:44:04 UTC, Walter Bright wrote: ... I open pandora and type in "death metal", and when working on really hard problems, "thrash metal". To each his own ¯\_(ツ)_/¯

Re: [OT] Music to Program Compilers To

2016-07-29 Thread deadalnix via Digitalmars-d
When coding, it is either old school electro : https://www.youtube.com/watch?v=QpDn4-Na5co https://www.youtube.com/watch?v=DY1s9SmrQRE (this one is not actually old, but the style). Or classic rock like airbourne. The harder the problems gets, the harder the music needs to be :) For hard pro

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread deadalnix via Digitalmars-d
On Friday, 29 July 2016 at 04:44:16 UTC, Timon Gehr wrote: My parser accepts the following: int function(int,int)ref functionPointer; I wasn't really aware that this was illegal in DMD. (Other function attributes, such as pure, are accepted.) In fact, even the following is disallowed: int fo

Re: [OT] Music to Program Compilers To

2016-07-29 Thread Meta via Digitalmars-d
On Friday, 29 July 2016 at 22:44:04 UTC, Walter Bright wrote: http://70sdisconights.com/ Yes, I listen to it while I work. When I was younger I could not start programming until I got some music going. Now I rarely ever listen to music while programming... I feel like it disrupts my thought

Re: Overflows in Phobos

2016-07-29 Thread Charles Hixson via Digitalmars-d
On 07/26/2016 07:36 AM, ketmar via Digitalmars-d wrote: On Tuesday, 26 July 2016 at 14:28:48 UTC, Timon Gehr wrote: "The expression assert(0) is a special case; it signifies that it is unreachable code. [...] The optimization and code generation phases of compilation may assume that it is unrea

Re: D for competitive programming

2016-07-29 Thread sarn via Digitalmars-d
To add to the list, here are a couple of other online judges that explicitly support D: http://www.spoj.com/ http://judge.u-aizu.ac.jp/onlinejudge/ Of course, if you use a language-agnostic platform like Code Jam, you can do what you like. Project Euler (maths-oriented) and the Matasano Chal

Re: [OT] Music to Program Compilers To

2016-07-29 Thread Walter Bright via Digitalmars-d
On 7/29/2016 3:45 PM, Cauterite wrote: On Friday, 29 July 2016 at 22:44:04 UTC, Walter Bright wrote: http://70sdisconights.com/ Yes, I listen to it while I work. that webpage design though >_< I'm spared that because I listen via a Grace Digital tuner, recently bought to replace the ancien

Re: [OT] Music to Program Compilers To

2016-07-29 Thread Cauterite via Digitalmars-d
On Friday, 29 July 2016 at 22:44:04 UTC, Walter Bright wrote: http://70sdisconights.com/ Yes, I listen to it while I work. that webpage design though >_<

[OT] Music to Program Compilers To

2016-07-29 Thread Walter Bright via Digitalmars-d
http://70sdisconights.com/ Yes, I listen to it while I work.

Re: D for competitive programming

2016-07-29 Thread urxvt1 via Digitalmars-d
On Thursday, 28 July 2016 at 22:07:44 UTC, Seb wrote: On Thursday, 28 July 2016 at 21:20:29 UTC, urxvt1 wrote: I wanted to try topcoder problems (never used this site before) and I found out that it doesn't support dlang. They only have c++, java, c#, vb.net, python languages. It would be great

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread ZombineDev via Digitalmars-d
On Friday, 29 July 2016 at 17:57:04 UTC, Adam D. Ruppe wrote: On Friday, 29 July 2016 at 17:53:35 UTC, ZombineDev wrote: Is this what you are looking for: http://www.lunesu.com/uploads/ModernCOMProgramminginD.pdf ? that link isn't working for me but i think this is the same content http://

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread ZombineDev via Digitalmars-d
On Friday, 29 July 2016 at 18:26:18 UTC, Nick Sabalausky wrote: On 07/29/2016 01:53 PM, ZombineDev wrote: Is this what you are looking for: http://www.lunesu.com/uploads/ModernCOMProgramminginD.pdf ? Ah, yes, that's it, thanks. Glad I could help :)

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread Nick Sabalausky via Digitalmars-d
On 07/29/2016 01:53 PM, ZombineDev wrote: Is this what you are looking for: http://www.lunesu.com/uploads/ModernCOMProgramminginD.pdf ? Ah, yes, that's it, thanks.

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 29 July 2016 at 17:53:35 UTC, ZombineDev wrote: Is this what you are looking for: http://www.lunesu.com/uploads/ModernCOMProgramminginD.pdf ? that link isn't working for me but i think this is the same content http://www.slideserve.com/geneva/modern-com-programming-in-d

Re: Old COM with D Slides/Presentation?

2016-07-29 Thread ZombineDev via Digitalmars-d
On Friday, 29 July 2016 at 17:45:58 UTC, Nick Sabalausky wrote: A few years ago there was a presentation, or maybe only slides were posted (I don't recall), that demonstrated D putting C++ and even C# to absolute shame for interfacing with COM using some closed in-house D library. I'm trying

Old COM with D Slides/Presentation?

2016-07-29 Thread Nick Sabalausky via Digitalmars-d
A few years ago there was a presentation, or maybe only slides were posted (I don't recall), that demonstrated D putting C++ and even C# to absolute shame for interfacing with COM using some closed in-house D library. I'm trying to search for the slides or any links or anything relating to th

Re: New __FILE_DIR__ trait?

2016-07-29 Thread Jonathan Marler via Digitalmars-d
On Thursday, 28 July 2016 at 17:21:52 UTC, Sebastien Alaiwan wrote: On Thursday, 28 July 2016 at 06:21:06 UTC, Jonathan Marler wrote: auto __DIR__(string fileFullPath = __FILE_FULL_PATH__) pure { return fileFullPath.dirName; } Doesn't work, I don't think you can wrap such things ( __FILE__

Re: Documented unittests & code coverage

2016-07-29 Thread Jack Stouffer via Digitalmars-d
On Friday, 29 July 2016 at 07:01:35 UTC, Walter Bright wrote: The pilot reads the indicated value, interprets it in the context of what the other instruments say, APPLIES GOOD JUDGMENT, and flies the airplane. Continuing with this metaphor, in this situation you're not the pilot making the ju

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Dicebot via Digitalmars-d
On 07/29/2016 03:55 PM, Jonathan M Davis via Digitalmars-d wrote: > On Friday, July 29, 2016 14:14:49 Dicebot via Digitalmars-d wrote: >> What you want it contradictory to the concept of "storage class". > > Why? I thought the the whole idea of "storage class" was that it was an > attribute that w

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Jonathan M Davis via Digitalmars-d
On Friday, July 29, 2016 14:14:49 Dicebot via Digitalmars-d wrote: > On 07/29/2016 02:05 PM, Jonathan M Davis via Digitalmars-d wrote: > > On Friday, July 29, 2016 02:55:14 Walter Bright via Digitalmars-d wrote: > >> On 7/29/2016 1:34 AM, Jonathan M Davis via Digitalmars-d wrote: > >>> I've always

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Kagamin via Digitalmars-d
On Thursday, 28 July 2016 at 20:16:11 UTC, Jonathan M Davis wrote: Well, if we decided to make parens with ref legal, then we could make it work. e.g. ref(int) function(int, int) functionPointer; Now, I don't know of any other case where you'd actually use parens with ref if it were legal, bu

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Steven Schveighoffer via Digitalmars-d
On 7/29/16 12:44 AM, Timon Gehr wrote: My parser accepts the following: int function(int,int)ref functionPointer; I wasn't really aware that this was illegal in DMD. (Other function attributes, such as pure, are accepted.) In fact, even the following is disallowed: int foo(int)ref{} Should

Re: Documented unittests & code coverage

2016-07-29 Thread Steven Schveighoffer via Digitalmars-d
On 7/29/16 3:01 AM, Walter Bright wrote: On 7/28/2016 11:07 PM, Jack Stouffer wrote: you're making a decision on the user's behalf that coverage % is unimportant without knowing their circumstances. Think of it like the airspeed indicator on an airplane. There is no right or wrong airspeed. Th

Re: [OT] Re: Make D language as Apache foundation project

2016-07-29 Thread ksdflikdsjus via Digitalmars-d
On Thursday, 28 July 2016 at 09:23:09 UTC, jdfgjdf wrote: On Thursday, 28 July 2016 at 09:19:03 UTC, Jack Applegame wrote: On Wednesday, 27 July 2016 at 15:44:21 UTC, Seb wrote: http://dlang.org/foundation.html Wow. This page details Andrei's full name: Tudor Andrei Cristian Alexandrescu. (o

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Dicebot via Digitalmars-d
On 07/29/2016 02:05 PM, Jonathan M Davis via Digitalmars-d wrote: > On Friday, July 29, 2016 02:55:14 Walter Bright via Digitalmars-d wrote: >> On 7/29/2016 1:34 AM, Jonathan M Davis via Digitalmars-d wrote: >>> I've always looked at D's ref as being essentially the same as C++'s & >>> except that

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Jonathan M Davis via Digitalmars-d
On Friday, July 29, 2016 02:55:14 Walter Bright via Digitalmars-d wrote: > On 7/29/2016 1:34 AM, Jonathan M Davis via Digitalmars-d wrote: > > I've always looked at D's ref as being essentially the same as C++'s & > > except that it's not considered to be part of the type, just attached to > > it >

Re: Documented unittests & code coverage

2016-07-29 Thread Chris via Digitalmars-d
On Friday, 29 July 2016 at 07:01:35 UTC, Walter Bright wrote: On 7/28/2016 11:07 PM, Jack Stouffer wrote: you're making a decision on the user's behalf that coverage % is unimportant without knowing their circumstances. Think of it like the airspeed indicator on an airplane. There is no righ

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Walter Bright via Digitalmars-d
On 7/29/2016 1:34 AM, Jonathan M Davis via Digitalmars-d wrote: I've always looked at D's ref as being essentially the same as C++'s & except that it's not considered to be part of the type, just attached to it in a way that doesn't propagate. The same with with in or out. I just don't see how it

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Jonathan M Davis via Digitalmars-d
On Friday, July 29, 2016 09:03:18 Timon Gehr via Digitalmars-d wrote: > 'ref' has nothing to do with the type. This is not C++. > > The only thing that is inconsistent here is that 'ref' is not accepted > on the right for function declarations. ref may not be part of the type, but it just seems to

Re: Things that make writing a clean binding system more difficult

2016-07-29 Thread Timon Gehr via Digitalmars-d
On 29.07.2016 08:51, Jonathan M Davis via Digitalmars-d wrote: On Friday, July 29, 2016 08:29:19 Timon Gehr via Digitalmars-d wrote: On 29.07.2016 06:52, Jonathan M Davis via Digitalmars-d wrote: On Friday, July 29, 2016 06:44:16 Timon Gehr via Digitalmars-d wrote: My parser accepts the follow

Re: Documented unittests & code coverage

2016-07-29 Thread Walter Bright via Digitalmars-d
On 7/28/2016 11:07 PM, Jack Stouffer wrote: you're making a decision on the user's behalf that coverage % is unimportant without knowing their circumstances. Think of it like the airspeed indicator on an airplane. There is no right or wrong airspeed. The pilot reads the indicated value, interp