Skip to content
Snippets Groups Projects
  1. Mar 14, 2024
    • Ben Orchard's avatar
      Note mutability of array and address access primops · 77171cd1
      Ben Orchard authored and Marge Bot's avatar Marge Bot committed
      Without an understanding of immutable vs. mutable memory, the index
      primop family have a potentially non-intuitive type signature:
      
          indexOffAddr :: Addr# -> Int# -> a
          readOffAddr  :: Addr# -> Int# -> State# d -> (# State# d, a #)
      
      indexOffAddr# might seem like a free generality improvement, which it
      certainly is not!
      
      This change adds a brief note on mutability expectations for most
      index/read/write access primops.
      77171cd1
  2. Mar 12, 2024
  3. Mar 11, 2024
  4. Mar 10, 2024
  5. Mar 09, 2024
Loading