Live data from Hacker News

Show HN: Million 3 – Optimizing compiler for React

million.dev

11–20 of 56 posts

Re: Show HN: Million 3 – Optimizing compiler for React

#12
post #8

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. Edit: My comment is probably not accurate. Please ignore what I said.

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 com…

Yeah, I meant "optimizing compiler" in the sense it takes in JSX and outputs optimized code

Re: Show HN: Million 3 – Optimizing compiler for React

#13
post #4

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.

The benefits of react have been belabored for a decade, if none of that reasoning makes sense to you, just don't use it.

Re: Show HN: Million 3 – Optimizing compiler for React

#14
post #12

Earlier quoted context omitted.

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 com…

Yeah, I meant "optimizing compiler" in the sense it takes in JSX and outputs optimized code

Solid doesn’t have a compiler as I recall? (Other than JSX)

Re: Show HN: Million 3 – Optimizing compiler for React

#15
post #14
post #12

Earlier quoted context omitted.

Yeah, I meant "optimizing compiler" in the sense it takes in JSX and outputs optimized code

Solid doesn’t have a compiler as I recall? (Other than JSX)

Sorry my mistake. I misunderstood Solid as working same as Svelte with a compiler.

Re: Show HN: Million 3 – Optimizing compiler for React

#16
I've built a real time updating app using react and I'm struggling to see the benefit here. For the very core parts I'm already avoiding the react overhead by using useref to maintain the same object. This reduces "hydration " and traversing to nil cost with no new concepts to learn. Why would I use million?

Re: Show HN: Million 3 – Optimizing compiler for React

#17
I'm not a React dev, so I can't comment on the project itself. Something I noticed on the blog post, though: The image at the top of the page is served uncompressed at a whopping 18.5MB (9751px * 6132px)! Seems a bit extreme for what amounts to a simple logo and some text.

Re: Show HN: Million 3 – Optimizing compiler for React

#18
post #17

I'm not a React dev, so I can't comment on the project itself. Something I noticed on the blog post, though: The image at the top of the page is served uncompressed at a whopping 18.5MB (9751px * 6132px)! Seems a bit extreme for what amounts to a simple logo and some text.

Nothing a couple of rocket emojis won't fix :D

Re: Show HN: Million 3 – Optimizing compiler for React

#19
I met Aiden (the < 20 yo who started Million) a year or so ago. He presented about Million in front of a room full of 40+ grizzled JS devs. I don't personally see any reason to use Million JS, React is fast enough as it is if you memoize and use selectors correctly. Aiden said some similar things at the time (a solution in search of a problem, that got unexpectedly popular) but I gotta say, he's a hype man for sure. I wish him luck, I think if he made a more compelling library, it would be a rocket ship with his marketing. I do think he should take some hints from the other post regarding the deceptive benchmarks and make sure he can back up his marketing materials, but 14k stars on GitHub for something that (to me) seems pretty useless is truly bananas skill.

Re: Show HN: Million 3 – Optimizing compiler for React

#20
post #15
post #14

Earlier quoted context omitted.

Solid doesn’t have a compiler as I recall? (Other than JSX)

Sorry my mistake. I misunderstood Solid as working same as Svelte with a compiler.

I also understood it like that, and the FAQ seems to imply that it is.

https://www.solidjs.com/guides/faq

> We have a compiler working for you to give you optimal native DOM updates, but you have all the freedom of a library like React.

Post reply on HN