Re: [polyml] linking polyML modules to C

2015-01-24 Thread David Topham
polyml@inf.ed.ac.uk >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> http://lists.inf.ed.ac.uk/mailman/listinfo/polyml >>> or, via email, send a message with subject or body 'help' to >>> polyml-requ...@

Re: [polyml] linking polyML modules to C (Phil Clayton)

2015-01-22 Thread David Topham
t; or, via email, send a message with subject or body 'help' to >> polyml-requ...@inf.ed.ac.uk >> >> You can reach the person managing the list at >> polyml-ow...@inf.ed.ac.uk >> >> When replying, please edit your Subject line so it is m

Re: [polyml] linking polyML modules to C

2015-01-21 Thread Phil Clayton
19/01/15 12:19, David Matthews wrote: On 19/01/2015 04:34, David Topham wrote: Thanks David for your response. While searching I found this comment you made earlier: "The foreign-function interface allows for call-back functions so there is the mechanism to produce a C function that when calle

Re: [polyml] linking polyML modules to C

2015-01-19 Thread David Matthews
On 19/01/2015 04:34, David Topham wrote: Thanks David for your response. While searching I found this comment you made earlier: "The foreign-function interface allows for call-back functions so there is the mechanism to produce a C function that when called calls an ML function." in http://sta

Re: [polyml] linking polyML modules to C

2015-01-19 Thread Gergely Buday
David Topham wrote: > "The foreign-function interface allows for call-back functions so there is > the mechanism to produce a C function that when called calls an ML function." > > in > http://stackoverflow.com/questions/17580386/shared-libraries-in-poly-ml > > Doesn't this indicate a mechanism t

Re: [polyml] linking polyML modules to C

2015-01-18 Thread David Matthews
David, This isn't possible. There's no way to build a library from SML using Poly/ML and link it with a main program written in some other language. It is possible to do the reverse, to load a shared library written in, say C, and use that from ML but you need to use the CInterface (FFI) str