Live data from Hacker News

Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

elm-lang.org

41–50 of 55 posts

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#41
post #19

No vue.js?

Seems like a totally random benchmark to me.

None of them is known to be really fast and the benchmark tells, they all range in the same order of magnitude. So why not include Inferno, Mithril or Preact? Only a few of them are mainstream, so why mess with stuff that is neither popular nor known to be fast.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#42
Every single comment here is focused on just one aspect of this article: speed. Far more interesting points the article covers are around _how_ Elm optimizes and _how_ developers optimize Elm code. From the conclusion:

- Optimizing Elm only touches view code, unlike everyone else.

- Optimizing Elm cannot introduce sneaky bugs, unlike everyone else.

- These results should generalize to apps of any size.

Also interesting is how Elm's immutability allows it to use requestAnimationFrame by default, which plain vanilla JS libs can't use by default.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#43
post #24

Earlier quoted context omitted.

That's not why we use React

Please elucidate? Angular 1.5 has one-way binding, lifecycle hooks, component tree architectures. UI-router is well on the way to become framework agnostic. Redux or redux-style state management is possible with ng1.5, and a pleasure with ng2. On top of all of that, you get the benefit of using a framework instead of patched together libraries. Basic tools like intercepting all http traffic at the request/response le…

For me React won the last round because of its simple API.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#44

Speed is one thing, but the fact that you must replicate your business model client AND server-side with Elm is a huge minus. I would take ScalaJS over any 4 of those frameworks any day.

Elm on the frontend and Haskell on the backend is a sensible choice, though at that point you may be better off with PureScript on the frontend.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#45

Speed is one thing, but the fact that you must replicate your business model client AND server-side with Elm is a huge minus. I would take ScalaJS over any 4 of those frameworks any day.

Why not just use Clojure? You've got datomic on the server and datascript on the client, transit on the wire, reader conditionals to share code and much more. Plus everything can be modified as its running. When it comes to web frameworks I don't really care about performance as much as I care about managing complexity. Which is why I'm looking at om.next over all the other frameworks. And managing complexity is not…

Clojure doesn't even have types.

I think the languages aren't really comparable from a maturity and support pov. Clojure is mainly done by hobbyists and enthusiasts. There is a large gap in terms of tooling that can't be closed in a few years.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#46

Every single comment here is focused on just one aspect of this article: speed. Far more interesting points the article covers are around _how_ Elm optimizes and _how_ developers optimize Elm code. From the conclusion: - Optimizing Elm only touches view code, unlike everyone else. - Optimizing Elm cannot introduce sneaky bugs, unlike everyone else. - These results should generalize to apps of any size. Also interesti…

This is because people comment without actually reading the article :/

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#47

Speed is one thing, but the fact that you must replicate your business model client AND server-side with Elm is a huge minus. I would take ScalaJS over any 4 of those frameworks any day.

Elm on the frontend and Haskell on the backend is a sensible choice, though at that point you may be better off with PureScript on the frontend.

I have a hobby project that uses Elm on the front end with Elixir and Phoenix on the back end, and that has been working really well. Elm's event machine like architecture goes well with Phoenix's native support for channels, although the elm library for Phoenix Channels is definitely not production ready.

It has been a very bizarre experience having dynamic typing on the back end and static on the front end, though. Everything feels slightly topsy turvy.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#48

Every single comment here is focused on just one aspect of this article: speed. Far more interesting points the article covers are around _how_ Elm optimizes and _how_ developers optimize Elm code. From the conclusion: - Optimizing Elm only touches view code, unlike everyone else. - Optimizing Elm cannot introduce sneaky bugs, unlike everyone else. - These results should generalize to apps of any size. Also interesti…

A related anecdote: One of the major reasons I decided to give elm a try was when Richard Feldman was giving a talk about writing Dream Writer in elm, and he got to a point where the performance was noticeably slowing down. He started trying to make it better by 'sprinkling a few `lazy`s through the view code', and then stopped because that had magically made everything super fast again.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#49

They should really spend more time on making the docs less attrocius for Elm. That's more important than benchmarks. (Coming from someone who appreciates Elm)

Whats the problem with the docs? I mean docs can always be improved but I think the Guide is okay and the package docs are fine...

The documentation for Effect Managers is basically "If you don't already know how to make one, you shouldn't be making one." I get that it's an "expert feature", but I want to learn and try anyways! I've been learning the basics by looking at the WebSocket library, and reading the compiler errors when I broke it in different ways. The compilers errors were surprisingly helpful, but some documentation would be nice.

Re: Blazing Fast HTML: Elm vs. React vs. Angular vs. Ember

#50

Those benchmarks should be done by someone independent from one of the tested frameworks though. Hard to trust the methodology, especially with Elm emerging as the "winner".

He provides links to the repo where the test code is, anyone is free to run it themselves and see if it matches up.
Post reply on HN