> On 1 Jun 2015, at 11:08, Anil Madhavapeddy <[email protected]> wrote:
> 
> On 1 Jun 2015, at 10:52, Dave Scott <[email protected]> wrote:
>> 
>> Hi,
>> 
>> I’ve been experimenting with building iocamljs notebooks to document Mirage 
>> libraries, in the style of Anil’s ocaml-dockerfile. Here’s what I’ve got so 
>> far for vchan:
>> 
>> http://djs55.github.io/ocaml-vchan/#
>> 
>> I’ve had to add a bunch of missing JS stubs in js_of_ocaml, io-page, cstruct 
>> and vchan itself. Writing the stubs was quite easy but I don’t know how to 
>> make the “build” nice. I don’t think oasis or ocamlfind know about js 
>> (correct me if I’m wrong!) so I’ve had to manually add ‘make js-install’ 
>> targets, and link lines ‘-jsopt +vchan/vchan.js’ in various places which is 
>> very ugly.
> 
> That's really nice!  Do you think this is a good time to retire the use of 
> Camlp4 in our docs and use the ppx extension instead (or just manual binds)?

Good point — it would be strange to document the syntax that we’re trying not 
to use ;-)

Cheers,
Dave
_______________________________________________
MirageOS-devel mailing list
[email protected]
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

Reply via email to