MithrilJS / mithril.js

A JavaScript Framework for Building Brilliant Applications
https://mithril.js.org
MIT License
14.01k stars 926 forks source link

Is MITHRIL.js fit fot mobile development? have beachmark? #2204

Closed anlexN closed 2 years ago

lhorie commented 6 years ago

Depends on what kind of mobile development.

If you're comparing with something like Ionic, yes, I've used Mithril for mobile and it runs fine. There are independent benchmarks elsewhere (e.g. Stefan Krause's benchmark), which show that most frameworks these days have performance profiles suitable for mobile development (sub 3.0 geometric mean results). There's also some benchmarks in this repo. In the framework comparison page there's a comparison between implementations of dbmon - a stress test originally created by the Ember team - for mithril, react and some other frameworks). You can run them from your phone to see what FPS count looks like for each.

Now, if you mean you're building a project dealing with things like sensors, you'll probably want to use the native SDK.

cmnstmntmn commented 6 years ago

if you plan to create a PWA, you can benefit of service workers; have a look at pwa.rocks and test / compare to your own needs On Tue, 21 Aug 2018 at 20:17, Leo Horie notifications@github.com wrote:

Depends on what kind of mobile development.

If you're comparing with something like Ionic, yes, I've used it for mobile and it runs fine. There are independent benchmarks elsewhere (e.g. Stefan Krause's benchmark), which show that most frameworks have performance profiles suitable for mobile development (sub 1.5 geometric mean results). There's also some benchmarks in this repo (in the framework comparison page there's a comparison between mithril and react implementations of dbmon - a stress test originally created by the Ember team).

Now, if you mean you're building a project dealing with things like sensors, you'll probably want to use the native SDK.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MithrilJS/mithril.js/issues/2204#issuecomment-414752475, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNKM9fJd0uO7tIV1ydAjkBP3_5g2VN7ks5uTECvgaJpZM4WFaqm .

anlexN commented 6 years ago

so @lhorie , what mobile development platform do you recommand ?

lhorie commented 6 years ago

Again, it depends on what you're doing. If you're doing a responsive thing that targets web and ios/android, something like cordova + mithril is hard to beat. React Native leaves quite a bit to be desired in terms of code reusability and I actually started noticing seeing various issues fairly early (animations stuttering, debugger disconnecting randomly, etc). I also experimented with weex, but found it very quirky and it produced terrible web code. There are some other newer offerings that I haven't evaluated yet, but from a glance they didn't seem much more advanced than the ones I did look into.

If you don't care about web at all, you might be better served by the native SDKs themselves (best end product quality, best debuggability, best employability, IMHO) or possibly something like Flutter (google backed, but haven't used myself, so take w/ a grain of salt).

filisko commented 6 years ago

I use Mithril.js with Cordova to consume a REST API amongst other stuff and runs very nice.

mpfau commented 6 years ago

We also use mithril as part of our native apps and are very happy with it. We needed to implement a workaround for improving fast rendering of large lists but besides that, we use pure mithril for all other parts of the UI.