\7種類のアイスからランダムで無料券がもらえるチャンス♪/
【応募方法】
① @akiko_lawson をフォロー
② この投稿をリポスト
③ ↓の画像をクリック。キャンペーンサイトの抽選に参加でローソンで使える無料券が当たる(^^)
※あたり無料券はサイトで確認
※リポストだけでは参加となりません
Build Your Own Database From Scratch in C
it walks you through building SQLite from scratch. starts with a REPL, then adds a B-tree, then paging, then persistence to disk
by the end you understand why databases are structured the way they are. not just how to use them
C has a syntax to pass a struct directly into a function without creating a temp variable first.
most legacy c codebases still do 4-6 lines of boilerplate just to call one function once.
gcc lets you run code before main() even starts
__attribute__((constructor)) marks a function to execute at load time
__attribute__((destructor)) runs after main() returns
this is how shared libraries initialize themselves when you dlopen() them
in 1983 a Lucasfilm engineer discovered you can legally interleave a switch and a do-while in C
it's called Duff's Device. it still compiles and technically valid C
Tom Duff's own words: "it amazes me that after 10 years of writing C there are still corners I haven't fully explored."