Login
You're viewing the code4lib.social public feed.

Replies

  • Dec 1, 2026, 5:00 PM

    @rygorous Yep, my current fastest non-SIMD lexer approach is already multipass in two passes, the first pass uses a state machine to divide the stream into tokens of known types (1 mispredict at end of each token), and the second pass isn't actually a continuous pass, it iterates over each type of token (or really, each state machine final state) and does type-specific processing in a series of tight loops per type (avoids branch mispredict switching on token type). Def inspired by Oodle SIMD.

    💬 0🔄 0⭐ 0