aspose file tools*
The moose likes Jython/Python and the fly likes i need to know this, please, can you answer this questions and be fair Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "i need to know this, please, can you answer this questions and be fair " Watch "i need to know this, please, can you answer this questions and be fair " New topic
Author

i need to know this, please, can you answer this questions and be fair

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

  • if we consider python, is python faster than java ?


  • does limitation of python is same as limitation of java ?
  • for what python is good for ? and we cant use java there


  • this is for my knowledge, i thought just to have this answers before learning python.


    The Only way to learn is ...........do!
    Visit my blog http://inaved-momin.blogspot.com/
    fred rosenberger
    lowercase baba
    Bartender

    Joined: Oct 02, 2003
    Posts: 11325
        
      16

    naved momin wrote:if we consider python, is python faster than java

    Faster at what? Development? execution? debugging? and if it is faster, it it worth it if it takes 10 times the memory?

    naved momin wrote:does limitation of python is same as limitation of java ?

    What are the limitations of Java you are referring? I'm not saying there aren't any, I just wonder which ones you are thinking of...

    My REAL point here is that these questions are so vague that they don't really have answers. They're like saying "what is better - a hammer or a wrench?" The answer could be "neither" if what you want to do is saw a board in half.


    There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
    naved momin
    Ranch Hand

    Joined: Jul 03, 2011
    Posts: 692

    let me rephrase my question for you,

  • if we consider python, is python faster than java ?
    the point in this is , java applications are slow at start-up because of various reasons
    is python application also suffers the same ?


  • does limitation of python is same as limitation of java ?
    The point is you cannot use java to code kernal modules,
    and java is a development language not research language is python the same


  • for what python is good for ? and we cant use java there
    The point in this if i can code any application in java (means java can be used to build anything)
    then why i should use python ? there must be some reasons ?


  • and most important why python is consider as highest level of OO language ?, is python don't have any premitives like int , boolean , double etc ?


  • i guess now any one can answer atleast 1 or 2 questions of mine
    Henry Wong
    author
    Sheriff

    Joined: Sep 28, 2004
    Posts: 18853
        
      40

    To start, Python is not my favorite language. Not even close. So, take my opinions with a grain of salt.

    naved momin wrote:
  • if we consider python, is python faster than java ?
    the point in this is , java applications are slow at start-up because of various reasons
    is python application also suffers the same ?



  • Python does have a mode where it compiles to C, then binary, so you can argue that it doesn't have such an issue.

    On the other hand, there are Java AOT compilers available too.

    Henry


    Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
    Henry Wong
    author
    Sheriff

    Joined: Sep 28, 2004
    Posts: 18853
        
      40

    naved momin wrote:
  • does limitation of python is same as limitation of java ?
    The point is you cannot use java to code kernal modules,
    and java is a development language not research language is python the same



  • Quite frankly, the kernal modules example is kinda silly. If you are going to write kernal modules, you do it in the language that everyone else is doing it in -- C and sometimes assembly. You pick the best language for the job that you want to do, sometimes it is Java, sometimes it is Python.

    Henry
    Henry Wong
    author
    Sheriff

    Joined: Sep 28, 2004
    Posts: 18853
        
      40

    naved momin wrote:
  • for what python is good for ? and we cant use java there
    The point in this if i can code any application in java (means java can be used to build anything)
    then why i should use python ? there must be some reasons ?



  • If the point is to pick one general purpose language, then yea, choosing Java is definitely better than Python. IMO, Java is more flexible, has more tools/libraries, etc. However, as a professional programmer, you don't always get to choose the language. What happens when you join project that is already using Python?

    Henry
    naved momin
    Ranch Hand

    Joined: Jul 03, 2011
    Posts: 692

    Henry Wong wrote:
    naved momin wrote:
  • for what python is good for ? and we cant use java there
    The point in this if i can code any application in java (means java can be used to build anything)
    then why i should use python ? there must be some reasons ?



  • If the point is to pick one general purpose language, then yea, choosing Java is definitely better than Python. IMO, Java is more flexible, has more tools/libraries, etc. However, as a professional programmer, you don't always get to choose the language. What happens when you join project that is already using Python?

    Henry

    henry my friend you miss the last one
    and how you could code kernal modules in java
    because when machine starts there isn't JVM to run java codes
    it could be done only if one compile java directly into machine language and not into byte code.
    Jaikiran Pai
    Marshal

    Joined: Jul 20, 2005
    Posts: 10112
        
    165

    naved momin wrote:
    henry my friend you miss the last one
    and how you could code kernal modules in java

    Henry already answered that in one of his previous posts. Why would you want to use some language which isn't meant for the task that you are trying to accomplish?


    [My Blog] [JavaRanch Journal]
     
    wood burning stoves
     
    subject: i need to know this, please, can you answer this questions and be fair