BSF Support Planned

1 view
Skip to first unread message

EricMinick

unread,
Aug 1, 2008, 11:54:30 AM8/1/08
to Sleep Developers
Hi all,

We are always on the lookout for a way to run Perl scripts from within
Java. We usually see these sorts of other language scripting in Java
provide an Apache BSF hook so that the scripts can be called cleanly
from within another tool.

Is anything like that planned?

-- Eric

Raphael Mudge

unread,
Aug 1, 2008, 12:23:55 PM8/1/08
to sleep-de...@googlegroups.com
Hi Eric,

Sleep is very Perl-like but Perl scripts won't run as Sleep scripts
without a lot of changes. Awhile ago someone did a Masters Thesis on
porting Perl to Java. They concluded that writing a compiler for
Perl that targets Kawa is the best way to go. I wish whoever does
that good luck. Perl is a very complicated language :) Maybe with
Perl 6 there is hope.

http://www.ebb.org/bkuhn/writings/technical/thesis

As for BSF, that is the Bean Scripting Framework. As of Java 1.6
(and available as a third party jar for 1.5), Java has a javax.script
API which is the standard way to allow scripts to integrate cleanly
with Java applications. Sleep supports this standard. BSF is a
relic at this point.

http://svn.berlios.de/viewcvs/*checkout*/sleep/sleep/jsr223/readme-
jsr223.txt

Sleep has its own API that you can use to embed it into an
application. This API came from my own experience integrating Sleep
with the IRC client jIRCii. There are over 60 scripts available for
jIRCii on its homepage. I'm happy to say the integration was
successful at attracting and creating a community. More on this is
available here:

http://sleep.dashnine.org/manual/embed.html
http://jircii.dashnine.org/

Even though Sleep isn't Perl, it still has the same 'get it done'
feel. Good luck.

-- Raphael

Eric Minick

unread,
Aug 1, 2008, 12:33:11 PM8/1/08
to sleep-de...@googlegroups.com
Thanks Raphael,

I know a full Perl implementation isn't realistic but having a way of
working with our tools that is familiar feeling for Perl guys is always
a good thing. The javax.script hooks are great. Thanks!

-- Eric

Reply all
Reply to author
Forward
0 new messages