Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple example of how to write a Ruby native extension in OCaml
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 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), 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.