Elektrine lite

← Feed

@bal4e@tech.lgbt

2026-04-16 16:14 UTC

@folkertdev I'd love to discuss this at RustWeek! I'll dump my ideas in a thread here (mostly for my own reference in the future).

Replies (1)

  • @bal4e@tech.lgbt 2026-04-16 16:14

    In a perfect world, we could write utility functions (and types, e.g. LookaheadBuffer or Base32Block) once across a set of SIMD feature sets, write a high-level function that ties them all together, and make copies of that function instantiated for different SIMD feature sets. Everything can be inlined into those copies of the top-level function, but not into their callers. And at any level, you can examine the current SIMD feature set and change the implementation in non-trivial ways (e.g. to use PSHUFB!).

    Open ##1411452