TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

100 pointsby slashdotdashover 8 years ago

19 comments

Csheltonover 8 years ago
Oh no...benchmarks.<p>Honestly, your decision to use any of the frameworks in the article should not be based on a benchmark. The frameworks here differ so much in how they work, the mental thought process you use in them, etc.<p>What is the technical debt of Elm? Training for developers to learn something other than JS, etc. This is a much bigger factor in a framework decision than a benchmark. Especially when all of them are fast and only a few cases would you even notice a difference between them.<p>Please, don&#x27;t use this to decide which front-end framework to use. Nor switch from one you are using, &quot;just because it&#x27;s faster!&quot;. Save yourself and your co-workers the headache.
评论 #12390991 未加载
评论 #12390896 未加载
appsappsappsover 8 years ago
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:<p>- Optimizing Elm only touches view code, unlike everyone else.<p>- Optimizing Elm cannot introduce sneaky bugs, unlike everyone else.<p>- These results should generalize to apps of any size.<p>Also interesting is how Elm&#x27;s immutability allows it to use requestAnimationFrame by default, which plain vanilla JS libs can&#x27;t use by default.
评论 #12393327 未加载
评论 #12393087 未加载
cornstalksover 8 years ago
&quot;Speed in Milliseconds&quot; should be changed to &quot;Time in Milliseconds&quot;. More speed is a good thing, but more time is not. Using &quot;speed&quot; instead of &quot;time&quot; in the chart title makes it sound like bigger bars are better, but that&#x27;s just the opposite. Plus, speed isn&#x27;t even a measure of time (like milliseconds); it&#x27;s a unit of distance (or some equivalent) divided by time.
mtalantikiteover 8 years ago
I recently heard Evan give an overview of the language and everyone in the room came away excited.<p>The speed is really just a bonus, as the real things to be excited about are the features you get from a typed functional language (HM type inference, union types, auto currying, etc.) that compiles to efficient JS with a focus on web development.
shooverover 8 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;elm-lang&#x2F;virtual-dom&#x2F;blob&#x2F;master&#x2F;src&#x2F;Native&#x2F;VirtualDom.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elm-lang&#x2F;virtual-dom&#x2F;blob&#x2F;master&#x2F;src&#x2F;Nati...</a><p>&lt;1500 lines of straightforward JS makes it all possible. It is indeed very similar to Matt Esch&#x27;s original [1]. The Elm port reads nicely in one file.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;Matt-Esch&#x2F;virtual-dom" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Matt-Esch&#x2F;virtual-dom</a>
the_dukeover 8 years ago
They should really spend more time on making the docs less attrocius for Elm. That&#x27;s more important than benchmarks.<p>(Coming from someone who appreciates Elm)
评论 #12391943 未加载
the_dukeover 8 years ago
For the love of * (pick your preferred deity, I&#x27;m going with Flying Spaghetti Monster), stop benchmarking on ridiculously simple TodoMVC apps.<p>They are not at all representative of the complexity costs that emerge from real apps, which often mitigate differences between frameworks considerably.<p>(Apart from the fact that creators benchmarking their own framework know how to optimize it best).
评论 #12391136 未加载
Mickydtronover 8 years ago
As someone who has started to explore (and enjoy) elm, I have to say that speed is not one of the major selling points for me. Rather, seeing that it has at least competitive speed is just dodging a potential deal breaker. It could smother me in kittens and do my taxes, but if a framework only renders three frames per second, I definitely won&#x27;t use it. Elm being in the same ballpark (slightly better? slightly worse? doesn&#x27;t matter) means that I can see if the other features of the language entice me to try it out. They did, I did, and I really like it (even though apps that use random a lot end up being structured in a way that is strange to my brain).
jaimex2over 8 years ago
As much as I trust benchmarks from the creator of a product at the end of the day they are all fast frameworks.
zwerdldsover 8 years ago
Mithril&#x27;s omission is telling, as it it often faster than even Elm by 50% or so.<p><a href="http:&#x2F;&#x2F;lhorie.github.io&#x2F;todomvc-perf-comparison&#x2F;todomvc-benchmark&#x2F;" rel="nofollow">http:&#x2F;&#x2F;lhorie.github.io&#x2F;todomvc-perf-comparison&#x2F;todomvc-benc...</a>
评论 #12390885 未加载
lcarlsonover 8 years ago
As a React user, I&#x27;d be really curious to see what these benchmarks look like when you&#x27;re dealing with larger, more complex projects. I was under the impression that React scales well when dealing with lots of nested components and diffing the updates for each.
评论 #12391272 未加载
ohyesover 8 years ago
I believe the saying is &quot;Lies, damn lies and benchmarks&quot;.<p>That said, he does make a case that elm is competitive with other frameworks, which is all anyone should take from a language benchmark, in my opinion.
asciihackerover 8 years ago
Speed is one thing, but the fact that you must replicate your business model client <i>AND</i> server-side with Elm is a huge minus. I would take ScalaJS over any 4 of those frameworks any day.
评论 #12390979 未加载
评论 #12392141 未加载
评论 #12395540 未加载
donjhover 8 years ago
Wow - I&#x27;m a big fan of React, so I&#x27;m a little disappointed to see that it was the slowest of all.
评论 #12390840 未加载
评论 #12390798 未加载
评论 #12390783 未加载
评论 #12392021 未加载
VeejayRampayover 8 years ago
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 &quot;winner&quot;.
评论 #12394457 未加载
Roboprogover 8 years ago
The hard, but very useful, test would be getting a largish random sample of noobs and seeing which framework lets you <i>write code</i> the fastest.<p>Unfortunately, that&#x27;s an expensive test.
评论 #12392030 未加载
shamsalmonover 8 years ago
Whats the difference between a few seconds of loading time for a site that only needs to load its bundle once? Sure its nice for it be faster but the main benefit I thought is you don&#x27;t need to reload pages as you navigate.
评论 #12390886 未加载
评论 #12390878 未加载
m1over 8 years ago
No vue.js?
评论 #12392082 未加载
wnevetsover 8 years ago
react fanboys are gonna be a little upset that you showed that angular is faster in your benchmarks. They spent months flooding internet saying react was faster and you&#x27;re contradicting that.
评论 #12390994 未加载