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
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
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 ?
ill be wearing the losers TShirt:
https://www.dropbox.com/s/vr5cmklgjpiomgk/dconfTShirt.png
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
On 3/18/13 23:17 , Andrei Alexandrescu wrote:
I assume the printout comes on the front?
Andrei
I would say front /2¢
On 3/18/13 23:16 , Andrei Alexandrescu wrote:
We can review the design.
Andrei
Ok, game on!
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.
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
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
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
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:
>
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++
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
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
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.
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
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
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
Sorry, accidentally Ctrl+Enter sent the main post malformed. The last
link is a proof of statement #4.
--
Денис В. Шеломовский
Denis V. Shelomovskij
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.
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.
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
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
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
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
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'
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
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
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.
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
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... *
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
https://github.com/D-Programming-Language/dmd/pull/1766
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
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
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
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
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
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
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
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
I see.
I agree with Andrej Mitrovic, it's curious feature, but
misleading.
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
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
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
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
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
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? ;) )
On Sun, 17 Mar 2013 21:54:53 +
Stewart Gordon wrote:
> [...]
>
> What do other people think?
>
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
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
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
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
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
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
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
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
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
Can anyone else think of a better alternative?
Compile-time Pegged (once the CTFE mem issues are solved)
https://github.com/PhilippeSigaud/Pegged
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
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
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
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
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
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
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
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
83 matches
Mail list logo