[GHC] #14882: memchr#
GHC
ghc-devs at haskell.org
Mon Mar 5 09:49:08 UTC 2018
#14882: memchr#
-------------------------------------+-------------------------------------
Reporter: andrewthad | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
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 hvr):
Fwiw, I can see the appeal to abstract over the basic low-level ISO C99
memory primitives (`memcmp`, `memchr`, `memcpy`, `memset` etc, some of
which may have a LLVM primitive op counterpart), which makes it easier for
projects like ghcjs, eta, or the upcoming ghc/wasm if `ghc-prim` already
provides the primitives in a single central place, than having to patch N
packages which FFI call themselves.
It seems to me, that `memchr(3)` may be the only one left from the ISO C99
set of `mem*` family of functions operating on byte arrays we haven't yet
wrapped.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14882#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list