Git Product home page Git Product logo

Comments (7)

rimmartin avatar rimmartin commented on August 11, 2024 1

Hi @KirmTwinty , thank for the example.

I'm working it in to the master branch now that v12 branch is merged. Probably will work in the swmr write as well and make it work from nodejs

from hdf5.node.

chadbr avatar chadbr commented on August 11, 2024

Good timing! I was about to ask the same...

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

Hi,

http://hdf-ni.github.io/hdf5.node/ref/file.html File.prototype.enableSingleWriteMultiRead() is to turn it on. I don't have a good test case for it; we test and see if it works

from hdf5.node.

KirmTwinty avatar KirmTwinty commented on August 11, 2024

Apparently, it doesn't work, not implemented.

Since I needed it for a professional project,
I have made a fork of the v12 branch
in my repository, implementing an SWMR Reader only:

v12+SWMR branch @KirmTwinty

You need to change a bit your code though since the creation of a new object Dataset that behaves like a Group object was needed.
Check out the About this fork section in the readme.md

from hdf5.node.

KirmTwinty avatar KirmTwinty commented on August 11, 2024

Great news, thanks!
I actually applied the Group and File reading principles to Dataset.

The good thing is that the library will principally rely on the bare H5 library (which could be done for any reading and writing mode). The different calls to the H5LT one could be removed?

Do not hesitate if I can help.

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

Hi @KirmTwinty, Thank you

The H5LT was the beginning; thought it would get the furtherest at the time. Internally h5_lt.hpp has been relying more and more on the bare h5. Tables, packet tables and image APIs will still need the lite(I don't have an energetic reason to rewrite those).

Mostly want to keep the javascript side steady for users with potential additions. The SWMR is probably the most useful new addition to users out there. The idea is not to replicate every API function of hdf5 but map the hierarchical nature of the data and attributes to the nature of js without the user needing to learn a c style API replication but get to their data/attributes the way js already is designed. Have to think some more.

from hdf5.node.

KirmTwinty avatar KirmTwinty commented on August 11, 2024

I totally understand! Thank you for coming with this.

My intend was to suggest a potential performance improvement, not to criticize :)

I see your point for trying to keep JS philosophy while interfacing with a C API, not such an easy task.

from hdf5.node.

Related Issues (20)

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.