News for hackers. Stuff that matters.
Re:Lazarus IDE – write once, compile anywhere by mhoad on Sunday September 11, 2022 @04:59AM (#32798012)
Flutter is almost certainly the answer you are looking for here. You can see what the developer experience is like here https://docs.flutter.dev/get-started/codelab
Re:Lazarus IDE – write once, compile anywhere by rcarmo on Sunday September 11, 2022 @05:36AM (#32798225)
No, I don't want any JavaScript in my desktop apps, sorry.
Re:Lazarus IDE – write once, compile anywhere by mhoad on Sunday September 11, 2022 @09:17AM (#32799379)
You’re in luck then because there is none. You seem To be thinking of Electron which is something entirely different.
Re:Lazarus IDE – write once, compile anywhere by rahen on Sunday September 11, 2022 @05:13AM (#32798093)
OP insisted on _native_ desktop apps, not wrapped web apps. Otherwise Java/Swing would have been a no-brainer.
Re:Lazarus IDE – write once, compile anywhere by account-5 on Sunday September 11, 2022 @05:21AM (#32798145)
From my current reading of Dart/Flutter[0] the output is not a wrapped webapp.

[0] https://dart.dev/tools/dart-compile

Re:Lazarus IDE – write once, compile anywhere by rahen on Sunday September 11, 2022 @05:40AM (#32798238)
It's not a native desktop app either, it embeds a large JIT and a hello world is around 50 MB.
Re:Lazarus IDE – write once, compile anywhere by account-5 on Sunday September 11, 2022 @06:04AM (#32798350)
This might be my lack of knowledge in this area since I'm just reading at the minute but from my reading that's not the case. If you create a standalone app (exe compile option) there is no JIT, just: "A standalone, architecture-specific executable file containing the source code compiled to machine code and a small Dart runtime." that "... handles type checking and garbage collection."

Unless that runtime is what you're referring to as a JIT. But since it outputs machine code that is a compiled program, not a JIT. I obviously can't speak to the size as I've not written anything yet, I'm just practing.

Quite happy to be corrected if I'm misreading things though.

Re:Lazarus IDE – write once, compile anywhere by mhoad on Sunday September 11, 2022 @09:20AM (#32799396)
You seem to be a bit confused on this topic. Have you actually used Flutter before? What you’re describing isn’t how it works at all.
Re:Lazarus IDE – write once, compile anywhere by kaba0 on Sunday September 11, 2022 @07:26AM (#32798728)
You can actually compile a Swing app with Graal for a standalone executable nowadays
Re:Lazarus IDE – write once, compile anywhere by mhoad on Sunday September 11, 2022 @09:18AM (#32799382)
They are native desktop apps. Not sure where you got any other idea from.