elseweb Subscribe

Blog Featured 0 times

purplesyringa's blog

Visit purplesyringa.moe

Featured on Elseweb

0 lists
Not featured yet

Recent posts

From this blog
  1. Superoptimizing an FPU emulator

    A developer explores brute-forcing formulas to find an optimal, branch-free implementation for finding the lowest set bit of a float.

  2. Who is vfmaddrnd231pd??

    The vfmaddrnd231pd instruction, documented in Intel's SDM, appears to be an undocumented or removed FMA instruction with per-instruction rounding control.

  3. Vectorized CLZ and CTZ

    Vectorized CLZ and CTZ instructions are implemented using floating-point tricks for performance gains on modern CPUs.

  4. Write while learning

    Writing about the process of learning new technologies, including the questions faced and the steps taken to find answers, can help others bridge the gap between novice and expert understanding.

  5. The NX bit is not just about security

    Debugging a bare-metal hypervisor on ARM64 revealed a bug related to instruction cache coherence and potential out-of-spec hardware behavior.

  6. accept() and socket inheritance

    Windows' accept() API's socket inheritance behavior is undocumented and depends on the listener socket's original creation flags, not its current state.

  7. Race-free handle inheritance, maybe

    Rust's Windows subprocess handle inheritance faces race conditions, prompting exploration of alternative solutions like a temporary broker process or suspending and injecting handles.

  8. std::process::Command is a bad citizen on Windows

    Rust's std::process::Command on Windows uses an unsafe handle inheritance method that creates race conditions, unlike safer alternatives adopted by other languages.

  9. Impressions of Teal

    Teal, a statically-typed dialect of Lua, offers simple annotations but faces challenges with type soundness, unions, and pattern matching.

  10. log is non-monotonic in PHP and Lua

    PHP and Lua's log functions exhibit non-monotonic behavior due to special-casing specific bases, leading to unexpected results.

  11. Sorted rank coding

    Sorted Rank Coding (SRC) is an algorithm that replaces Move-to-Front (MTF) in BWT-based compressors, offering improved compression ratios by grouping ranks with the same context.

  12. Quadrupling code performance with a "useless" if

    A "useless" if statement with a volatile cast quadrupled code performance by tricking the CPU into predicting branch outcomes.

  13. Suffix BWT vs cyclic shift BWT, and fast computation

    The cyclic shift Burrows-Wheeler transform and suffix Burrows-Wheeler transform are explained, detailing their construction and inversion processes.

  14. Optimizing Lua string literals to save 400 bytes

    Optimizing Lua string literals for ComputerCraft code compression involves handling nuances of raw strings, including newline characters and delimiters.