Hello David,

On Mon, 8 Dec 2014, David Topham wrote:

I am interested in connecting GUI to ML as well as functions written in
C/C++ and all that seems like it would work (form reading the documentation).
[...]
Is there a better way to mix GUI with PolyML?

I myself picked up PolyML recently and I'm liking the small distribution.
Unfortunately that means it doesn't comes with "batteries included", as they
say.

Any suggestions would be appreciated!

What I found is that wrapping C libraries using the interface documented at
http://polyml.org/docs/CInterface.html is rather simple - provided you know C,
but from reading your mail that seems to be no issue.

I didn't want a GUI library, but I wrapped parts of SDL2 for some simple game
development, see https://github.com/gattschardo/hashira/blob/master/sdl.sml
it's not a complete wrapper, just what I felt I needed myself.
Also I have a somewhat more complete wrapping for libjson at:
https://github.com/fkmsoft/fridge/blob/master/ml/json.ML

So you might want to try just wrapping relevant parts of e.g. Gtk yourself and
see how far you can get (don't know how wrapping C++ for getting Qt would work)

Cheers
Richard

PS: if anybody is interested in using my WIP wrappers, I'd be happy to polish
them a little and put them in proper repositories.
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to