円環の理(garbage collection)
TRANSCRIPT
![Page 1: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/1.jpg)
円環の理 - Garbage Collection Powered by Rabbit 0.9.3
円環の理Garbage Collection
匿名希望
![Page 2: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/2.jpg)
円環の理 = GC
![Page 3: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/3.jpg)
![Page 4: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/4.jpg)
ある人が言った
![Page 5: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/5.jpg)
「GCなんて使ってると後片付けできないプログラマになる」
![Page 6: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/6.jpg)
おっと…。
![Page 7: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/7.jpg)
穏やかじゃないですね…。
![Page 8: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/8.jpg)
別の人が言った
![Page 9: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/9.jpg)
「GCは信用できない。俺は自分でメモリを片付け
る。」
![Page 10: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/10.jpg)
てめえらのソウルジェムは何色だぁぁ!?
![Page 11: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/11.jpg)
...
![Page 12: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/12.jpg)
それが君の願いかい?
![Page 13: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/13.jpg)
わかった、君の願いを叶えよう
![Page 14: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/14.jpg)
ってことで、leaky作ったよ
![Page 15: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/15.jpg)
円環の理 - Garbage Collection Powered by Rabbit 0.9.3
leaky
契約によりrubyから円環の理(GC)が消えた版
✓
Object#new = malloc()✓
Object#freeあり✓
14/20
![Page 16: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/16.jpg)
円環の理 - Garbage Collection Powered by Rabbit 0.9.3
言語の特徴
自分で後片付け✓
が、まずruby本体がメモリリークC拡張を書いてメモリリークを避けるテクニックがある
✓
✓
rubyレベルでカジュアルにSEGV✓
15/20
![Page 17: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/17.jpg)
デモ
![Page 18: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/18.jpg)
Hell world
![Page 19: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/19.jpg)
finalize
![Page 20: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/20.jpg)
Casual SEGV
![Page 21: 円環の理(Garbage Collection)](https://reader033.vdocuments.site/reader033/viewer/2022052901/55661068d8b42a7d608b4648/html5/thumbnails/21.jpg)
君もleakyを使おう!!<URL:https://github.com/
authorNari/ruby/tree/leaky>