473,396 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Parrot for Python

Hi,

I come across the Parrot project. Seems like it is a better
compromising alternative for .NET and Java. That is, we can develop
applications in Python (for productivity) and still can interact with
components written in other languages, as they were compiled to the
parrot byte code.

But my concern is, how will Python interoperate with Parrot. Since,
Python has strong interospection, won't it be difficult to generate
parrot code from python source file.

For doing a simple attribute reference,
a.b = 10

the parrot code will be bigger (dict find, get, assign ...)

Another question.

Why is Java so popular than Python. Are the technologies for Java
available for Python (no ... no jython)? We can implement them in
python if we want. But the difference is speed.
Jul 18 '05 #1
5 1772
sr*************@yahoo.com (Sridhar R) writes:
Why is Java so popular than Python. Are the technologies for Java
available for Python (no ... no jython)? We can implement them in
python if we want. But the difference is speed.


There is no reason... Sun is behind java, who is behind Python? Java
has a very little library advantage IMHO. Python is growing everyday,
as Tim Bray says in his blog here:
http://www.tbray.org/ongoing/When/20...FutureLanguage

--
Valentino Volonghi aka Dialtone
Linux User #310274, Gentoo Proud User
X Python Newsreader developer
http://sourceforge.net/projects/xpn/
Jul 18 '05 #2

"Sridhar R" <sr*************@yahoo.com> wrote in message
news:93*************************@posting.google.co m...
Hi,

I come across the Parrot project. Seems like it is a better
compromising alternative for .NET and Java. That is, we can develop
applications in Python (for productivity) and still can interact with
components written in other languages, as they were compiled to the
parrot byte code.

But my concern is, how will Python interoperate with Parrot. Since,
Python has strong interospection, won't it be difficult to generate
parrot code from python source file.


I believe there were some people working on a Python
port to Parrot a while ago, but they lost interest when
the then current Parrot implementation was insufficient
to handle what they wanted to do.

It's all a volunteer effort; it'll get done if enough
people want to get together to get it done.

John Roth
Jul 18 '05 #3
> Why is Java so popular than Python.

Java is a great solution for server side stuff. It has the same respect
as C++ gets (ie people and PHB's do consider it a "real" language/environment).
The class libraries are *way* more advanced than the Python ones. For example
compare Python's imaplib with javamail. (Hint: Python pretty much just gives
you raw protocol back and you have to figure out what is going on).

Other libraries such a JNDI, Activation, JMF etc don't even exist in
Python. Have a look at this page:

http://java.sun.com/reference/api/index.html

And this one:

http://java.sun.com/products/

In many cases there are similar libraries for Python, or more often
multiple incomplete (incomplete by comparison to Java) implementations
out there.

Now sometimes you don't need such complete libraries, and Python lets
you get the problem solved quicker. Other times you have to augment
someone else's library component, which would have been time better
spent on your own code.

Roger
Jul 18 '05 #4
John Roth wrote:
...

I believe there were some people working on a Python
port to Parrot a while ago, but they lost interest when
the then current Parrot implementation was insufficient
to handle what they wanted to do.

It's all a volunteer effort; it'll get done if enough
people want to get together to get it done.


The developers of Parrot are implementing Python on Parrot themselves.

http://www.hole.fi/jajvirta/weblog/20040108T2001.html

As of a month ago:

"Just in case anyone's keeping track, here are a few things that are
working:
• Bytecode loading
• Objects
• Method calls
• Operator Overloading

oh, yeah, and all that pesky math stuff, subroutines, and strings.
They work too, though Unicode needs some help. And variables. We can do
variables.

Still need some work on nested namespaces, actual bytecode translation,
and object performance, but..."

Jul 18 '05 #5
John Roth wrote:
...

I believe there were some people working on a Python
port to Parrot a while ago, but they lost interest when
the then current Parrot implementation was insufficient
to handle what they wanted to do.

It's all a volunteer effort; it'll get done if enough
people want to get together to get it done.


The developers of Parrot are implementing Python on Parrot themselves..

http://www.hole.fi/jajvirta/weblog/20040108T2001.html

As of a month ago:

"Just in case anyone's keeping track, here are a few things that are
working:
• Bytecode loading
• Objects
• Method calls
• Operator Overloading

oh, yeah, and all that pesky math stuff, subroutines, and strings.
They work too, though Unicode needs some help. And variables. We can do
variables.

Still need some work on nested namespaces, actual bytecode translation,
and object performance, but..."

Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Emile van Sebille | last post by:
QOTW: "If we get 2.3.3c1 out in early December, we could release 2.3.3 final before the end of the year, and start 2004 with a 100% bug-free codebase <wink>." -- Tim Peters "cjOr proWe vbCould...
0
by: Emile van Sebille | last post by:
QOTW: "Have you ever used the copy module? I am *not* a beginner, and have used it *once* (and I can't remember what for, either)." -- Michael Hudson "It will likely take a little practice...
9
by: Berlin Brown | last post by:
Is there going to be a python parrot release. I looking on the web and seeing stuff, stilly pending. That would be cool to see application servers, via python(I think that could only be with a...
2
by: Do Re Mi chel La Si Do | last post by:
Hi ! On the site of Amber : http://xamber.org/index.html We can to view the sentence : "Parrot version of Python" Question : what is "Parrot version of Python" ? @-salutations Michel...
1
by: Cai Wenliang | last post by:
Hello Python folks, I got the message that there is a project to port Python on Parrot runtime. (http://www.parrotcode.org) Could anybody provide more detailed info? Thanks! -William
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.