Re: New release - Library of code for SISC - Bedlam

"Kjetil S. Matheussen" <[email protected]> Wed, 7 Apr 2010 12:34:23 +0200 (CEST)
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>

On Wed, 7 Apr 2010, Igor Hjelmstrom Vinhas Ribeiro wrote:

> Hi!
>
>  This is to announce v00000013 of the Bedlam Library for Sisc. You
> can find it under http://github.com/igorhvr/bedlam (direct link:
> http://github.com/igorhvr/bedlam/tarball/v00000013 ).
>
>  Basic job scheduling support using Quartz
> (http://www.quartz-scheduler.org/) to schedule Scheme Closures for
> execution using crontab-like notation is now included.
>
>   Also, the following functionality is currently available in the library:
>
>   * jcode - an alternative FFI for Java that is  really easy to use.
> Two examples (of use of jcode):
>     http://github.com/igorhvr/bedlam/blob/master/iasylum/email.scm
>     http://github.com/igorhvr/bedlam/blob/master/iasylum/excel.scm
>

Cool that you can write java code directly as strings in Scheme!

Here's another alternative FFI for java I made a few years ago:
http://users.notam02.no/~kjetism/javaoo.tar.gz

Your email example can be written like this (I'm pretty sure):

(load "various.scm")
(c-import java)
(define email (new <org.apache.commons.mail.SimpleEmail>))
(-> email setHostName mailserver)
(-> email addTo recpientemail recipientname)
(-> email setFrom sendermail sendername)
(-> email setSubject subject)
(-> email setMsg messagetext)
(-> email send)



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev