Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inhabitedtype/bigstringaf
Bigstring intrinsics and fast blits based on memcpy/memmove
https://github.com/inhabitedtype/bigstringaf
Last synced: about 21 hours ago
JSON representation
Bigstring intrinsics and fast blits based on memcpy/memmove
- Host: GitHub
- URL: https://github.com/inhabitedtype/bigstringaf
- Owner: inhabitedtype
- License: other
- Created: 2018-03-31T14:50:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T17:20:46.000Z (6 months ago)
- Last Synced: 2024-12-26T05:07:34.753Z (8 days ago)
- Language: OCaml
- Size: 83 KB
- Stars: 37
- Watchers: 8
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# Bigstringaf
The OCaml compiler has a bunch of intrinsics for Bigstrings, but they're not
widely-known, sometimes misused, and programs that use Bigstrings are slower
than they have to be. And even if a library got that part right and exposed
the intrinsics properly, the compiler doesn't have any fast blits between
Bigstrings and other string-like types.So here they are. Go crazy.
[![Build Status](https://github.com/inhabitedtype/bigstringaf/workflows/build/badge.svg)](https://github.com/inhabitedtype/bigstringaf/actions?query=workflow%3A%22build%22)
## Installation
Install the library and its dependencies via [OPAM][opam]:
[opam]: http://opam.ocaml.org/
```bash
opam install bigstringaf
```## Development
To install development dependencies, pin the package from the root of the
repository:```bash
opam pin add -n bigstringaf .
opam install --deps-only bigstringaf
```After this, you may install a development version of the library using the
install command as usual.For building and running the tests during development, you will need to install
the `alcotest` package:```bash
opam install alcotest
make test
```## License
BSD3, see LICENSE file for its text.