473,978 Members | 22,262 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how is python not the same as java?

both are interpreted oo langauges......

Nov 10 '06
31 1529
how are BMWs not the same with Yugos ?

both have four wheels and burn gasoline....... ..........

Nov 10 '06 #11

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
"profession al 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....

Nov 10 '06 #12
Ben Finney wrote:
Steve Holden <st***@holdenwe b.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?

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Nov 10 '06 #13

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

Nov 10 '06 #14
Steve Holden <st***@holdenwe b.comwrites:
Ben Finney wrote:
Steve Holden <st***@holdenwe b.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

Nov 10 '06 #15
gavino wrote:
both are interpreted oo langauges......
Being "interprete d" 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('@')])"
Nov 10 '06 #16
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('@')])"
Nov 10 '06 #17
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
interoperabilit y, and gcj if they want to write Java for use with
CPython (just as the PyLucene people have done).

Paul

Nov 10 '06 #18
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
Nov 10 '06 #19
On 2006-11-10, gavino <bo******@yahoo .comwrote:
both are interpreted oo langauges......
"..."

--
Neil Cerutti
Nov 10 '06 #20

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

Similar topics

2
3484
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 "proves" something) to consider the next time the "Python makes developers more productive" thread starts up again. Background ========== An employee who left our company had written a log processor we use to read records from text files (1...
699
35016
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 capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
38
3774
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 some cases. The strange thing that I have noticed is that there were no examples of this productivity gain (i.e., projects, programs, etc.,...). Can someone give me some real life examples of productivity gains using Python as opposed other...
13
3364
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
36
6450
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 something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
114
9997
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
28
4390
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 get your opinions - what do you think is the best language to use for the server? Python or Java? And I'm talking scalability, object oriented, development tools etc. Thansk for any idea! I'd love to hear it Happy New 2006,
25
5801
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 advantages of one over the other in implementing this server.which language will be easier? What are the performance issues?In what language are mail servers generally written?
118
6854
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 hated it, having learned C++ a few years prior. They didn't teach Lisp at all and instead expected us to learn on our own. I wasn't aware I had to uproot my thought process to "get" it and wound up feeling like a moron. In learning Python I've...
112
13957
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 because they smell "Javaish." But now my code base is expanding and I'm beginning to appreciate the wisdom behind them. I welcome example code and illustrations.
0
11826
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11588
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10919
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8464
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7618
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6421
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.