Grokbase
Topics Posts Groups | in
x
[ help ]

David Landgren (d...@landgren.net)

Profile | Posts (225)Page 1 of 12: 1 2 3 > >>
1) David Landgren Re: File::Path regression in 5.8.9
| +1 vote
Without looking at the code, that would be a test for a bugfix I added recently. It will be a...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Marcus Holland-Moritz wrote:
> On 2008-11-14, at 10:58:09 +0100, Marcus Holland-Moritz wrote:
>
>> Potential patch attached. I'm trying to rely on File::Spec
>> doing cross-platform things right, as I don't know how all
>> this will behave on VMS. Also, I don't know how exactly
>> this is expected to behave on platform supporting the
>> concept of volumes.
>>
>> The patch adds the test case above to t/Path.t and passes
>> all tests on Linux and Windoze.
>
> BTW, even though File::Path claims to work with 5.005_04,
> it won't run the test suite, due to excessive use of 3-arg
> open and "open my $foo", which are both unknown to 5.005.

Without looking at the code, that would be a test for a bugfix I added
recently. It will be a simple matter to revert that to the two-arg form.

I'll get this wrapped up tonight.

Thanks for the report,
David
2) David Landgren Re: This Week on perl5-porters - 9-15 March 2008
| +1 vote
Actually I do, I run podchecker. Alas, it did not consider that to be an error. One thing that...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Aristotle Pagaltzis wrote:
> Hi David,
>
> * David Landgren <david@landgren.net> [2008-03-22 18:45]:
>> New and old bugs from RT
>> =head2 Remove revision bread crumbs from short description (#48453)
>
> looks like you also want to add a POD checking step to your
> summary scripts. :-)

Actually I do, I run podchecker. Alas, it did not consider that to be an
error. One thing that annoys me at the moment at some point I upgraded
my POD tools, and now pod2text produces the blightful ``quotes'' instead
of just "quotes". Recipes to fix that gratefully received.

I fixed the problem on use.perl, but the correcting the mail message is
now quite beyond my reach.

David
3) David Landgren Re: Perl @ http://www.ccl4.org/~nick/P/perl-33444.tar.bz2
| +1 vote
You know, that would be a very good reason why it wasn't in Jerry's list in the first place. A...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Nicholas Clark wrote:
> On Fri, Mar 14, 2008 at 10:17:12PM +0100, David Landgren wrote:
>
>> File::Path 2.04 too (*pimp pimp*)
>
> Did you check? :-)

You know, that would be a very good reason why it wasn't in Jerry's list
in the first place. A commendable decision, it's very 5.8-friendly!

David
4) David Landgren Re: Perl @ http://www.ccl4.org/~nick/P/perl-33444.tar.bz2
| +1 vote
File::Path 2.04 too (*pimp pimp*)
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Jerry D. Hedden wrote:
>> I've made another 5.8.x snapshot.
>>
>> It's closing in on what 5.8.9 is going to be, give or take breakage, late
>> interesting bug fixes, and resolution of some things that aren't quite there
>>  yet
>
> What about module upgrades?
>
> Package namespace installed latest in CPAN file
> CGI 3.29 3.33 LDS/CGI.pm-3.33.tar.gz
> Cwd 3.2501 3.2701 KWILLIAMS/PathTools-3.2701.tar.gz
> ExtUtils::Command::MM          6.42      6.44
> MSCHWERN/ExtUtils-MakeMaker-6.44.tar.gz
> ExtUtils::Install 1.44 1.49 YVES/ExtUtils-Install-1.49.tar.gz
> ExtUtils::ParseXS              2.18      2.19
> KWILLIAMS/ExtUtils-ParseXS-2.19.tar.gz
> Math::Complex 1.48 1.52 JHI/Math-Complex-1.52.tar.gz
> Net::Ping 2.34 2.35 SMPETERS/Net-Ping-2.35.tar.gz
> Pod::Man 1.37 2.16 RRA/podlators-2.0.6.tar.gz
> Test::Builder 0.74 0.78 MSCHWERN/Test-Simple-0.78.tar.gz
> Test::Harness 2.64 3.10 ANDYA/Test-Harness-3.10.tar.gz
> Thread::Queue 2.00 2.06 JDHEDDEN/Thread-Queue-2.06.tar.gz
> Thread::Semaphore              2.01      2.07
> JDHEDDEN/Thread-Semaphore-2.07.tar.gz
> Time::HiRes 1.9711 1.9712 JHI/Time-HiRes-1.9712.tar.gz
> threads 1.67 1.69 JDHEDDEN/threads-1.69.tar.gz
> threads::shared                1.15      1.18
> JDHEDDEN/threads-shared-1.18.tar.gz

File::Path 2.04 too (*pimp pimp*)
5) David Landgren Re: [patch] perl.h:4076:7: warning: extra tokens at end of #else directive
| +1 vote
demerphq a écrit : I don't think it can go any further. The only remaining possibilities would be...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
demerphq a écrit :
> On 27/02/2008, Nicholas Clark <nick@ccl4.org> wrote:
>> On Wed, Feb 27, 2008 at 12:28:41AM -0700, Jim Cromie wrote:

