AI summary by TwinMind
JavaScript runs on literally everything now
Theo - t3․gg
12m 16s
JavaScript in Desktop Environments
- GNOME desktop environment (Ubuntu default) uses JavaScript extensively
- GNOME Shell is 46.5% JavaScript
- All GNOME extensions written in JavaScript
- Chosen for accessibility to contributors vs compiled languages
Windows 11 React Native Integration
- Windows 11 start menu uses React Native
- Recommended section specifically built with React Native
- Microsoft committed to React Native for desktop apps
- Microsoft applications moving to React Native
- Office applications increasingly using React Native
- Calculator app is fully React Native
- React Native for Windows and Mac development active
- Microsoft dogfooding React Native due to poor native desktop development experience
Gaming Consoles Running JavaScript
- Xbox uses React Native (expected due to Windows connection)
- PlayStation 5 extensively uses React Native
- Most of PS5 operating system and shell written in React Native
- Reverse engineering efforts finding JavaScript bundles throughout system
- Nintendo Switch uses HTML for OS parts
- Wii settings menu was HTML page (preserved and accessible on any computer)
Game Development with JavaScript
- Battlefield 1 UI entirely built in TypeScript/React
- 1,000 React components
- 644 observables, 621 actions, 598 computed values, 729 observers
- Custom React renderer for game integration
- Built due to Frostbite engine limitations (no built-in menu/asset loading system)
- Electronic Arts uses JavaScript/HTML for multiple games
- SimCity and expansions use JavaScript/HTML for UI
- Dedicated presentation on building AAA game UI with HTML/JS
Vampire Survivors Case Study
- Popular indie game built with Phaser.js (JavaScript game framework)
- Handles complex performance scenarios with thousands of on-screen elements
- Console porting strategy:
- Lead developer builds in JavaScript/browser
- C++ team ports feature-for-feature to consoles
- C++ team replicates JavaScript floating-point behaviors for consistency
- NoClip documentary covers development history
React Lua (Honorable Mention)
- Roblox originally created "Roact" (poor React port to Lua)
- React Lua: complete line-by-line rewrite of React codebase
- Changed zero-indexes to ones for Lua compatibility
- Full React paradigms ported to Lua
- Tools created to auto-port JavaScript code to Lua
Sponsor: Kala
- Deployment platform by Kinsta (WordPress hosting company)
- Features preview deployments, pipeline management
- One-click production promotion
- GitHub integration with automatic PR builds
- $50 free credit available
