Giter VIP home page Giter VIP logo

bindings-hdf5's People

Contributors

mokus0 avatar robstewart57 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bindings-hdf5's Issues

Compilation with older hdf5 interfaces introduces potentially weird versioning issues

Specifically, the same version of the bindings library can have several different interfaces depending on the version of hdf5 that is being wrapped.

  1. Is that a problem?
  2. What should be done about it?

One option is to have a different cabal file for each supported version of the hdf5 library. That could make dependency resolution really messy though, depending on how cabal handles pkgconfig dependencies (and whether pkgconfig is even the way to go)

Another option is to just let it be, and let that be something the "high level" wrapper must abstract over.

Another option is to include in the bindings-hdf5 package a "minimal" abstraction over it, which wraps all versions into the same interface (presumably the latest). This seems like the best option overall, but I'm not sure offhand how it should be done. For example, what to do about enumeration constants or macros that don't exist?

Elaborate on Ptr-based parameter passing convention newtypes

First, what do I want the types to express?

  • the underlying C type of the pointer
  • whether the pointer refers to a single cell or to an array (and if an array, how its size is determined)
  • whether the caller needs to allocate a buffer
  • whether the caller needs to free the returned pointer

Second, can we come up with a nice way of automating the wrapping? Something like [1] but with less type-level clutter for the user. Ideally it would automatically unwrap all the extra parameters and return types. TH is an option but if it can be done dynamically I think that's better.

Third, something like this would be more widely useful than just in this project, so it should eventually be separated into its own project.

[1] https://github.com/mokus0/junkbox/blob/master/Haskell/FFI/With.hs

MPI driver is totally untested

I don't have an MPI-enabled build of HDF5 right now, so I don't even know whether the Bindings.HDF5.H5FD.MPI module will compile or not.

Name mangling macros don't handle 4-char prefixes

I'm not sure the best way to handle this. It needs to be a global transformation, but aware that some prefixes are longer. It might work to simply take the maximal prefix of uppercase letters (and '5'), because it seems like every identifier has the prefix followed by either a lowercase letter or an underscore. It would also be nice if it added underscores when lowercasing names such as "H5Tfoo", so that the boundary between prefix and the rest remains well-defined.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.