CMP/KMP vs Electron for desktop app?
Posted by Express_Resolve9972@reddit | linux | View on Reddit | 3 comments
I'm building an android app using kotlin and I'm planning to build one for desktop as well. Which is the better way to build? Cmp/kmp would be easier because i dont have to rewrite all the logic again whereas building in electron will attract more open source devs to contribute but i have to build from scratch which will take a lot of time.
What would you suggest in your opinion?
PS: I'm also a CS student so which will have a better impact on resume? For SWE roles.
Thanks!
Sufficient-Dare-5270@reddit
i started looking into cmp and kmp lately because the performance gains actually look promising for desktop apps. context switching between web tech and native environments is always a headache though. if you already know compose it is probably a no brainer but for raw development speed across teams electron still rules despite the bloat lol
Business_Reindeer910@reddit
if you were gonna go electron on the desktop you'd wanna use something like capacitor or cordova on mobile. Otherwise don't bother. just go with kmp. Don't write the same app twice.
Ok_Giraffe_3687@reddit
KMP lets you share logic across platforms which saves ton of development time, plus native performance is way better than Electron bloat