副作用
「副作用」を扱った15問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- C / READ · 2026-11-14 _Genericが見る型 _Generic, 型による分岐, 左辺値変換, 配列からポインタへの変換, 評価されないオペランド, generic selection, lvalue conversion, unevaluated operand
- Zig / READ · 2026-11-13 @TypeOfの中の呼び出し @TypeOf, 副作用, 評価されない式, @typeName, 型の調査, no runtime side effects, unevaluated operand
- C / DEBUG · 2026-10-31 測る処理が消えた ベンチマーク, 最適化による削除, デッドコード除去, as-ifルール, 観測できる動作, dead code elimination, as-if rule, microbenchmark
- Zig / DEBUG · 2026-10-25 一度しか数えないID comptime var, 連番のID, 一度だけの評価, コンテナレベルの var, comptime evaluation, global counter, unique id
- C / READ · 2026-10-25 取ったまま返さない鍵 キャッシュの一斉失効, 再計算を1つに絞る, atomic_flag_test_and_set, 短絡評価, cache stampede, single flight, lock leak
- Zig / READ · 2026-10-23 型を調べた呼び出しの回数 @TypeOf, @typeInfo, ピア型解決, 評価されない式, peer type resolution, no runtime side effects, type reflection
- C / WRITE · 2026-10-20 一度だけ評価するSWAP SWAPマクロ, C23 auto, 引数の多重評価, do while 0, swap macro, macro side effects, type inference
- C / READ · 2026-10-14 sizeofの中のn++ 可変長配列, VLA, sizeof の評価, 被演算子の評価, variable length array, unevaluated operand
- C / READ · 2026-10-01 失敗しても残る書き込み 出力引数, 途中までの書き込み, 失敗時の出力引数, out parameter, partial write on failure
- Haskell / READ · 2026-09-29 確認と実行の間 TOCTOU, 確認と使用の間の競合, IOアクションは値, IORef, when, check then act, time of check to time of use
- C / WRITE · 2026-09-06 assertの外で読む assert の中の副作用, NDEBUG, リリースビルド, sscanf の戻り値, assert with side effects, release build, NDEBUG
- C / READ · 2026-09-06 後から定義したNDEBUG assert, NDEBUG, 副作用のある assert, assert.h の取り込み位置, 短絡評価, assert with side effects, NDEBUG after include, short-circuit evaluation
- C / DEBUG · 2026-09-06 assertで消えた--n assert の中の副作用, NDEBUG, リリースビルドだけのバグ, 改行の除去, assert with side effects, release build only bug, trim newline
- C / READ · 2026-09-05 失敗した単一化の後始末 単一化, 型推論, 型変数の束縛, 失敗時の巻き戻し, Hindley-Milner, unification, type variable binding, backtracking
- C / READ · 2026-08-28 MAXマクロとi++ 関数形式マクロ, マクロ引数の多重評価, 後置インクリメント, 条件演算子, function-like macro, macro side effect, postfix increment