Sleep is an embeddable scripting solution for Java applications. Sleep is heavily inspired by Perl with bits of Objective-C thrown in. The Sleep Java API allows the language to be extended with new constructs, operators, functions, and variable containers. Version 2 just got released.
Sounds like a real snoozer!
“But boss, I don’t see why you should be coming down on me. I was working. Sleep is the new programming language I’m learning. I was coding some new classes for our customer. Honest.”
Yeah you could replace the “who’s on first” joke with some of these new programming language names: sleep, groovy, nice, boo
interesting..not one comment yet that isnt just a pun… lots of deep thinking….
The clean syntax of perl with the low overhead of java.
Its got to be a winner!
You haven’t done any serious programming in Perl, have you?
I have writen tens of thousands of lines in Perl over the past several years, and I claim with confidence that Perl’s syntax is not inherently any more dirty than C or Java. Yes, Perl has shorthand features that can be abused easily, but any self respecting book about the language will take care to teach you early on that there is a difference in style and pragmas between cobbling up a 5-line script and developing a large piece of software in OO Perl. Both are possible. Both are VERY time efficient (I know Python and Java, too, and in terms of programmer’s productivity, I keep coming back to Perl every time). And, yes, the big piece of software IS maintainable if you stick to a few simple do’s and dont’s. In short, do not blame the language for the mess YOU create.
I am impressed by just how much I dislike this language’s syntax. Is there any reason why “HOES” method invocation is made to look like Objective-C’s message dispatch, despite not using named parameter lists? [$x suckIt: 1,2,3,4,5,6,7,8] Or sending class names to new like messages? [new SuckIt: 1,2,3,4,5] Then using $@% for non-arrays, arrays, and associative arrays despite having entirely different behavior than the different contexts in Perl. In Sleep, they basically delineate namespaces since arrays and associative arrays are passed around by reference and thus are basically scalars. You get stuck passing type information around your program, despite it having no obvious benefit. This means attempting to write Perl in Sleep will give you lots of interesting surprises. It’s also interesting to note that strings are passed by value, when the norm in Java is passing immutable strings by reference.
This is a case of “look similar-enough to what people know that they might be interested until they realize what they already know isn’t applicable to what you’ve created.”
I’m sure there are other things that would seem a bit off to me, but I’ve essentially exhausted my interest.