Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Jonathan M Davis
On Tuesday, March 19, 2013 02:17:28 Peter Williams wrote: > Am I right in thinking that removal of these methods from Object > will mean that it will no longer be necessary for the the > argument to be of type Object and that the need for casting in > the implementation will go away? Well, IIRC, i

Re: T-shirt design

2013-03-18 Thread Joshua Niehus
On Tuesday, 19 March 2013 at 05:02:36 UTC, deadalnix wrote: I like it as well. Did you printed it already ? not yet, i was mocking up the design (after some feedback*) on a custom t-shirt website. I'll probably order it next week or so; wear it around for humor's sake. * can't believe peopl

Re: T-shirt design

2013-03-18 Thread deadalnix
On Tuesday, 19 March 2013 at 03:29:08 UTC, Joshua Niehus wrote: ill be wearing the losers TShirt: https://www.dropbox.com/s/vr5cmklgjpiomgk/dconfTShirt.png I like it as well. Did you printed it already ?

Re: T-shirt design

2013-03-18 Thread Joshua Niehus
ill be wearing the losers TShirt: https://www.dropbox.com/s/vr5cmklgjpiomgk/dconfTShirt.png

Re: T-shirt design

2013-03-18 Thread deadalnix
On Monday, 18 March 2013 at 22:17:05 UTC, Andrei Alexandrescu wrote: On 3/18/13 4:57 PM, kraybit wrote: On 3/18/13 20:31 , H. S. Teoh wrote: I don't like it. It's non-obvious what it's supposed to represent at first glance. Is it possible to change the orientation of Phobos and the highligh

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Stewart Gordon
On 19/03/2013 01:17, Peter Williams wrote: Am I right in thinking that removal of these methods from Object will mean that it will no longer be necessary for the the argument to be of type Object Yes, and that's indeed a potentially good reason to remove opCmp and opEquals from Object, and on

Online D course on coursera/udacity/etc?

2013-03-18 Thread Andrei Alexandrescu
Hello, Online courses are becoming quite popular. A D course on one of the up-and-coming online course sites would be great. If anyone would want to do such a course (e.g. derived from TDPL), chime in here with ideas. Thanks, Andrei

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Jonathan M Davis
On Tuesday, March 19, 2013 01:31:23 Stewart Gordon wrote: > What I'm suggesting may be inefficient in complicated cases, but that's > different from being impossible, which is what you're basically saying. It _is_ impossible if it's in the type, because you can't modify const. Sure, in same cases

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Stewart Gordon
On 19/03/2013 00:46, Jonathan M Davis wrote: On Tuesday, March 19, 2013 00:26:40 Stewart Gordon wrote: Why can't it be used as a means of lazy initialization? Because if one of the member variables hasn't been initialized yet, then it can't be compared. You miss the whole point of what I'm

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Peter Williams
On Monday, 18 March 2013 at 01:05:25 UTC, Jonathan M Davis wrote: On Monday, March 18, 2013 00:53:52 Stewart Gordon wrote: Why would some class want to implement these methods in a way that alters the object? Because const in D is physical const, not logical const. So, for instance, const pr

Re: "Optlink is on github"? No, it's just a mean joke from Walter!

2013-03-18 Thread Walter Bright
On 3/18/2013 3:34 PM, Denis Shelomovskij wrote: 1. DM C++ compiler source is required to build Optlink. 2. C++ compiler is not open-source. 3. You can not build Optlink. 4. Walter isn't going to change anything 1. "Optlink is on github" announce Ready for review: new std.uni http://forum.dlang

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Jonathan M Davis
On Tuesday, March 19, 2013 00:26:40 Stewart Gordon wrote: > On 18/03/2013 23:06, Jonathan M Davis wrote: > > On Monday, March 18, 2013 22:11:49 Stewart Gordon wrote: > > > >> Look up std.functional.memoize. > > > > It doesn't work with pure as it forces you to put state outside of the > > object

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Walter Bright
On 3/18/2013 5:33 PM, Brad Roberts wrote: A super critical part of tests that involve networking.. make sure you're pointing at resources that you own. Pointing at even a popular site that you're sure can handle the load, is just rude. The auto-tester currently runs the full build/test cycle a

