Prettier in Rust; Prettier performance improvements; Node v21.3.0; TC39 meeting November; esbuild...

Biome formatter wins the Prettier challenge (USD 22,500)

biomejs.dev @ematipico@fosstodon.org @biomejs@fosstodon.org

Prettier challenge – “write a Prettier-compliant pretty printer in Rust”:

  • USD 22,500: Pass > 95% of the prettier JavaScript tests.
  • USD 2,500: Compile to WASIX [a standardized WebAssembly API] and publish (via CI) to Wasmer [a WebAssembly engine].

Before the challenge, Biome was roughly 85% compatible with Prettier. Several Biome contributors pushed that number to over 96% within three weeks. So far, the second prize hasn’t been claimed. Biome maintainer Emanuele Stoppa: “WASIX requires way more work than expected.”

This is the major new feature of Biome v1.4.0. You can check out the release notes to see what else is new.

Prettier’s CLI: a performance deep dive

prettier.io github.com/fabiospampinato github.com/prettier

“[...] I’ve been contracted by the Prettier team to speed up Prettier’s command line interface (CLI). In this post we’ll take a look at the optimizations I’ve discovered, the process that lead to finding them, some exciting numbers comparing the current CLI with the new one, and some guesses about what could be optimized next.”

“By default times for the same command go from ~29s to ~1.3s, for a ~22x speedup. This requires the cache file to be remembered between executions. We can probably get much closer to a 50x speedup in the future also.”

“If the cache file is not remembered, or if you explicitly turn caching off, or if this is the first run, then times go from ~29s to ~5.5s with parallelization, on my computer, for a ~5x speedup, which should still be pretty significant.”

Node v21.3.0 (current): --disable-warning

nodejs.org github.com/RafaelGSS @nodejs@social.lfx.dev

Highlight: “This version adds a new --disable-warning option that allows users to disable specific warnings either by code (i.e. DEP0025) or type (i.e. DeprecationWarning, ExperimentalWarning).”

Updates from the TC39 meeting in November 2023

dev.to github.com/hemanth

Stage 4:
  • Array grouping
  • Promise.withResolvers
Stage 1:
  • Math.sum
  • Module sync assert
Withdrawn proposals:
  • Operator overloading
  • Extensible numeric literals

esbuild’s bundle size analyzer web app now has a treemap visualization

hachyderm.io @evanw@hachyderm.io

Write shell scripts using JavaScript and zx

johnwargo.com @johnwargo@mastodon.social

This is how the blog post describes zx:
  • It’s a Node-based runtime for executing JavaScript-based scripts and managing spawning external apps (in those scripts).
  • Provides a simplified wrapper around Node’s child_process API.
  • Returns promises from calls to spawn.
  • Automatically initializes several standard Node modules (chalk, fetch, fs_extra, minimist).
  • Automatically escapes and quotes parameters.

New podcast: “Off the main thread” with Jake Archibald and Surma about “whatever’s going on in the world of tech & web development”

offthemainthread.tech @jaffathecake@mastodon.social @surma@toot.cafe

This email was sent to you. You can unsubscribe from this list here or update your preferences.

Older messages

“State of JavaScript 2023” survey; QuickJS-ng v0.1.0; esbuild 0.19.7; show package version downloads

Tuesday, November 28, 2023

The “State of JavaScript 2023” survey is open stateofjs.com @sachagreif@hachyderm.io Quoting the frequently asked questions: When will the results be released? The survey will run from November 22 to

Vite 5.0; Prettier 3.1; Node v21.2.0; Bun v1.0.12; explicit resource management; JS strings in V8

Tuesday, November 21, 2023

Vite 5.0: Rollup 4, API cleanups and more vitejs.dev @vite@webtoo.ls “Vite is now using Rollup 4, which already represents a big boost in build performance. And there are also new options to improve

Pacquet package manager; WebGPU; test automation; NodeConf EU 2023 videos

Tuesday, November 14, 2023

pacquet: experimental Node.js package manager written in Rust [rewrite of pnpm] github.com github.com/pnpm Quoting the pnpm team: “Our Rust rewrite of pnpm is close to being ready for experimental

Bun 1.0.9; Deno 1.38; service workers server WinterJS; deprecation of ESLint formatting rules; Test2

Tuesday, November 7, 2023

Bun v1.0.9 bun.sh github.com/Jarred-Sumner github.com/Electroid github.com/colinhacks github.com/oven-sh “Bun is a fast, all-in-one toolkit for running, building, testing, and debugging JavaScript and

CodiumAI; Yarn 4.0; Node v21.1.0; test assertion styles; dependency divergence; performance-compare

Tuesday, October 31, 2023

CodiumAI | Generating meaningful tests for busy devs codium.ai Sponsor Redefining software development: Meet CodiumAI. Bypass the tedium of unit testing. Our VS Code & JetBrains extensions

You Might Also Like

🧑🏻‍💻 Generative AI is Supercharging Scams — It's Time to Bring Back the Beige PC

Saturday, May 11, 2024

Also: The Tech I Used to Run 100 Miles This Month, and More! How-To Geek Logo May 11, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your

Daily Coding Problem: Problem #1438 [Medium]

Saturday, May 11, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. You are given a histogram consisting of rectangles of different heights. These

Charted | How People Get Around in America, Europe, and Asia 🚶‍♂️

Saturday, May 11, 2024

Examining how people get around on a daily basis using cars, public transit, and walking or biking, and the regional differences in usage. View Online | Subscribe Presented by Voronoi: The App Where

⚙️ How AI is Revolutionizing Sales Coaching

Saturday, May 11, 2024

Selling with the help of AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Weekend Reading — Stack over you

Saturday, May 11, 2024

This week we remove gatekeepers from our CI, break a Guinness world record, redesign review ratings, understand the meaning behind “job requirements”, and level up. 😎 Labnotes (by Assaf Arkin) Weekend

Why Apple’s ‘Crush’ ad is so misguided

Saturday, May 11, 2024

Plus: How AI deepfakes took over the Met Gala View this email online in your browser By Cody Corrall Saturday, May 11, 2024 Image Credits: Apple Welcome to Week in Review: TechCrunch's newsletter

🐍 New Python tutorials on Real Python

Saturday, May 11, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python News: What's New From April 2024 In

CensysGPT: AI-Powered Threat Hunting Tool for Cybersecurity Pros

Saturday, May 11, 2024

THN Daily Updates Newsletter cover Enterprise Transformation to AI and the Metaverse ($59.99 Value) FREE for a Limited Time Strategies for the Technology Revolution Download Now Sponsored LATEST NEWS

📧 Building Resilient Cloud Applications With .NET

Saturday, May 11, 2024

​ Building Resilient Cloud Applications With .NET Read on: m​y website / Read time: 7 minutes BROUGHT TO YOU BY ​ Build API Applications Visually ​ Build API applications visually using Postman Flows.

The worst of the VC fund performance may be behind us

Friday, May 10, 2024

Plus: Zeekr's shares pop and Dell's data breach did include personal data View this email online in your browser By Christine Hall Friday, May 10, 2024 Good afternoon, and welcome to TechCrunch