News for hackers. Stuff that matters.
Re:How Discord achieves native iOS performance with React Na... by sergiotapia on Friday November 08, 2019 @05:24AM (#21481104)
You are not wrong. It is a nightmare to maintain, and if you already took the leap you best keep that project updated as soon as possible or you will be fucked beyond repair.

There has to be a better way to write mobile applications. Is that Ionic? I don't know.

Re:How Discord achieves native iOS performance with React Na... by Razengan on Friday November 08, 2019 @07:31AM (#21481631)
If you’re going to remain within Apple platforms, try SwiftUi:

https://developer.apple.com/tutorials/swiftui/

There may be a chance of it being adapted for other platforms in the future.

Re:How Discord achieves native iOS performance with React Na... by bsaul on Friday November 08, 2019 @10:09AM (#21482839)
i highly doubt apple will port that to android, so unless they open source the technology...
Re:How Discord achieves native iOS performance with React Na... by Razengan on Friday November 08, 2019 @10:38AM (#21483149)
It uses standard (or about to be standard) Swift language features, mainly the ability to write DSLs.

Maybe other developers who really really love Swift and SwiftUI might port it to their preferred platforms. :)

Re:How Discord achieves native iOS performance with React Na... by andrekandre on Friday November 08, 2019 @04:17PM (#21486882)
> It uses standard (or about to be standard) Swift language features, mainly the ability to write DSLs.

that’s not the hard part, and apple knows it ^_^

it will be interesting when/if someone manages to get something close to apples implementation working, though my guess is they will have a “not fun” time trying to reimplement every ui interaction satisfactorily...

Re:How Discord achieves native iOS performance with React Na... by virtualwhys on Friday November 08, 2019 @08:03AM (#21481809)
Ionic is quite decent, though can become sluggish once your app grows in complexity (even with lazy loading) if you're not careful.

Flutter looks interesting, going to check it out.

In the end one wants a true "write once, run everywhere" framework, not write the business logic and then write the UI 3+ times for each target platform. Ionic delivers on this front, but am curious to see if Flutter takes it to another level (blazing fast dev/reload cycles and native performance in production sound quite appealing).

Re:How Discord achieves native iOS performance with React Na... by dep_b on Friday November 08, 2019 @08:26AM (#21481942)
Just came from trying Ionic, it now has ehmmm vanilla Cordova, Ionic Cordova and then there's Capacitor. They're all sort of compatible in terms of commands and application structure so it's pretty easy to screw stuff up if you end up in the wrong docs. At other moments you really do need to dip into vanilla Cordova using Ionic or Capacitor.
Re:How Discord achieves native iOS performance with React Na... by latchkey on Friday November 08, 2019 @05:49AM (#21481196)
Seriously, take a stab at building an app in Flutter.
Re:How Discord achieves native iOS performance with React Na... by verttii on Friday November 08, 2019 @08:20AM (#21481909)
Agreed, I switched to Flutter from React Native. Although I don't particularly like Dart lang, everything just works way better on Flutter.
Re:How Discord achieves native iOS performance with React Na... by bsaul on Friday November 08, 2019 @08:57AM (#21482145)
Never had performance issues on scroll ? The demo app on the ios app store has lagging scroll performance for a simple app on an iphone X
Re:How Discord achieves native iOS performance with React Na... by latchkey on Friday November 08, 2019 @09:26AM (#21482409)
I don't have any pages that scroll. =) It is all single pages for now.

That said, who knows what the demo app was done with. If there is lagging scroll performance, it could be a lot of things.

I will say that figuring out where the performance problems are would be pretty enjoyable in IDEA. The tooling there for performance is quite good.