Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jozef (8299)

jozef
  (email not shown publicly)
http://jozef.kutej.net/
Jabber: jozef@kutej.net
+ -

  Journal: Bundles Packages Builds Releases Tests on 2010.08.19 10:09

Journal by jozef on 2010.08.19 10:09
User Journal

When I showed Benjamin (a college of mine) my TPF 2010Q3 grant proposal, we slipped to a discussion about deploying Perl software. Nice (and recent) list of different approaches can be found @modernperlbooks.com. To sum it up => TIMTOWTDI. Which is good, but none of those is perfect. The Perl+CPAN world is way too complex.

Read More 0 comments

+ -

  Journal: XML + XPath + GUI = Xacobeo on 2010.08.02 9:07

Journal by jozef on 2010.08.02 9:07
User Journal

Xacobeo a Perl GUI to visualize XML and perform XPath queries just entered Debian unstable - http://packages.debian.org/sid/xacobeo.

Read More 0 comments

+ -

  Journal: You just upload your application, ... on 2010.07.28 12:00

Journal by jozef on 2010.07.28 12:00
User Journal

It is amazing what happened to the Python thanks to just one company. The killer feature of that company is that they can handle and manage millions of servers and even give them for a public usage => "..., there are no servers to maintain: You just upload your application, and it's ready to serve your users.". I would like this to be true one day for Perl too!

Read More 0 comments

+ -

  Comment: Re: sub r {return if !$_[0]; r($_[0]-1); } leaktra (Score 1) on 2010.06.22 12:48

perl -MTest::LeakTrace -le 'sub r {return if !$_[0]; r($_[0]-1); } r(1); leaktrace{ r(1);};'

Hmm yes the second recursion calling is not leaking memory any more.

Read More 2 comments
Comments: 2
+ -

  Journal: sub r {return if !$_[0]; r($_[0]-1); } leaktrace{ r(1);}; on 2010.06.22 12:22

Journal by jozef on 2010.06.22 12:22
User Journal

Today @$work we discovered that even dummy recursive calling of a function is leaking memory. Here is the one-liner 10000x calling it self and returning:

perl -MEnglish -MGTop -le 'my $g=GTop->new();$m=$g->proc_mem($PID);print $m->size; sub r { return if not $_[0]; r($_[0]-1); } r(100000); $m=$g->proc_mem($PID); print $m->size;'

The output is:

7122944
34729984

Read More 2 comments
Comments: 2
+ -

  Journal: UNIX / in Strawberry %INC on 2010.06.19 9:29

Journal by jozef on 2010.06.19 9:29
User Journal

That was a surprise for me to see / in MSWin32 paths. Dump of %INC:

Read More 4 comments
Comments: 4
+ -

  Journal: Learning from StackOverflow.com on 2010.05.06 1:55

Journal by jozef on 2010.05.06 1:55
User Journal

http://www.youtube.com/watch?v=NWHfY_lvKIQ

Joel shows that StackOverflow is (||was?) running on 2 servers (+1 backup) using C# and SQL Server. Impressive :-) seek to 24:56 to see the full performance+tech table.

There is also a Perl+Perl6 mentioned in this talk, seek to 38:00 to hear the #1 thing you should never do...

Read More 0 comments

+ -

  Journal: Data::Keys on 2010.04.25 12:40

Journal by jozef on 2010.04.25 12:40
User Journal

is just a base module responsible for loading extension (Data::Keys::E::*) during the object build time. It just makes sure one of the extensions supplied get() and set() method. The rest is up to the extensions.

get() should be called with one argument a $key and return value for it. set() should be called with $key and $value arguments returning modified (if it was) $key.

So far I've created this extensions:

Read More 0 comments

+ -

  Journal: dh-make-perl --locate Foo::Bar on 2010.03.26 4:44

Journal by jozef on 2010.03.26 4:44
User Journal

I didn't know about this easy way to locate Perl modules in Debian packages.

$ dh-make-perl --locate Foo::Bar
Using cached Contents from Fri Mar 26 10:25:51 2010
Foo::Bar is not found in any Debian package

$ dh-make-perl --locate Moose::Meta::Class
Using cached Contents from Fri Mar 26 10:25:51 2010
Moose::Meta::Class is in libmoose-perl package

Read More 0 comments

+ -

  Journal: How to get a CPAN module into Debian on 2010.03.11 5:35

Journal by jozef on 2010.03.11 5:35

+ -

  Perl 5.12 for Squeeze? on 2010.03.11 5:01 jozef

Submitted by jozef on 2010.03.11 5:01
User Journal
jozef writes ""The squeeze freeze is also just around the corner AFAIK so I don't think there's much chance of 5.12 making it in. If somebody wants to step up and push for it, they should definitely talk to the release team first."

http://lists.debian.org/debian-perl/2010/03/msg00045.html

"
Read More 0 comments

+ -

  Journal: Perl 5.12 for Squeeze? on 2010.03.11 5:01

Journal by jozef on 2010.03.11 5:01
User Journal

"The squeeze freeze is also just around the corner AFAIK so I don't think there's much chance of 5.12 making it in. If somebody wants to step up and push for it, they should definitely talk to the release team first."

http://lists.debian.org/debian-perl/2010/03/msg00045.html

Read More 0 comments

+ -

  Comment: but, but ... (Score 1) on 2010.02.08 4:09

by jozef on 2010.02.08 4:09 (#71623)
Attached to: The importance of a break

But it is hard to relax when there is so much interesting things to do and to follow...

I found my self being sick with a fever for the third time this year and realized that hey this is not OK, I do need to slow down and relax. It is really important!

Read More 1 comments
Comments: 1
+ -

  Comment: Re:Wrong wrong wrong (Score 1) on 2010.01.29 4:35

by jozef on 2010.01.29 4:35 (#71605)
Attached to: Illegal character 0x1FFFF
thank you!
Read More 7 comments
Comments: 7
+ -

  Comment: Re:Wrong wrong wrong (Score 1) on 2010.01.28 13:06

by jozef on 2010.01.28 13:06 (#71600)
Attached to: Illegal character 0x1FFFF
The implementation of XML::Char is in XS code - http://cpansearch.perl.org/src/JKUTEJ/XML-Char-0.01/lib/XML/Char.xs and there is no UTF8 flag checking. In the test http://cpansearch.perl.org/src/JKUTEJ/XML-Char-0.01/t/01_XML-Char.t there are both valid and invalid strings with and without UTF8 flag.
Read More 7 comments
Comments: 7