Post ATFrBCWTs4AYaXGVf6 by freeradical@mastodon.online
(DIR) More posts by freeradical@mastodon.online
(DIR) Post #ATFp12Ep3TdNt11xJI by glyph@mastodon.social
2023-03-03T16:30:54Z
0 likes, 0 repeats
For many years I've been saying that the right way to write a cross-platform GUI application is to write a core portable model and then rewrite the GUI but not the core across every platform, and not bother with a portable toolkit. I still believe that but now that I am having to put that into practice for the first time in 15 years or so… I can see why people do not do this
(DIR) Post #ATFp12pKriqDiG77Ds by freeradical@mastodon.online
2023-03-03T17:37:56Z
0 likes, 0 repeats
@glyph I have off-and-on projects for cross-platform executable scientific apps, so I’ve been tempted to chuck it all and make web apps instead. Too cheap to pay for servers though.
(DIR) Post #ATFp12wQRMVq4FQmH2 by glyph@mastodon.social
2023-03-03T16:31:33Z
0 likes, 0 repeats
Hopefully the output from my experience will involve at least a couple of tools which make the pain less extreme
(DIR) Post #ATFp13IP7e5rAPiKX2 by glyph@mastodon.social
2023-03-03T20:00:25Z
0 likes, 0 repeats
@freeradical you can always stick your webUI in a webview and maintain only an incredibly minimal shell that starts a webserver and talks to itself. I think this is what @simon does with datasette
(DIR) Post #ATFp13ywZU7ZILcIq0 by freeradical@mastodon.online
2023-03-03T20:18:52Z
0 likes, 0 repeats
@glyph The app needs some serious linear algebra and interactive plotting, so until recently I assumed a python backend would be needed for a web app . Started to look at PyScript, and it might work with some fiddling. Maybe someday Electron-like apps will be possible?
(DIR) Post #ATFp14QwtMWShCifUO by simon@fedi.simonwillison.net
2023-03-03T23:44:10Z
0 likes, 0 repeats
@freeradical @glyph you may be surprised at how much you can do in a browser these data - serious linear algebra included. WebAssembly happily runs Quake 3 etc these dayshttps://lite.datasette.io runs a complete copy of Python compiled to WebAssembly for example - and here's a full Jupyter (with charting libraries) in the browser: https://jupyterlite.readthedocs.io/en/latest/
(DIR) Post #ATFpCj1mIwyxmVVH8K by simon@fedi.simonwillison.net
2023-03-03T23:44:47Z
0 likes, 0 repeats
@freeradical @glyph here's how I got Datasette running as an Electron app: https://simonwillison.net/2021/Sep/8/datasette-desktop/
(DIR) Post #ATFrBCWTs4AYaXGVf6 by freeradical@mastodon.online
2023-03-04T00:08:21Z
0 likes, 0 repeats
@simon @glyph The current snag is that I use pydata’s sparse module, which isn’t included with pyiodide/PyScript. If I can find a way around that, the floodgates will be open.
(DIR) Post #ATFrNmYDkH1Vno4ufI by freeradical@mastodon.online
2023-03-04T00:10:47Z
0 likes, 0 repeats
@simon @glyph <Keanu whoa> 😲