Earlier quoted context omitted.
Why would I want to strip my types?
This feels like a ridiculous thread that captures everything wrong with modern Javascript ecosystem. It's grown into a product of cults and attempted zingers rather than pragmatic or sensible technical discussions about what we should and shouldn't expect to be able to do with an individual programming language. edit: to clarify, I assume there needs to be a basical level of comprehension of programming languages to…
Vite 8.0 Is Out
91–100 of 216 posts
Re: Vite 8.0 Is Out
#92Earlier quoted context omitted.
We saw 12m -> 2m on one of our biggest projects. Incredible really.
It blows my mind that there is a 12m build for a JavaScript application. How may lines of code is this app?
Re: Vite 8.0 Is Out
#93Earlier quoted context omitted.
Why would I want to strip my types?
This feels like a ridiculous thread that captures everything wrong with modern Javascript ecosystem. It's grown into a product of cults and attempted zingers rather than pragmatic or sensible technical discussions about what we should and shouldn't expect to be able to do with an individual programming language. edit: to clarify, I assume there needs to be a basical level of comprehension of programming languages to…
Re: Vite 8.0 Is Out
#94Earlier quoted context omitted.
If you're already passing over the sources to strip the types, why would you also not do tree-shaking and minifications?
Why would I want to strip my types?
Re: Vite 8.0 Is Out
#95Re: Vite 8.0 Is Out
#96Earlier quoted context omitted.
It is especially weird because JavaScript was not supposed to be processed at all! This is all wrong if you ask me. Web development should strive to launch unchanged sources in the browser. TypeScript also was specifically designed so engine could strip types and execute result code. These build tools should not exist in the first place.
JavaScript was not supposed to a lot of things.
10 years ago this sentence probably would have start a flame war. ;-)
Re: Vite 8.0 Is Out
#97Earlier quoted context omitted.
It feels like Wordpress inasmuch as it’s shoving a tool in places that don’t make sense. React is great for SPAs but if I wanted pre-rendered static content I’d use a different tool.
why? jsx is a great language for templating, the ui being a function of state is an incredible model. i am not a huge nextjs fan but React, mdx and friends are great for pre-rendered static content
Re: Vite 8.0 Is Out
#98Yeah, it makes you wonder how much computing power the industry has wasted over the years on tools that nobody questioned because "that's just how long builds take." We planned our work around it, joked about creating breaks, and built entire caching layers to work around it. Kudos to the Vite maintainers!
With Kotlin/Spring Boot, compilation is annoyingly slow. That's what you get with modern languages and rich syntax. Apparently the Rust compiler isn't a speed daemon either. But tests are something that's under your control. Unit tests should be done in seconds/milliseconds. Integration tests are where you can make huge gains if you are a bit smart.
Most integration tests are not thread safe and make assumptions about running against an empty database. Which if you think about it, is exactly how no user except your first user will ever use your system.
The fix for this is 1) allow no cleanup between tests 2) randomize data so there are no test collisions between tests and 3) use multiple threads/processes to run your tests to 1 database that is provisioned before the tests and deleted after all tests.
I have a fast mac book pro that runs our hundreds of spring integration tests (proper end to end API tests with redis, db, elasticsearch and no fakes/stubs) in under 40 seconds. It kind of doubles as a robustness and performance test. It's fast enough that I have codex just trigger that on principle after every change it makes.
There's a bit more to it of course (e.g. polling rather than sleeping for assertions, using timeouts on things that are eventually happening, etc.). But once you have set this up once, you'll never want to deal with sequentially running integration tests again. Having to run those over and over again just sucks the joy out of life.
And with agentic coding tools having fast feedback loops is more critical than ever.
Re: Vite 8.0 Is Out
#99Re: Vite 8.0 Is Out
#100Yeah, it makes you wonder how much computing power the industry has wasted over the years on tools that nobody questioned because "that's just how long builds take." We planned our work around it, joked about creating breaks, and built entire caching layers to work around it. Kudos to the Vite maintainers!