News for hackers. Stuff that matters.
Re:Next.js 13 by dsissitka on Tuesday October 25, 2022 @02:15PM (#33334214)
Edit: There's some more discussion about Turbopack at https://news.ycombinator.com/item?id=33333695.

Looks like they launched a webpack alternative called Turbopack today:

> Next.js 13 includes Turbopack, the new Rust-based successor to Webpack.

https://vercel.com/blog/turbopack

https://turbo.build/pack

Re:Next.js 13 by dhruvarora013 on Tuesday October 25, 2022 @02:20PM (#33334285)
Spent the last few months migrating to Vite. The Javascript ecosystem is exhausting and exhilarating all at the same time
Re:Next.js 13 by RunSet on Tuesday October 25, 2022 @02:27PM (#33334370)
No telling how many sides the next iteration of the wheel may have but one thing's for certain: That one will be the ultimate version.
Re:Next.js 13 by toinewx on Tuesday October 25, 2022 @02:48PM (#33334619)
Well at least Vite does not lock you in the Next.js eco-system, so it's something ¯\_(ツ)_/¯.
Re:Next.js 13 by strangescript on Tuesday October 25, 2022 @02:48PM (#33334623)
Overall the community is starting to embrace better languages for tooling, primarily Rust with some Go and Zig sprinkled in. Eventually I think we will hit a point where there will be a defacto dev tool that can take a web app and package it however you want, deploy it wherever you want, and do it very quickly. Some would argue those exist now, but until it can be done literally everywhere, painlessly, I would contend we aren't there yet. It's probably more likely something like WASM/WASI takes over before then honestly.
Re:Next.js 13 by kyriakos on Tuesday October 25, 2022 @02:52PM (#33334659)
What I hate about javascript fatigue is that there's never enough time for something to mature before it gets replaced. Documentation always covers the basic scenarios and never any edge cases. Sooner or later you end up trying to find a solution in a github issue 20 pages down.
Re:Next.js 13 by mmis1000 on Tuesday October 25, 2022 @03:00PM (#33334754)
I think webpack is a special exception. It somehow revised the whole 5 major version and still don't get a proper plugin development document at all, not even basic one. You don't even have a flow graph that tells you events happen in which order. Everyone either Google and copy paste random example or reading the source by themselves.

It always amazed me that such a big project can just live without docs.

Re:Next.js 13 by jokethrowaway on Tuesday October 25, 2022 @04:56PM (#33336068)
that's the only thing agile people got from the manifesto

an excuse not to write docs, ever

it's endemic in the majority of companies I've seen in the last 10 years

hopefully tooling (eg. docs.rs mostly automatically generated and pleasant to use) will help in the long term

Re:Next.js 13 by nightski on Tuesday October 25, 2022 @02:19PM (#33334257)
Sigh another one? I thought Vite was the new thing.
Re:Next.js 13 by AlmostAnyone on Tuesday October 25, 2022 @02:22PM (#33334313)
Sigh? I think the speed improvement is awesome.
Re:Next.js 13 by hirop on Tuesday October 25, 2022 @02:43PM (#33334572)
It is awesome to see so much innovation, but it can be exhausting to keep up.
Re:Next.js 13 by apozem on Tuesday October 25, 2022 @03:01PM (#33334778)
I'm quite alright with new tooling every six months when the new thing is orders of magnitude faster. If people want to compete to make my job as a frontend dev easier and faster, that is just fine.
Re:Next.js 13 by nightski on Tuesday October 25, 2022 @03:42PM (#33335212)
Ideally we could learn how to make the existing tools better/faster and create software that can evolve rather than re-writing everything from scratch every six months.
Re:Next.js 13 by yboris on Tuesday October 25, 2022 @04:56PM (#33336075)
I suspect at some point we hit the limit of the language performance. I can't imagine JavaScript beating Rust when both are written well.
Re:Next.js 13 by AlmostAnyone on Tuesday October 25, 2022 @05:06PM (#33336190)
There was many years before people started trying to replace Webpack.
Re:Next.js 13 by nightski on Tuesday October 25, 2022 @05:22PM (#33336337)
True but webpack itself had a ton of churn and made practically no effort to maintain backwards compatibility causing a ton of work with each major update.
Re:Next.js 13 by AlmostAnyone on Tuesday October 25, 2022 @06:11PM (#33336837)
Hmm, I am using it since v2 and I disagree, it was not so bad. I saw a lot of people had overcomplicated configs that could be simplified a lot, I guess those had some problems upgrading... But mine never had much problems (and not just because my needs were simple...), I just removed some options when going to v4 and that's about it.
Re:Next.js 13 by pull_my_finger on Wednesday October 26, 2022 @12:08AM (#33339706)
I think the issue starts when xyz new tool requires you to write code specific to that thing, which is something I avoid as much as possible. IMO they should strive to stay out of the way as much as possible and just bundle/optimize/tree-shake and not worry about extending JS as a language or nodejs as a runtime or doubling as a build tool or a filewatcher or a development server etc etc (see the UNIX philosophy 'do one thing well'), even at the expense of less optimal/fast builds. As soon as you start doing stuff like importing your images into your javascript so your bundler can do compiler tricks, you're painting yourself into the corner.

One recent offering I enjoyed working with was esbuild, as I could use it's CLI as part of my existing build system incrementally instead of planning my whole system around it.

Re:Next.js 13 by jfoster on Wednesday October 26, 2022 @03:27AM (#33340793)
There's a few facets to consider:

1. Does code written a particular way?

2. Does it need to be configured?

3. Does it conflict with other tooling?

4. Does it have limitations that are too restrictive?

5. Does it cause bugs/issues that are difficult to resolve?

The ideal tool just does its thing, doesn't need any code written or configuration, works no matter what other tooling you're using, has no limitations, and will never itself cause a bug.

That might not be realistic to do 100%, but I think it's what all tools should be aiming for.

Re:Next.js 13 by pastor_bob on Tuesday October 25, 2022 @02:51PM (#33334644)
>On an application with 3,000 modules, Turbopack takes 1.8 seconds to boot up, while Vite takes 11.4 seconds.

How many apps are dealing with 3,000+ modules?

Re:Next.js 13 by Joeri on Tuesday October 25, 2022 @03:15PM (#33334924)
At the pace the javascript ecosystem is going, by next year it will be almost all of them. Create react app for a new default project pulls in 1400 packages, 300 MB in size, just to put a hello world page on a screen. That nobody thinks this is absolutely bonkers drives me absolutely bonkers.
Re:Next.js 13 by reducesuffering on Tuesday October 25, 2022 @08:13PM (#33337999)
Plenty of people think it's bonkers and the informed frontend perspective is to not use CRA anymore: https://www.youtube.com/watch?v=7m14f0ZzMyY
Re:Next.js 13 by tr1ll10nb1ll on Saturday November 05, 2022 @09:30PM (#33487830)
Informed developers don't use CRA anymore.