#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::Crafting Interpreters::Ch 28 Methods and Initializers
#columns:Front	Back	Tags
Crafting Interpreters ch 28, Methods and Initializers: what does it cover?	Methods, bound methods, this, initializers, and the OP_INVOKE optimization that combines property lookup and call.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::28 cracked.guide::kind::about
Crafting Interpreters ch 28, Methods and Initializers: why does it matter?	The invoke optimization is a real technique that production VMs use, and you get to measure its effect.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::28 cracked.guide::kind::why
Crafting Interpreters ch 28, Methods and Initializers: which part of the book is it in?	clox (bytecode VM, C)	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::28 cracked.guide::kind::part
Crafting Interpreters ch 28: what traps should you watch for?	<ul><li>Not handling the case where a field shadows a method in OP_INVOKE.</li><li>Leaking bound method objects or forgetting to mark them.</li></ul>	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::28 cracked.guide::kind::traps
Crafting Interpreters ch 28: which end-of-chapter challenges are worth your time?	Challenge 1 (faster init lookup) is quick. Challenge 2 is about inline caching, which is how fast JS engines work; reading about it is worthwhile even if you do not implement it.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::28 cracked.guide::kind::challenges
Crafting Interpreters ch 28, Methods and Initializers: how should you work through it?	Benchmark method calls before and after OP_INVOKE.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::28 cracked.guide::kind::approach
