[24140] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 6334 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Mar 30 00:05:36 2004

Date: Mon, 29 Mar 2004 21:05:05 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 29 Mar 2004     Volume: 10 Number: 6334

Today's topics:
    Re: [OT] Text editors (religious war awaits) (was  Re:  <perlcdr@mail.rumania>
        Cannot capture message from external program. (Hon Seng Phuah)
    Re: Choosing Perl/Python for my particular niche <fma@doe.carleton.ca>
    Re: Choosing Perl/Python for my particular niche <fma@doe.carleton.ca>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Tue, 30 Mar 2004 00:17:03 GMT
From: perl coder <perlcdr@mail.rumania>
Subject: Re: [OT] Text editors (religious war awaits) (was  Re: Text editor implemented in Perl)
Message-Id: <303ac.29963$fl6.4517@bignews1.bellsouth.net>

David Combs said:
> At least try a "unix style" keyboard -- one that has the
> control-key just to the left of "A".

Another option is the Kinesis Classic keyboard.  It has Ctrl and Alt
keys right undernearth your thumbs.  Oh, and Space and Enter keys are
there too.  No need to hurt the pinky. ;-)  It's very programmable
too... key remaping, macros, etc.  Good stuff.  Costs $200 though.
I got one, and hate using normal keyboards now.  Even though I'm a vim
user. ;-)


-- 
No crazy stuff in my email. ;-)


------------------------------

Date: 29 Mar 2004 17:39:35 -0800
From: hsphuah@usa.com (Hon Seng Phuah)
Subject: Cannot capture message from external program.
Message-Id: <3898598f.0403291739.52acb6e9@posting.google.com>

I have the following code:

$file_name = $_[0];
@output_result = `cvs commit -m\"\" $file_name`;
print "Here: @output_result\n";

or 

$file_name = $_[0]
open(OUTPUT, "cvs commit =m\"\" $file_name |");
@output_result = <OUTPUT>;
close(OUTPUT);
print "Here: @output_result\n";

Both code displays:

cvs commit: Examining .
Here:
Use of uninitialized value at test.pl line #.

How do I capture the output error message, "cvs commit: Examining ."
and store them into @output_message.


------------------------------

Date: 30 Mar 2004 00:28:31 GMT
From: Fred Ma <fma@doe.carleton.ca>
Subject: Re: Choosing Perl/Python for my particular niche
Message-Id: <4068BF28.3821F416@doe.carleton.ca>

Aahz wrote:
> 
> In article <40661C14.8365E058@doe.carleton.ca>,
> Fred Ma  <fma@doe.carleton.ca> wrote:
> >
> >On the topic of speed, It's surprising to hear that this can be
> >possibly rivaled by Perl/Python, considering that even my matlab code
> >is about 10x slower than C++.  That's with extensive profiling and
> >round-about coding styles to exploit vectorization tricks, and no such
> >effort in the C++ code.
> 
> The reason people say this is because algorithmic experimentation is
> cheap in Python/Perl.  An O(NlogN) algorithm in Python/Perl will lose to
> an O(N^2) algorithm in C/C++ with a few elements, but as the data set
> grows, the O(NlogN) algorithm will pull ahead.


The STL library brings in some efficiently implemented algorithms
to the C++ world instead of having programmings roll their own code.
The problem I saw with matlab was the overhead in between calling
such algorithms.  For example, all the individual built-in's work
fast, but the moment you call your own function, you lose all the
speed that was painfully obtained by carefully crafted code.  In
fact, if you rely on loops containing complex control flow, it
hinders matlab's acceleration technology (which vectorizes loop
operations).  Same with many operators.  In another response, I
mentioned that to ensure that one wouldn't run into similar
difficulties with Perl/Python would require a real-sized
application to be implemented and tested, with all the features
such as overhead between function calls -- a nontrivial task.  So
that's put off as a possibility until after graduation, since
there's more than  enough to try to achieve before then.
Anectdotal accounts are welcome, of course.  Meantime, I'm
looking at Perl/Python for mulching design data to feed various
apps (notably, my algorithms, or to adequately change verilog
files to accommodate limitations in a tool like verilator, as
an example).

Fred
-- 
Fred Ma
Dept. of Electronics, Carleton University
1125 Colonel By Drive, Ottawa, Ontario
Canada, K1S 5B6


------------------------------

Date: 30 Mar 2004 00:32:59 GMT
From: Fred Ma <fma@doe.carleton.ca>
Subject: Re: Choosing Perl/Python for my particular niche
Message-Id: <4068C03A.F5C5336E@doe.carleton.ca>

Charlton Wilbur wrote:
> 
> >>>>> "CL" == Cameron Laird <claird@lairds.com> writes:
> 
>     CL> Try 'em both briefly, choose one that makes a
>     CL> good impression, and get back to your engineering work.
>     CL> You'll be glad you upgraded to a 'P' language.
> 
> You, sir, have written a clear, fair-minded, and reasonable post.  The
> Backbone Cabal will be revoking your Usenet license shortly.
> 
> (I concur, by the way: Python has a couple of traits that would drive
> me, with close to 10 years of Perl experience, bonkers; but they don't
> drive everyone bonkers, and they obviously suit some people, or they
> wouldn't be in the language.  The OP ought to spend a couple weeks
> playing with each language and pick the one that seems to suit his
> style better.)

Well, it looks like trying them both out in the long term is in fact
what I'll be doing.  Thanks.

Fred
-- 
Fred Ma
Dept. of Electronics, Carleton University
1125 Colonel By Drive, Ottawa, Ontario
Canada, K1S 5B6


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 6334
***************************************


home help back first fref pref prev next nref lref last post