JavaScript is Faster than Rust? - Chris Heathwood
ACCU Conference
0:00 / 0:00
JavaScript is Faster than Rust? - Chris Heathwood
1 015 просмотров · 1 г. назад
ACCU Conference
20,9 тыс. подписчиков
1 015 просмотров · 1 г. назад
ACCU Membership: https://tinyurl.com/ydnfkcyn
---
JavaScript is Faster than Rust? - Chris Heathwood - ACCU York
---
In this talk, we explore how JavaScript can outperform Rust in specific coding challenges and optimization scenarios. Starting with a brief history of Chris's programming journey, including Node.js, D3.js, and HTML5 video projects, we dive deep into an Advent of Code problem to demonstrate practical JavaScript performance tricks.
Learn how to optimize algorithms in JavaScript using techniques like bit manipulation, tail-first and head-first algorithms, and efficient use of sets and loops. We'll explore V8 engine optimizations, TurboFan, and Maglev to understand why JavaScript can be surprisingly fast, even compared to precompiled languages like Rust.
This talk covers:
Writing faster JavaScript code for real-world applications
Comparing JavaScript performance with Rust, and Zig
Optimizing loops, iterations, and state management
Advent of Code challenges and efficient solutions
Bitwise operations and binary state storage for speed
Understanding V8 performance, TurboFan, and Maglev
Tail-first vs head-first algorithms in JavaScript
Whether you're a JavaScript developer looking to write high-performance code, a Rust or Zig programmer curious about JS speed, or a coding challenge enthusiast, this video gives actionable insights into writing efficient JavaScript while maintaining readability.
Check out the supporting blog and code examples at https://posidevely.com/blog/2025/08/0... for a deep dive into these techniques and more.
Keywords: JavaScript performance, JavaScript optimization, Advent of Code, JavaScript vs Rust, Bit manipulation JavaScript, JavaScript Algorithms, Fast JavaScript code, Tail-first algorithm, Head-first algorithm, V8 engine performance, TurboFan, Maglev, Rust programming, Zig programming language, JavaScript set optimization, JavaScript loops optimization, Coding challenges
0:05 - Introduction and talk overview
0:19 - My history with JavaScript
1:34 - Early JavaScript and Cordova apps
2:15 - Node.js and working at Pixel
3:00 - D3.js visualizations and University of York projects
3:50 - Importance of fast JavaScript in production
4:02 - JS Faster than Rust article overview
4:41 - Advent of Code problem explanation
5:25 - Initial algorithm approaches
6:02 - Iterations and code simplification
6:26 - Head-first vs tail-first algorithm
7:48 - Computation optimizations
8:07 - Bit manipulation and state storage
10:29 - Binary representation for efficiency
11:14 - Using 32-bit integers for state
11:35 - Simplifying loops and algorithms
12:01 - Solutions overview: Benny, David
12:46 - Comparing JS, Rust, and Zig solutions
14:05 - Blog, repo, and further reading
14:21 - Essential JavaScript performance videos
15:03 - Zig programming and Tiger Beetle
15:24 - Audience questions and discussion
18:11 - Readable vs optimized JavaScript in practice
19:05 - Performance testing tips
---
Chris Heathwood
Software developer with over 25 years of experience with web tech.
---
ACCU
The tagline for the ACCU is 'Professionalism in Programming', which captures the whole spectrum of programming languages, tools, techniques and processes involved in advancing our craft. While there remains a core of C and C++ - with many members participating in respective ISO standards bodies - the conference, like the organisation, embraces other language ecosystems and you should expect to see sessions on C#, D, F#, Go, Javascript, Haskell, Java, Kotlin, Lisp, Python, Ruby, Rust, Swift and more.The ACCU Conference is a conference by programmers for programmers about programming.
Discounted rates for members.
ACCU Membership: https://tinyurl.com/ydnfkcyn
2025 Program: https://accu.org/conf-previous/accu2025/
https://accu.org
https://www.accuconference.org/
https://mastodon.social/@ACCUConf
/ accu-conference
https://bsky.app/profile/accuconf.bsk...
/ accuorg
/ accuconf
---
YouTube Videos Filmed, Edited & Optimised by Digital Medium: https://events.digital-medium.co.uk
---
#accuconf #programming #javascript #js #rustprogramming #coding #softwareengineering #programminglanguages #computerlanguages #code #coder #talk #softwaredevelopment #softwaredeveloper