both are interpreted oo langauges...... 31 1457
At Thursday 9/11/2006 21:44, gavino wrote:
>both are interpreted oo langauges......
I'd use Google to find thousands of references...
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ˇgratis!
ˇAbrí tu cuenta ya! - http://correo.yahoo.com.ar
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo.comwrote:
both are interpreted oo langauges......
that is not correct java is compiled and the VM interprets the code
from the programmers point of view java is a compiled languaje.
python is dynamic typed java is static
python allows functional programming as well as procedural, java doesn't
java is OO in the API, python is OO everywhere.
tons of other things
-- http://mail.python.org/mailman/listinfo/python-list
Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo.comwrote:
both are interpreted oo langauges......
that is not correct java is compiled and the VM interprets the code
.... and what do you think is in those pesky little .pyc files you may
have noticed lying around on your hard disk?
gavino wrote:
both are interpreted oo langauges......
One can curl; the other, one can suck!
(Its early, I'm sure this will not be as funny at more decent hours).
Gavino, I suggest you take a very small problem, something like
computing pascals triangle for example, and write implementations in
both languages yourself.
- Paddy.
Java is horrible, Oython is not.
Oython...the new scripting language from down under...just a wee
bit south of the island of Java...
g'day-mate'ly yers...
-tkc
Steve Holden <st***@holdenweb.comwrites:
Java is horrible, Oython is not.
Is that the predecessor to Python, the one that could only be
expressed in vowel noises?
--
\ "Beware of and eschew pompous prolixity." -- Charles A. |
`\ Beardsley |
_o__) |
Ben Finney
how are BMWs not the same with Yugos ?
both have four wheels and burn gasoline.................
gavino wrote:
both are interpreted oo langauges......
I remember the days when I got all excited about Java (many many moons
ago when Java first came out). I brought a whole truckload of books on
it, even spent 5 days attending a seminar on the subject. To my great
disappointment, I never got very far with it. Not being a
"professional programmer" by training, I found it very difficult to go
very far with Java. Everything was so "un-natural" for me. So, I
felt back to my little C-corner.
Last year, I got a chance to attend a 5 day class on Python. Hated it
- for the first 5 minutes (what the ****, they are using white space
for what????) but from that pont on, never look back.
Not considering myself an advance Python programmer. Don't matter, I
am very proficient with it. It allows me to get things done - in a
whole lot less time then I have to do otherwise.
Learning new things about it everyday, finding new and usefull open
source packages for it everyday.
My Java books? They hit the trash dump long ago....
gavino wrote:
both are interpreted oo langauges......
Notice that gavino has a long history of asking trollish questions in
Lisp and Scheme
newsgroups and he displays the typical behavior of a troll.
Michele Simionato
Steve Holden <st***@holdenweb.comwrites:
Ben Finney wrote:
Steve Holden <st***@holdenweb.comwrites:
Java is horrible, Oython is not.
Is that the predecessor to Python, the one that could only be
expressed in vowel noises?
You're taking the oiss, right?
Oardon. I never meant to ooke fun at your tyoing imoediment.
--
\ "For mad scientists who keeo brains in jars, here's a tio: why |
`\ not add a slice of lemon to each jar, for freshness?" -- Jack |
_o__) Handey |
Ben Finney
gavino wrote:
both are interpreted oo langauges......
Being "interpreted" or whatever is a feature of an *implementation*, not
of a language.
FWIW, CPython (the reference implementation) is compiled to byte-code,
that is then executed by a virtual machine. And Sun's Java
implementation works the same.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo.comwrote:
>both are interpreted oo langauges......
that is not correct java is compiled and the VM interprets the code
So are CPython and IronPython.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Ray wrote:
p.*******@ieee.org wrote:
Jython exists.
And Pava (or Pyava) doesn't, you mean?
Proof of concept only: http://www.boddie.org.uk/python/javaclass.html
If there were any really compelling libraries for Java that really had
to be available for CPython programs, I'd probably have worked around
the "platform issues" mentioned in the above document by now. However,
most people should just use Jython if they want Python and Java
interoperability, and gcj if they want to write Java for use with
CPython (just as the PyLucene people have done).
Paul
gavino wrote:
both are interpreted oo langauges......
Thinks the first FAQs and tutorials about Python answer this question in detail.
Theoreticalls you'd start off thinking this:
* Java is a stiff typing language (as old C/C++/Pascal... and even Perl are also ).
* Python is a dynamic typing language - regarding almost all aspects.
From that each language can try to achieve some benefits of the other basic paradigm by becoming cramped.
Practically:
* you will type a Python programs >5x faster than the equivalent in Java.
* This is true, at least when we assume that test code has to be done for a good program anyway
(and/otherwise "pychecker" will neutralize most first-glance disadvantages of Python)
* Jave (typed code) ist executed faster. Yet Python is even faster when using little C, Pyrex, ...
That is probably what counts.
Robert
On 2006-11-10, gavino <bo******@yahoo.comwrote:
both are interpreted oo langauges......
"..."
--
Neil Cerutti
On 9 Nov 2006 18:09:37 -0800, John Machin <sj******@lexicon.netwrote:
>
Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo.comwrote:
both are interpreted oo langauges......
>
that is not correct java is compiled and the VM interprets the code
... and what do you think is in those pesky little .pyc files you may
have noticed lying around on your hard disk?
can you open a commandline and start writting java code? no
the division between java (runtime) and javac is very explicit, the
compiler catches a lot of things, in python this is threaded in a
totally different way.
the pyc files are just a "catching" system for the common python
developer, as for the java developer the .class files are executable
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
-- http://mail.python.org/mailman/listinfo/python-list
Jorge Vargas wrote:
can you open a commandline and start writting java code?
beanshell, iirc
Jorge Vargas wrote:
On 9 Nov 2006 18:09:37 -0800, John Machin <sj******@lexicon.netwrote:
Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo.comwrote:
both are interpreted oo langauges......
that is not correct java is compiled and the VM interprets the code
... and what do you think is in those pesky little .pyc files you may
have noticed lying around on your hard disk?
can you open a commandline and start writting java code? no
If not, then java lacks functionality -- but that (like *all* your
quibbles below) has nothing to do with the fundamental point: both
languages compile into an intermediate form which is then interprerted.
>
the division between java (runtime) and javac is very explicit, the
compiler catches a lot of things, in python this is threaded in a
totally different way.
Again, irrelevant.
>
the pyc files are just a "catching" system for the common python
developer,
Do you mean "caching"?
as for the java developer the .class files are executable
code.
So are .pyc files.
In python noone runs the pyc files, the interpreter takes care
of this for you.
Python is more functional, but again this has nothing to do with the
question.
"Jorge Vargas" <jo**********@gmail.comwrites:
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
This is not true. It is one way to avoid having your source lying around.
The same can be done with .pyo...
--
Jorge Godoy <jg****@gmail.com>
You can get educated in java through manpower for free just apply for a
job(through thier online learning thing) but you can't add python to
your plan. :( They have pearl, c, basic, cobol also but no
python..... https://sourceforge.net/project/show...roup_id=156455
gavino wrote:
both are interpreted oo langauges......
Jacques Naude <jl*@iafrica.comwrites: Er*********@msn.com wrote:
They have pearl, c, basic, cobol also but no python.....
Pearl?
Practical Extraction And Reporting Language.
<URL:http://en.wikipedia.org/wiki/Perl#Name>
--
\ Lucifer: "Just sign the Contract, sir, and the Piano is yours." |
`\ Ray: "Sheesh! This is long! Mind if I sign it now and read it |
_o__) later?" -- http://www.achewood.com/ |
Ben Finney
Jorge Vargas wrote:
>
the pyc files are just a "catching" system for the common python
developer, as for the java developer the .class files are executable
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
this is an incorrect statement. we (the company i work for) only ship the
pyc files, and our customers _only_ run the pyc files. and our embedded
python contains no .py files. from our perspective, java .class files and
python .pyc files are treated exactly the same. and there is very little
difference between jar files containing .class files and zip files
containing .pyc files.
bryan
Jorge Vargas wrote:
On 9 Nov 2006 18:09:37 -0800, John Machin <sj******@lexicon.netwrote:
>> Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo.comwrote:
both are interpreted oo langauges......
that is not correct java is compiled and the VM interprets the code
... and what do you think is in those pesky little .pyc files you may have noticed lying around on your hard disk?
can you open a commandline
Open it with what ? A knife ?
and start writting java code? no
And ? Some implementations of at least Haskell, OCaml, and Common Lisp
are compiled, and still offer a REPL.
the division between java (runtime) and javac is very explicit,
And ?
the
compiler catches a lot of things, in python this is threaded in a
totally different way.
the pyc files are just a "catching" system for the common python
developer
The pyc files are binary files containing Python byte-code.
>, as for the java developer the .class files are executable
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
And ? The fact that the Python runtime is smart enough (lol) to silently
call the compiler when needed doesn't make Python (well, CPython...)
more or less "interpreted" or "compiled".
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
ok then they are the same lets all go back to write java....
Jorge Vargas wrote:
ok then they are the same lets all go back to write java....
No, thanks... I'll keep my snake !-)
And actually, I'm afraid I somewhat misunderstood your previous post - I
took it as meaning "Python has a REPL and you don't have to explicitelly
call the compiler so Python is interpreted". If that was not what you
meant, please consider this a typical case of "monday morning, not
enough coffein yet".
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave Brueck |
last post by:
Below is some information I collected from a *small* project in which I wrote
a Python version of a Java application. I share this info only as a data
point (rather than trying to say this data...
|
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...
|
by: kbass |
last post by:
In different articles that I have read, persons have constantly eluded to
the productivity gains of Python. One person stated that Python's
productivity gain was 5 to 10 times over Java in some in...
|
by: Ajay |
last post by:
hi!
can you call a Python application from a Java program? does this require
any additional package to be installed?
thanks
cheers
|
by: Andrea Griffini |
last post by:
I did it.
I proposed python as the main language for our next CAD/CAM
software because I think that it has all the potential needed
for it. I'm not sure yet if the decision will get through, but...
|
by: Maurice LING |
last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic
typing, is there any other real reasons that Python is slower than Java?
maurice
|
by: liorm |
last post by:
Hi everyone,
I need to write a web app, that will support millions of user accounts,
template-based user pages and files upload. The client is going to be
written in Flash. I wondered if I coudl...
|
by: abhinav |
last post by:
Hello guys,
I am a novice in python.I have to implement a full fledged mail server
..But i am not able to choose the language.Should i go for C(socket API)
or python for this project? What are the...
|
by: 63q2o4i02 |
last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning
Python the past few months and like it very much. A few years ago I
had an AI class where we had to use Lisp, and I absolutely...
|
by: mystilleef |
last post by:
Hello,
What is the Pythonic way of implementing getters and setters. I've
heard
people say the use of accessors is not Pythonic. But why? And what is
the alternative? I refrain from using them...
|
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
|
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...
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |