by grumblingdev on 10/6/23, 6:30 PM with 23 comments
It looked like JavaScript was going to be able to do it. React and React Native were very promising.
But since we now have Swift/SwiftUI and Kotlin/Jetpack, each platform has a language and framework specifically tailored for it. Except for Windows which is still a shit show.
Attempts to abstract this in a cross-platform layer are becoming more and more difficult, and offering less marginal value (e.g. we now have declarative frameworks natively whereas before we only had React).
Each platform has a recommended way to do everything, and we should follow the conventions of each platform.
I would be interested to hear if anyone has actually had successful though with frontend code sharing...
by PaulHoule on 10/6/23, 6:37 PM
It can be depressing that you have 20 electron applications running to put icons in the tray but heck... everybody wants to stuff icons in your tray and most of those x-platform frameworks can't make a tray icon. I did an evaluation of a whole bunch of x-platform frameworks and they all sucked, though I do like JavaFX best of all. There's a reason why Electron is as big as it is.
by endisneigh on 10/6/23, 6:49 PM
The main issue around this is that there's not a great interface to use native functionality on the web, hence all of these compilation attempts.
by entaloneralie on 10/10/23, 2:12 PM
It's worth looking into. I hope you find something that works :)
by zzo38computer on 10/9/23, 6:00 AM
For other things that can run by internet, a subset of telnet and terminal codes might do; however, that is only good for remote services and not for stuff that is more useful to run locally.
For some things, C will do, especially command-line stuff, but also is possible to use SDL, etc.
You do not need so much extra stuff that just makes it slow and takes up more memory and makes it difficult for the user with program working together; for this reason, UNIX pipes are useful because you can put any program together by pipes. (Like, another comment also mention something similar)
by superchroma on 10/6/23, 7:00 PM
by catlover76 on 10/6/23, 6:34 PM
But I am also wondering if Maui will end up being a better option, or if I will be able to have an excuse to use the Avalonia framework for F#
by satvikpendem on 10/8/23, 1:16 AM
by yathxyz on 10/6/23, 6:43 PM
Might not even be adjacent to the topic of this thread but I remember the one time I accidentally found out about UNIX pipes in a bioinformatics course. I didn't know you could use computers in a way that would help you get things done gracefully and without GUIs. I didn't know I could just type in `curl wttr.in` and get the weather results instantly. I didn't even know about vim. I didn't know that an OS could occupy less than 1GB RAM on idle and still let you fully operate and do all the work that you need to do.
You can't just keep abstracting things to work with ways of computing that are just more painful to work with. At one point the end-user has to adapt and simplify for his/her own sake. I wish I did sooner.
by max_ on 10/7/23, 7:32 AM
by tomcam on 10/7/23, 8:29 PM