Re: FreeMarker, ANTLR & New Free Marker Template Notations [was: JetBrains / IntelliJ IDEA v8 to Support FreeMarker!]

Randall R Schulz <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi, Daniel,

On Thursday 03 April 2008 09:17, you wrote:
> Yeah, sorry for not being too clear. By "it", I meant Scheme.
>
> The "standardised" way would be using the Java 6 Scripting API and
> and a JSR-223 compliant engine to run your Scheme scripts. The only
> JSR-223 implementation I know for scheme is the one provided here:
> https://scripting.dev.java.net/, which uses SISC under the cover, but
> that's the one I found be very buggy and unreliable.
>
> By "directly" I meant using SISC the way it is used standalone, as
> described here:
> http://sisc-scheme.org/manual/html/ch02.html#running-sisc, for
> example, or here:
> http://sisc-scheme.org/manual/html/ch08.html#JavaToScheme. I can't
> say anything about either way, as I have never used it.
>
> As I did not try SISC directly, my goal was to test JSR-223
> implementations, not learning Scheme, it might be that the one to
> blame for the buggy behaviour I experimented was SISC and not the
> scripting engine, but the look I had at the scripting engine code and
> the behaviour exhibited in very simple tests suggest otherwise.

I'd kind of forgotten about (or overlooked) the JSR-223 route. If it's 
buggy, it's probably just 'cause it's new. (One can hope.)


> So, what I meant is that unless you want to be able to later on swap
> Scheme with another scripting language and you can find/provide an
> alternative JSR-223 comliant implementation, I would avoid the Java 6
> Scripting API route to execute Scheme from Java.

Well, I'm looking at Scheme not as just another scripting language, but 
rather as one that is particularly well-suited to the specific tasks I 
have to accomplish (and I generally like Lisp). Plus, while some of my 
requirements can be characterized as scripting my application, the 
thing I want first and most is an easily programmed, pattern-directed 
transformation / rewriting process.


Anyway, thanks for the clarifications.


> S!
> D.


Randy


> S'està citant Randall R Schulz <[email protected]>:
> > On Thursday 03 April 2008 01:29, Daniel López wrote:
> >> ...
> >>
> >> So if you want to use it, you might want to use it directly
> >> instead of through the now-standardised way.
> >
> > By "it" do you mean Scheme? If so, what is the "now-standardised"
> > way and what is "directly?"

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.