Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Perl -> Python hopeless?

Reply
Thread Tools

Perl -> Python hopeless?

 
 
Helmut Jarausch
Guest
Posts: n/a
 
      07-18-2003
Hi,
having been a Perl fan for years I have nearly converted to Python.
Still, there are LOTS and very good modules written in Perl.

Is there a tool to lesson the burdon of translation of Perl to Python?
I am completely aware of the fact that a fully automatic translation
to readable Python source is hard if not impossible.
But such a tool could lots of the tedious work like replacing
braces by proper indentation and and similar things.

Thanks for a pointer (if there is one)

--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany

 
Reply With Quote
 
 
 
 
Max Khesin
Guest
Posts: n/a
 
      07-18-2003
Answer: I think they are working on somethig that will allow perl lib usage
in python.
Question: Can someone in the know drop a line?

--
========================================
Max Khesin, software developer -

[check out our image compression software at www.cvisiontech.com, JBIG2-PDF
compression @
www.cvisiontech.com/cvistapdf.html]


"Helmut Jarausch" <> wrote in message
news:3f182c9a$0$276$ e...
> Hi,
> having been a Perl fan for years I have nearly converted to Python.
> Still, there are LOTS and very good modules written in Perl.
>
> Is there a tool to lesson the burdon of translation of Perl to Python?
> I am completely aware of the fact that a fully automatic translation
> to readable Python source is hard if not impossible.
> But such a tool could lots of the tedious work like replacing
> braces by proper indentation and and similar things.
>
> Thanks for a pointer (if there is one)
>
> --
> Helmut Jarausch
>
> Lehrstuhl fuer Numerische Mathematik
> RWTH - Aachen University
> D 52056 Aachen, Germany
>



 
Reply With Quote
 
 
 
 
Mike Rovner
Guest
Posts: n/a
 
      07-18-2003
"Helmut Jarausch" <> wrote in message news:3f182c9a$0$276

> having been a Perl fan for years I have nearly converted to Python.


I went the same way, happy with python now and never looked back.

> Still, there are LOTS and very good modules written in Perl.
> Is there a tool to lesson the burdon of translation of Perl to Python?


IMHO language differences leads to different style and I found that
rewriting is better than semi-automatic translation.

I had a project first implemented in perl, than rewrote in python.
Some idioms are completely different, for ex. code blocks in perl are
natural, classes are not.
OTOH classes are natural in python and no unnamed code blocks exists.
The list may be continued on and on.

Just .02

Mike




 
Reply With Quote
 
Hartmut Goebel
Guest
Posts: n/a
 
      07-23-2003
Helmut Jarausch schrieb:

> Is there a tool to lesson the burdon of translation of Perl to Python?


You may try bridgekeeper (http://www.crazy-compilers.com/bridgekeeper/).
But typically it' better to completly rewrite the code since Python
offers different features.

Regards
Hartmut Goebel
--
| Hartmut Goebel | IT-Security -- effizient |
| | www.goebel-consult.de |

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 04-04-2011 10:00 PM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 02-27-2011 11:00 PM
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 01-23-2011 05:00 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57