
Hello all, I'm interested in doing some YHC bytecode manipulation, and I'd like to be able to read a bytecode module using Haskell. In the online Haddock docs, there's a lovely-looking module named 'Module' which contains readModule :: String -> Module http://www-users.cs.york.ac.uk/~ndm/yhc/docs/Module.html However, 'Module' doesnt appear in the 'yhc' or 'yhc-devel' repositories. Does this code exist somewhere else? How can I get at it? Thanks Rob Dockins

Hi Robert,
http://www.haskell.org//pipermail/yhc/2005-November/000004.html
The code is from there. Its quite old and I know I have a newer
version somewhere, but not necessilary sure I have a more complete
version anywhere. It doesn't deal with all instructions, but the basic
format is there. It has no output capability, but thats something
thats definately needed in future.
Ultimately my goal is to create a Yhc.Bytecode library which is used
by both Yhc and anyone elses code. Unfortunately I've been rather
pressed for time lately.
Thanks
Neil
On 4/14/06, Robert Dockins
Hello all,
I'm interested in doing some YHC bytecode manipulation, and I'd like to be able to read a bytecode module using Haskell. In the online Haddock docs, there's a lovely-looking module named 'Module' which contains
readModule :: String -> Module
http://www-users.cs.york.ac.uk/~ndm/yhc/docs/Module.html
However, 'Module' doesnt appear in the 'yhc' or 'yhc-devel' repositories. Does this code exist somewhere else? How can I get at it?
Thanks Rob Dockins _______________________________________________ Yhc mailing list Yhc@haskell.org http://haskell.org/mailman/listinfo/yhc

On Friday 14 April 2006 05:09 pm, you wrote:
Hi Robert,
http://www.haskell.org//pipermail/yhc/2005-November/000004.html
The code is from there. Its quite old and I know I have a newer version somewhere, but not necessilary sure I have a more complete version anywhere. It doesn't deal with all instructions, but the basic format is there. It has no output capability, but thats something thats definately needed in future.
Thanks for this Neil. Can I assume this code is also under the GPL? (BTW, I couldn't find any licensing materials in the YHC source repos; you'll probably want to tighten that up).
Ultimately my goal is to create a Yhc.Bytecode library which is used by both Yhc and anyone elses code. Unfortunately I've been rather pressed for time lately.
In that case I may see if I can move this code in that direction. I have the idea that it would be nice to automaticly derive interfaces and serialization code from the xml structure found in the YHC source, and use Eternal Compatibility in Theory to maintain compatibility across bytecode versions. Rob Dockins
Thanks
Neil
On 4/14/06, Robert Dockins
wrote: Hello all,
I'm interested in doing some YHC bytecode manipulation, and I'd like to be able to read a bytecode module using Haskell. In the online Haddock docs, there's a lovely-looking module named 'Module' which contains
readModule :: String -> Module
http://www-users.cs.york.ac.uk/~ndm/yhc/docs/Module.html
However, 'Module' doesnt appear in the 'yhc' or 'yhc-devel' repositories. Does this code exist somewhere else? How can I get at it?
Thanks Rob Dockins _______________________________________________ Yhc mailing list Yhc@haskell.org http://haskell.org/mailman/listinfo/yhc

Thanks for this Neil. Can I assume this code is also under the GPL? All of the code is under the GPL, it says so on the wiki (maybe
Hi Robert, putting the license on a wiki isn't the best idea...), I guess we deleted LICENSE by accident at some point. I wrote all the stuff in that .zip, so if another license is better for you, I'm sure it can be arranged. Since the bytecode will be a library, the GPL might not be the best choice anyway.
In that case I may see if I can move this code in that direction. I have the idea that it would be nice to automaticly derive interfaces and serialization code from the xml structure found in the YHC source, and use Eternal Compatibility in Theory to maintain compatibility across bytecode versions.
That would be very nice. If you look at /src/compiler98/ByteCode/data/haskell.xsl that generates some Haskell code for reading bytecodes - I never got round to integrating it into the haskell module reader, but it shouldn't be too hard. The Python version of Yhi (Pyhi) uses that .xml already. Thanks Neil
participants (2)
-
Neil Mitchell
-
Robert Dockins