Hi everyone!
This week, the runtimes are in the spotlight. Of course, we'll be talking about Bun and Static Hermes.
I'll spare you the heated debates on Twitter this week ๐ let's stick to positive vibes.
For React experts, check out the React Advanced conf in London from 20 to 23 October (-10% - code "REACT10").
๐ก Subscribe to the official newsletter to receive an email every week!
๐ธ Sponsor
Enterprise Grade APIs for Feeds, Chat, & Video!
Stream is the maker of enterprise-gradeย APIsย andย SDKsย that help product and engineering teams solve two common problems at scale: in-app chat and social activity feeds.
With Stream, developers can integrate any type of messaging or feed experience into their app in a fraction of the time it would take to build these features from scratch. Stream Chat makes it easy for developers to integrate rich, real-time messaging into their applications.
Stream provides robust client-side SDKs for popular frameworks such asย React,ย React-Native, Expo, Flutter, Android, Angular, Compose, Unreal, and iOS.
Unlock enterprise-grade features, functions, and UI components completely free for your startup or side project with the Maker Account.
Try the new React Video tutorial!
โ๏ธ React
It's impossible to miss it this week: Bun has just been released as stable v1.0. This news isn't directly related to React, but it will undoubtedly affect all React developers out there at some point.
Bun is a complete toolchain for JavaScript and TypeScript based on Webkit and written in Zig. It is a new ultra-fast alternative to a whole host of front-end tools we use today: Node.js, npx, Babel, esbuild, swc, webpack, Jest, Vitest, npm, Yarn, pnpm... The benchmarks are super impressive and definitively real.
Its compatibility with the existing tools and its mixed ESM/CJS support make it quite easy to adopt as a drop-in replacement. Bun is generally able to run your code as is, without any changes (otherwise it's ๐ฆ considered a bug). React frameworks like Next.js, Remix and Astro are already supported. Using it as a replacement for npm/Yarn/pnpm or Jest/Vitest is probably a good entry point and not too risky.
Other useful links:
- ๐ฃ Vercel - Bun install is now supported with zero configuration
- ๐ React-Native CLI PR - support Bun in init command
- ๐ฆ Bun console supports JSX
- ๐ฆ Bun + create-expo-app = 12x faster init
- ๐ Matteo Collina - My thoughts on Bun and other Adventures
- ๐ฆ Marz - A Fast and Lightweight React Server Components Framework for Bun
- ๐ฅ Official launch video - Bun 1.0 is here
- ๐ฅ Fireship - Bun is disrupting JavaScript land
- ๐ฅ Lee Robinson - My thoughts on Bun
- ๐ธ Zero To Shipped - Master Fast-Paced Fullstack Development and Finally ship that product
- ๐ฆ Next.js - Redesigned console output
- ๐ RedwoodJS - Support for React Server Actions: limited support for now, server actions need to be put in a separate file.
- ๐ React.gg and The Joy of React: the 2 most eagerly awaited React courses have just been released!
- ๐ Next.js, just why?
- ๐ Scaling frontend app teams using Relay
- ๐ A Wide View of Automated Testing in React Apps
- ๐ Styling React Select with Tailwind
- ๐ Overcoming application complexity with customized Flows
- ๐ Automatic visual tests in Storybook, plus 2.2x faster build times for React+TS
- ๐ Painting with Math: A Gentle Study of Raymarching
- ๐ฆ React Aria Components - Now in beta
- ๐ฆ Ariakit React 0.3
- ๐ฆ Next Admin - Full-featured admin for Next.js and Prisma
- ๐ฆ Next Nav - VSCode extension to navigate and create Next.js routes
- ๐ฅ reactjsday (Verona ๐ฎ๐น, Octobre 27) is offering us -10% - code "media_TWIR"
- ๐ฅ React Advanced (London ๐ฌ๐ง, Octobre 20-23) is offering us -10% - code "REACT10"
๐ธ Sponsor
highlight.io - The open-source, full-stack Monitoring Platform
highlight.ioย is a truly open-source Session Replay, Error Monitoring, and Logging platform for your next project.
Don't waste time trying to guess why a bug occurs. Instead, use highlight and get a clear picture of whatever happens in the browser and on your server-side application.
It is super easy to install in your favorite framework:ย React.js,ย Next.js,ย Remix, or anything else!
๐ฑ React-Native
Static Hermes was announced at React-Native EU last week. I wasn't there, so I'm trying to explain what I understood by reading the slides, as the video isn't on YouTube yet.
Static Hermes is an experimental project that allows you to optionally compile some of your TypeScript (or Flow) code into native code. This offers significant performance gains (x10-20) compared to Hermes usual mode based in bytecode interpretation. It also enables easy integration with native APIs directly from your TypeScript code (zero-cost FFI, x15-80 faster than a JSI wrapper).
To enable this, TypeScript must first become a "sound" language. Static Hermes will modify the semantics of JavaScript to ensure that the declared types matches the runtime types. This slide explains the concept well:
A very interesting idea that could maybe one day have an impact outside the React-Native ecosystem?
Other useful links:
- ๐ How to speed up a micro-benchmark by 300x without cheating
- ๐ฆ Plan to support Over-The-Air updates
- ๐ธ Blitz - Build React Native Apps Faster for iOS, Android, and Web!
- ๐ฆ There's more than 1000 devs using React Native at Microsoft
- ๐ฆ React-Native running natively on Apple Vision Pro simulator demo
- ๐งต React-Native EU Sketches
- ๐ Introducing E2E tests to React Native Core
- ๐ Expo Launch Party Recap
- ๐ฆ React-Native macOS 0.72
- ๐ฆ Reanimated 3.5.0 - Windows/macOS support, createWorkletRuntime, reduceMotion...
- ๐ฆ Stagger - Cross-platform Reanimated stagger component
- ๐ฆ Flame AI - CLI for Interactive AI-Powered React Native Upgrades
- ๐ฆ React-Native-Skia - Font Manager, support for system and custom fonts
- ๐ฆ react-native-secure-window - Hide react native views when capturing screen
- ๐ฆ Tamagui 1.62 - Zero config support
- ๐๏ธ React Native Radio 274 - React Native CI & Automated Deployments
๐ Other
- ๐ Node.js 16 End-of-Life
- ๐ Roadmap to Tauri 2.0 - The Mobile Update
- ๐ Typescript Prevents Bad Things... and Good Things
- ๐ Announcing native npm support on Deno Deploy
- ๐ Your Cache Headers Could Probably be More Aggressive
- ๐ Are Big Projects Ditching TypeScript?
- ๐ An Overview of 25+ UI Component Libraries in 2023
- ๐ Node.js vs. Deno vs. Bun: JavaScript runtime comparison
- ๐ Vercel - Using Zig in our incremental Turborepo migration from Go to Rust
- ๐ฆ Chrome 117 - Array grouping, CSS subgrid, transition-behavior...
- ๐ฆ Skott - Devtool to analyze, search and visualize dependency graphs from JS, TS and Node.js
- ๐ฆ Vest 5.0 - Declarative validations framework
๐คญ Fun
See ya! ๐