SARL is a general-purpose agent-oriented language, www.sarl.io.
SARL aims at providing the fundamental abstractions for dealing with concurrency, distribution, interaction, decentralization, reactivity, autonomy and dynamic reconfiguration. These high-level features are now considered as the major requirements for an easy and practical implementation of modern complex software applications. We are convinced that the agent-oriented paradigm holds the keys to effectively meet this challenge.
Considering the variety of existing approaches and meta-models in the field of agent-oriented engineering and more generally multi-agent systems, our approach remains as generic as possible and highly extensible to easily integrate new concepts and features. The language is platform- and architecture-independent.
However, we provide a first set of tools to support its execution based on the recent version 3.0 of the Janus (see www.janusproject.io) platform, but it can be linked with other existing agent platforms and frameworks.
For making your experience with SARL the best, we recommend you:
-
to enable the assertions at development time (with the
-ea
command line option).
The lastest stable version of SARL is available on Maven Central. Consequently, you could directly include the SARL module into the Maven dependencies of your project:
...
<dependency>
<groupId>io.sarl.sdk</groupId>
<artifactId>sdk</artifactId>
<version>0.13.0</version>
</dependency>
...
Please, replace Version 0.13.0
in the previous snipset by the number of the version you want to use.
New features, enhancements and bug fixes are available in the SNAPSHOT (development) version of SARL. For using this version, you must add the Maven Repository Server of SARL in your pom file:
...
<dependencies>
<dependency>
<groupId>io.sarl.sdk</groupId>
<artifactId>sdk</artifactId>
<version>0.14.0-SNAPSHOT</version>
</dependency>
<dependencies>
...
<repositories>
<repository>
<id>io.sarl-maven</id>
<name>SARL Snapshots</name>
<url>http://maven.sarl.io/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>io.sarl-maven</id>
<name>SARL Snapshots</name>
<url>http://maven.sarl.io/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
...
For compiling SARL source files with Maven, you should use the provided plugin: sarl-maven-plugin
.
It invokes the SARL and Java compilers with a simpler interface than the standard Xtext maven plugin.
For using the sarl-maven-plugin
, you should add in your pom file:
...
<build>
<plugins>
<plugin>
<groupId>io.sarl.lang</groupId>
<artifactId>sarl-maven-plugin</artifactId>
<version>0.13.0</version>
<extensions>true</extensions>
<configuration>
<source>17</source>
<target>17</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
...
</plugins>
...
</build>
...
Please, replace Version 0.13.0
in the previous snipset by the number of the version you want to use.
Caution
|
Do not forget to set the extensions flag to true .
|
Several style specifications are provided for syntax highlighting in third party tools. Style specifications are provided for:
-
Atom (TextMate language definition)
-
Gtk source view (including gedit)
-
LaTeX:
-
Sublime Text (TextMate language definition)
-
TextMate (or plist definition)
The SARL project is splitted into different sub-projects that may be compiled independently. Each project is dedicated to a specific set of features and tools. These sub-projects are:
-
sarl-bom: Provide the Build-of-Material, i.e., a shared list of Maven dependency, for all the SARL sub-projects;
-
sarl-baseutils: Set of Maven artifacts that are independent of SARL but needed to build the SARL artifacts;
-
sarl-lang: Provides the language definition, the associated compiler (including the Maven plugin) and code formatting styles for different text editors;
-
sarl-sdk: Set of Maven artifacts that constitute the SDK for all the SARL developers;
-
sarl-apputils: Shared projects for building applications that are using a SARL compiler;
-
sarl-sre: SARL runtime environment (or SARL virtual machine);
-
sarl-docs: Tools and Doclet for the generation of the documentation, including the API documentation pages;
-
sarl-cli: Set of command-line tools (sarlc, sarldoc, janus…);
-
sarl-eclipse: Eclipse-based editor for SARL;
-
sarl-officialdoc: Markdown files of the official documentation of SARL.
Any contribution to the SARL is welcome. Please read the guidelines for contributors.
-
Antoine BARTUCCIO, fireworks and Sierpinski fractal examples.
-
Greg BOWERING, fixes for localization support within the fireworks example.
-
Stéphane GALLAND, founder, original and active author.
-
Nicolas GAUD, founder, original and active author.
-
Alexandre LOMBARD, active author.
-
Sebastian RODRIGUEZ, founder, original and active author.
SARL is distributed under the Apache v2 license, and is copyrigthed to the original authors and the other authors, as expressed in the NOTICE.
SARL was successfully used by multiple projects. They are listed on the official SARL website.