One nation, under Vite
Last October, we wrote about Vite’s ambitious goal of becoming “the shared foundation for higher-level innovations in the web ecosystem.” And after just 10 months, it feels like we can pretty much say… mission accomplished?
We’ve seen Remix migrate to Vite, Angular use it for their dev server, and dozens of other frameworks and libraries build on top of it. This has caused Vite’s npm downloads to double yet again to 14 million per week.
In fact, Next.js is currently the only JavaScript meta-framework that doesn’t use Vite in some way (for their own turbo-tastic reasons), but the rest of the JS ecosystem has united under the lightning bolt banner.
So what’s next for Vite? According to Evan You’s recent keynote, the team plans to expand on their original goal by forming “a completely unified toolchain that can handle your JavaScript and TypeScript source – all the way from source file to AST, to linting, formatting, unit testing, transforming, bundling, minification, all the way to production, at native speed.”
Here’s what they’re currently building to make that happen:
Environment API – Currently experimental in Vite 6 alpha, this lower-level construct will provide better support for frameworks that run in multiple environments like the browser, Node.js, and workers.
Rolldown – This Rust-based bundler is still a WIP and aims to provide full compatibility with Rollup (Vite’s current bundler), plus new features like more advanced chunk splitting and module federation.
OXC – This JavaScript compiler is also written in Rust and provides super fast parsing, linting, and resolving, with more functionality planned for the future.
Bottom Line: Multiple OSS projects and VC-backed startups have tried and failed to build a unified, Rust-based toolchain like this. But now that Vite has conquered all of its other goals, it makes sense for the team to try and tackle the final boss of build tools. I wouldn’t bet against them.
Mfw I think about setting up a Postgres DB from scratch
Postgres is the world’s most popular open-source database for a reason – but it’s also easy to get stuck wasting weeks on complex configs and maintenance.
That’s where Neon can help. They offer fully managed Postgres with features designed to help you ship faster:
Your DB automatically adapts to your app’s workload, eliminating the need for over-provisioning or manual resource allocation.
Instantly create ready-to-use Development/Preview/Test databases (with both schema and data) that shut down when unused.
You can restore your database in seconds to any point in the past 30 days, 24 hours, or even 1 minute ago.
Get started with their generous free tier, and provision your Postgres database in under a second. Seriously, it’s that fast.
Ryan Dahl wrote about What Deno got wrong about HTTP imports and how they’re addressing it. I just wish that my competitive dressage coach had that same level of introspection after I flamed out of the Olympic trials.
Jake Archibald wrote about how JavaScript garbage collection doesn’t work as he expected when it comes to closures.
James Cowling built Cronvex – an implementation of user space crons that can be used to register periodic jobs that call third-party http endpoints. It’s similar to EasyCron or FastCron, but completely free, open source, and built on top of Convex. [sponsored]
TkDodo wrote a blog post imploring you to Please stop using barrel files – no matter how much fun it is to yell “get barreled!” every time you do.
The TypeScript 5.6 beta introduces errors on suspicious truthish/nullish checks, new iterator methods like .map()
and .filter()
, and more.
Brenley Dueck wrote Battle of the Asyncs to compare the async primitives of React vs Solid.js.
microjs is a micro-site dedicated to helping you find useful micro-frameworks, which, according to my doctor, work just as well as a regular framework.
Apryse’s HTML pdf viewer lets you easily embed a PDF viewer on your site with advanced features, a consistent viewing experience and full customization. Trust me, your users will thank you. [sponsored]
Porffor is an experimental AOT JavaScript engine that compiles JS code to Wasm or native code.
Stack Overflow just released their 2024 Developer Survey. TLDR: most developers don’t really trust AI tools (but everyone uses them), most developers aren’t happy at work (but are terrified of being laid off), and we’re all drowning in technical debt (but no one wants to clean it up). Sounds about right.
一个民族,即时
去年10月,我们写了关于Vite的雄心勃勃的目标,即成为“网络生态系统中高层次创新的共享基础”。
我们已经看到Remix快速迁移, Angular 使用它为Dev 服务器,以及数十个其他框架和库建立在其上,这导致Vite的npm下载量再次增加一倍,每周达到1400万。
事实上,Next.js 是目前唯一的 JavaScript 元框架。不会以某种方式使用Vite(出于自身的涡轮战术原因),但JS生态系统的其余部分已经在闪电的旗帜下团结起来。
**那么,即时的下一步是什么呢?**根据Evan You最近的关键词,该团队计划通过形成“一个完全统一的工具链,可以处理您的JavaScript和TypeScript源 - 从源文件到AST,到链接,格式化,单元测试,转换,包装,缩小,到生产,在原生速度。
以下是他们目前正在建设的,以使这一点发生:
环境火灾目前在Vite 6 alpha中进行实验,这个较低级别的构建将为在多个环境中运行的框架提供更好的支持,如浏览器,Node.js和工人。
滚落这个基于Rust的包裹仍然是一个WIP,旨在提供与Rollup(Vite的当前包裹)的完全兼容性,以及更先进的分裂和模块联盟等新功能。
氧化这个JavaScript编译器也用Rust编写,提供超快的解析、链接和解决,未来计划提供更多的功能。
**底线:**多个OSS项目和VC支持的初创公司已经尝试并未成功地构建这样一个统一的基于Rust的工具链,但现在Vite已经征服了其它所有目标,团队有意义地尝试解决构建工具的最终老板。
Mfw 我正在考虑从头开始设置Postgres DB
由于某种原因,Postgres是世界上最受欢迎的开源数据库 - 但是,在复杂的配置和维护上浪费数周也很容易。
他们提供完全管理的 Postgres 功能,旨在帮助您更快地发货:
你的DB自动调整对您的应用程序的工作负载,消除过度提供或手动分配资源的需要。
立即创建可用开发/预览/测试数据库(包括方案和数据),在未使用时关闭。
您可以在几秒钟内将数据库恢复到过去 30 天, 24 小时,甚至 1 分钟前的任何时候。
开始与他们慷慨的免费动物,并在不到一秒钟内提供您的Postgres数据库。
Ryan Dahl 写了关于Deno对 HTTP 导入的错误我只是希望我的竞技服装教练在我离开奥运会试验后有同样的内心思维水平。
杰克·阿基巴尔德写道JavaScript垃圾收集在关闭时不会像预期的那样工作是的
詹姆斯·科林建造克隆克斯– 可用于注册定期工作,呼叫第三方HTTP终端的用户空间Cron的实现,类似于EasyCron或FastCron,但完全免费,开源,并建立在Convex上。
TkDodo写了一篇博客文章,恳求你请停止使用 barrel 文件不管有多么有趣,每次喊“被打碎!”
该TypeScript 5.6 测试版在可疑的真實/無效檢查上引入錯誤,新的迭代器方法如.map()
和.filter()
,还有更多。
Brenley Dueck 写道阿辛克人的战役要比较 React vs Solid.js 的 async 原理。
微型这是一个致力于帮助你找到有用的微框架的微网站,根据我的医生,工作同样也作为一个正常的框架。
阿普里斯HTML PDF 查看器允许您轻松地嵌入您的网站上的PDF浏览器,具有先进的功能,一致的浏览体验和完整的定制。
保时捷是一个实验性的 AOT JavaScript 引擎,将 JS 代码编译成 Wasm 或原生代码。
Stack Overflow刚刚发布他们的2024 开发者调查TLDR:大多数开发人员并不真正信任人工智能工具(但每个人都使用它们),大多数开发人员在工作中并不开心(但害怕被解雇),我们都淹没在技术债务中(但没有人想清理它)。
发布者