Compiler Hacking: Creating Our Own Smart Pointer
Tim Morgan
Let's build a Smart Pointer! Our value type is always heap allocated, but if we had a Smart Pointer instead of a raw pointer, we could do some nifty magic and sometimes avoid a heap allocation, like in the case of integers.
About the Project: Natalie is a very early-stage work-in-progress Ruby implementation that compiles Ruby to an executable. It does so by transpiling Ruby to C++ and feeding it to gcc or clang to produce a binary.
GitHub: https://github.com/seven1m/natalie Twitter: https://twitter.com/timmrgn
#programming #compiler #smartpointer #pointer #heap ... https://www.youtube.com/watch?v=JRNe1Ral8E4
2021-02-05
0.0 LBC
Copyrighted (contact publisher)
292114901 Bytes