[...]

>> (Sorry about that. At least I only have to juggle 3 different "else if"
>>  syntaxes in my head, not 4.)
>
> So the question is: just how many different else if syntaxes are there
> in our business?
>
> else if
> elsif
> elif
> elseif
> : (X) ? (should ternary elseif's count?)
>
> all come to mind, which makes 4 or 5 depending, are there any more?

I don't think it can go any further. The only remaining possibilities
would be the utterly Huffman'ed 'elf' and 'ef'. But that would be sick.

David
6) David Landgren Re: making summarising easier (was Re: [perl #51092] [PATCH] Segfault when calling ->next::method on non-existing package)
| +1 vote
I wasn't complaining, and in fact managed to finish the summary tonight. Which is just as well,...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Nicholas Clark wrote:
> On Wed, Feb 27, 2008 at 02:49:22PM +0100, David Landgren wrote:
>
>> Minor quibble (I'm way behind on sumamrising)
>
> Is there anything we can do to help this?

I wasn't complaining, and in fact managed to finish the summary tonight.
Which is just as well, because I'll be offline until Monday night.

> (Apart from writing fewer e-mails, of course.)

Yes, that would be a good idea. Starting from now, you all have an
allowance of two messages per week. Use them wisely.

David
7) David Landgren Re: UTF8 problem with Perl 5.10.0
| +1 vote
Phil Harvey a écrit : Can't you just bundle the appropriate module that fixes your problem along...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Phil Harvey a écrit :
> Thanks again to everyone who helped, I think I have an answer to my
> problem now. I'll just answer a few more questions that people had:
>
> On 21-Feb-08, at 4:02 PM, Glenn Linderman wrote:
>> Is there some reason you can't use utf8::decode and utf8::encode? Are
>> they not in 5.6.x or broken there? I only have 5.8.8 to play with at
>> present... It is so much easier to write the code when Perl knows
>> what it is...
>
> These don't exist in my 5.6.2 installation.
>
> On 21-Feb-08, at 4:07 PM, Jonathan Rockway wrote:
>>
>> According to "corelist", "bytes" was added in 5.6.0. Can you not
>> use "bytes::length"?
>
>
> Nice idea, but not feasible in my case for a number of reasons.
>
>> It's upsetting to see people resort to hacks because they can't install
>> modules. I'll never understand that, but I guess it's not really my
>> problem
>
> Many of my users do not have the ability to run "make". (My package is
> pure Perl, so it can be installed without it.)

Can't you just bundle the appropriate module that fixes your problem
along with the rest of the application? How exactly is it packaged?

David
8) David Landgren Re: [perl #51092] [PATCH] Segfault when calling ->next::method on non-existing package
| +1 vote
Minor quibble (I'm way behind on sumamrising) I thought the general movement these days was to...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Rafael Garcia-Suarez wrote:
> On 25/02/2008, Rafael Garcia-Suarez <rgarciasuarez@gmail.com> wrote:
>> Thanks for this patch. Another alternative would be probably to
>>  autovivify the package name, if possible.
>
> That's what I applied :

Minor quibble (I'm way behind on sumamrising)

> + # Test with non-existing class (used to segfault)

I thought the general movement these days was to embed the bug number in
the test

> +    eval { Qux->foo() };
> + is($@, '', "->next::can on non-existing package name");

so

is($@, '', "->next::can on non-existing package name (RT bug #51092)");

David
9) David Landgren Re: DTrace probes for bleadperl part 2
| +1 vote
Minor nit with the patch: if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) { perror("Debug leaking...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Sven Dowideit wrote:
> I've ported my additional DTrace probes to blead perl, and have attached
> a patch.
>
> This patch adds
> **new-sv and del-sv to track Perl allocations,
> **main-enter and main-exit to show what part of Perl's execution phase
> we're in
> **load-module-entry and load-module-return to instrument use, require, do.
>
> As you can see from the code in op.c, I have not worked out howto get
> all the desired information from perl yet - the staggering amount of
> TLA's is blowing this 1week old Perl hacker's mind a bit.
>
> Any tips and pointers would be appreciated - I'd like to get this merged :)

Minor nit with the patch:

@@ -647,12 +657,14 @@

   if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
       perror("Debug leaking scalars socketpair failed");
+        MAIN_EXIT_PROBE();
       abort();
   }


The perl codebase, for better or worse, contains tabs (interpreted as 8
spaces). You will improve the chance of getting this integrated (and I
think it would be great to have it in) by redoing your patch to indent
cleanly (less work for the pumpking).

Thanks,
David
10) David Landgren Re: [perl #50486] Did someting go wrong?
| +1 vote
The lag is less than an hour, give or take. If you're not a direct subscriber, yes. I just checked,...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Patrick Rutkowski (via RT) wrote:
> # New Ticket Created by  Patrick Rutkowski 
> # Please include the string:  [perl #50486]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50486 >
>
>
> I signed up for the list a little while ago and sent a message titled
> "typedef XS(foo) - fails in C++ /w 5.10.0".
>
> However, I accidentally sent it four times; the first three times I tried I
> accidentally either sent it to the wrong address (e.g.
> [email protected: perl5-porters-subs...@perl.org] instead of [email protected: perl5-po...@perl.org]) or I
> sent it *from* the wrong address (which is a result of having this annoying
> outlook at work setup with 2 email accounts, which I'm very much not used
> to).
>
> However, the last time I sent it from the right address and to the right
> address (I hope). I haven't seen the message on
> http://www.nntp.perl.org/group/perl.perl5.porters/ This raises a few
> questions, which I was hoping you could help answer:
>
> 1) Does it just normally take this long for stuff to show up on
> http://www.nntp.perl.org/group/perl.perl5.porters/ ?

The lag is less than an hour, give or take.

> 2) Does the message have to get read by a moderator first?

If you're not a direct subscriber, yes.

I just checked, and you're not subscribed to the list, at least, not
from this gmail account that you sent the message from in January.

> 3) Did I somehow get blocked from the list by sending those first 3
> erroneous messages?

