GithubHelp home page GithubHelp logo

aaronngray / javagi Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 11.08 MB

JavaGI version 0.7.0

Home Page: http://www.stefanwehr.de/javagi/

License: Other

Shell 0.14% Java 95.08% HTML 0.08% TeX 0.82% XSLT 0.28% Python 0.03% GAP 0.94% Scala 2.64%

javagi's Introduction

                       JavaGI
                       ======

JavaGI is a conservative extension of Java 1.5 that generalizes interfaces with concepts from Haskell type classes. In particular, JavaGI supports the following features:

* Interfaces can have retroactive implementations.
* Interfaces can specify binary methods.
* Interfaces can span multiple types.
* Interfaces can support multiple dispatch.
* Interfaces can have type-conditional implementations.
* Interfaces (and classes) can have type-conditional methods.
* Interfaces can have static methods.
* Interface implementations can be type-checked in a modular way.
* Interface implementations can be loaded dynamically.

As a result, JavaGI unifies formerly separate language extensions and renders many anticipatory uses of design patterns such as Adapter, Factory, and Visitor obsolete. Moreover, JavaGI allows several extension and integration problems to be solved more easily.

The compiler is based on the Eclipse Compiler for Java (http://download.eclipse.org/eclipse/downloads/drops/R-3.4.1-200809111700/index.php). It supports all features of Java 1.5 and nearly all JavaGI-specific extensions. See the STATUS file for features which are not yet supported.

Documentation:

General information on JavaGI can be found in the website

http://www.informatik.uni-freiburg.de/~wehr/javagi

The syntax is supported by the JavaGI compiler is pretty close to the one used in our ECOOP 2007 paper [1]. The directory "tests/root/javagi/runtime" contains the code of all examples presented in this paper. Moreover, the file "grammar/java.g" contains the LALR(1) grammar used by the parser.

Build instructions:

Currently, the build infrastructure is only available on Unix-like systems. In fact, we did not even test the JavaGI compiler under Windows, so it is highly recommended to use a Unix-like OS for running the JavaGI compiler.

Requirements to build the compiler from source:

Configure the paths to the JRE, Ant, and the Scala compiler in the file "config.sh". Host-specific path settings should be placed in the file "config-$(hostname)-$(whoami).sh", where "$(hostname)" is the simple hostname of your computer and "$(whoami)" is your username.

Once the path settings are correct, you can build the JavaGI compiler by invoking the "./build.sh" shell script.

Usage:

Compile your source code using the JavaGI compiler. On Unix platforms, you may use the script "bin/javagic" for this purpose. The resulting bytecode runs on every Java 1.5 compliant JVM, just make sure that the JavaGI runtime system is in the classpath. When building from source, the compiled JavaGI runtime system is placed in the directory "build/java-rt".

Further information:

Author: Stefan Wehr [email protected] License: Eclipse public license (see LICENSE.html) Bug reports: Send them via email to [email protected] Website: http://www.informatik.uni-freiburg.de/~wehr/javagi

If you have any questions, feel free to contact me!

References:

[1] Stefan Wehr, Ralf Lämmel, and Peter Thiemann JavaGI: Generalized Interfaces for Java In Erik Ernst, editor, ECOOP 2007 Object-Oriented Programming. LNCS, vol. 4609, pp. 347-372. Springer-Verlag, 2007. http://www.stefanwehr.de/publications/Wehr_JavaGI_generalized_interfaces_for_Java.pdf

javagi's People

Contributors

aaronngray avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.