364 points · by jjzhiyuan · 4y ago · 165 comments
How do people take anything from them serious when their job description is literally taking money in order to influence people...
I guess that's just our society. We love to be told what we should feel/do/care about on a societal level, so people gobble it up even if the content is obviously just paid marketing
[0] https://www.youtube.com/watch?v=btqdaqEHw0A [1] https://news.ycombinator.com/item?id=33334091
JS Framework that doesn’t support serverless (aside from the sponsoring company‘s walled garden) - won’t fly with me in charge for infra.
I'm very happy with https://github.com/brillout/vite-plugin-ssr
No clue who signed off on this marketing but they just outed themselves as untrustworthy to a whole segment now. What a stupid move...
Deno vs bun was same case, each showed their runtime as faster
- Bun does recognize they don't have multi-processor yet, so yeah cannot compare that (remember it's still alpha software!). So they compared what they had so far with a similar setup in Deno, pretty fair for that stage IMHO!
- In real-life you'd have either 1 thread for smaller apps, or setup a proxy with multiple instances if the program was single-threaded, so the comparison Deno made was in no way realistic.
"My database A is is faster than B! (When B is not using indexes, because my database A does not have indexes, so it would be unfair to let B uses indexes..." is the equivalent here.
"I'm building a new product. It's half-way there, but so far I've finished single-threaded processing! Look, at single-thread it's faster than anything else by a large margin".
That's it. Indexes in a DB are like the main thing to do, while many/most servers that are run online are still single-threaded, so not a good comparison.
Not having to do that is quite an advantage for Deno though regardless of the perf claims.
What if some next big change doesn't align with the best interest of the community?
You can see some future parallel to Microsoft and the `dotnet watch` debacle[0] where the dotnet team introduced a feature to allow hot reload then some executive neutered it except for Visual Studio because "it wasn't stable yet".
No one will know the true reasons why it was pulled (and then re-released after community outcry), but it left a sour taste in the community. And in the case of Microsoft, I think they have even smaller incentives to pull this kind of stuff (VS is a very tiny, tiny portion of their revenue compared to Azure and Office) whereas Vercel is much more tightly bound to Next.js so it seems inevitable that there will be a point in time when Vercel's interests comes to loggerheads with the community's best interest.
It may seem far-fetched right now, but all you need to do is look at the HTML source for Target.com and Walmart.com and see how a corporation has created tremendous leverage under the guise of OSS. The obvious outcome is to use that leverage at some point in the future to extract capital. The fact that they built something novel instead of embracing an already really good community solution (Vite) smacks of creating leverage in the same way that Apple has been empowered by their walled garden platform ownership.
I trust Evan You far, far more than I do Vercel to make decisions in the interest of the community.
[0] https://dotnetcoretutorials.com/2021/10/23/the-hot-reload-de...
If one build is .75 of a second and the other build is 1.5 seconds I probably wouldn't consider the .75 of a second a significant improvement because I would probably not gain anything from the slight improvement.
I'm sure you can construct lots of other examples whereby one my prefer a less faster build over a faster build or just feel that it was not actually important either way.
NextJS is an open-source framework under the MIT license, so if Vercel ever did anything to compromise NextJS, it could just be forked, but to my knowledge and experience with NextJS, they've provided and continue to provide an awesome framework/ecosystem around React.
Aside performance, this has consequences because of their stale-while-revalidate technique for static pages in incremental regeneration. If cache becomes obsolete on 1 instance and it's revalidate on the next request, it's not revalidated on other instances, so users accessing them are going to see stale data until that instance itself does revalidation. Having even a percentage of pages showing stale data can be painful for certain scenarios.
NextJS users been asking for more flexiable caching for some time.
I think it's a pretty good example.
As for forking it, how many companies have enough resources and are willing to go that distance?
As for the forking it comment, that's exactly the point. Vercel is investing heavily into NextJS, spending millions of dollars on hiring full time developers to work solely on it, and they give NextJS away for free. So having the best Next experience on the platform that they own and control and can fine tune makes sense to me. Nobody is forcing you to use NextJS or any other library.
Like most of the nextjs 13 changes seem like a lot of extra work for not much benefit.
From the article, the 10x improvement was more 6x and required 30k modules... Turbopack's 15ms was rounded down to 0.01s while Vite's 87ms was rounded up to 0.09s. isn't Android build level slow.
"pages" is such an obvious name indicating webpages go here. The new "app" directory is super ambiguous, might as well have named it the "code" folder...
Honest question - can anyone ELI5 why I should avoid them? The only concrete things I have seen are "they're exaggerating the 10x figure", and "they collect metrics and it's hard to turn it off". Both aren't great, but seems an overreach at first glance to avoid them for those reasons.
Vercel simply has a lot of VC funding and is using marketing to sell their tooling and their platform. It's not unique to them, nor is it particularly egregious especially when Evan You himself clearly admits Turbopack is, in fact, slightly more performant than Vite. They lied about some benchmarks. Very dumb of them. I will move on and will not really avoid Vercel unless I have much more immediate concerns like their pricing or other ethics concerns that have more drastic effects
From the submission:
"There were number rounding issues in the original numbers for the 1k component case - Turbopack's 15ms was rounded down to 0.01s while Vite's 87ms was rounded up to 0.09s. This further got marketed as a 10x advantage when the original numbers were close to 6x."
That is more than exaggeration, it's either incompetence or deceitful. They also did not even release a benchmark at first, and if you read Evan's writeup it could be argued the benchmark is not a fair comparison.
They made a lot of noise about Next.js 13 when a lot of the new features are turbobroken. Ex: https://www.reddit.com/r/nextjs/comments/yj4r3q/migration_fr...
They are claiming turbopack is a webpack successor purely based off of having hired the creator of webpack: https://twitter.com/TheLarkInn/status/1584996270242148352.
They are pushing the idea that they are doing revolutionary stuff when in actual fact they are copying existing projects that have been around for years:
- turbopack using the same architecture as Parcel: https://twitter.com/devongovett/status/1585035737971724288
- "literally copy pasted Lage’s design and docs and branded it as Turborepo" https://twitter.com/jeffbcross/status/1583251710654283776
I strongly dislike the way they have gone about marketing their new tech.
Things like this also feel off: https://twitter.com/ascorbic/status/1585004156615479296
Everyone is jumping on it, and accountability is good, but no reason to avoid Vercel.
“Successors of webpack” is just more marketing as webpack isn’t going anywhere anytime soon.
Turbopack is just another packer among a sea of them.
> And it's objectively faster than Vite, not that I care
From this submission:
"Since this is a composite benchmark that involves both Node.js and native Rust parts, there will be non-trivial variance on different hardware. The numbers I posted were gathered on my M1 MacBook Pro. Other users have run the same benchmark on different hardware and reported different results. In some cases Vite is faster in the root case, whereas in others Vite is significantly faster in both cases."
Right now, Vercel is making much ado about nothing.
What do you mean "still"? Everyone setting up Vite is supposed to NOT use the default configuration?
> After reading the post and benchmark code, here are a few key takeaways: 1. The Vite implementation is still using the default, Babel-based React plugin.
I.e. the "still", refers to the config used in Vercel's original benchmark. Since they had tweaked the Turbopack React config, yes, this is noteworthy. Whether this was ignorance about Vite (i.e. making a straw-man argument) or malice, we don't know. Since Vercel did publish their config, assuming ignorance is enough for me. My own conclusion was that defaults are tradeoffs, and that tweaking them can improve some aspect (performance) while negatively affecting another (disk space):
>> The reason Vite currently defaults to Babel was a trade-off between install size and practicality. SWC's install size is quite heavy (58MB in node_modules whereas Vite itself is only 19MB), and many users still relied on Babel for other transforms, so a Babel pass was somewhat inevitable for them. However, that may change in the future.
Did they? My understanding is, that Turbopack uses SWC by default. So without at least a confirmed intent to change the default on Vite’s part, I feel like that choice is valid (though it should be explicitly mentioned).
Evan's criticism is that By default, Next use RSC(React server components) which is slower for HMR. in the benchmark, they disabled it for getting higher performance. At the same time, they are saying vite should use default setup for "fairness"
So I guess it’s bad that instead of radically different configs and performance of Webpack vs Rollup vs Parcel vs etc, compared to the future of choosing between a much more mature build tool market with Vite and Turbopack is a bad thing?
Mere fact that we're at the point where we have transpiler upon transpiler upon transpiler, where "wRiTtEn iN rUsT" is used as quality/performance control, where people throw term performance around as if it's a hot potato and no one mentions environments/hardware and actual real world use scenarios and where apparently everyone are building World of Warcraft scale apps in frontend is what's making a mockery out of entire frontend world. It's no wonder that entry is difficult and that so many impostors are trying to build a name for themselves by producing yet another useless library that's gazillion times faster than the other useless library.
Frontend is a joke because of self-proclaimed developers building tools which they themselves can't use or explain to wide audience and that causes negative feeling when one has to deal with frontend manure.
I wish you well in your new career as a professional sculptor but "the js ecosystem has too many options!" gets posted on every one of these threads with little specific relevance to the article at hand.
I've been searching for a "full-stack" Web development job for the past 8 months this year, and aside from industry incompatibilities, the biggest headwind I'm facing finding an employer that recognizes front-end development is so much bigger than how you arrange your JavaScript to enable interactivity.
I have experience with React; my last career position allowed me to go from 0-100% confidence/competence with Svelte in 4 months. But employers want to see some equivalent of "3-5 years experience with React" and structure their shitty technical assessments similarly, and I've really had a problem trying to find the right way to show I'm just as qualified.
Runtimes: a lot of frontend JS engineers don't know what these are. Being able to explain them (and the difference between Node and Deno for ex) is a good answer. For backend jobs this is a hard requirement, but when I see "Node" in a frontend job listing I assume it means "can install packages from Node."
Frameworks: (like Next) it depends. If I'm hiring for an app already built in one, maybe. A general answer like "SSR is a problem with React" and "this framework solves that problem this way" is useful.
Do any developers actually care/notice this level of HMR delta anyway, whether it's 80ms or 72ms? Is it really important for a HMR to be 80ms faster?
If you don't like the unit "completions per hour", consider that you don't have to drive for an hour or even go a mile to go 60 miles per hour.
In a car, 60mph has some kind of well-known interpretation; there's an experience to that that people can at least vaguely identify. And it's also related to fairly intrinsic limits, such as legal speed limits, safety, etc.
But even in a car, people tend to care about trip-times, not speeds. And speeds are harder to work with; If you travel 30mph on your commute to work due to traffic; and 60mph on your way home - what was your average speed? Not 45.
Outside of a car and in a computation context, it's even more impractical to talk about "speed" - after all, we're usually dealing with lots of stages; and it's rather easier to simply add up latencies than it is to some reciprocal of reciprocals dance. Even if time is workload dependent, then the time-per-workload framing tends to be more helpful than the workload-per-time framing.
As a corollary, people currently talk about high refresh gaming, and will happily report how some workload went from 300fps to 400fps, without noting that this is the same frametime reduction as going from 48 to 50fps (setting aside perceptual limitations). Workload-per-time is pretty unintuitive.
I hate it a little less now :)
Hence, "it's 10x faster" is a valid way to write "it does the same work in 1/10 the time".
Seconds of developer time could be saved every day!
To make matters worse, now the react and next teams are actively colluding with each other, effectively allowing vercel to have a competitive advantage on feature development for react.
It might seem great now but this is the hairline crack that will destroy the react ecosystem.
I wouldn’t be surprised if vercel tries to buy react and its team.
I’ve understood this and stopped using Next with all the enabled by default and intentionally difficult to disable metrics collection system they have in Next.
Having it enabled by default, without asking is already evil enough.
Refusing to have a setting you can easily commit into the repository to turn it off is next level.
They trick people with the “just set this env var” to turn it off, and rely on people doing it wrong, forgetting to do it in certain environments, etc. it’s intentionally complicated, when a frigging Boolean setting in next.config.is would be better. They refuse to do it. That’s what evil companies do.
I just tried it myself on a brand new Next project:
$ npx create-next-app@latest
...
$ npx next telemetry disable
Next.js' telemetry collection is already disabled.
Status: Disabled
You have opted-out of Next.js' anonymous telemetry program.
No data will be collected from your machine.
Learn more: https://nextjs.org/telemetry
Note the part that says "from your machine".An issue was crated about it but they just closed without responding: https://github.com/vercel/next.js/issues/31360
1. Last paragraph of that link you posted
2. https://github.com/vercel/next.js/issues/8851
3.https://github.com/vercel/next.js/issues/10713
4. Many similar discussions to this one here on hackernews.
``` NEXT_TELEMETRY_DISABLED=1 ```
in your .env file. I mean it couldn't be any easier.
> They trick people with the “just set this env var” to turn it off, and rely on people doing it wrong, forgetting to do it in certain environments, etc. it’s intentionally complicated, when a frigging Boolean setting in next.config.is would be better. They refuse to do it. That’s what evil companies do.
This is exactly the evil part I'm talking about.
Now, if I do need a lot of interactivity in the frontend, I use Inertia with Laravel, which gives me a real full stack, robust, battle tested, well integrated and very productive solution.
I do - .NET (since 5) has been great. And you've got stuff like Blazor for the frontend if you want to avoid JS entirely.
It would be wise to decouple Vercel, the company, and Next, but Next as a framework itself is great to work with at scale.
However, this is the foot in the door that creates incentives that prioritizes their business model over creating a vibrant and healthy ecosystem.
Now that the react dev team and next dev team are closely working together, to the point that the react team is part of the nextjs conf announcements, it really starts to show the wolf in sheep's clothing.
This is not an open ecosystem anymore, it's being run by FB and VC money.
Both target.com and walmart.com are running Next.js (view source → `__NEXT_DATA__`).
The disingenuous comparisons against Vite's performance seem innocent enough, but there's an underlying cynicism I cannot shake that the true objective is to own the ecosystem so they can create leverage against the community of users -- both commercial and non-commercial -- in the future.
I think I would personally feel very differently had they announced that they are investing in Vite, for example.
Meta would have nothing to gain and everything to lose from that, highly unlikely they would be interested.
why buy it when you can just wait for people quit and come over :)