From: Ken A. <kan...@bb...> - 2003-10-10 22:24:05
|
At 05:08 PM 10/10/2003 -0400, Anton van Straaten wrote: >Ken Anderson wrote: >> Yes, this is something we should correct. For example, Dan' >> Friedman's code: >> http://www.cs.indiana.edu/~dfried/ooo.ss for >> http://www.cs.indiana.edu/~dfried/ooo.pdf >> which are about the hariest macros i've seen works fine in >> JScheme. I'll provided it as a JScheme example after Dan >> presents his talk. > >This is good to know. Is the syntax-case & syntax-rules implementation now >integrated into JScheme? you need to load elf/eopl2/jscheme/jscheme-init.scm, so you don't get it by default. Also, because of the way psyntax.scm is written backtraces on errors are not very informative. All variables have been alpha substituded for example and you get a giant stack trace. Perhapse we can do something with Tim's module system to make this better. I welcome people to try it and complain and help make it better. >> >I haven't looked into that, since I've been working on server-side >> >web applications. The kind of things I've been doing have involved >> >interfacing to Java business objects, web framework code, and >> >persistence code. I'll clarify that on c.l.s. >> >> Here's a great SISC paper which sounds similar to what you are doing: >> http://schematics.sourceforge.net/scheme-london/nmk-case-study.pdf >> I'd love to hear more about what you'r up to. > >This paper describes a more comprehensive solution than what I've done so >far, but it is along similar lines. I've used a Java library called >Hibernate ( www.hibernate.org ) instead of the OJB library mentioned in the >paper. Like OJB, Hibernate transparently maps Java business objects to a >SQL database. Those objects are then accessible within Scheme. I'm not >using a web presentation framework - the larger Java application in question >has a homegrown one, but the Scheme pages form a somewhat separate subsystem >at the moment. The Scheme code interacts directly with web pages and forms, >using continuations to support a natural coding style. Tim and i have tried Jetty and Tomcat. JScheme makes it easy to do simple dynamic pages and database accesses, but without the nice continuation support. I'll have to look into hybernate. k |