Over a million developers have joined DZone.

Sleep 2.1: Java Scripting Language


After 2 years of development, Sleep 2.1 is now released. Sleep is a Java-based scripting language heavily inspired by Perl. Features include first-class functions and continuations, a built-in debugger, taint mode security, and access to the Java class library. Sleep embeds into applications, executes scripts stand-alone, and it supports the Java 6 Scripting Framework.

$ java -jar sleep.jar
>> Welcome to the Sleep scripting language
> x iff(unpack('i!', pack('i+', 1))[0] == 1, "big endian", "little endian")
big endian

Sleep can embed into applications, implement mobile agents, extract and parse binary data, and a lot more. More information is available at the Sleep homepage:


Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}