Simon D. Foster | 23 Apr 20:07 2005
Picon

[Fwd: [Haskell] ANNOUNCE: The jhc Haskell compiler.]

Re: JHC, a new Haskell compiler.

-Si.

-- 
Simon D. Foster <u1sf <at> dcs.shef.ac.uk>
Sheffield University
Picon
From: John Meacham <john <at> repetae.net>
Subject: [Haskell] ANNOUNCE: The jhc Haskell compiler.
Date: 2005-04-19 11:54:42 GMT
See what I've been doing :) 

This document as html is available at 
 http://repetae.net/john/computer/jhc/jhc.html

and the main jhc page with links to the darcs repo is at 
 http://repetae.net/john/computer/jhc/

= Jhc = 

Jhc is a compiler for Haskell that aims to produce very efficient code as well as
explore novel compilation techniques in an attempt to make them practical.

(Continue reading)

Simon D. Foster | 12 Apr 18:51 2005
Picon

HAIFA Unstable

>From this evening we will be switching over to the unstable branch of
HAIFA, which contains all the XML Schema stuff. I've tested SOAP, and it
should work fine, but if anyone has any problems, please tell me and
I'll sort it out.

Thanks,

-Si.

--

-- 
Simon D. Foster <u1sf <at> dcs.shef.ac.uk>
Sheffield University

Simon D. Foster | 18 Feb 18:18 2005
Picon

Function Evaluation

Ok,

You're probably all going to hate me for this, but because I can't get
hs-plugins to work with the latest version of GHC and because it can't
extract type errors properly at the moment anyway, I've written two
reference functions which perform evaluation and typing. They do it via
a pipe to a GHCi process (specifically ghc -e, which works like perl
-e), which means we're using Read to perform deserialization of the data
and we obviously can't deserialize functions.

My reason for doing this is so that we've at least got something to work
with while I'm awaiting a reply from Don Stewart (the guy behind
hs-plugins). We'd have to be playing the pipe game anyway to get proper
errors, but at least we'd be able to evaluate functions. But this will
have to do for now. To enable evaluation of onotology functions, you
need to append the serialized parameters to the function call. Any none
Prelude functions must be fully qualified and appropriate packages
loaded on the ghc command line. 

Code so far is attached. The two key functions are eval and typeExpr.

-Si.

--

-- 
Simon D. Foster <u1sf <at> dcs.shef.ac.uk>
Sheffield University
Attachment (Eval.hs): text/x-haskell, 1411 bytes
_______________________________________________
(Continue reading)

Simon D. Foster | 11 Feb 15:49 2005
Picon

Running Web-Services

...should now work fine. I've installed GHC 6.4 and all the libraries,
and apart from a few bugs, everything is ok.

-Si.

--

-- 
Simon D. Foster <u1sf <at> dcs.shef.ac.uk>
Sheffield University
Simon Foster | 10 Feb 12:49 2005
Picon

Web-Service Publisher

Ok,

I've successfully tested the Factorial Web-Servie and it works fine. I'm 
not sure if you'll actually be able to use the example right away 
because I think the permissions are wrong, but I'll sort that out soon. 
The example is on the wiki page 
https://www.dcs.shef.ac.uk/wiki/bin/view/Darwin/DarwinFourUsingHAIFAPublisher, 
and the actual source file is in 
$CASHEWS/services/Network/Service/Factorial.hs. To use it, cd to 
$CASHEWS/services and load ghci with

 > ghci -i../haifa/src Network.Service.Factorial

You can then run it with the main2 function (the source differs a little 
from the wiki source). There's also a config.xml file here (although 
it's pretty simple).

You can test it by telneting to localhost 8080 and sending this HTTP 
request;

POST /factorialService HTTP/1.1
Content-Length: 76

<Envelope><Body><intMessage><value>5</value></intMessage></Body></Envelope>

-Si.

Gmane