Sparkling is a dynamic, lightweight, extensible, universal scripting language.
Features
Lightweight: The Sparkling engine is implemented in the form of a library, with compiled size less than 150 kB. It is easy to embed into another application and it has a small, friendly API.
Fast: The speed of Sparkling is comparable to that of Lua, which is widely recognized as one of the fastest interpreted languages.
Productive: Sparkling has an interactive interpreter, it is dynamically typed, easy to embed, and has a familiar syntax, so it's a joy to use. No more long compilation types or verbose declarations.
Sane: While highly dynamic, Sparkling still maintains strict typing. It does not attempt to make sense of language constructs that are not immediately meaningful. The syntax is carefully designed so that your code does what it looks like it's doing. These properties help detecting and eliminating common programmer errors, which are hard (or even impossible) to catch in other languages (shall I point to JavaScript's implicit global variables?)
Try Sparkling in your browser
Are you interested in using Sparkling? Just start typing below. No installation is necessary.
fn say_hello(name) {
let greeting = "Hello, %s!".format(name);
print(greeting);
// Look, we can even call into JavaScript!
jseval("alert('" .. greeting .. "')");
}
say_hello("friend");