|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
||||
|
||||
|
Perl in Python ?
Just a quick question that popped up in my head last night.
Is there anyh way to import Perl modules ? Or, like, ANY other language's modules or equivalent ? I fail to see how it would be possible, but until some time ago I thought Python files couldn't be converted to executables so...
__________________
Time is the greatest of teachers ; sadly, it kills all of its students. - Hector Berlioz |
|
#2
|
|||
|
|||
|
Nope, there's not. You can write C modules for Python with something like Pyrex, though. In general, there's no way of doing what you want until something like Parrot gets finished.
|
|
#3
|
||||
|
||||
|
I know there is support for calling perl code in Python using the 'perl' module packaged with ActiveStates ActivePython, whether or not this allows you to import perl module into Python remains to be see since i havnt used it.
Mark |
|
#4
|
||||
|
||||
|
Actually Strike there is already an environment designed to let you do this kind of thing i.e. multiple language interaction
... DotNET. Looking forward to Parrot though.Mark. |
|
#5
|
|||
|
|||
|
.NET isn't pertinent to the discussion because there are no Python bindings for it. I don't even think there are Perl bindings for it.
|
|
#6
|
||||
|
||||
|
Beg to differ Strike, i believe there are at least two versions of Python for .NET and one Perl; Theres also one for parrot but i havnt used it yet.. still waiting for the Perl 6 to be released.
http://starship.python.net/crew/mhammond/dotnet/ http://aspn.activestate.com/ASPN/NET/ http://aspn.activestate.com/ASPN/Downloads/PerlNET/More Mark. |
|
#7
|
|||
|
|||
|
First link: that package is very experimental, not to mention very old. Hardly something to be considered usable for the general public.
Second link: the only thing it mentions are "research protoypes" and it links to an "exploratory implementation" which is even older than the first link Third link: is a redirect to an implementation of something that allows ASPX to use Perl... not quite a full .NET platform for Perl. And if there's a .NET hook in Parrot ... well, unless I'm sorely mistaken Parrot isn't released yet. So, all of this stuff is very beta and not recommended for general use. |
|
#8
|
||||
|
||||
|
Experimental but useable since i've messed around with it a little in the past
so Python has one useable .NET port for now and ActiveState are looking into the problem so i'm expecting to see something good there one day .The third... i have no idea what you're talking about, there is a basic Python version for parrot is all i was saying . Why port parrot to .NET hehe? If you download the souce-code you'll see a bit about Python in there along with some other languages ![]() Mark. |
|
#9
|
||||
|
||||
|
Ok ok scratch that, theres was an entry on PythonWare a while ago about Python version for .NET coming soon called IronPython... which apparently runs faster than CPython!!!
http://www.hole.fi/jajvirta/weblog/20031210T0901.html Infact this came up today as well which reminded me of when i'd first read about IronPython. http://www.deadlybloodyserious.com/...2/16.html#a1404 Mark. |
|
#10
|
|||
|
|||
|
If you search google for 'perthon' there is something that converts python to perl
Tho better to steer clear of perl neway |
|
#11
|
|||
|
|||
|
http://perthon.sourceforge.net/
lazy_yogi: Why are you telling people that it is better to just steer clear of perl? I'm not agreeing or disagreeing. I'm just curious. |
|
#12
|
|||
|
|||
|
Quote:
Why steer clear of perl? This contains a decent summary of why |
|
#13
|
||||
|
||||
|
Looks like Strike said it
. The fact remains; there are a lot of useful perl scripts. The challenge to us all is to provide equivalent but better functionality. Any (clean) suggestions? I once had to tweak cvsweb for local use. I still have nightmares ![]() |
|
#14
|
||||
|
||||
|
Must be the only one here (besides chief) without a terminal dislike for perl
.Anyway could you not use SOAP to bridge the language gap? Its a bit of a hack admitadly but it could work pretty well if somone wrote a module to make functions in a module/classes/variables accessable via another lang. Just an idea. Mark. |