Re: Policy on trackers in Bugzilla revisited

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 22:27:44 Stewart Gordon wrote: > On 18/03/2013 18:10, Jonathan M Davis wrote: > > > > Walter and Brad Roberts are both very much against them, favoring keywords > > for keeping track of related bugs. It was recently discussed in the > > druntime > > newsgroup: > Uh, that

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Stewart Gordon
On 19/03/2013 00:19, Jakob Ovrum wrote: It's worth noting that including a standard interface (as in the interface keyword) for stuff like Comparable, Hashable etc. is a possibility that can be explored to enable runtime polymorphism akin to the current Object for programs that need it. Either w

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Stewart Gordon
On 18/03/2013 23:06, Jonathan M Davis wrote: On Monday, March 18, 2013 22:11:49 Stewart Gordon wrote: Look up std.functional.memoize. It doesn't work with pure as it forces you to put state outside of the object, and it's only applicable to caching, not lazy initialization. Why can't it be

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Brad Roberts
A super critical part of tests that involve networking.. make sure you're pointing at resources that you own. Pointing at even a popular site that you're sure can handle the load, is just rude. The auto-tester currently runs the full build/test cycle a little over 1200 times a day these days,

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Jakob Ovrum
On Monday, 18 March 2013 at 01:05:25 UTC, Jonathan M Davis wrote: So, once all of those functions are removed from Object, derived types can then define them with whatever attributes they want. The only thing you lose is the ability to compare Objects directly, which is not necessary in D and i

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/18/13 23:50 , Iain Buclaw wrote: If it were a tour shirt, on the back would be the list of all speakers + times. ;) Intriguing. Tshirt mockup (Megadeath tour) https://www.dropbox.com/s/9ubjpbhdgvq3elp/tshirt_4a.png Tshirt mockup (Mötörhead tour) https://www.dropbox.com/s/rk95qla7z4nsi8

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Walter Bright
On 3/18/2013 4:08 PM, Jonathan M Davis wrote: The normal thing to do with unit tests when you want to have them enabled on part of the time is to use a version block. And you have to recompile whenever you make changes anyway, so I wouldn't expect it to be a big deal in general. Also, a unittes

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/18/13 23:17 , Andrei Alexandrescu wrote: I assume the printout comes on the front? Andrei I would say front /2¢

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/18/13 23:16 , Andrei Alexandrescu wrote: We can review the design. Andrei Ok, game on!

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/18/13 23:17 , Andrei Alexandrescu wrote: BTW questions: What should be the T-shirt color? I assume the printout comes on the front? Andrei The mockups were black because it blends with the star sky, at glance making the entire tshirt look like a star sky. But anything goes, of course.

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 23:58:59 Jonas Drewsen wrote: > On Monday, 18 March 2013 at 22:06:55 UTC, Walter Bright wrote: > > On 3/18/2013 2:09 PM, Jonas Drewsen wrote: > >> Please note that std.net.curl needs to have > >> PHOBOS_TEST_ALLOW_NET env variable > >> defined or else it will early out on

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 22:11:49 Stewart Gordon wrote: > On 18/03/2013 01:05, Jonathan M Davis wrote: > > On Monday, March 18, 2013 00:53:52 Stewart Gordon wrote: > >> Why would some class want to implement these methods in a way that alters > >> the object? > > > > Because const in D is physica

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 23:44:15 Martin Nowak wrote: > On 03/18/2013 09:30 PM, Jonathan M Davis wrote: > >>> Can someone look into std.file's unittests. They use 60% (32s/50s) of > >>> > >>> > >>the unittest RUNtime on my machine. > >> > > > >> > >My first guess would be that you're running a di

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 22:13:36 monarch_dodra wrote: > On Monday, 18 March 2013 at 20:30:32 UTC, Jonathan M Davis wrote: > > On Monday, March 18, 2013 12:09:47 Walter Bright wrote: > >> On 3/18/2013 11:12 AM, Jonathan M Davis wrote: > >> > On Monday, March 18, 2013 17:34:12 Martin Nowak wrote: >

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 23:53:05 Timon Gehr wrote: > On 03/18/2013 11:11 PM, Stewart Gordon wrote: > > ... > > > > But the drawback of this approach (compared with making Object > > const-correct) is that some library programmers will (continue to) > > neglect const-correctness > > That's a C++

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jonas Drewsen
On Monday, 18 March 2013 at 22:06:55 UTC, Walter Bright wrote: On 3/18/2013 2:09 PM, Jonas Drewsen wrote: Please note that std.net.curl needs to have PHOBOS_TEST_ALLOW_NET env variable defined or else it will early out on most unittests. I guess that will increase the coverage from 2 to someth

