Listen "e005: Allocate it where?"
Episode Synopsis
Allocate it where?
Subject: Returning functions from other functions, and thinking about the stack, the heap, and reference types.
MP3
Notes
This episode, we look at returning functions from other functions, and as part of that discuss some basics about the stack and the heap—and why we need to care about them for returning functions.
The functions themselves are not especially interesting; they just show you the basic form you use to return functions from other functions, and how to then use them in another function. You’ll want to take a detailed look instead at the documentation for each (or just read the source!), because that’s where the meat of the discussion in this week’s code is.
Links
Rust 1.4 release announcement
“Clarify (and improve) rules for projections and well-formedness”
MSVC support tracking issue
Rust 1.4 full release notes
“What and where are the stack and the heap?”
Sponsors
reddraggone9
Chris Patti
Become a sponsor
Patreon
Venmo
Dwolla
Cash.me
Follow
New Rustacean:
Twitter: @newrustacean
App.net: @newrustacean
Email: [email protected]
Chris Krycho
Twitter: @chriskrycho
App.net: @chriskrycho
Subject: Returning functions from other functions, and thinking about the stack, the heap, and reference types.
MP3
Notes
This episode, we look at returning functions from other functions, and as part of that discuss some basics about the stack and the heap—and why we need to care about them for returning functions.
The functions themselves are not especially interesting; they just show you the basic form you use to return functions from other functions, and how to then use them in another function. You’ll want to take a detailed look instead at the documentation for each (or just read the source!), because that’s where the meat of the discussion in this week’s code is.
Links
Rust 1.4 release announcement
“Clarify (and improve) rules for projections and well-formedness”
MSVC support tracking issue
Rust 1.4 full release notes
“What and where are the stack and the heap?”
Sponsors
reddraggone9
Chris Patti
Become a sponsor
Patreon
Venmo
Dwolla
Cash.me
Follow
New Rustacean:
Twitter: @newrustacean
App.net: @newrustacean
Email: [email protected]
Chris Krycho
Twitter: @chriskrycho
App.net: @chriskrycho
More episodes of the podcast New Rustacean
Meta 3: Happy Coding
27/05/2019
News: Rust 1.35
23/05/2019
CYSK: bindgen and cbindgen
17/05/2019
e031: FFI Deep Dive
13/05/2019
e030: Can You See Me Now?
26/04/2019
News: Rust 1.33 and 1.34
20/04/2019
e029: I’m Out to C
03/04/2019
Bonus 14: How the Sausage Gets Made
23/03/2019
Bonus 13: I Still Make Silly Mistakes
28/02/2019
e028: Meet My Associates
21/02/2019
ZARZA We are Zarza, the prestigious firm behind major projects in information technology.