Live data from Hacker News

Vite 8.0 Is Out

vite.dev

201–210 of 216 posts

Re: Vite 8.0 Is Out

#201
post #123

Earlier quoted context omitted.

> I've seen people do integration tests where 99% of the time is spend creating and recreating the same database over and over again (some shitty ruby project more than a decade ago). That took something like 10 minutes. For anyone that doesn't know: With sqlite you can serialize the db to a buffer and create a "new" db from that buffer with just `new Datebase()`. Just run the migrations once on test initialization,…

Assuming you use sqlite in prod or are willing to take the L if some minor db difference breaks prod... This method is actually super popular in the PHP world, but people get themselves into trouble if they tidy up all the footguns that stock sqlite leaves behind for you (strict types being a big one). Also, when you get a certain size of database, certain operations can become hideously slow (and that can change dep…

We've had this exact same issue (clean db for every test) - the way we solved it was with ZFS snapshots - just snapshot a directory of our data (databases, static assets, etc) - and the OS will automatically create a copy-on-write replica that can be written to, and the modification can be just thrown away (or preserved).

Once you've created a zfs snapshot, everything else is basically instant and costs very little perf.

Re: Vite 8.0 Is Out

#202

Earlier quoted context omitted.

You say that, but isn't Vercel also a Void(0) investor in a roundabout way? The big news regarding Void Cloud is that it all seems to be built on Cloudflare workers. The landing page is very light on info atm too. [0] I am super excited that they are MIT open sourcing Vite+ however. In that realm, they are obviously targeting Bun as their main competition. Unfortunately for Bun, if they are forced to help Anthropic m…

Doesn't seem like it — see VoidZero investors [0]. > Unfortunately for Bun, if they are forced to help Anthropic more than they can focus on OSS Curious: is that speculation, or based on observation? [0]: https://voidzero.dev/about

Im pretty sure Accel is also heavily invested Vercel.

Regarding the Bun comment, that is speculation on my part. I have no real horse in the race but Anthropic didn’t buy them for lols.

Re: Vite 8.0 Is Out

#203

Earlier quoted context omitted.

> but the fact create-next-app is the first recommended option on the official installation page now does show it's had an impact. There is a decent bit of history around that page and whether some things should go in a collapsible div and whether that was prioritizing certain frameworks over other ones. One thing I'm still salty about is that CRA isn't mentioned anywhere (in the entire site). It's like it never exis…

Hi! I played a major part in getting that "installation" page rewritten to actually mention other tools like Vite :) The general TLDR is: - CRA was listed in the _old_ docs site - The new docs site coincided with the React team emphasizing "frameworks" to provide an all-in-one build experience and hopefully lead to better apps. - That also meant no ala-carte build tools were listed. This made many people (including m…

Hey acemark,

I've been following you and some of the other main React devs.

> That also meant no ala-carte build tools were listed. This made many people (including me) unhappy.

I had followed a decent bit of this back on Twitter, and appreciate you guys trying to make the documentation better (despite all of the drama that came up as a result).

And while it's definitely slowed down a bit, I still randomly see a "What happened to CRA" on the r/react sub.

I guess what bothers me the most is that CRA was not only mine, but quite a few others first introduction to React. And it's just weird that it wasn't even called out in the new docs (even back in 2022-2023). Like it had never existed.

Regardless, I appreciate that you guys care enough to help move React in the right direction. A lot happened while this was going on, and you guys put up with A LOT during this process.

Re: Vite 8.0 Is Out

#204

Earlier quoted context omitted.

Doesn't seem like it — see VoidZero investors [0]. > Unfortunately for Bun, if they are forced to help Anthropic more than they can focus on OSS Curious: is that speculation, or based on observation? [0]: https://voidzero.dev/about

Im pretty sure Accel is also heavily invested Vercel. Regarding the Bun comment, that is speculation on my part. I have no real horse in the race but Anthropic didn’t buy them for lols.

Indeed Accel is a long-term Vercel investor [0].

Not sure whether VoidZero and Vercel sharing the same investor has any sorts of implication.

[0]: https://vercel.com/blog/series-f

Re: Vite 8.0 Is Out

#205

Earlier quoted context omitted.

Your criticism contradicts itself. He's saying that the software seems free, but is so inefficient that it bloats other costs to run it. And he never said he wanted to replace $2K/month with $10/month.

I'm not saying it's so bad I don't recommend it, quite the opposite; but these things can be written in more performant languages. There's no reason why a cron job scheduler requires 500 mb of ram in idle. Same for the analytics. That is just a waste of resources. Software can be drastically way less resource intensive, there is no excuse outside of wanting to exacerbate the climate crises. This period of our history…

Dude you're complaining about the efficiency of free software.

Go write the software yourself, no one owes you anything.

Maybe if you had to actually write it yourself, you'd quickly figure out why people prefer "inefficient" languages for these things.

A cron job scheduler does not in fact require 500 MB of memory. You're just being disingenous, that software is doing a lot more than just that.

Re: Vite 8.0 Is Out

#206
post #161

Earlier quoted context omitted.

So you have free software that requires 2 GB of RAM and the alternative is $2k per month and you're complaining that the free solution is inefficient? Really? Why do you expect to be able to replace a 2k/month solution with a $10/month VPS?

Dude, the $2k solution is not only worse than postiz they charge an additional thousand for each channel. It's just garbage software, I brought it up as an example IDK why. Commentators here like knowing snippets about other industries in the profession, I know I do at least. But to answer your Q, yes I do expect a cron job schedule, analytics, and a CRM not to require 8 gig of ram in order to not barf on itself too…

> A $5/vps should be enough to host every suite of software a small business needs

Where is this weird expectation coming from?

Why should that be the case?

Re: Vite 8.0 Is Out

#207

Earlier quoted context omitted.

Im pretty sure Accel is also heavily invested Vercel. Regarding the Bun comment, that is speculation on my part. I have no real horse in the race but Anthropic didn’t buy them for lols.

Indeed Accel is a long-term Vercel investor [0]. Not sure whether VoidZero and Vercel sharing the same investor has any sorts of implication. [0]: https://vercel.com/blog/series-f

Well, your original comment was about a war brewing between Vervel and Void0. If Accel has a stake in both, I don’t know that they really care. See the Laravel investment as well.

Accel sees the money in vendor lock-in and is so far willing to let these companies fund their open source endeavors and sell hosting as a means to an end. Im not sure we’ve seen the real end game here yet but with geopolitics raising the cost of energy a ton this year, perhaps some screws are going to begin being tightened as margins are reduced. At present, I think its too early to tell.

Re: Vite 8.0 Is Out

#208
post #206

Earlier quoted context omitted.

Dude, the $2k solution is not only worse than postiz they charge an additional thousand for each channel. It's just garbage software, I brought it up as an example IDK why. Commentators here like knowing snippets about other industries in the profession, I know I do at least. But to answer your Q, yes I do expect a cron job schedule, analytics, and a CRM not to require 8 gig of ram in order to not barf on itself too…

> A $5/vps should be enough to host every suite of software a small business needs Where is this weird expectation coming from? Why should that be the case?

The expectation is that these aren't complicated tools, they should not command that many resources. Why do you think a $5/vps with half a gig of ram can't handle basic CRON/background jobs or management software? 512 mb of ram can do so much if you choose the appropriate tools but if you start with a weak foundation that requires 512 mb of ram to just stay idle it hurts a class of users that could benefit from this software.

These things aren't complicated, but when you choose NodeJS/Javascript they become way more complicated than expected. I say this as someone who has ever worked professionally with JS and nothing else for a 15 year long career.

Writing software that can only be used by the affluent is not the direction I want our industry to go in.

Re: Vite 8.0 Is Out

#209
post #205

Earlier quoted context omitted.

I'm not saying it's so bad I don't recommend it, quite the opposite; but these things can be written in more performant languages. There's no reason why a cron job scheduler requires 500 mb of ram in idle. Same for the analytics. That is just a waste of resources. Software can be drastically way less resource intensive, there is no excuse outside of wanting to exacerbate the climate crises. This period of our history…

Dude you're complaining about the efficiency of free software. Go write the software yourself, no one owes you anything. Maybe if you had to actually write it yourself, you'd quickly figure out why people prefer "inefficient" languages for these things. A cron job scheduler does not in fact require 500 MB of memory. You're just being disingenous, that software is doing a lot more than just that.

I am writing software myself and your attitude is just weird. We should always strive for better more efficient software, the climate crisis is a real thing and our industry has done an excellent job exacerbating it with more inefficient tools, libraries, and languages.

People prefer JS because all they know is JS, it's that simple. Please tell me why you think devs choose JS, I'm legitimately curious but your attitude of constant dismissal and disparagement makes it seem you just want to beat people down and not engage.

Re: Vite 8.0 Is Out

#210
post #188

Earlier quoted context omitted.

This is great news, but people should also try using regular nodejs import aliases and see if they're viable for their project.

I keep trying the "native" solutions every so often, but every time I quickly hit some snag that makes me question why I'm not just using the solution that actually works. As an example, I just generated a new project using create-vite & added two subpath imports: { // ... "imports": { "#assets/*": "./src/assets/*", "#/*": "./src/*" }, // ... } The second one (#/*) is similar enough to what I usually use (@/*), and i…

I'm confused myself. I have one project that uses package json aliased imports and TS doesn't complain. Then another where it does.
Post reply on HN