Re: One case of array assignments

2013-03-18 Thread Timon Gehr
On 03/18/2013 11:52 PM, monarch_dodra wrote: On Monday, 18 March 2013 at 22:33:17 UTC, Timon Gehr wrote: On 03/18/2013 10:45 PM, monarch_dodra wrote: ... ubyte[4096] x = repeat( cast(ubyte)0 )[ 0 .. 4096 ].array(); This can be used as-is inside normal code. Hwoever, array is not CTFE-able, so

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Timon Gehr
On 03/18/2013 11:11 PM, Stewart Gordon wrote: ... But the drawback of this approach (compared with making Object const-correct) is that some library programmers will (continue to) neglect const-correctness That's a C++ term and it is not applicable to D.

Re: One case of array assignments

2013-03-18 Thread monarch_dodra
On Monday, 18 March 2013 at 22:33:17 UTC, Timon Gehr wrote: On 03/18/2013 10:45 PM, monarch_dodra wrote: ... ubyte[4096] x = repeat( cast(ubyte)0 )[ 0 .. 4096 ].array(); This can be used as-is inside normal code. Hwoever, array is not CTFE-able, so it can't work to define a struct T.init val

Re: T-shirt design

2013-03-18 Thread Iain Buclaw
On 18 March 2013 22:17, Andrei Alexandrescu wrote: > On 3/18/13 4:57 PM, kraybit wrote: > >> On 3/18/13 20:31 , H. S. Teoh wrote: >> >>> >>> I don't like it. It's non-obvious what it's supposed to represent at >>> first glance. Is it possible to change the orientation of Phobos and the >>> highlig

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Martin Nowak
On 03/18/2013 09:30 PM, Jonathan M Davis wrote: Can someone look into std.file's unittests. They use 60% (32s/50s) of > >>the unittest RUNtime on my machine. > > > >My first guess would be that you're running a different OS from Walter and > >that OS-specific code counts as not being run when yo

Re: "Optlink is on github"? No, it's just a mean joke from Walter!

2013-03-18 Thread Denis Shelomovskij
Sorry, accidentally Ctrl+Enter sent the main post malformed. The last link is a proof of statement #4. -- Денис В. Шеломовский Denis V. Shelomovskij

Re: One case of array assignments

2013-03-18 Thread Timon Gehr
On 03/18/2013 10:45 PM, monarch_dodra wrote: ... ubyte[4096] x = repeat( cast(ubyte)0 )[ 0 .. 4096 ].array(); This can be used as-is inside normal code. Hwoever, array is not CTFE-able, so it can't work to define a struct T.init value. Which is annoying and should be fixed.

Re: Policy on trackers in Bugzilla revisited

2013-03-18 Thread Stewart Gordon
On 18/03/2013 18:10, Jonathan M Davis wrote: Walter and Brad Roberts are both very much against them, favoring keywords for keeping track of related bugs. It was recently discussed in the druntime newsgroup: Uh, that doesn't seem to be a newsgroup for some obscure reason. http://forum.dlang.

