[m-users.] Simple cross-platform GUI

Peter Wang novalazy at gmail.com
Tue Sep 20 11:32:17 AEST 2022


On Mon, 19 Sep 2022 16:12:56 +0200 Dirk Ziegemeyer <dirk at ziegemeyer.de> 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.
> 
> 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?

httpsrv does what it was designed to do, so there hasn't been any need
to update it.

I agree with Volker's suggestion. Since you don't need continued
interaction, you might consider writing a frontend in a different
language, that then calls your Mercury program. Something like redbean
could be interesting for you as well (https://redbean.dev).

Peter



More information about the users mailing list