Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • 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.
     
    fred rosenberger
    lowercase baba
    Bartender
    Posts: 12086
    29
    Chrome Java Linux
    • Likes 2
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    naved momin
    Ranch Hand
    Posts: 692
    Eclipse IDE Java Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Marshal
    Pie
    Posts: 20894
    75
    C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
     
    Henry Wong
    author
    Marshal
    Pie
    Posts: 20894
    75
    C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Marshal
    Pie
    Posts: 20894
    75
    C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 692
    Eclipse IDE Java Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Pie
    Posts: 10444
    227
    IntelliJ IDE Ubuntu
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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?
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic