Save the pythons.

F

f29

I don't believe that noone has yet spotted that python is becoming
java. Each new version is fully equipped with more garbage than
before. Classes are great, but once there are 1000 of them, inheriting
from each other, I cannot avoid comparing this unpleasant situation to
java.
Python power is in it's syntax, not addons. Let's not copy perl's
experience and one java is already far too much for earth.

f29
 
G

Gilles Lenfant

f29 said:
I don't believe that noone has yet spotted that python is becoming
java. Each new version is fully equipped with more garbage than
before. Classes are great, but once there are 1000 of them, inheriting
from each other, I cannot avoid comparing this unpleasant situation to
java.
Python power is in it's syntax, not addons. Let's not copy perl's
experience and one java is already far too much for earth.

f29

Where's the problem ?

$ rm /usr/local/lib/python4.5/[type your useless packages here]
 
B

Bruno Desthuilliers

f29 said:
I don't believe that noone has yet spotted that python is becoming
java. Each new version is fully equipped with more garbage than
before. Classes are great, but once there are 1000 of them, inheriting
from each other, I cannot avoid comparing this unpleasant situation to
java.
Python power is in it's syntax, not addons. Let's not copy perl's
experience and one java is already far too much for earth.

f29

Too big. Won't work.
 
B

Ben Finney

I don't believe that noone has yet spotted that python is becoming
java.

This is, on the face of it, a falsity: Java is Java, Python is Python.
If you mean that Python is gaining traits of other languages, then
that's a normal and natural process in the evolution of a language
(whether computer-bound or human-bound).

It only becomes a point worth discussing if the traits being gained are
undesirable; and *that* is a matter for subjective discussion.
Each new version is fully equipped with more garbage than before.
Classes are great, but once there are 1000 of them, inheriting from
each other, I cannot avoid comparing this unpleasant situation to
java.

None of the packages in the standard library occupy more than disk space
until they are imported. If you want a cut-down standard library, you
have the source available to build it however you want. These two
traits, certainly the latter, make Python better than Java.
Python power is in it's syntax, not addons.

Indeed. Very few changes occur to the simple Python syntax in each
release; that is, as you say, its power.
Let's not copy perl's experience

I don't understand this point; are you saying that Python's syntax is
changing undesirably? You've only mentioned increasing volume of
classes, not changes to the langauge syntax. I don't see how you can
fear that Python will "copy Perl's experience".
and one java is already far too much for earth.

I think the undesirable traits of Java are avoided in Python.

- Java is not free software. Python is. (Most of the other
differences stem from this one, as free software allows people to
make changes primarily based on technical merit if they choose.)

- Java's standard library and development environment are increasingly
tightly controlled by Sun, and nobody else can have input into the
development of the language and library. Python's development is
community-driven, with a BDFL at the helm.

- Java's large class library is typically distributed as binary blobs
that are difficult to divide. Python's standard library is all
separate packages, most of it implemented as Python source code.
Removing a package is as simple as deleting the files, or (more
neatly) rebuilding the library from source without the package.

- Java's syntax is simpler than C++, but it still strives to be like
that behemoth. Python, as you've pointed out, has a clean syntax
that doesn't accumulate cruft.

As for "each new version is fully equipped with more [packages] than
before", I see that as an advantage, especially since anyone can decide
to rebuild without any unwanted packages. Also, the cruft gets cleaned
out fairly regularly; if a package is better re-done or re-implemented
in another, newer package, the old one is deprecated and eventually
disappears.
 
H

Hans Nowak

f29 said:
I don't believe that noone has yet spotted that python is becoming
java. Each new version is fully equipped with more garbage than
before.

A bit harsh to put it that way, but yeah, the language is growing, as most
languages tend to do. It would be nice to see it shrink sometime, although
that would have its own set of drawbacks, like breaking backward compatibility.
Maybe in Python 3.0...
Classes are great, but once there are 1000 of them, inheriting
from each other, I cannot avoid comparing this unpleasant situation to
java.

Python's standard library hasn't quite reached the size of Java's, though.
Python power is in it's syntax, not addons.

Hmm, everything else being equal, I'd much rather see a new module than yet
another addition to the syntax.
 
P

Paul Rubin

Hans Nowak said:
Python's standard library hasn't quite reached the size of Java's, though.

I think it's less an issue of library size, than tasteless design.
Java's libraries really seems to take OO obsession to unhealthy
lengths. I think there's some truth to the notion that Python is
getting that disease a little bit. It's often more convenient to pass
a function to some module (e.g. a callback), than to subclass a
library class, but Java programmers want to do stuff by subclassing
anyway. You can see something similar in the Python urllib class
(to provide an http basic auth password you have to make a subclass)
or in the SocketServer library.
 
L

Lutz Horn

Hi,

* Paul Rubin said:
I think it's less an issue of library size, than tasteless design.
Java's libraries really seems to take OO obsession to unhealthy
lengths. I think there's some truth to the notion that Python is
getting that disease a little bit. It's often more convenient to
pass a function to some module (e.g. a callback), than to subclass
a library class, but Java programmers want to do stuff by
subclassing anyway.

Not exactly. Implementing an Interface is much cleaner than
subclassing.

Lutz
 
F

f29

Certainly, I did not mean that python's standard library is something
we should forget and abandon, but even despite python is fully
embodying the oo idea, it should not become such mess as java - with a
complete chaos of classes derieved from nowhere and well known 'unknow
exception at java.class1.class2.class3.subclass43.class4 on line
35147' (seen nowadays even on the www).
I am simply worried, that in few years we may see such error messages
in python, due to it's classes incompatibility and version
differences. That's all.

rgds,
f29
 
D

Dennis Lee Bieber

Martin Michel fed this fish to the penguins on Friday 19 December 2003
05:41 am:
Save the Pythons. Give 'em Rubies, Coffee and Camel :)

Ack, the imagery.... a jittery/nervous, jewel-encrusted, serpent that
spits in your face...

--
 
D

Dave Benjamin

I don't believe that noone has yet spotted that python is becoming
java. Each new version is fully equipped with more garbage than
before. Classes are great, but once there are 1000 of them, inheriting
from each other, I cannot avoid comparing this unpleasant situation to
java.

Python's not becoming Java. It's too busy becoming LISP. If it appears that
Python is becoming Java, it's only because Java is becoming LISP, too. There
are 1000s of classes of languages, each inheriting from LISP. It's just a
matter of how many methods they override, and this number is asymptotically
approaching zero.
Python power is in it's syntax, not addons. Let's not copy perl's
experience and one java is already far too much for earth.

Great. Let's feature-freeze Python now. That way, when Java has finally
become LISP, Python will still be Python. Of course, we'll all be using LISP
by then, but it'll be a fine piece of nostalgia to keep on an old hard drive
in the garage.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top