Live data from Hacker News

Mithril.js – A modern client-side Javascript framework

mithril.js.org

21–30 of 83 posts

Re: Mithril.js – A modern client-side Javascript framework

#21
This follows Reacts style of 'functions instead of templates'. I don't think it's a good idea.

I think React will be the Java of our time. It caters to engineers who want everything to be well defined and typed. And to large corporations which don't care about heavy build processes.

Looking at what happened to Java: It's still used a lot. But not by new and exciting companies or indie developers.

I think we will see the same with React. It will stay around for decades. But the exciting new projects of the next ten, twenty years will not be written in it. They will be written by lighter tech stacks. Just like FB was initially not written in strictly typed Java but in loosely typed PHP.

Re: Mithril.js – A modern client-side Javascript framework

#22
post #19
post #13

Looks interesting, but I found the fact that they say | Be wary of aggressive performance claims, as benchmarks used by some of these projects are known to be out-of-date and flawed (in the sense that they can be - and are - exploited) on a page full of aggressive performance claims[0] slightly ironic [0] https://mithril.js.org/framework-comparison.html

I remember that this page even had wrong claims on it years ago.

I think they were the left bar on the original comparison post

https://500tech.com/blog/all/is-reactjs-fast/

Re: Mithril.js – A modern client-side Javascript framework

#24
post #13

Looks interesting, but I found the fact that they say | Be wary of aggressive performance claims, as benchmarks used by some of these projects are known to be out-of-date and flawed (in the sense that they can be - and are - exploited) on a page full of aggressive performance claims[0] slightly ironic [0] https://mithril.js.org/framework-comparison.html

Mithil maintainer here.

Guilty as charged. That page hasn't been updated since the v1.0 release, we've been focusing on code improvements.

V2 is around the corner (mostly bug fixes, some of which required subtle breaking changes (i.e. things that most users won't run into but it would not have been honest to make it a minor semver bump). We'll revisit the home page before the release.

Re: Mithril.js – A modern client-side Javascript framework

#25
post #22
post #19

Earlier quoted context omitted.

I remember that this page even had wrong claims on it years ago.

I think they were the left bar on the original comparison post https://500tech.com/blog/all/is-reactjs-fast/

I got fooled back in the days, now I avoid that fraud.

Re: Mithril.js – A modern client-side Javascript framework

#26
post #2

I've been using it for some time now, and the biggest plus for me, besides the very simple to understand API and the manual redraw feature, is the ease one can find setting it up for a project. Even with webpack or some other complex bundle, someone without any formation can really quickly set it up and get to code without worrying much about the internals of webpack etc.

Yes, exactly. Using JSX is also easy for development purposes if you don't like hyperscript syntax. Just add babel.min.js file and use /** @jsx m */ // your can use jsx here and bingo! You can use JSX. No need to use npm, webpack, etc.

Setting up Webpack manually is a pain, but honestly if one uses create-react-app, everything is done for you and you just start coding your app: you have transpiling of ES6 (at least, I don't know about ES7), you can install and include other packages, etc. etc.

Re: Mithril.js – A modern client-side Javascript framework

#27
post #8

A lighter-weight and largely API-compatible replacement for React: Preact. https://preactjs.com/

Sure. If you still want to be React-like, that is! But React, Preact are still view libraries right? Mithril is a (reasonably) complete framework. It's sufficiently similar to React that if you know React, you can get productive in Mithril very fast. I guess mithril is for people who want a full framework with no fluff that gets out of the way.

> If you still want to be React-like, that is!

Well, you (or the author) are comparing it to React in your title, so of course people assume that you're targeting React devs.

Now you're saying that it's something different?

Re: Mithril.js – A modern client-side Javascript framework

#30
post #24
post #13

Looks interesting, but I found the fact that they say | Be wary of aggressive performance claims, as benchmarks used by some of these projects are known to be out-of-date and flawed (in the sense that they can be - and are - exploited) on a page full of aggressive performance claims[0] slightly ironic [0] https://mithril.js.org/framework-comparison.html

Mithil maintainer here. Guilty as charged. That page hasn't been updated since the v1.0 release, we've been focusing on code improvements. V2 is around the corner (mostly bug fixes, some of which required subtle breaking changes (i.e. things that most users won't run into but it would not have been honest to make it a minor semver bump). We'll revisit the home page before the release.

Do you accept PRs for website and documentation? Thanks!
Post reply on HN