Results 1 to 8 of 8
  1. #1
    Prime624 is offline Member
    Join Date
    Feb 2013
    Location
    San Diego
    Posts
    96
    Rep Power
    0

    Default How does Java Compare to Other Languages/Methods of Making Programs

    Where does Java fit in with the likes of Perl (spellcheck), Python, HTML, and OpenGL?

    I know that OpenGL is a graphics format(?), and that HTML is for webpages, and Java, Perl (I think), and Python are programming languages, but how do they interact with each other. Thanks.

    [I think this thread goes here]

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

    Default Re: How does Java Compare to Other Languages/Methods of Making Programs

    How does a spanner compare to a hammer?

  3. #3
    Prime624 is offline Member
    Join Date
    Feb 2013
    Location
    San Diego
    Posts
    96
    Rep Power
    0

    Default Re: How does Java Compare to Other Languages/Methods of Making Programs

    To expand on my question:

    Do you use OpenGL from Java, completely separately, or through something else? Can you connect an HTML with a Java? Do Perl, Java, and Python all have the same use?

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    8

    Default Re: How does Java Compare to Other Languages/Methods of Making Programs

    Maybe the following article in Wikipedia can help you understand what is Java all about. Here is the link: Java (programming language) - Wikipedia, the free encyclopedia

  5. #5
    Prime624 is offline Member
    Join Date
    Feb 2013
    Location
    San Diego
    Posts
    96
    Rep Power
    0

    Default Re: How does Java Compare to Other Languages/Methods of Making Programs

    I understand what Java is used for by itself.

    Is OpenGL ever used alone to make an application? (I assume not).
    Can you reference Python from Java (or similar example)?

    I looked at the Wikipedia article "Comparison of programming languages". Some questions about the meaning of a few "intended uses".
    What is "scripting"?
    What is "general"?

  6. #6
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: How does Java Compare to Other Languages/Methods of Making Programs

    I've never used OpenGL, but my understanding is that it can be used within a Java program. The computer running the program has the opengl software installed and the Java programmer takes advantage of third party (== made by someone else) code to call the opengl software. This 3rd party stuff is often called a library or API: by whatever name it is a bunch of Java classes whose methods do things with other executables. Opengl isn't special here: your program might take advantage of an API for any reason at all.

    HTML files are plain text files. So, yes, Java programs can create these things! Of course their content is formatted in a particular way, and browsers (and other so-called user agents) will interpret and do useful things with that content. Java can be used to do useful computation with the HTML format (even make a browser). Again you use API for this: but, unlike opengl, it may not need non-java executable code (in this case it is said to be "pure Java") and the API may be part of the (big) standard library and not provided by a third party.

    As far as other languages go, there are to my limited knowledge two broad ways you can go. First you can regard the other language as just a piece of probably non-Java software and use some 3rd party library to provide an API for it - exactly like opengl. The other approach is to implement the language as a bunch of Java classes - that is, as pure Java. Lots of languages have been implemented this way, and interpreted languages are a favourite: javascript, python, ruby etc.
    Last edited by pbrockway2; 04-11-2013 at 06:02 AM.

  7. #7
    Prime624 is offline Member
    Join Date
    Feb 2013
    Location
    San Diego
    Posts
    96
    Rep Power
    0

    Default Re: How does Java Compare to Other Languages/Methods of Making Programs

    Quote Originally Posted by pbrockway2 View Post
    I've never used OpenGL, but my understanding is that it can be used within a Java program. The computer running the program has the opengl software installed and the Java programmer takes advantage of third party (== made by someone else) code to call the opengl software. This 3rd party stuff is often called a library or API: by whatever name it is a bunch of Java classes whose methods do things with other executables. Opengl isn't special here: your program might take advantage of an API for any reason at all.

    HTML files are plain text files. So, yes, Java programs can create these things! Of course their content is formatted in a particular way, and browsers (and other so-called user agents) will interpret and do useful things with that content. Java can be used to do useful computation with the HTML format (even make a browser). Again you use API for this: but, unlike opengl, it may not need non-java executable code (in this case it is said to be "pure Java") and the API may be part of the (big) standard library and not provided by a third party.

    As far as other languages go, there are to my limited knowledge two broad ways you can go. First you can regard the other language as just a piece of probably non-Java software and use some 3rd party library to provide an API for it - exactly like opengl. The other approach is to implement the language as a bunch of Java classes - that is, as pure Java. Lots of languages have been implemented this way, and interpreted languages are a favourite: javascript, python, ruby etc.
    Thank you so much.

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,820
    Rep Power
    19

    Default Re: How does Java Compare to Other Languages/Methods of Making Programs

    OpenGL is a definition for an interface for things wanting to interact with the underlying graphics hardware.
    There are implementations for most platforms (often in C) and there are wrappers for various languages providing OpenGL interfaces with these implementations (eg JOGL for Java).
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Run Java Programs
    By StevenR in forum New To Java
    Replies: 2
    Last Post: 02-20-2013, 09:33 AM
  2. Java Programs I Made
    By imsoadude in forum Reviews / Advertising
    Replies: 0
    Last Post: 08-24-2012, 02:39 AM
  3. java database languages
    By mDennis10 in forum New To Java
    Replies: 2
    Last Post: 12-13-2011, 03:03 AM
  4. What the the Pros of Java vs. other languages?
    By shintashi in forum New To Java
    Replies: 1
    Last Post: 07-26-2009, 02:55 AM
  5. Replies: 1
    Last Post: 10-21-2008, 01:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •