Difference between revisions of "Java"

From RogueBasin
Jump to navigation Jump to search
(PtRL added)
Line 1: Line 1:
== Background ==
Java is a reflective, object-oriented programming language initially developed by James Gosling and colleagues at Sun Microsystems in 1991, as part of the Green Project. It was initially called Oak, and was intended to replace [[Cpp|C++]], although its feature set resembles more that of [[Objective-C]].  
Java is a reflective, object-oriented programming language initially developed by James Gosling and colleagues at Sun Microsystems in 1991, as part of the Green Project. It was initially called Oak, and was intended to replace [[Cpp|C++]], although its feature set resembles more that of [[Objective-C]].  


Line 13: Line 14:


== Java roguelikes ==
== Java roguelikes ==
Java has excellent features for roguelike development, due to object orientation and platform independence; however, it still has some disadvantages:
Java has excellent features for roguelike development:
*Lower perfomance
* Object orientation.
*No native console support. Developers of [[ASCII]] roguelikes must decide whether to
* Platform independence.
**Use one of existing libraries([[JCurses]], [[Charva]], etc.), or
* Ability to run on a web page as an Applet.
**Develop a new library  (e.g. wrapping the [[Curses]] C library and native methods), or
however, it still has some disadvantages:
**Emulate console output in plataform independant AWT (or Swing) components.
* No native console support. Developers of [[ASCII]] roguelikes must decide whether to
** Use one of existing libraries([[JCurses]], [[Charva]], etc.), or
** Develop a new library  (e.g. wrapping the [[Curses]] C library and native methods), or
** Emulate console output in plataform independant AWT (or Swing) components.
* Longer program startup time. Java has no issues with speed once running [http://www.idiom.com/~zilla/Computer/javaCbenchmark.html], especially for RL games.


Still, some Java roguelikes exists, these are:
Still, some Java roguelikes exists, these are:
Line 25: Line 30:
*[[Dweller]] (using Java Micro Edition, J2ME)
*[[Dweller]] (using Java Micro Edition, J2ME)


And there are currently some projects that are being built around Java too
And there are currently some projects that are being built around Java:
*[[Guardian Angel]]
*[[Guardian Angel]]
*[[JADE]]
*[[JADE]]

Revision as of 18:14, 12 August 2005

Background

Java is a reflective, object-oriented programming language initially developed by James Gosling and colleagues at Sun Microsystems in 1991, as part of the Green Project. It was initially called Oak, and was intended to replace C++, although its feature set resembles more that of Objective-C.

Java should not be confused with JavaScript, a script language with which it shares only the name and a similar C-like syntax. Sun Microsystems currently maintains and updates Java regularly.

Specifications of the Java language, the JVM (Java Virtual Machine) and the Java API are community-maintained through the Sun-managed Java Community Process.

After first being made public in 1994, it achieved prominence following the announcement at 1995's SunWorld that Netscape would be including support for it in their next version of the Navigator browser.

Language characteristics

  • Object orientation
  • Platform independence
  • Automatic garbage collection

Java roguelikes

Java has excellent features for roguelike development:

  • Object orientation.
  • Platform independence.
  • Ability to run on a web page as an Applet.

however, it still has some disadvantages:

  • No native console support. Developers of ASCII roguelikes must decide whether to
    • Use one of existing libraries(JCurses, Charva, etc.), or
    • Develop a new library (e.g. wrapping the Curses C library and native methods), or
    • Emulate console output in plataform independant AWT (or Swing) components.
  • Longer program startup time. Java has no issues with speed once running [1], especially for RL games.

Still, some Java roguelikes exists, these are:

And there are currently some projects that are being built around Java:

Related links

"Java programming language" (Wikipedia article)