HAMY LABS POD

The Problem with Clones in Rust - Why Functional Rust is Slower Than You Think (And How to Fix It)


Listen Later

In this video we explore the problems with clones in rust, why it makes functional Rust code slower than mainstream GC languages, and ways to fix it.

Original blog post with all diagrams and links: https://hamy.xyz/blog/2026-02_the-problem-with-clones-in-rust

CTA: LightClone is a Rust crate that allows the type system to enforce cheap clones - https://github.com/SIRHAMY/light-clone

Chapters

00:00 - Intro
00:55 - Why Rust Clones are Different
03:20 - How much slower?
05:20 - Why GC Languages "Win" at Cloning
06:30 - How to Fix Slow Clones
09:00 - Helpful Crates
09:40 - Cheap and Expensive Cones Look the Same
11:35 - Does this actually matter for Web APIs?

Links:

- High-Level Rust: Getting 80% of the Benefits with 20% of the Pain - https://www.youtube.com/watch?v=ncHPgvhnm7k
- The Missing Programming Language - Why There's No S-Tier Language (Yet) - https://www.youtube.com/watch?v=gJXv0BjFFCc
- Why I'm Moving my Blog from F# to C# - https://www.youtube.com/watch?v=08EkZvkqSvU

About me: I'm Hamilton - a Technomancer building Simple Scalable Systems.

Connect with me:

- Website: https://hamy.xyz
- Email List: https://hamniverse.substack.com/
- Twitter: @SIRHAMY - https://twitter.com/SIRHAMY
- BlueSky: https://bsky.app/profile/sirhamy.bsky.social
- Pod Cast: HAMY LABS POD - https://hamylabspod.buzzsprout.com/

# Support the Channel

If you liked this and would like to see more, consider becoming a HAMINIONs supporter: https://hamy.xyz/labs/haminions

Supporters get:
* Full source code access from courses / tutorials
* Exclusive discounts on products / courses

Plus you help me to keep experimenting / sharing!

Additional ways to support: 
* YouTube channel members get early access to videos (sometimes weeks before they go public!)
* Sponsor posts on the blog / channel: https://hamy.xyz/labs/sponsors
* Buy merch from my shop - https://shop.hamy.xyz/

...more
View all episodesView all episodes
Download on the App Store

HAMY LABS PODBy Hamilton Greene