SleepMulti-paradigm scripting language for the Java Platform | |
Download |
Sleep Ranking & Summary
Advertisement
- License:
- LGPL
- Price:
- FREE
- Publisher Name:
- Raphael Mudge
- Publisher web site:
- http://sleep.dashnine.org/
- Operating Systems:
- Mac OS X
- File Size:
- 248 KB
Sleep Tags
Sleep Description
Multi-paradigm scripting language for the Java Platform Sleep is easy to learn with Objective-C and Perl inspired syntax. Here are some key features of "Sleep": · executes scripts fast with a small package size (~225KB) · excels at data manipulation, component integration, and distributed communication · is extensible and embeds into your Java applications · seamlessly utilizes Java objects and 3rd party libraries What's New in This Release: · Sleep semaphores use notifyAll() instead of notify() to wake up threads. Was experiencing deadlock on a multicore box due to the single woken thread waiting on something else and no other threads being awoken. · fork() now copies script environment from parent env and creates fresh copies of all named closures. This prevents unsynchronized saved state and closure scope variables from leaking into the forked environment. · overloaded in operator to check if a key is in a %hash in a read only way. i.e. "x" in %hash. Why does this matter? Read-only operations on hashes are thread safe. %hash is a write operation when "unknownKey" is not in the hash. This is because Sleep adds "unknownKey" to the hash with a value of $null. In a multithreaded context this will corrupt you. · added a sum(@a|&iter, ...) function to sum the products of all specified arrays or iterators: (@a * @b * ...) + (@a * @b * ...) + ... · added -isupper and -islower to check the case of a string. · putAll(@a, @b) now puts all elements of @b onto @a. · extended values(%hash, ) to accept an array or iterator of keys to pull from the specified hash. i.e. values(%hash, @("key1", "key2", ...)) · values(...) makes copies of the scalar containers taken from the hash
Sleep Related Software