Re: DConf 2013 Call for Submissions: deadline on January 28

2013-03-18 Thread Martin Nowak
On 01/20/2013 01:31 PM, Robert BuRnEr Schadek wrote: On 01/17/2013 01:45 PM, dennis luehring wrote: maybe Robert Schadek is available to speak about his "Distributed Multithreading Caching D Compiler" http://www.svs.informatik.uni-oldenburg.de/download/thesis/robert_schadek_dmcd.pdf I alread

Re: T-shirt design

2013-03-18 Thread Andrei Alexandrescu
On 3/18/13 4:57 PM, kraybit wrote: On 3/18/13 20:31 , H. S. Teoh wrote: I don't like it. It's non-obvious what it's supposed to represent at first glance. Is it possible to change the orientation of Phobos and the highlights so that it's more obvious that it's depicting an irregularly-shaped mo

Re: T-shirt design

2013-03-18 Thread Andrei Alexandrescu
On 3/18/13 4:57 PM, kraybit wrote: On 3/18/13 20:31 , H. S. Teoh wrote: I don't like it. It's non-obvious what it's supposed to represent at first glance. Is it possible to change the orientation of Phobos and the highlights so that it's more obvious that it's depicting an irregularly-shaped mo

Re: Policy on trackers in Bugzilla revisited

2013-03-18 Thread Stewart Gordon
On 18/03/2013 15:56, Don wrote: On Sunday, 17 March 2013 at 21:54:54 UTC, Stewart Gordon wrote: However, since that time, two or three people have been killing off random trackers, seemingly because they personally don't like the concept. No, because the bugs in question were junk. That you

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Stewart Gordon
On 18/03/2013 01:05, Jonathan M Davis wrote: On Monday, March 18, 2013 00:53:52 Stewart Gordon wrote: Why would some class want to implement these methods in a way that alters the object? Because const in D is physical const, not logical const. So, for instance, const prevents caching. And it'

Re: One case of array assignments

2013-03-18 Thread monarch_dodra
On Monday, 18 March 2013 at 21:50:30 UTC, John Colvin wrote: On Monday, 18 March 2013 at 21:45:55 UTC, monarch_dodra wrote: The downside here is that this requires run-time initialization. Is the normal syntax compile time actually? Incorrect dimensions for initialisation of a static arra

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Walter Bright
On 3/18/2013 2:09 PM, Jonas Drewsen wrote: Please note that std.net.curl needs to have PHOBOS_TEST_ALLOW_NET env variable defined or else it will early out on most unittests. I guess that will increase the coverage from 2 to something more sane. Perhaps that should be a -version=TEST_ALLOW_NET

Re: One case of array assignments

2013-03-18 Thread John Colvin
On Monday, 18 March 2013 at 21:45:55 UTC, monarch_dodra wrote: The downside here is that this requires run-time initialization. Is the normal syntax compile time actually? Incorrect dimensions for initialisation of a static array is a runtime error, so i suspect it's not.

Re: One case of array assignments

2013-03-18 Thread monarch_dodra
On Monday, 18 March 2013 at 21:35:43 UTC, Chris Nicholson-Sauls wrote: On Thursday, 14 March 2013 at 01:34:02 UTC, Marco Leise wrote: Am Wed, 13 Mar 2013 14:31:42 -0700 schrieb "H. S. Teoh" : Why is it bad to have to explicitly list the elements for static initialization? Because of: struc

Re: One case of array assignments

