473,320 Members | 2,080 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,320 software developers and data experts.

Python finally succeeds in cross-platform areas where Java has beenfailing...

....that would be for desktop-based apps, games, 3d graphics,
and multimedia.

....thanks to APIs and bindings like Pygame, PyOpenGL, PyGtk
and PyGtkGLExt.

A summary of a lengthy post on the subject:
http://lists.free.net.ph/pipermail/c...er/001510.html
- OpenGL for accelerated graphics. (that's PyOpenGL)
- SDL for cross-platform sound, device input, etc... (via Pygame)
- Gtk for excellent themable cross-platform widgets (make your
Gtk apps look just like Win32 apps) (via PyGtk)
- GtkGLExt for accelerated OpenGL display inside widgets. Yow!

(via PyGtkGLExt)

One caveat is that while with .pyc files, Python has what are
essentially platform independent executables ala Java
class files, because the libraries mentioned are not yet a
part of the standard Python distribution, you have to
install the modules and dlls separately.

But if the Gtk and libSDL dlls were to one day come bundled
with Python (like Tcl/Tk is now), and with Psyco to provide JIT and
Python C extensions (being easier to deal with than JNI especially
with the help of SWIG) in the mix, who needs Java indeed?
Jul 18 '05 #1
4 2047
Le Wed, 15 Oct 2003 05:09:25 +0800, Jonathan P. a écrit :
who needs Java indeed?


Sun.

;-)

Jerome
Jul 18 '05 #2
In article <TM**********************@news1.tin.it>,
Alex Martelli <al***@aleax.it> wrote:
Jul 18 '05 #3
How much of Python's cross-platform advantage over Java is due to the
single source of the Python interpreter and how much is due to the
language itself?

There's certainly nothing (that I'm aware of, other than time, money,
and skill) to stop me from writing my own Python interpreter, making
some subtle changes in behavior (either intentionally or by accident)
and promoting it in the field. If I could convince enough people to
install it, we'd suddenly have a cross-platform crisis in the Python
world.

This is really all that's happened in the Java world. The above
scenario describes what Microsoft did to Java. The only difference
between me doing my own Python and Microsoft doing their own Java is
that Microsoft has the resources and desire to pull it off.

What would happen if Microsoft saw Python as a threat and decided to
kill it by shipping their own incompatable Python interpreter with
Windows? Would we have any defense?
Jul 18 '05 #4
Roy Smith <ro*@panix.com> writes:
How much of Python's cross-platform advantage over Java is due to the
single source of the Python interpreter and how much is due to the
language itself?

There's certainly nothing (that I'm aware of, other than time, money,
and skill) to stop me from writing my own Python interpreter, making
some subtle changes in behavior (either intentionally or by accident)
and promoting it in the field. If I could convince enough people to
install it, we'd suddenly have a cross-platform crisis in the Python
world.

This is really all that's happened in the Java world. The above
scenario describes what Microsoft did to Java. The only difference
between me doing my own Python and Microsoft doing their own Java is
that Microsoft has the resources and desire to pull it off.

What would happen if Microsoft saw Python as a threat and decided to
kill it by shipping their own incompatable Python interpreter with
Windows? Would we have any defense?

Sure, the std open source software (OSS) defenses:

1. If the alternative is open source itself, then std OSS rules of
engagement apply. Thus, if the alternative has a few good ideas,
they will be absorbed by the main line. If the whole alternative
is better, the community may shift over en masse (a la gcc a few
years ago). If not, everyone will know it and will avoid the
alternative. Legal use of the Python name is (I think) up to PSF.

2. If the alternative implementation (including all libraries and all
extensions) was completely green-room, then it could perhaps be
kept closed source. In that case it might take a while to realize
it was incompatible. For a bad enough mismatch, the name "Python"
might be withheld, just as SUN fought MS's use of "Java" for
J++. When word got out, very likely there would be a backlash, and
people would avoid it if they could.

3. "avoid it if they could" is the crux of the issue. If MS
orchestrates DRM, Palladium, etc. so that only MS-owned languages
can play on a MS Win** box, then MS might offer something like
python functionality (e.g., that is the sales pitch for C#). Under
these circumstances, it is up to the buyer to beware of lockins.
So long as PSF doesn't authorize MS use of "Python" for that
purpose, there will still not be a split.
--
ha************@boeing.com
6-6M31 Knowledge Management
Phone: (425) 342-5601
Jul 18 '05 #5

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

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
6
by: Rolf Schroedter | last post by:
(Sorry for cross-posting). I need to access large files > 2GByte (Linux, WinXP/NTFS) using the standard C-library calls. Till today I thought I know how to do it, namely for Win32: Use open(),...
16
by: Chris | last post by:
Hi, regarding exception-handling : why put code in a 'finally' block, and not just after a 'catch'-block --> Example using 'finally ' : try { OpenFile();
267
by: Xah Lee | last post by:
Python, Lambda, and Guido van Rossum Xah Lee, 2006-05-05 In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at...
6
by: JW | last post by:
I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything...
1
by: Han-Wen Nienhuys | last post by:
Hello, I have a small patch for Python SVN that makes it possible to cross-compile python on Unix to various other Unix targets. I have successfully built a binary for FreeBSD on Linux. The...
145
by: Dave Parker | last post by:
I've read that one of the design goals of Python was to create an easy- to-use English-like language. That's also one of the design goals of Flaming Thunder at http://www.flamingthunder.com/ ,...
4
by: Terrence Brannon | last post by:
Hello, I have written a program to draw a vescica piscis <http:// en.wikipedia.org/wiki/Vesica_piscis> from turtle import * def main(): setup(width=400, height=400) r = 50 color("black")
1
by: Stephen Cattaneo | last post by:
Hi all, Personally I know nothing of cross compiling so please excuse my ignorance, if this question is silly. A friend of mine is attempting to cross compile python 2.5.2 onto a MIPS64...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.