#4096: New primops for indexing: index*OffAddrUsing# etc
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:  6.16.1      
   Component:  Compiler          |      Version:  6.12.2      
    Keywords:                    |   Difficulty:              
          Os:  Unknown/Multiple  |     Testcase:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by simonmar):

 Here's a thought.  One alternative you suggested was

 {{{
 use# :: o -> o' -> o'
 }}}

 which is problematic because the `o'` argument/result must have open kind,
 and you said the code generator doesn't seem to support this.  I don't
 know if this really is problematic or whether it just looks that way, but
 even if it is, we could specialise `use#` to each unboxed type:

 {{{
 useInt# :: o -> Int# -> Int#
 uneFloat# :: o -> Float# -> Float#
 ...
 }}}

 this seems slightly preferable to the `indexBlahOffAddrUsing#` family,
 because there are fewer new primops, they're more generic, and they're
 trivial to implement.  Can you see any problems with this?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4096#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to