3 ms·
Everybody should be talking about how it takes Next.js 10 seconds to compile a route in development mode. Rust compiler is smoking in the corner.
by koakuma-chan 1y ago
Everybody should be talking about how it takes Next.js 10 seconds to compile a route in development mode. Rust compiler is smoking in the corner.
- christophilus 1y agoIt’s unusable. The worst devx I’ve experienced since… dunno. I can’t think of a stack I’ve worked with that I loathed more since that one and only time looked at helping someone fix their Sharepoint site.
- aj_g 1y agoFor real. It makes me feel like I'm coding in C++ again. I have the suspicion that many Next aficionados are using M12 Macs with 512GB RAM and don't know how bad the DX is on anything less than a bleeding edge machine.
- bravesoul2 1y agoYeah it's at least 200 millisharepoints of bad.
- tonyhart7 1y agorust compiler actually do compiling, are you sure that next js compiler do the same thing?
- koakuma-chan 1y agoIt's mostly running Vercel spyware.
- celicoo 1y agoDo you care to elaborate?
- koakuma-chan 1y agoIt's a joke but also https://nextjs.org/telemetry https://nextjs.org/telemetry It is unknown though what causes it to take 10 seconds to compile a route in dev mode after each change. They have a development environment guide[0] but it's all lies and doesn't actually work. [0]: https://nextjs.org/docs/app/guides/local-development https://nextjs.org/docs/app/guides/local-development Antivirus? Imports? ``` Compiled /analytics in 3.8s (3123 modules) GET /analytics 200 in 5185ms ``` Doesn't explain the 10 seconds.
- tshaddox 1y agoAnd bizarrely, next dev —-turbo isn’t any faster on my code base at work.
- koakuma-chan 1y agoI confirm. --turbo doesn't do anything.
- const_cast 1y agoWe've gone so far that the promise of a simple scripting language like JS has multiple build and compile steps, and they're taking longer than a god damn C++ compiler. Who knew that if we just threw Clang in a browser we'd somehow have a more pleasant experience? On a related note, we use PHP at work. Same fucking problem. It's a scripting language, should be painless no? Wrong. PHP has awful performance characteristics, so we need to generate some code ahead of time. So we have a custom build step that uses Composer. That custom build step is SLOW. Probably because it was created by shitty PHP programmers and not the people who wrote GCC.