Jump to content

Can python be compared with C++/Java

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
arxh

arxh

    Newbie

  • Members
  • PipPip
  • 24 posts
Can python compete with java.... to develop softwares and apps
i am much interested in Python .... just wanna know if python lacks any abilites..

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,721 posts
Java and Python
Choosing Java vs Python on Google App Engine - Stack Overflow
Google App Engine Datastore Performance Test
dmh2000-C/Java/Python/Ruby
sudo rm -rf /

#3
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts
Python is way more productive than Java in general (dargueta links show that perfectly) . In my opinion, if you want to code something that really needs performance and low level facilities, stick with C or C++, else, go to a high-level productive and intuitive language like Python, Java is not the way to go anymore, programming as reached a new age.

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,721 posts
Python doesn't have as strong typing as Java though, so in my opinion you can shoot yourself in the foot more easily. Plus the whole space/tab dependency is annoying as hell, and can also get you into trouble.
sudo rm -rf /

#5
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts
Python was designed with a very different philosophy. It was designed to reduce programmers pain with a very expressive, readable and plain language. I would say: "C makes easy to shoot yourself in the foot, with Python you don't even need to hurt yourself!" hehehe.

#6
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,721 posts
You can blow off a leg with C, kill yourself with C++, and shoot yourself in the foot with Python. With Java you'll be banging your head against the wall.
sudo rm -rf /

#7
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
Python is a good choice, but if you want the best of both world, Jython can be used with Python to prototype for Java, and also compile Python into Java bytecode: Jython.

The argument posted on the site is:

Quote

Differences - Python & Jython
Python
:

  • C
  • Multi-platform
  • Compiles to .pyc
  • Extend with C
  • GIL 1
  • Python Garbage Collection
Jython
  • 100% Java
  • Any JVM (currently 1.1+)
  • Compiles to .class
  • Extend with Java
  • Truly multi-threaded
  • Java garbage collection
Although I just mention this as an extra considerable option.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#8
arxh

arxh

    Newbie

  • Members
  • PipPip
  • 24 posts
DO i need to know java and python both for jython ????

#9
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
Nope, essentially just Python. What I'm getting at is stick with what language you wish to learn and write programs in, there was just a case where you can bridge Python into Java without too much trouble, if you wanted to play with Java but first learn Python.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.