https://github.com/red-data-tools/ruby-hdf5
https://github.com/red-data-tools/ruby-hdf5
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/red-data-tools/ruby-hdf5
- Owner: red-data-tools
- License: mit
- Created: 2023-02-19T13:21:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-28T10:59:19.000Z (over 1 year ago)
- Last Synced: 2026-01-17T18:02:31.829Z (5 months ago)
- Language: Ruby
- Size: 143 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ruby-hdf5
[](https://github.com/red-data-tools/ruby-hdf5/actions/workflows/test.yml)
experimental Ruby bindings for the HDF5 library
## Development
- [c2ffi](https://github.com/rpav/c2ffi)
- [c2ffi4rb](https://github.com/kojix2/c2ffi4rb)
### Generate spec file
```sh
c2ffi $(pkg-config --cflags-only-I hdf5 | ruby -npe '$_.strip!.gsub!(/-I/, "")<<"/hdf5.h"') > hdf5.json
# c2ffi /usr/include/hdf5/serial/hdf5.h > hdf5.json
```
### Generate Ruby bindings
```sh
c2ffi4rb hdf5.json > lib/hdf5/ffi.rb
```
The auto-generated bindings require some minor manual modifications.
### Development Strategy
#### All pull requests will be merged
- All pull requests received will be merged unless there is detrimental code.
- If the pull request contains a bug, it still will be merged.
- The author can add a comment that there is a bug here, or revert the commit if the bug is critical.
- The author can add a commit to the pull request or send another pull request to fix the bug later.
#### Why are all pull requests merged?
- Development is a transition of code states.
- We pay more attention to transient events, the probability that new commitments will continue to occur, than to the quality of the code at a given point in time.
- Usually, High code quality is important to keep developers and users motivated.
- However, HDF5 binding for Ruby has not been maintained for a long time.
- This situation means that developer density is low and requires unusual strategies to maintain the project.
## Acknowledgement
[https://github.com/edmundhighcock/hdf5](https://github.com/edmundhighcock/hdf5)
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).