ASPL is a high-level, general-purpose programming language for building modern, safe, and portable software.
-
Simple 💡
The syntax is clean and readable, the compiler is easy to use and provides meaningful insights, and installing the whole ASPL toolchain is as straightforward as a few clicks. -
Safe 🔒
High-level abstractions, automatic memory management, a strong type system, and out-of-the-box TLS support make ASPL safe by design. -
Cross-platform 🌐
Newcomers and experienced programmers alike can easily create powerful cross-platform applications with ASPL; seamless cross-compilation is one of ASPL's core design principles. -
Powerful standard library 🔥
Built-in JSON, graphics, and advanced networking support are just a few of the things that will drastically speed up your coding process. -
Modular architecture 📚
ASPL has a great and simple modular library system that helps you reuse any kind of third-party code in your projects, including even the ASPL compiler itself.
Important
ASPL is still in beta. The language and its tooling are already fairly practical and stabilizing, but more breaking changes are to come. Parts of the standard library currently have known security vulnerabilities. ASPL is not yet recommended for production use. There will be more detailed documentation on the current state of ASPL regarding stability and safety soon. Contributions to this project are always welcome.
Please have a look at the installation guide.
Make sure to check out the official introduction to ASPL.
It also documents most of the language and contains a lot of examples.
ASPL is currently in early development and still has some bugs and missing features.
Please report bugs or suggest features by opening an issue or posting them in the ASPL Discord server.
-> means the program prints text to the console
<- means the user types something into the console
print("Hello World!") // print means "write into the console"
Output:
-> Hello World!
var favoriteFood = input("What's your favorite food?") // prints "What's your favorite food" and waits until the user types something into the console
if(favoriteFood == "Spaghetti"){ // checks whether the users input matches a certain string, here: "Spaghetti"; if it doesn't, the code between the braces will be skipped
print("Hm, yummy, that's my favorite food too!")
}else{ // the following code is executed only if the condition in the if statement evaluated to false, here: the input was not "Spaghetti"
print("Sounds great!")
}
Example Output:
-> What's your favorite food?
<- Spaghetti
-> Hm, yummy, that's my favorite food too!
import rand
print(rand.irange(1, 100)) // prints a random number between 1 and 100 to the console
Example Output:
-> 42
Note
More examples can be found here or in the ASPL introduction.