[m-users.] Simple cross-platform GUI

Dirk Ziegemeyer dirk at ziegemeyer.de
Thu Sep 22 17:18:34 AEST 2022


Hi Julien, Martin, Peter, Volker,

thank you for these suggestions.

The libuv binding for Mercury is appealing for me because it would allow to implement my planned primitive GUI as well as other features in the future. E.g. REST APIs or an interactive HTML5 GUI.

Dirk


> Am 20.09.2022 um 07:57 schrieb Julien Fischer <jfischer at opturion.com>:
> 
> 
> 
> On Mon, 19 Sep 2022, Dirk Ziegemeyer wrote:
> 
>> 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.
> 
> The former should work on Windows, although I'm not sure about the other
> modules in the extras/net directory. extras/posix is not intended to
> work on Windows.
> 
> Julien.



More information about the users mailing list