March 15, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 3/15/2010 9:07 PM, Walter Bright wrote:
> Trass3r wrote:
>> Third issue:
>> Somebody messed up std.perf. Doesn't measure anything anymore.
>>
>
> That would be me. I failed to spot the difference between _qpc and _qtc and thought I'd "optimize" the code. Thanks for setting the code straight.
Such variable names are overly optimized. They fail to convey meaning.
|
March 15, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts |
Brad Roberts wrote:
> On 3/15/2010 9:07 PM, Walter Bright wrote:
>
>> Trass3r wrote:
>>
>>> Third issue:
>>> Somebody messed up std.perf. Doesn't measure anything anymore.
>>>
>>>
>> That would be me. I failed to spot the difference between _qpc and _qtc
>> and thought I'd "optimize" the code. Thanks for setting the code straight.
>>
>
> Such variable names are overly optimized. They fail to convey meaning.
>
>
Generally, it's a bad idea to have two variable names in the same scope that differ only in an inner letter. Letters at the beginning or end should be different. Humans often just don't see the inner letter differences.
|
March 16, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | It didn't compile :o
I've fixed it in svn.
On 15 March 2010 22:38, Walter Bright <walter at digitalmars.com> wrote:
> Yeah, I ran into that, too. I don't know what it does or how it's supposed to work, so I checked in the workaround you suggest.
>
> Don Clugston wrote:
>>
>> This is an awesome release.
>> One thing though -- the Phobos unittests don't pass. The unittest
>> around socket.d 292 fails on Windows.
>> Admittedly, the unittests failed on the previous release, too, but I
>> don't think we should do it again. At the very least we should do
>> something like:
>>
>> unittest
>> {
>> ? ? ? ?Protocol proto = new Protocol;
>> + ? ?version(Windows) ? ?{
>> + ? ? ? ?pragma(msg, " --- socket.d(" ~ __LINE__ ~ ") broken test ---");
>>
>> + ? ? ? } ? ? ? else ? ?{
>> ? ? ? ?assert(proto.getProtocolByType(ProtocolType.TCP));
>>
>>
>
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
|
March 16, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 03/15/2010 11:29 PM, Walter Bright wrote:
>
>
> Brad Roberts wrote:
>> On 3/15/2010 9:07 PM, Walter Bright wrote:
>>> Trass3r wrote:
>>>> Third issue:
>>>> Somebody messed up std.perf. Doesn't measure anything anymore.
>>>>
>>> That would be me. I failed to spot the difference between _qpc and _qtc and thought I'd "optimize" the code. Thanks for setting the code straight.
>>
>> Such variable names are overly optimized. They fail to convey meaning.
>>
>
> Generally, it's a bad idea to have two variable names in the same scope that differ only in an inner letter. Letters at the beginning or end should be different. Humans often just don't see the inner letter differences.
That's a hoax perpetrated by a chain mail with cherry picked words. Did you ever have trouble figuring "funk" out?
Andrei
|
March 16, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Mar 16, 2010, at 10:00 AM, Andrei Alexandrescu <andrei at erdani.com> wrote:
> On 03/15/2010 11:29 PM, Walter Bright wrote:
>>
>>
>> Brad Roberts wrote:
>>> On 3/15/2010 9:07 PM, Walter Bright wrote:
>>>> Trass3r wrote:
>>>>> Third issue:
>>>>> Somebody messed up std.perf. Doesn't measure anything anymore.
>>>>>
>>>> That would be me. I failed to spot the difference between _qpc
>>>> and _qtc
>>>> and thought I'd "optimize" the code. Thanks for setting the code
>>>> straight.
>>>
>>> Such variable names are overly optimized. They fail to convey meaning.
>>>
>>
>> Generally, it's a bad idea to have two variable names in the same
>> scope
>> that differ only in an inner letter. Letters at the beginning or end
>> should be different. Humans often just don't see the inner letter
>> differences.
>
> That's a hoax perpetrated by a chain mail with cherry picked words. Did you ever have trouble figuring "funk" out?
>
> Andrei
It's not a hoax, we all do it. The longer the word, the easier it is to skip the middle or overlook minor errors. The whole need for a spell checker with undefined symbols is proof of that! Sometimes I resolve those through copy and paste because I don't see a difference.
|
March 16, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Just to recap what has been discussed elsewhere, this beta version still has bugs with array appending. Those bugs have been fixed in trunk and should be incorporated in this release. -Steve ----- Original Message ---- > From: Walter Bright <walter at digitalmars.com> > To: Discuss the dmd beta releases for D <dmd-beta at puremagic.com> > Sent: Sun, March 14, 2010 5:12:50 PM > Subject: [dmd-beta] beta for dmd 2.042 > > Update to fix: http://www.digitalmars.com/d/archives/digitalmars/D/announce/Do_not_use_2.041_17841.html http://d.puremagic.com/issues/show_bug.cgi?id=3930 You > can download the software as a zip file from: http://download.digitalmars.com/dmd2beta.zip userid: > customer passwd: > download7 _______________________________________________ dmd-beta mailing > list > href="mailto:dmd-beta at puremagic.com">dmd-beta at puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
March 16, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Schveighoffer | Thanks, will do. You're right that this is an absolutely critical bug to fix.
Steve Schveighoffer wrote:
> Just to recap what has been discussed elsewhere, this beta version still has bugs with array appending.
>
> Those bugs have been fixed in trunk and should be incorporated in this release.
>
> -Steve
>
>
>
> ----- Original Message ----
>
>> From: Walter Bright <walter at digitalmars.com>
>> To: Discuss the dmd beta releases for D <dmd-beta at puremagic.com>
>> Sent: Sun, March 14, 2010 5:12:50 PM
>> Subject: [dmd-beta] beta for dmd 2.042
>>
>> Update to
>> fix:
>>
>
> http://www.digitalmars.com/d/archives/digitalmars/D/announce/Do_not_use_2.041_17841.html http://d.puremagic.com/issues/show_bug.cgi?id=3930
>
> You
>
>> can download the software as a zip file
>> from:
>>
>
>
> http://download.digitalmars.com/dmd2beta.zip
> userid:
>
>> customer
>>
> passwd:
>
>> download7
>>
> _______________________________________________
> dmd-beta mailing
>
>> list
>>
>
>
>> href="mailto:dmd-beta at puremagic.com">dmd-beta at puremagic.com
>>
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
>
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
>
|
March 16, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Schveighoffer | Works on the small experiment, starting trial against the 5.76M files.
Andrei
On 03/16/2010 04:54 PM, Steve Schveighoffer wrote:
> Just to recap what has been discussed elsewhere, this beta version still has bugs with array appending.
>
> Those bugs have been fixed in trunk and should be incorporated in this release.
>
> -Steve
>
>
>
> ----- Original Message ----
>> From: Walter Bright<walter at digitalmars.com>
>> To: Discuss the dmd beta releases for D<dmd-beta at puremagic.com>
>> Sent: Sun, March 14, 2010 5:12:50 PM
>> Subject: [dmd-beta] beta for dmd 2.042
>>
>> Update to
>> fix:
>
> http://www.digitalmars.com/d/archives/digitalmars/D/announce/Do_not_use_2.041_17841.html http://d.puremagic.com/issues/show_bug.cgi?id=3930
>
> You
>> can download the software as a zip file
>> from:
>
>
> http://download.digitalmars.com/dmd2beta.zip
> userid:
>> customer
> passwd:
>> download7
> _______________________________________________
> dmd-beta mailing
>> list
>
>> href="mailto:dmd-beta at puremagic.com">dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
>
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
|
March 17, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 17/03/10 03:00, Andrei Alexandrescu wrote:
> On 03/15/2010 11:29 PM, Walter Bright wrote:
>>
>>
>> Brad Roberts wrote:
>>> On 3/15/2010 9:07 PM, Walter Bright wrote:
>>>> Trass3r wrote:
>>>>> Third issue:
>>>>> Somebody messed up std.perf. Doesn't measure anything anymore.
>>>>>
>>>> That would be me. I failed to spot the difference between _qpc and
>>>> _qtc
>>>> and thought I'd "optimize" the code. Thanks for setting the code
>>>> straight.
>>>
>>> Such variable names are overly optimized. They fail to convey meaning.
>>>
>>
>> Generally, it's a bad idea to have two variable names in the same scope that differ only in an inner letter. Letters at the beginning or end should be different. Humans often just don't see the inner letter differences.
>
> That's a hoax perpetrated by a chain mail with cherry picked words. Did you ever have trouble figuring "funk" out?
>
> Andrei
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
I tihnk you are crorcet. Tehse mdlide ltetres are vrey ipmornatt!
|
March 16, 2010 [dmd-beta] beta for dmd 2.042 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bernard Helyer | Bernard Helyer wrote:
> On 17/03/10 03:00, Andrei Alexandrescu wrote:
>> [...]
>> That's a hoax perpetrated by a chain mail with cherry picked words.
>> Did you ever have trouble figuring "funk" out?
>>
>> Andrei
>
> I tihnk you are crorcet. Tehse mdlide ltetres are vrey ipmornatt!
Which proves that we don't "ignore" the middle letters, per se; but rather, it is easier to reconstruct them. Which, of course, means that our brains are willing to play fast and loose with what we see in order to fit what we expect. And that is the real problem, because Walter saw exactly what he expected to see, rather than failed to see what was actually there. If Walter were as dumb as a CCD, he would have no problems seeing accurately, but he would then write really crappy code. Can't have it all, I guess.
Dave
|
Copyright © 1999-2021 by the D Language Foundation