Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sarl/sarl

SARL Agent-Oriented Programming Language http://www.sarl.io
https://github.com/sarl/sarl

agent agent-based agent-based-modeling agent-teamwork agents dsl framework ide java linux macox programming-language windows xtext

Last synced: 27 days ago
JSON representation

SARL Agent-Oriented Programming Language http://www.sarl.io

Awesome Lists containing this project

README

        

= SARL Agent Programming Language
:toc: right
:toc-placement!:
:hide-uri-scheme:

image:http://www.sarl.io/images/SARL-logo.png[width=100]

SARL is a general-purpose agent-oriented language, http://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 http://www.janusproject.io) platform, but it can be linked with other existing agent platforms and frameworks.

image:http://www.sarl.io/docs/official/compilation/compilation_process.png[align="center"]

image:https://img.shields.io/badge/documentation-API-ff69b4.svg?style=flat-square[link=http://www.sarl.io/docs/api/index.html]
image:https://img.shields.io/badge/documentation-reference-red.svg?style=flat-square[link=http://www.sarl.io/docs/official/index.html]
image:https://badges.gitter.im/sarl/Lobby.svg[link=https://gitter.im/sarl/Lobby]

image:https://img.shields.io/badge/requires-Java%2017-yellowgreen.svg?style=flat-square[link=https://www.java.com]
image:https://img.shields.io/badge/interoperable%20with-Java-yellowgreen.svg?style=flat-square[link=https://www.java.com]
image:https://img.shields.io/maven-central/v/io.sarl.sdk/sdk.svg?label=available%20on%20Maven%20Central[link=http://search.maven.org/#search%7Cga%7C1%7Cio.sarl]
image:https://img.shields.io/badge/build%20with-Maven-blue.svg?style=flat-square[link=http://maven.apache.org]

image:https://img.shields.io/badge/based%20on-Xtext-orange.svg?style=flat-square[link=https://eclipse.org/Xtext]

image:https://img.shields.io/github/license/sarl/sarl.svg?style=flat-square[link=https://opensource.org/licenses/Apache-2.0]
image:https://cla-assistant.io/readme/badge/sarl/sarl?style=flat-square[link=https://cla-assistant.io/sarl/sarl]

toc::[]

== 1. Requirements

* Java Development Toolkit (JDK) 17 or higher.

== 2. Using SARL

=== 2.1. Recommendations

For making your experience with SARL the best, we recommend you:

* *to enable the assertions at development time (with the `-ea` command line option).*

=== 2.2. Use the stable version with Maven

The lastest stable version of SARL is available on link:http://search.maven.org/[Maven Central].
Consequently, you could directly include the SARL module into the Maven dependencies of your project:

```xml
...

io.sarl.sdk
sdk
0.13.0

...
```

Please, replace Version `0.13.0` in the previous snipset by the number of the version you want to use.

=== 2.3. Use of the development version with Maven

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:

```xml
...


io.sarl.sdk
sdk
0.14.0-SNAPSHOT


...


io.sarl-maven
SARL Snapshots
http://maven.sarl.io/




io.sarl-maven
SARL Snapshots
http://maven.sarl.io/

true



...
```

=== 2.4. Compile SARL code with Maven

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:

