The Sling programming language is a general-purpose, object oriented programming language that is meant to be used for all kinds of software development targeting multiple platforms and different execution environments. Sling encourages productivity, maintainability and well formatted, well structured source code.

Filed under

Sling was originally developed to provide a way to write code for multiple target platforms and languages from a single codebase. It has since been continuously evolved, and a lot of effort has been placed on trying to create a language and programming environment that would help reduce or eliminate manual work, and to encourage the creation of maintainable, readable and well formatted source code.

 * Hello world in Sling. Save in a file named "".


	PRINT "Hello World"
	return 0

If you are new to Sling, you may also wish to read the original blog post announcement for the Sling Programming Language (note, however, that Sling has already evolved and changed since the original announcement).

Sling Compilers and Build Tools

Eqela produces the slingc compiler that also serves as the reference implementation of Sling. The slingc compiler can be downloaded directly from the Eqela package repository, but as of April 2018, the preferred way is to use the Eqela command line interface (eqela-cli) tools, which will automatically download and use the appropriate version of the compiler and the libraries, depending on the application being compiled. Download the eqela-cli package through the link below:

Eqela Command Line Interface (eqela-cli)

The Eqela CLI package above is distributed as a .NET executable, which works as is on Windows, and can be used through Mono on Linux and Mac OS X. The eqela-cli package is fully developed in Sling, and the full source code is available on GitHub. To test the compiler, you can compile the Eqela Samples. The command to compile would be something like this (if you are using Mono, prefix the command with "mono"):

<path-to-eqela-cli>/eqela.exe <path-to-eqela-samples>/build.qx

Authoring Tools

For authoring Sling code, any standard text editor or IDE can be used. We recommend the use of Visual Studio Code (with the Eqela extension), which is also what is being used for the development of Sling itself:

Install Visual Studio Code and Eqela extension

Language Documentation

Please find out more details through the links below:

Sling Language Reference

Standard library

Sling does not in any way enforce the use of any additional standard library. However, in practice, most Sling programs are developed using the Jkop application frameworks.

Sample programs and sample code

The eqela-samples projects includes many good, simple and short samples of Sling code:

Otherwise, very good and comprehensive code samples for Sling programming are also found in the Jkop (application framework, including game and network development) and Sympathy (web and network service framework) projects, both of which are open source and found on Github. Both projects are fully implemented in Sling:

Twitter Facebook LinkedIn Youtube Slideshare Github