"S. Alexander Jacobson" <[EMAIL PROTECTED]> writes:
> I just started playing with Haskell for CGI applications.
> I would like to try writing a more serious CGI app, but
> missing infrastructure makes it more difficult than conventional
> approaches.

I presume you've already got hold of Erik Meijer's cgi script stuff.
(If not, there's a copy in the current Hugs distribution at
 http://haskell.org/hugs.)

I'm afraid I'm not familiar with most of the other things you want.
I know GHC (another Haskell compiler) provides an ndbm interface
 but AFAIK it's not (currently) portable to other compilers.

> I suppose that I could have Haskell talk to Jacl to access the Java
> implementations of these capabilities, but this seems like a hack.

Nothing wrong with reusing existing code.  Here at Yale we're very 
interested in interoperability with C, C++, etc. because it's
unrealistic to expect every library to be (re)implemented in Haskell.

One approach to interoperability is GreenCard 
(http://www.dcs.gla.ac.uk/fp/software/green-card/)
- a tool/language for describing C functions in the way Haskell
programmers want to see them.

Another approach is to use IDL (cf COM, CORBA, etc) - which lets you
 describe functions (in any language) in a way that programmers (of
 any language) want to see them.  SimonPJ's
 paper about COM (see http://www.dcs.gla.ac.uk/~simonpj/) is a good
 place to look - but note that they're not distributing an
 implementation (yet!)

Of course, it might be that the Java libraries aren't powerful enough
to do the job or force an unnatural programming style on Haskell
programmers.  In that case, we should think about implementing them
ourselves.

-- 
Alastair Reid              Yale Haskell Project Hacker
[EMAIL PROTECTED]  http://WWW.CS.Yale.EDU/homes/reid-alastair/



Reply via email to