In any case, it made it to the list; I remember summarising the thread :)

David
11) David Landgren Re: Making perl5 crosscompile'able
| +1 vote
In Enrico's defense, H.Merijn did zrite kurilla with two ells. Kurila doesn't have sufficient...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Andy Armstrong wrote:
> On 24 Jan 2008, at 14:29, Enrico Weigelt wrote:
>> hmm, never heared about that (neither fm nor google show up something
>> useful) ... what is it ?
>
> Your google is broken. It's the first hit for me:
>
> http://search.cpan.org/dist/kurila/
>
> (and about 70% of the other links on the first page)

In Enrico's defense, H.Merijn did zrite kurilla with two ells. Kurila
doesn't have sufficient exposure for Google to suggest "perhaps you
meant kurila?" in the presence of such a typo.

David
12) David Landgren Re: This Week on perl5-porters
| +1 vote
Thanks, fixed. I blame Ask :o) And yes, the code will now die screaming. Thanks for the spot....
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Aristotle Pagaltzis wrote:
> * David Landgren <david@landgren.net> [2008-01-05 15:40]:
>> He followed up with another patch which received a lot more attention
>> and came back with a revised version. Not yet applied.
>>
>>
>> Http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2007-12/msg00823.html
>
> Looks like the URL finder in your URL tinyfier is blinded by
> uppercase letters,

Thanks, fixed.

> * David Landgren <david@landgren.net> [2008-01-11 14:40]:
>> Rafaël killed the v-string portability warning in 5.10, declaring that
>>   it would no longer be present in 5.10.1.
>>
>>     no-one shed a tear
>> 500 Can't connect to metamark.net:80 (connect: Operation not permitted)
>
> and you probably want it to die screaming instead of silently
> replacing URLs with error messages.

I blame Ask :o)

And yes, the code will now die screaming. Thanks for the spot.
Interested parties are invited to amend local copies of the summary by
replacing the above error message with the following link

   http://xrl.us/bev6c

David "tearing hair out" Landgren
13) David Landgren Re: Change 32999: A target for sperl.i
| +1 vote
What is sperl anyway? A static build? Setuid? Thanks, DAvid ...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Jerry D. Hedden wrote:
>> Change 32999 by [email protected: nic...@nicholas-bouvard] on 2008/01/18 14:13:30
>>
>>         A target for sperl.i

What is sperl anyway? A static build? Setuid?

Thanks,
DAvid


> Something is wrong with this. It's causing 'make' to terminate right
> away with only:
>
> rm -f sperl.c
> /usr/bin/ln.exe -s perl.c sperl.c
> `sh cflags "optimize='-Os -pipe -funit-at-a-time -march=pentium4
> -mfpmath=sse -mieee-fp -mmmx -msse -msse2'" sperl.o` -DIAMSUID sperl.c
> CCCMD = gcc -DPERL_CORE -c -DPERL_PATCHNUM=33001
> -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -DPL_OP_SLAB_ALLOC
> -DNO_MATHOMS -fno-strict-aliasing -pipe -Os -pipe -funit-at-a-time
> -march=pentium4 -mfpmath=sse -mieee-fp -mmmx -msse -msse2 -Wall -W
> -Wextra -Wdeclaration-after-statement -Wendif-labels
> rm -f sperl.c
>
14) David Landgren Re: Change 32908: Upgrade to Math-Complex-1.42
| +1 vote
Does is( $got, $expected ); suffer from the same error? David
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Michael G Schwern wrote:
> Nicholas Clark wrote:
>> and then applied the appended change to the test suite. Given that it's
>> Test::More, is there any reason in general not to be using cmp_ok() rather
>> than == inside an ok()?
>
> Yes, sadly, there's a bug in cmp_ok() such that it will string/numify an
> object before comparing.
> http://rt.cpan.org/Public/Bug/Display.html?id=24186
>
> So this:
>
>  cmp_ok( $got, '==', $expected );
>
> is really this:
>
>  ok ($got + 0) == ($expected + 0);
>