Re: [mercury-users] pragma compiled_memo for compile-time tabled evaluation

2003-09-05 Thread Stefan Karrmann
André Platzer (Fri, Sep 05, 2003 at 04:03:42PM +0200): > Hello Mercury users! > > Is there any way to extend tabled evaluation to compile-time? As far as > I understand, normal tabled evaluation memorises values computed at > run-time. On an invocation with the same arguments, then mercury reuse

Re: Haskell for non-Haskell's sake

2003-09-05 Thread John Hughes
On Fri, 5 Sep 2003, Johannes Waldmann wrote: > On Thu, 4 Sep 2003, John Hughes wrote: > > > I use Haskell and Wash/CGI for administering students lab work. > > same here (in addition to Haskell programs for actually grading the homework). > > just curious: what kind of data base do you use? > we t

RE: Haskell for non-Haskell's sake

2003-09-05 Thread Simon Marlow
> I implemented a trivial "database", stored in ordinary files, > and had to > ensure mutual exclusion of database access between > simultaneously running > CGI scripts. Since each CGI run is short, I simply locked the entire > database for the entire run. Claiming a lock on a file is > easy i

Re: Haskell for non-Haskell's sake

2003-09-05 Thread John Hughes
On Thu, 4 Sep 2003, Sebastian Sylvan wrote: > On Thu, 4 Sep 2003, John Hughes wrote: > > I wrote the system for my (Haskell!) programming course, with 170 students > > last year, and it is now also being used (at least) for our Java course > > and a cryptography course. It consists of about 600 li

Re: unary minus

2003-09-05 Thread Christian Maeder
I wrote: > I wonder why Haskell only allows the unary minus on the left side of an expression ("lexp" in the grammar). The unary minus may also occur on the right hand side (rule: "exp -> lexp"). So "-1 == -1" is correct, because "==" has lower precedence than "-". Also "-1*2" is correct althou

Re: Haskell for non-Haskell's sake

2003-09-05 Thread Johannes Waldmann
On Thu, 4 Sep 2003, John Hughes wrote: > I use Haskell and Wash/CGI for administering students lab work. same here (in addition to Haskell programs for actually grading the homework). just curious: what kind of data base do you use? we take Krasimir Angelov's MySql binding (from HToolkit). th