JavaScript Daily
12.6K subscribers
34 photos
2 videos
270 links
Daily JavaScript / JS community news, links and events.

"First, software ate the world, the web ate software, and JavaScript ate the web."

'JavaScript' is a trademark of Oracle Corporation in the US. We are not endorsed by or affiliated with Oracle.
Download Telegram
Bun vs pnpm

I'm seeing a lot of bun vs pnpm install speed comparisons but would like to provide some nuance: the absurd perf difference usually is a result of one tool running with a network API call overhead, while the other not.

bun install defaults to the behavior similar to pnpm's --prefer-offline flag, which skips hitting the npm API. To simulate the default behavior of pnpm, you have to use bun --force.

Here are some comparisons on my machine (network from Singapore) with different conditions:

bun (no cache, no lockfile): 5.4s
pnpm (no cache, no lockfile): 6.7s

bun (with cache, no lockfile): 30ms
pnpm (--prefer-offline, with cache, no lockfile): 587ms

bun (--force, with cache, no lockfile): 2.73s
pnpm (with cache, no lockfile): 5.9s

bun is still faster, but not so significant as some benchmark graphs may have led you to believe.

bun itself is amazing in many ways and deserve hype, but I'd love to see we compare apples to apples and not gloss over the details for engagement.

context for the benchmark: it's using the Vite + Vue + TypeScript boilerplate generated from bun create vite.

- Evan You (https://twitter.com/youyuxi/status/1701243745880932687)


πŸ”₯ Follow @javascriptdaily πŸ”₯
ECMAScript excitement πŸ˜‰

Safari 17.0 ships support for #TC39 Stage 3 proposal Set Methods πŸŽ‰

The seven new Set.prototype methods are:

πŸ”Έ intersection
πŸ”Έ union
πŸ”Έ difference
πŸ”Έ symmetricDifference
πŸ”Έ isSubsetOf
πŸ”Έ isSupersetOf
πŸ”Έ isDisjointFrom


πŸ”₯ Follow @javascriptdaily πŸ”₯


https://github.com/tc39/proposal-set-methods
Next.js 13.5 Released !!

β—† 22% faster local server startup
β—† 29% faster HMR (Fast Refresh)
β—† 40% less memory usage
β—† Optimized package imports
β—† next/image improvements
β—† And over 438 bugs patched!


πŸ”₯ Follow @javascriptdaily πŸ”₯


https://nextjs.org/blog/next-13-5
Meet hwy.dev, a new TypeScript metaframework built on top of hono.dev and htmx.org πŸš€

Quickstart:
npx create-hwy@latest

Features:

βœ… Server-rendered JSX / TSX
βœ… Nested, file-based routing
βœ… Remix-style actions and parallel loaders
βœ… Async page components
βœ… Rich Hono middleware ecosystem
βœ… 100% type-safe
βœ… Built-in critical CSS inlining
βœ… Live browser refresh during dev
βœ… And much more...
JavaScript Daily
#ECMAScript excitement πŸ˜‰ Next week's #TC39 meeting is hosted by #TechAtBloomberg in Tokyo & has a packed agenda: πŸ”Έ AsyncContext πŸ”Έ Decimal πŸ”Έ Import Attributes πŸ”Έ Intl.MessageFormat πŸ”Έ Negated in πŸ”Έ Pattern Matching πŸ”Έ Structs πŸ”Έ TDZ πŸ”Έ Throw expressions πŸ”Έ Type…
#ECMAScript excitement πŸ˜‰

These proposals moved this week #TC39 πŸŽ‰πŸŽ‰

4️⃣ Resizable ArrayBuffer
2️⃣ RegExp.escape
2οΈβƒ£πŸ”™ ShadowRealm
1️⃣ Joint Iteration
1️⃣ Locale Extensions
1️⃣ Iterator Sequencing
1️⃣ Negated in
1️⃣ Stable Formatting
πŸ—‘οΈ FinalizationRegistry #cleanupSome
πŸ—‘οΈ Symbol.thenable
Exciting news - roadmap editor is live  πŸ₯³

You can now create custom roadmaps, add content and resources, share them with your friends, teams or publicly.
This is a huge next step for us and we are so excited about what's coming next!

An interesting feature addition to https://roadmap.sh/

A good roadmap to bookmark: https://roadmap.sh/javascript

πŸ”₯ Follow @javascriptdaily πŸ”₯

https://x.com/kamrify/status/1708293162693767426
Announcing WinterJS

The most performant JavaScript Service Workers server thanks to Rust and SpiderMonkey.

WinterJS is a JavaScript Service Workers server written in Rust, that uses the SpiderMonkey runtime to execute JavaScript (the same runtime that Firefox uses). We chose to follow the WinterCG specification to aim for maximum compatibility with other services such as Cloudflare Workers, Deno Deploy and Vercel (hence the name WinterJS).
WinterJS is not only blazing fastℒ️ but can also be compiled to WebAssembly thanks to WASIX and thus also run fully with Wasmer.


πŸ”₯ Follow @javascriptdaily πŸ”₯


https://wasmer.io/posts/announcing-winterjs-service-workers
This media is not supported in your browser
VIEW IN TELEGRAM
The rise and rise of #JavaScript

Credits: Data is beautiful (YouTube)

πŸ”₯ Follow @javascriptdaily πŸ”₯
This media is not supported in your browser
VIEW IN TELEGRAM
Happy New Year to all the JS Daily subscribers.

Let's have a cheerful year in 2024

πŸ”₯ Follow @javascriptdaily πŸ”₯
πŸ“’ LLRT (Low Latency Runtime) is a new JS runtime from Amazon ✨

⚑ Designed for fast Serverless startup time
πŸ¦€ Written in Rust
πŸ’¨ Embeds the QuickJS engine written in C
πŸ’‘ Lightweight (~3MB)
πŸ§ͺ Experimental!

https://github.com/awslabs/llrt
JSR - the JavaScript Registry - is now available in public beta.

πŸ› οΈ TypeScript first, ESM only
🌐 Works across runtimes (Node, Deno, Bun, workerd and more) and alongside npm/yarn/pnpm
πŸ€— Free and open source

Read about it on the Deno blog:

https://deno.com/blog/jsr_open_beta
πŸ”₯🌎 TypeScript Revolution: Compiler Rewritten in Go for MIND-BLOWING Performance! 😲

Get ready for some EARTH-SHATTERING EXCITEMENT! πŸ˜‰ The TypeScript team has just dropped a bombshell: they've completely rewritten the compiler in Go, and the results are nothing short of ASTOUNDING! 🀯

πŸŽ‰ Here are the jaw-dropping highlights:

πŸ”Ή *10x FASTER TYPE-CHECKING* πŸ”₯: Say goodbye to slow compilation times and hello to lightning-fast type-checking!

πŸ”Ή *SIGNIFICANTLY LESS MEMORY USAGE* πŸ“‰: The new compiler is leaner and meaner, using far less memory to get the job done.

What does this mean for you? πŸ€”

- *HUGELY IMPROVED AUTHORING & COMPILATION EXPERIENCE* πŸš€: With the new compiler, you'll enjoy a seamless and blazing-fast TypeScript experience like never before!


Read the official announcement: https://devblogs.microsoft.com/typescript/typescript-native-port/

____
Stay tuned to @javascriptdaily for more updates, and get ready to experience the future of TypeScript! πŸ”œπŸ‘