[GHC] #11526: unsafeLookupStaticPtr should not live in IO
GHC
ghc-devs at haskell.org
Wed Feb 10 18:43:28 UTC 2016
#11526: unsafeLookupStaticPtr should not live in IO
-------------------------------------+-------------------------------------
Reporter: edsko | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Core Libraries | Version: 8.0.1-rc1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mboes):
Replying to [comment:5 simonpj]:
> Hmm. I'm deeply suspicious of `StaticKey`. It plays no role in our
plan of record [wiki:StaticPointers].
FTR the reason we have StaticKey (i.e. just Fingerprint, nothing new) is
to avoid hardcoding encoding/decoding of static pointers in the compiler.
Encoding/decoding is `binary`'s business, or any other package. Patrick
Mayer in particular was keen to minimize message size in his use cases to
the bare minimum, say by maintaining himself a perfect hash for
fingerprints and hence sending only a small integer across the wire.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11526#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list