Skip to content
bbarker edited this page Nov 27, 2014 · 3 revisions

Due to ATS and C sharing the same semantics, it is possible for ATS to interface with Java through JNI (Java Native Interface). One area where this can be useful is in the MVC (Model-View-Controller) design pattern where the Controller and Model aspects will be well suited to ATS, where efficiency and precision are important, and the View (UI or GUI) can be implemented in Java, which has a diverse set of GUI APIs.

There is a matrix example using the MVC paradigm. Other JNI examples, including a minimal class in Java for linear arrays in ATS, may be found in ATS contrib. Small projects using Java in contrib include GameOf24 (which supports several other languages as well) and a calculator.

Clone this wiki locally