This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Servlet based implementation of brl.


On 08/13/2009 07:51 AM, Dan Stanger wrote:
I have parts of brl working using the current kawa svn, using a slightly
modified KawaPageServlet.   However, I am not sure how to resolve:
The scheme files which comprise the brl implementation need to be loaded
in the servlet init function.  Can I use Language.getLanguage("scheme")
in the servlet init, and then use it to load the scheme class files?

It looks (from the rest of your message) that you're using gnu.kawa.brl.BRL, which is my preference and recommendation . In that case presumably you would import the needed definitions in the BRL, not the servlet level. I.e. modify/extends the loadClass class in initBRL. It seems that's what you're doing, so I'm not sure what you're asking.

Will the call to Language.getInstanceFromFilenameExtension in getModule
from the servlet run method use the same namespace as the one created
when I loaded the scheme class files?

I think so.


Following are the files I needed to change:

kawa\standard\require.java - include require of srfi-13.
gnu\kawa\slib\srfi13.scm - download of srfi-13 reference implementation
from schemers.org
gnu\kawa\servlet\HTTP.scm - additional functions to support brl.
gnu\kawa\servlet\KawaPageServlet.java - define brl-servlet-output-port.
gnu\kawa\brl\BRL.java - additional loads of files.
gnu\kawa\brl\progfun.scm - rewrite macros.
gnu\brl\netfun.scm - added.
gnu\brl\repeat.scm - added.
gnu\brl\webfun.scm - added, modified to use functions in HTTP.scm.
build.xml - added files, modified classpath.

Looking promising. I'd me happy to look at your patches and maybe check them in. -- --Per Bothner per@bothner.com http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]