4 ms·
It is unfortunate that there doesn't seem to be a GUI library --- if there was one _and_ if one could easily compile to a stand-alone program for distribution,
by WillAdams 1y ago
It is unfortunate that there doesn't seem to be a GUI library --- if there was one _and_ if one could easily compile to a stand-alone program for distribution, this would be very interesting to me.
For bonus points, compiling to a stand-alone JavaScript wrapped in HTML would be awesome if it could be hosted on a Github page.
- terminalbraid 1y agoGiven your criterion for what a "fortunate" language would be, what language includes a GUI library, compiles to a stand-alone program for distribution, as well as "Javascript wrapped in HTML"?
- WillAdams 1y agoIt doesn't exist as an opensource option anymore (since Livecode did their rugpull) AFAICT, it's something I've been looking for since then. Similarly, they were supposed to offer "compile to HTML5", but it never really worked for me.
- terminalbraid 1y agoJust so I'm clear, you then feel compelled to openly and publicly label every literally programming language as "unfortunate" because it doesn't live up to what LiveCode aspired to be? An opinion that flatly and individually labels every extant thing the same has no signal to it. I'm not sure what to make of your original post other than you're expressing displeasure at the universe for not handing you what you wanted and that you believe that expression should be injected into arbitrary discussion.
- WillAdams 1y agoI will agree that the word choice was poor. Should have phrased it as something along the lines of: >This would be very interesting to me if it had support for a GUI library, and if it were then possible to compile to a stand-alone application which could be easily distributed.
- RodgerTheGreat 1y agoLil has a GUI "system" in the form of Decker, which can export programs as standalone single-file HTML documents: http://beyondloom.com/tools/trylil.html http://beyondloom.com/tools/trylil.html
- 3036e4 1y agoFor a GUI in a limited sense you can use TIC-80 with its built-in Janet support. It can export to stand-alone binaries too, but I did not try that (and I mostly used TIC-80 with Fennel, not Janet). Obviously I understand most of the time someone wants to make a GUI they are not thinking about something like TIC-80. I agree a more complete GUI library would be nice. But if nothing else it may be worth mentioning that TIC-80 is a fun and easy way to install and try Janet. Even the Android version comes with Janet and a built-in code editor. Just run "new janet" in the TIC-80 console and then press F1 (on Android TIC-80 by default uses its own virtual keyboard that has all the keys it needs) to open the code editor.
- 3036e4 1y agoProblem with the Android version is how ... to access the files it saves (or exports to). They seem to end up in the app-specific data directory that no other app can read on newer versions of Android.
- worthless-trash 1y agoSee my example above, that has embedded raylib.
- xigoi 1y agohttps://github.com/janet-lang/jaylib https://github.com/janet-lang/jaylib