Re:Ask HN: 2020, Language and Framework for Cross Platform D...
by aliezsid on Saturday April 18, 2020 @06:08PM
(#22911525)
and why do you think so?
[ Parent
| on HN ]
Re:Ask HN: 2020, Language and Framework for Cross Platform D...
by cercatrova on Sunday April 19, 2020 @03:00PM
(#22917981)
Because if it were the main priority, you would have no reservations using an inefficient but working solution like Electron, is probably what the parent means.
Re:Ask HN: 2020, Language and Framework for Cross Platform D...
by aliezsid on Sunday April 19, 2020 @03:58PM
(#22918339)
I want the app to cross platform but not at the expense of a Ram hungry app that I just throw out.
And yeah, i wouldn’t mind writing the logic in a language like rust or C and then invoking it from the native bindings If there’s no other solution out there for me to achieve performance over the so called “Let’s bundle the whole browser with every app” working solution.
Re:Ask HN: 2020, Language and Framework for Cross Platform D...
by satvikpendem on Sunday April 19, 2020 @09:08PM
(#22920244)
You should check out Flutter then, it compiles to native machine code for mobile and desktop (Android, iOS, Windows, macOS, Linux are all supported with native compilation), and uses WASM for web. It's a much more performant solution than Electron. Only thing is the official Flutter desktop implementations are unstable for production, but there are unofficial implementations which are stable [0] [1]. You can use those until the official implementation is stable. You can also use Dart's FFI if you want but since it's compiled instead of interpreted like JS and Electron, you probably don't need to, the performance will be there.
You also said you don't like the layout system, but there are packages for that [2]. Let me know what else you would find annoying, there are usually packages for most things. There are even algebraic data types in Dart through code generation.
[0] https://github.com/flutter-rs/flutter-rs