Re: [Sisc-users] New release - Library of code for SISC - Bedlam
Brought to you by:
mradestock,
scgmille
From: Kjetil S. M. <k.s...@no...> - 2010-04-07 10:34:33
|
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) |