[HN Gopher] Show HN: Million 3 - Optimizing compiler for React
___________________________________________________________________
Show HN: Million 3 - Optimizing compiler for React
Author : aidenyb
Score : 46 points
Date : 2024-02-02 17:32 UTC (5 hours ago)
(HTM) web link (million.dev)
(TXT) w3m dump (million.dev)
| tibbydudeza wrote:
| Interesting - tried it but it did not like me using decorators.
| photon_collider wrote:
| This looks really cool! It's interesting that this compiler
| provides performance optimizations by looking for data diffs
| rather than diffs in the Virtual DOM. Is this intended to be an
| alternative to React Forget (still in development)?
| spyke112 wrote:
| Kudos to the team, but why on earth should i choose React when
| we've now reached a point where it needs an optimization
| compiler, seems silly to be honest.
| chrisco255 wrote:
| It doesn't need one, probably less than 1% of React apps make
| use of this tool. Its an optimization that would be premature
| for most apps unless they've got large amounts of dynamic
| onscreen components.
| klysm wrote:
| Ecosystem and ability to hire folks who are already competent.
| Sure it's not the most technically optimal framework but you
| can build great products with it.
| root_axis wrote:
| The benefits of react have been belabored for a decade, if none
| of that reasoning makes sense to you, just don't use it.
| ggregoire wrote:
| Never heard of this, sounds super cool! Gratz on the milestone!
|
| Theoretically, could this be merged in the main React project or
| would this break something?
| frfl wrote:
| I haven't used React in a while and never used SolidJS, but would
| SolidJS not basically be a optimizing compiler as well for
| "React". Technically SolidJS is a separate framework and I don't
| know if it's a 100% drop in replacement like this make be.
| impulser_ wrote:
| SolidJS and React are on the opposite ends of the JS framework
| worlds.
|
| Solid doesn't use a virtual DOM like React. Solid is close to
| Svelte, Vue is in the middle more leaning towards Solid and
| Svelte today and eventually will be with Svelte and Solid when
| Vapor comes out and then React is on the other end.
|
| Solid and React do feels similar to the developer because they
| both use JSX and similar APIs but they aren't compatible.
| frfl wrote:
| Yeah, I meant "optimizing compiler" in the sense it takes in
| JSX and outputs optimized code
| Aeolun wrote:
| Solid doesn't have a compiler as I recall? (Other than JSX)
| Hrun0 wrote:
| OP lied about benchmarks in the past:
|
| https://www.reddit.com/r/javascript/comments/x2iwim/askjs_mi...
___________________________________________________________________
(page generated 2024-02-02 23:00 UTC)