```xml
...



io.sarl.lang
sarl-maven-plugin
0.13.0
true

17
17
UTF-8


...

...

...
```

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`.

=== 2.5. Syntax highlighting with other tools

Several style specifications are provided for syntax highlighting in third party tools.
Style specifications are provided for:

* link:./sarl-lang/formatting-styles/textmate/sarl.tmLanguage[Atom] (TextMate language definition)
* link:./sarl-lang/formatting-styles/source-highlight/sarl.lang[GNU source-highlight]
* link:./sarl-lang/formatting-styles/prettify/lang-sarl.js[Google Prettify]
* link:./sarl-lang/formatting-styles/gtk/sarl.lang[Gtk source view] (including gedit)
* LaTeX:
** LaTeX listing: link:./sarl-lang/formatting-styles/latex/sarl-listing.sty[monochrom], link:./sarl-lang/formatting-styles/latex/sarl-colorized-listing.sty[color]
** link:./sarl-lang/formatting-styles/latex/sarl-beamer-listing.sty[LaTeX Beamer]
* link:./sarl-lang/formatting-styles/pygments/sarlexer/sarl.py[Pygments]
* link:./sarl-lang/formatting-styles/textmate/sarl.tmLanguage[Sublime Text] (TextMate language definition)
* link:./sarl-lang/formatting-styles/textmate/sarl.tmLanguage[TextMate] (or link:./sarl-lang/formatting-styles/textmate/sarl.plist[plist definition])
* link:./sarl-lang/formatting-styles/vim/sarl.vim[Vim]

== 3. Separated Sub-Projects

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:

* link:./sarl-bom[sarl-bom]: Provide the Build-of-Material, i.e., a shared list of Maven dependency, for all the SARL sub-projects;
* link:./sarl-baseutils[sarl-baseutils]: Set of Maven artifacts that are independent of SARL but needed to build the SARL artifacts;
* link:./sarl-lang[sarl-lang]: Provides the language definition, the associated compiler (including the Maven plugin) and code formatting styles for different text editors;
* link:./sarl-sdk[sarl-sdk]: Set of Maven artifacts that constitute the SDK for all the SARL developers;
* link:./sarl-apputils[sarl-apputils]: Shared projects for building applications that are using a SARL compiler;
* link:./sarl-sdk[sarl-sre]: SARL runtime environment (or SARL virtual machine);
* link:./sarl-docs[sarl-docs]: Tools and Doclet for the generation of the documentation, including the API documentation pages;
* link:./sarl-cli[sarl-cli]: Set of command-line tools (sarlc, sarldoc, janus...);
* link:./sarl-eclipse[sarl-eclipse]: Eclipse-based editor for SARL;
* link:./sarl-officialdoc[sarl-officialdoc]: Markdown files of the official documentation of SARL.

== 4. Issues

Issues related to SARL are tracked on link:https://github.com/sarl/sarl/issues[GitHub]
You must use this issue tracker to report and follow your issues.

Additionally, you could have a look on the SARL developers' working plan on link:https://huboard.com/sarl/sarl[Huboard].

== 5. Contributions

Any contribution to the SARL is welcome.
Please read the link:./CONTRIBUTING.adoc[guidelines for contributors].

== 6. Authors and Contributors

* image:https://avatars.githubusercontent.com/klmp200[width="50px",link=https://github.com/klmp200] Antoine BARTUCCIO, fireworks and Sierpinski fractal examples.
* image:https://avatars.githubusercontent.com/Lomadriel[width="50px",link=https://github.com/gb96] Gérôme BOULMIER, game of life example.
* image:https://avatars.githubusercontent.com/gb96[width="50px",link=https://github.com/gb96] Greg BOWERING, fixes for localization support within the fireworks example.
* image:https://avatars.githubusercontent.com/m-ezzat[width="50px",link=https://github.com/m-ezzat] Mohamed EZZAT, code cleaning and optimization.
* image:https://avatars.githubusercontent.com/ThomasFarrenkopf[width="50px",link=https://github.com/ThomasFarrenkopf] Thomas FARRENKOPF, documentation contributor.
* image:https://avatars.githubusercontent.com/jgfoster[width="50px",link=https://github.com/jgfoster] James FOSTER, documentation contributor.
* image:https://avatars.githubusercontent.com/gallandarakhneorg[width="50px",link=https://github.com/gallandarakhneorg] link:http://www.ciad-lab.fr/stephane_galland/[Stéphane GALLAND], founder, original and active author.
* image:https://avatars.githubusercontent.com/ngaud[width="50px",link=https://github.com/ngaud] link:http://www.ciad-lab.fr/nicolas_gaud/[Nicolas GAUD], founder, original and active author.
* image:https://avatars.githubusercontent.com/jjst[width="50px",link=https://github.com/jjst] Jeremie JOST, documentation contributor.
* image:https://avatars.githubusercontent.com/alexandrelombard[width="50px",link=https://github.com/alexandrelombard] link:http://www.ciad-lab.fr/alexandre_lombard/[Alexandre LOMBARD], active author.
* image:https://avatars.githubusercontent.com/RyuzakiKK[width="50px",link=https://github.com/RyuzakiKK] Ludovico de NITTIS, documentation contributor.
* image:https://avatars.githubusercontent.com/pinam45[width="50px",link=https://github.com/pinam45] Maxime PINARD, game of life example.
* image:https://avatars.githubusercontent.com/tpiotrow[width="50px",link=https://github.com/tpiotrow] Thomas PIOTROWSKI, maven configuration.
* image:https://avatars.githubusercontent.com/srodriguez[width="50px",link=https://github.com/srodriguez] link:http://www.sebastianrodriguez.com.ar[Sebastian RODRIGUEZ], founder, original and active author.
* image:https://avatars.githubusercontent.com/ssardina[width="50px",link=https://github.com/ssardina] Sebastian SARDINA, documentation contributor.

== 7. License of SARL

SARL is distributed under the link:./LICENSE[Apache v2 license], and is copyrigthed to the original authors and the other authors, as expressed in the link:./NOTICE[NOTICE].

== 8. Success Stories

SARL was successfully used by multiple projects. They are listed on the link:http://www.sarl.io/community/index.html[official SARL website].