Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akxcv/fast_blank_ocaml
Ruby String#blank? in OCaml
https://github.com/akxcv/fast_blank_ocaml
native-extension ocaml ruby
Last synced: 2 days ago
JSON representation
Ruby String#blank? in OCaml
- Host: GitHub
- URL: https://github.com/akxcv/fast_blank_ocaml
- Owner: akxcv
- License: mit
- Archived: true
- Created: 2017-12-28T21:59:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-28T22:03:07.000Z (about 7 years ago)
- Last Synced: 2024-04-25T17:05:37.788Z (9 months ago)
- Topics: native-extension, ocaml, ruby
- Language: Ruby
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fast_blank_ocaml
*DISCLAIMER*: I am not an expert in OCaml, C, Ruby, or native extensions.
This is just something I wanted to try out, and since I didn't find a lot of
info by googling, I decided to put this on GitHub and maybe someone will find
this useful.### Description
This is an example of how to write a Ruby native extension in OCaml.
The code for `blank?` itself is in `ext/ocaml-blank/blank.ml`.There's also a C wrapper in `ext/ocaml-blank/blank.c` which is required to make
a connection via FFI.### Benchmark
To view the benchmark results (with comparison to
[fast_blank](https://github.com/SamSaffron/fast_blank)), see `benchmark.rb`.
Or, run it for yourself via `ruby benchmark.rb`.### Contributing
Despite the gem's "it's just a test" status, issues and PRs are very welcome.