Mojo🔥: a deep dive on ownership with Chris Lattner
Modular
View ChannelAbout
Modular: Accelerating the Pace of AI
Latest Posts
Video Description
Learn everything you need to know about ownership in Mojo, a deep dive with Modular CEO Chris Lattner If you have any questions make sure to join our friendly Discord community: https://modul.ar/discord If you're ready to get started with Mojo, check out the programming manual and installation guide: https://modul.ar/mojo-get-started 0:00 Mojo🔥: a deep dive on ownership with Chris Lattner 00:00 Introduction 00:55 Define Terms 01:11 Garbage Collectors 01:23 Copies 01:39 Goal of ownership model 02:15 Learning from Rust 03:26 How the compiler works 04:18 Type Checker 06:13 Context Insensitive Type Checker 07:20 No traditional AST 08:07 Ownership 08:20 RValue: an owned value 10:35 LValues: assignable and mutable 14:04 BValues: Borrowed Values 16:10 Ownership conversions 16:38 BValue Conversions 17:25 RValue Conversions 18:58 LValue Conversions 20:42 Examples of RValues 21:10 Memory and SSA Types 21:59 Ownership Transfer with ^ 22:56 std::move from C++ 24:39 Marking variables as uninitialized after transfer with ^ 27:51 Data flow checker with argument conventions 31:49 Destructor Insertion 34:40 ASAP Destruction 37:19 Avoiding allocations optimization 38:00 Copy to move optimizations 40:13 @value decorator 41:00 Where does destructor run on borrowed argument 41:46 Copy to move optimization clarification #programminglanguages #programming #python #ml 42:12 Is liveness representable in debug info? 42:27 How ASAP destruction works with loops 42:48 Being simple and optimal 44:14 Allowing more advanced use cases and reducing copies 45:04 Field sensitive and composes with member variables 46:27 Dangling pointers 47:51 What safe references will fix
Unleash Your Mojo: Essential Gear
AI-recommended products based on this video

Apple iPad Mini (A17 Pro): Apple Intelligence, 8.3-inch Liquid Retina Display, 128GB, Wi-Fi 6E, 12MP Front/12MP Back Camera, Touch ID, All-Day Battery Life — Purple

Teeran Wired Apple CarPlay to Wireless Adapter, 2025 Upgrade, Mini USB Design for Cars, Seamless Use Fast Stable Connection Built-in Car Play Dongle for iPhone Global Recycled Standard

Metapen Air 8 Apple Pencil for iPad 2018-2025, 20H Battry Life, 2Min Fast Charging, Palm Rejection, Stylus Pen for iPad 11/10/9/8/7/6th, iPad Pro 12.9/11/13“M4, iPad Air 3/4/5/6/M2/M3, iPad mini 5/6

iPhone Charger Cord Lightning Cable (Apple MFi Certified) 6/6/10ft 3 Pack iPhone Cable Fast Charging Long Apple Charger Cable for iPhone 13 13 Pro 12 Pro 11 SE Max XS XR X, iPad Mini Air, iPod, AirPod

Magnetic Car Mount Air Vent Cell Phone Holder, Universal Vehicle Dash Dashboard Ac Airvent Cellphone Magic Stand with Clip Hook, for iPhone 16 15 Samsung Lenovo Google etc

CUTE STONE Little Girls Play Purse, Toddler Purse with Handbag, Heels, Pretend Makeup Kit, Toy Phone, Light-Up Magic Wand, My First Purse Set with Princess Jewelry, Pretend Play Gift Toys for Kids

Magic Metaball Bouncing Ball, Children's Bouncing Ball, Magic Flying Saucer, Parent-Child Interaction, Transformation Flying Toy with 6 Light

Magic Metaball Bouncing Ball, Children's Bouncing Ball, Magic Flying Saucer, Parent-Child Interaction, Transformation Flying Toy with 6 Light

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

Logitech G305 LIGHTSPEED Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Lenovo USA ThinkPad Thunderbolt 3 Dock Gen 2 135W (40AN0135US) Dual UHD 4K Display Capability, 2 HDMI, 2 DP, USB-C, USB 3.1, Black

135W Power Adapter Cord for Lenovo ThinkPad Universal Thunderbolt 4 3 Dock/USB C Smart Dock/Thunderbolt 3 Essential Gen 1 2/ThinkPad Hybrid USB-C with USB-A/Ultra/Pro/Gen 2
![[Apple MFi Certified] Lightning to HDMI Adapter for iPhone, 1080P Digital AV Adapter iPhone HDMI Adapter Video HDMI Sync Screen Connector Compatible with iPhone 14/13/12/X/8 NO Need Power Supply](https://m.media-amazon.com/images/I/41FjGWUIKnL._AC_UL960_FMwebp_QL65_.jpg)
[Apple MFi Certified] Lightning to HDMI Adapter for iPhone, 1080P Digital AV Adapter iPhone HDMI Adapter Video HDMI Sync Screen Connector Compatible with iPhone 14/13/12/X/8 NO Need Power Supply

Mcbazel Wii to HDMI Converter Output Video Audio Adapter for Wii (NTSC 480I, 480P, PAL 576I) -Support All Display Modes

ABLEWE RCA to HDMI,AV to HDMI Converter, 1080P Mini RCA Composite CVBS Video Audio Converter Adapter Supporting PAL/NTSC for TV/PC/ PS3/ STB/Xbox VHS/VCR/Blue-Ray DVD Players

Bose QuietComfort Wireless Noise Cancelling Headphones, Bluetooth Over Ear Headphones with Up to 24 Hours of Battery Life, Moonlight Grey - Limited Edition

Anker USB C Charger Cable (6ft 100W, 2Pack), USB 2.0 Type C Fast Charging Cable for iPhone 15 / 15Pro / 15Plus / 15ProMax MacBook Pro 2020, iPad Pro 2020, iPad Air 4, Samsung Galaxy S23+/S23 Ultra ClimatePartner certified

soundcore P31i by Anker, Real-Time Adaptive Noise Cancelling, Hi-Res Sound, Translation Earbuds, 50H Playtime, Wireless Earbuds, Bluetooth Earphones, Spatial Audio, Fast Charging, IP55 ClimatePartner certified
![Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)](https://m.media-amazon.com/images/I/71N7xhCJnoL._AC_UL960_FMwebp_QL65_.jpg)
Anker USB C Cable, [2-Pack, 6 ft] Type C Charger Premium Nylon USB Cable, USB A to Type C Charging Cable Fast Charge for Samsung Galaxy S10 S10+ / Note 8, LG V20 and Other USB C Charger (Black)

soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App

SanDisk 4TB Extreme Portable SSD - Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware - External Solid State Drive - SDSSDE61-4T00-G25

Dell 27 Plus 4K Monitor - S2725QS - 27-inch 4K (3840 x 2160) 120Hz 16:9 Display, IPS Panel, AMD FreeSync Premium, sRGB 99%, Integrated Speakers, 1500:1 Contrast Ratio, Comfortview Plus - Ash White