2013-03-18 Thread Chris Nicholson-Sauls
On Thursday, 14 March 2013 at 01:34:02 UTC, Marco Leise wrote: Am Wed, 13 Mar 2013 14:31:42 -0700 schrieb "H. S. Teoh" : Why is it bad to have to explicitly list the elements for static initialization? Because of: struct CompressionData { ubyte[4096] x = [0,0,0 /* ...ad nauseum... *

Re: Help with a DMD patch

2013-03-18 Thread Vladimir Panteleev
On Monday, 18 March 2013 at 21:10:15 UTC, Martin Nowak wrote: On 03/17/2013 03:35 AM, Daniel Murphy wrote: Not really the easiest part of dmd to hack on Yeah, that's why I wished more of this would move to druntime, but the current solution to stuff everything into object.di doesn't scal

Re: Help with a DMD patch

2013-03-18 Thread Vladimir Panteleev
https://github.com/D-Programming-Language/dmd/pull/1766

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread monarch_dodra
On Monday, 18 March 2013 at 20:30:32 UTC, Jonathan M Davis wrote: On Monday, March 18, 2013 12:09:47 Walter Bright wrote: On 3/18/2013 11:12 AM, Jonathan M Davis wrote: > On Monday, March 18, 2013 17:34:12 Martin Nowak wrote: >> Can someone look into std.file's unittests. They use 60% >> (32s/5

Re: Help with a DMD patch

2013-03-18 Thread Martin Nowak
On 03/17/2013 03:35 AM, Daniel Murphy wrote: Not really the easiest part of dmd to hack on Yeah, that's why I wished more of this would move to druntime, but the current solution to stuff everything into object.di doesn't scale too well. Looking at "a[] = b[]" => memcpy might help. https

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jonas Drewsen
Please note that std.net.curl needs to have PHOBOS_TEST_ALLOW_NET env variable defined or else it will early out on most unittests. I guess that will increase the coverage from 2 to something more sane. -Jonas $(DMD) -cov=2 -unittest -main -run std\net\curl.d

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/18/13 20:31 , H. S. Teoh wrote: I don't like it. It's non-obvious what it's supposed to represent at first glance. Is it possible to change the orientation of Phobos and the highlights so that it's more obvious that it's depicting an irregularly-shaped moon? Tshirt mockup (Less dramatic

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 12:09:47 Walter Bright wrote: > On 3/18/2013 11:12 AM, Jonathan M Davis wrote: > > On Monday, March 18, 2013 17:34:12 Martin Nowak wrote: > >> Can someone look into std.file's unittests. They use 60% (32s/50s) of > >> the unittest RUNtime on my machine. > > > > My first g

Re: T-shirt design

2013-03-18 Thread H. S. Teoh
On Mon, Mar 18, 2013 at 10:10:43PM +0300, Max Klyga wrote: > On 2013-03-18 11:30:59 +, kraybit said: > > >On 3/16/13 07:29 , deadalnix wrote: > >>I think that one is really great. Phobos has a very typical shape, which > >>isn't used in the graphic. Maybe it should. > > > >Tshirt mockup (Phobo

Re: T-shirt design

2013-03-18 Thread Max Klyga
On 2013-03-18 11:30:59 +, kraybit said: On 3/16/13 07:29 , deadalnix wrote: I think that one is really great. Phobos has a very typical shape, which isn't used in the graphic. Maybe it should. Tshirt mockup (Phobos somewhat closer to reality) https://www.dropbox.com/s/jz9psoaq3zs9tq8/tshi

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Walter Bright
On 3/18/2013 11:12 AM, Jonathan M Davis wrote: On Monday, March 18, 2013 17:34:12 Martin Nowak wrote: Can someone look into std.file's unittests. They use 60% (32s/50s) of the unittest RUNtime on my machine. My first guess would be that you're running a different OS from Walter and that OS-spe

Re: static property without return type

2013-03-18 Thread Michael
I see. I agree with Andrej Mitrovic, it's curious feature, but misleading.

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jonathan M Davis
On Monday, March 18, 2013 17:34:12 Martin Nowak wrote: > On 03/18/2013 02:00 AM, Walter Bright wrote: > > From now on, I'd like such unittest coverage (and justification for low > > > > coverage) to be part of the minimum standard for all new phobos modules. > > Great. > > > $(DMD) -cov=83 -unit

Re: Policy on trackers in Bugzilla revisited

2013-03-18 Thread Jonathan M Davis
On Sunday, March 17, 2013 21:54:53 Stewart Gordon wrote: > There seems to be disagreement between various users on the propriety of > trackers. These are bug reports that don't describe a single bug, nor a > feature request, but are used to group together related issues. > > Trackers (also known a

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Martin Nowak
On 03/18/2013 02:00 AM, Walter Bright wrote: From now on, I'd like such unittest coverage (and justification for low coverage) to be part of the minimum standard for all new phobos modules. Great. $(DMD) -cov=83 -unittest -main -run std\file.d Can someone look into std.file's unittests. T

Re: Policy on trackers in Bugzilla revisited

2013-03-18 Thread Don
On Sunday, 17 March 2013 at 21:54:54 UTC, Stewart Gordon wrote: However, since that time, two or three people have been killing off random trackers, seemingly because they personally don't like the concept. No, because the bugs in question were junk. Junk bugs get killed all the time (eg, bug

Re: Help with a DMD patch

2013-03-18 Thread Vladimir Panteleev
On Saturday, 16 March 2013 at 18:15:06 UTC, Vladimir Panteleev wrote: Could a DMD guru have a look and tell me what I'm doing wrong? Gaaah! My test program doesn't compile even without my patches! I was fighting against pre-existing bugs in DMD... Even more embarrassing, is that I had found a

Re: Policy on trackers in Bugzilla revisited

2013-03-18 Thread Nick Sabalausky
On Sun, 17 Mar 2013 21:54:53 + Stewart Gordon wrote: > [...] > > What do other people think? > Agree. I'm surprised to hear people are closing them. (What is this, StackOverflow? ;) )

Re: Policy on trackers in Bugzilla revisited

2013-03-18 Thread Nick Sabalausky
On Sun, 17 Mar 2013 21:54:53 + Stewart Gordon wrote: > [...] > > What do other people think? >

Re: T-shirt design

2013-03-18 Thread Andrei Alexandrescu
On 3/18/13 7:10 AM, kraybit wrote: On 3/15/13 22:07 , Andrei Alexandrescu wrote: Love this, and the tiny Earth is a good easter egg. Should I send it to the Facebook folks for production? Andrei Cool! Hires/vector versions. Email me if problems. Decal hires-PNG with alpha https://www.dropbo

Re: T-shirt design

2013-03-18 Thread deadalnix
On Monday, 18 March 2013 at 11:41:29 UTC, kraybit wrote: On 3/16/13 17:52 , Manu wrote: Work the term 'curious' (curiosity) into it somewhere? ;) *cough* Tshirt mockup (curiosity joins the party) https://www.dropbox.com/s/ekid6js4xzm6za7/tshirt_3d.png I'm not sure this is a good idea to kee

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/16/13 17:52 , Manu wrote: Work the term 'curious' (curiosity) into it somewhere? ;) *cough* Tshirt mockup (curiosity joins the party) https://www.dropbox.com/s/ekid6js4xzm6za7/tshirt_3d.png

Re: T-shirt design

2013-03-18 Thread deadalnix
On Monday, 18 March 2013 at 11:31:00 UTC, kraybit wrote: On 3/16/13 07:29 , deadalnix wrote: I think that one is really great. Phobos has a very typical shape, which isn't used in the graphic. Maybe it should. Tshirt mockup (Phobos somewhat closer to reality) https://www.dropbox.com/s/jz9psoa

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/16/13 07:29 , deadalnix wrote: I think that one is really great. Phobos has a very typical shape, which isn't used in the graphic. Maybe it should. Tshirt mockup (Phobos somewhat closer to reality) https://www.dropbox.com/s/jz9psoaq3zs9tq8/tshirt_3c.png /k

Re: T-shirt design

2013-03-18 Thread deadalnix
On Monday, 18 March 2013 at 11:16:28 UTC, kraybit wrote: On 3/16/13 24:32 , Jesse Phillips wrote: On Friday, 15 March 2013 at 21:30:46 UTC, Miles Stoudenmire wrote: I want to second Steven's suggestion that the code have a template instantiation in it. auto event = menlo!park(2013); ? I lik

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/16/13 24:32 , Jesse Phillips wrote: On Friday, 15 March 2013 at 21:30:46 UTC, Miles Stoudenmire wrote: I want to second Steven's suggestion that the code have a template instantiation in it. auto event = menlo!park(2013); ? I like the one suggested in another shirt, but maybe the duplica

Re: T-shirt design

2013-03-18 Thread kraybit
On 3/15/13 22:07 , Andrei Alexandrescu wrote: Love this, and the tiny Earth is a good easter egg. Should I send it to the Facebook folks for production? Andrei Cool! Hires/vector versions. Email me if problems. Decal hires-PNG with alpha https://www.dropbox.com/s/bbxdelp6ei7jm9w/tshirt_3a_de

Re: Linq and the like

2013-03-18 Thread bls
On Monday, 18 March 2013 at 10:47:35 UTC, bls wrote: Can anyone else think of a better alternative? Compile-time Pegged (once the CTFE mem issues are solved) https://github.com/PhilippeSigaud/Pegged I have to add that in Nemerle Linq is implemented using PEG Macros. Same is valid for DBC

Re: Linq and the like

2013-03-18 Thread bls
Can anyone else think of a better alternative? Compile-time Pegged (once the CTFE mem issues are solved) https://github.com/PhilippeSigaud/Pegged

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread bearophile
Jacob Carlborg: How do you get the percentage, with the standard -cov switch? If you use -cov it writes the coverage percentage at the end. Bye, bearophile

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jacob Carlborg
On 2013-03-18 11:09, David Nadlinger wrote: Executing the program fails (non-zero exit code) if the coverage is less than the specified percentage. Aha, I see. How do you get the percentage, with the standard -cov switch? -- /Jacob Carlborg

Re: Why are opEquals/opCmp arguments not in or const for Objects?

2013-03-18 Thread Paulo Pinto
On Monday, 18 March 2013 at 01:05:25 UTC, Jonathan M Davis wrote: On Monday, March 18, 2013 00:53:52 Stewart Gordon wrote: Why would some class want to implement these methods in a way that alters the object? Because const in D is physical const, not logical const. So, for instance, const pr

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread David Nadlinger
On Monday, 18 March 2013 at 09:48:11 UTC, Jacob Carlborg wrote: On 2013-03-18 02:00, Walter Bright wrote: With the new -cov=nnn (not pulled yet) and -main, we can now add to the build process a minimum bar for unit test coverage. What are these switches for? Executing the program fails (non

Re: Linq and the like

2013-03-18 Thread Jacob Carlborg
On 2013-03-18 01:03, Kapps wrote: This thread was posted 5 years ago. :P It just got bumped up today. As for the implementation of lambdas to generate SQL queries and the like, there was a pull request for a __traits(codeof) that could have been used to do such a thing. Unfortunately, there we

Re: Raising the bar on Phobos unittest coverage

2013-03-18 Thread Jacob Carlborg
On 2013-03-18 02:00, Walter Bright wrote: With the new -cov=nnn (not pulled yet) and -main, we can now add to the build process a minimum bar for unit test coverage. What are these switches for? -- /Jacob Carlborg

Re: static property without return type

2013-03-18 Thread Peter Alexander
On Sunday, 17 March 2013 at 22:11:27 UTC, Andrej Mitrovic wrote: On 3/17/13, Artur Skawina wrote: That's because "auto ref" is a hack. IOW "auto ref" != "auto" + "ref", just as "static if" != "static" + "if". Both auto and auto ref are documented features, type inference with any storage

Re: Linq and the like

2013-03-18 Thread Paulo Pinto
On Sunday, 3 February 2008 at 12:25:17 UTC, Michiel Helvensteijn wrote: bearophile wrote: LINQ (and its future parallel extensions), with its additional syntax, may be a good thing to add to D: http://www.moserware.com/2008/02/for-loops-using-i-i-enumerators-or-none.html You can use the sa