Goose vs Rust: The Hidden Cost of Simplicity
Mohammad Ebrahimi
0:00 / 0:00
Goose vs Rust: The Hidden Cost of Simplicity
208 просмотров · 5 ч назад
Mohammad Ebrahimi
289 подписчиков
208 просмотров · 5 ч назад
Goose vs Rust: what do you give up for a simpler memory model? Explore data stacks, stable references, and the trade-offs behind Goose's alternative to Rust's borrowing rules.
A reference can remain valid while the enemy it points to changes. This visual explainer shows why memory safety and object identity are different questions.
We compare the Goose programming language by aardappel with Rust through growing arrays, recursive parsers, reusable object pools, compact storage, callbacks, and worker queues. Learn how Goose's inferred lifetimes shape program design, where generation checks can help, and how to evaluate both languages using realistic workloads.
CHAPTERS
00:00 Valid Memory, Wrong Enemy
00:24 Goose's Data Stacks and Lifetimes
00:58 Growing Arrays: Goose vs Rust
01:35 Recursion and Storage Rules
02:06 Slot Reuse and Object Identity
02:39 Compact Storage and Indexing
03:12 Closures and Compile-Time Functions
03:46 Worker Threads and Message Queues
04:28 Different Memory-Safety Contracts
05:03 Comparing a Real Component
05:41 Benchmarks and Performance Trade-Offs
06:18 Would You Choose Goose?
WATCH NEXT
Goose Explained:
• Goose Explained in 5 Minutes: Memory Safet...
Goose vs C++ — a closer look at the speed claims:
• Goose vs C++: Is the 3.5× Speed Claim Fair?
PRIMARY SOURCES
Goose project:
https://github.com/aardappel/goose
Goose language specification:
https://github.com/aardappel/goose/bl...
Goose tutorial:
https://github.com/aardappel/goose/bl...
Rust references and borrowing:
https://doc.rust-lang.org/book/ch04-0...
Rust vectors:
https://doc.rust-lang.org/book/ch08-0...
Which trade-off matters most to you: slot reuse, callbacks, or shared state? Tell me in the comments.
Subscribe to @m.ebrahimi12 for more visual programming explanations.
#Rust #Goose #Programming