[m-users.] Simple cross-platform GUI

Dirk Ziegemeyer dirk at ziegemeyer.de
Tue Sep 20 00:12:56 AEST 2022


My plan is to add a very simple GUI to a Mercury command line application.

The Mercury app shall start an html server that serves a static HTML form where the user can enter all the arguments and options that would normally be processed by the getopt module from the standard library. When submitting this form, the Mercury application shall be called with the appropriate options. No further interaction is required.

The app shall be compiled with the C backend and be portable between Mac/Linux/Windows.

The code in extras/net/sockets.m and extras/posix/posix.socket.m is probably not working on Windows.

My search yielded some older posts on the users mailinglist pointing to so some http server and network bindings for Mercury:
- https://github.com/sebgod/mercury-mongoose
- https://github.com/yeslogic/httpsrv
- https://github.com/FlyingJester/libfjnet.m

As all of the above bindings seem to be inactive, I'm wondering if there is any other solution. Is there any simple cross-platform socket or http-server binding for Mercury?

Are there any best practices for setting up a very simple GUI for Mercury?

Thank you very much in advance.

Dirk


More information about the users mailing list