バッファリング
「バッファリング」を扱った18問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Zig / READ · 2026-11-14 まだ送っていない分を書く std.Io.Writer, buffered, flush, バッファ付き出力, まだ書き出していないバイト, 引数の評価順, buffered writer, pending bytes
- Zig / WRITE · 2026-11-04 Writerへ16進で書く std.Io.Writer, インターフェース, 書式指定, 16進数, ゼロ埋め, Writer interface, hex dump, zero padding
- Zig / DEBUG · 2026-11-04 エラーで抜けると消える行 std.Io.Writer, flush, errdefer, tryで抜ける, バッファに残った出力, buffered output, early return, error path
- Zig / READ · 2026-11-02 最後のflushがない std.Io.Writer, バッファ付き出力, flush, 標準出力, buffered writer, flush the buffer
- Zig / DEBUG · 2026-11-02 Writerを値で取り出す std.Io.Writer, interface, @fieldParentPtr, 構造体のコピー, File.Writer, vtable, copying the interface
- Rust / WRITE · 2026-10-27 長さ付きの枠を1つ取り出す 長さ接頭辞, メッセージの区切り, 受信バッファ, length-prefixed framing, message framing, from_be_bytes
- Rust / READ · 2026-10-27 切れ目で割れた文字 メッセージの区切り, UTF-8の多バイト文字, from_utf8_lossy, 置換文字, message framing, replacement character
- Rust / DEBUG · 2026-10-27 最後の改行が消える行分け メッセージの区切り, 改行区切り, str::lines, str::split, 受信バッファ, message framing, newline delimited
- Haskell / WRITE · 2026-10-26 電源が落ちても残す保存 fsync, hFlush, 永続化, fileSynchronise, handleToFd, durability, page cache
- Haskell / READ · 2026-10-26 改行までは届かない 行バッファリング, hSetBuffering, LineBuffering, hClose, line buffering, getFileSize
- Haskell / DEBUG · 2026-10-26 監視から見えない心拍 ブロックバッファリング, hFlush, ファイルHandleの既定のバッファ, block buffering, log not visible, tail -f
- Haskell / READ · 2026-10-21 改行で区切るメッセージ メッセージの区切り, TCPのストリーム, 改行区切り, mapAccumL, break, message framing, newline delimited, stream reassembly
- Haskell / DEBUG · 2026-10-21 持ち越しとの連結順 メッセージの区切り, 長さプレフィックス, mapAccumL の引数の順, 受信バッファの持ち越し, length-prefixed framing, accumulator order, stream reassembly
- C++ / WRITE · 2026-10-17 coutと順番が揃う整形出力 sync_with_stdio, std::print, std::format, stdoutとstd::cout, 出力の順番, 書式指定, output ordering, mixing C and C++ I/O
- C++ / READ · 2026-10-17 同期を切る関数の戻り値 sync_with_stdio, 戻り値は以前の状態, 関数内static変数, 一度だけの初期化, CとC++の入出力の混在, previous synchronization state, function-local static
- C++ / DEBUG · 2026-10-17 ファイルにすると崩れる表 sync_with_stdio, std::endl, printfとstd::coutの混在, 全バッファリング, 行バッファリング, fully buffered, line buffered, output ordering
- Rust / DEBUG · 2026-10-16 前回の読み込みの残り Read::read, 読めたバイト数, 古いバイトの混入, スライス, partial read, stale buffer, read return value
- C / WRITE · 2026-09-30 後始末を飛ばして終わる _Exit, fflush, 出力バッファ, 後始末を呼ばない終了, exit without atexit handlers, flush before _Exit