Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is why the JavaScript people said screw the whole thing and worked on porting web-esque development to mobile rather than trying to learn how to develop native apps. The difference in developer velocity is obscene. The only close native competitor I can think of is Flutter, which ironically is severely hampered by having to interoperate with Xcode (the thing that takes the most time out of any other task is compiling a production build). Flutter uses Dart which almost reads like vanilla JavaScript, and instead of dealing with the native UIs they just used Skia[1] to draw pixel-perfect equivalents for each platform (as opposed to React Native, which attempts to use the actual UI components and make them available in JS).

[1] https://skia.org/docs/dev/flutter/



Ironically for hobby projects I've been using react-native as well, because it really makes developing a app faster, even though it will be bloated as hell. It's funny how even flutter decided to go with "new language" route. I guess NIH is strong in Android and iOS ecosystems.. I miss maemo/meego ...


Maemo is still around in the form of Maemo Leste. There are also various other open source mobile projects, notably postmarketOS. In terms of hardware, the PinePhone and Purism Librem 5 are projects aimed at non-Android open source operating systems like Linux/BSD.

https://maemo-leste.github.io/ https://postmarketos.org/ https://wiki.debian.org/Mobile#software-distros https://www.pine64.org/ https://puri.sm/


It exists, but sadly the market share is for ios/android and thats what i get paid for. Pine also seems interesting.


I guess it is pretty unlikely for any new mobile company to take much market share from iOS/Android, not without billions in marketing anyway.


Can you elaborate on the bloated part? I created a simple HN clone in React Native (without expo) and after publishing to Play Store, the app size was under 10MB.


Simple color picker app I made is 25MB. Even 10MB sounds pretty large for a simple app. But what I'm trying to say is more that I don't feel very hygienic considering using all these abstractions to develop a simple app, if I could just use the same C codebase to deploy for both platforms. Latter is technically possible, but nobody has created a framework around it similar to flutter or react-native. Flutter seems like the better option for the hygiene now though.


Funny enough there has been a long standing issue (as in years) with metal shaders that make the first minute or so of animations in flutter stuttery as the shaders compile.


Presumably (asking out of curiosity, completely naive) there's no way to AOT compile them?


Kind of? But there seems to be a bunch of barriers in making it happen:

  SkSL warm-up doesn’t help newer iPhones using Metal.

  Flutter recently migrated from OpenGL to Metal for all newer iOS devices. (Please reference Metal on iOS FAQ on which iOS devices are considered new enough to use Metal.) However, Skia currently only implemented the SkSL warm-up for OpenGL. So the SkSL warm-up would only speed up older iOS devices by default. If you find shader compilation jank to be an issue for your app on newer iPhones, please let us know by filing a GitHub issue. In the longer term, we have a plan to use test-based shader warm-up to mitigate this. If there’s an urgent need for fixing shader compilation jank on newer iPhones, please leave feedback on Issue 61045, and we can help you turn on OpenGL for your app.
https://flutter.dev/docs/perf/rendering/shader

https://github.com/flutter/flutter/issues/61045


Two weeks ago on reddit "Shader precompilation for Metal has landed in Skia:" https://www.reddit.com/r/FlutterDev/comments/mq1ouu/advices_...

and comment from last week on a flutter issue say it's working for them on the master channel. https://github.com/flutter/flutter/issues/79298#issuecomment...


Other comments in other tickets said it might not be the complete solution, and it's not released on stable yet. I hope it works, but it might not.

It's also a bit indicative that this kind of issue is left standing for years. The desktop resize jank one similarly took years to resolve.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: