Giter Club home page Giter Club logo

cafs's People

Contributors

b5 avatar dustmop avatar ramfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cafs's Issues

archive this repo

cafs is now a subpackage of qri-io/qfs. We should first make sure qfs includes all the same CI checks as this repo, update this repo's readme to point viewers to cafs, and archive this repo.

Add Directory method

casters need to be able to add a "directory" of byte slices. Maybe:

type Node struct {
   Name string
   Data []byte
   Children []*Node
}

type castore interface {
   ...
   AddTree(node *Node) error
}

from there we could add helper methods that convert things like .zip archives & unix directories into a tree of nodes.

Issue when trying to add complete dataset to filestore

In the dataset package, we added VisConfig as a field to Dataset. When we try to write to the filestore, however, the adder only allows for 8 channels. We need to increase this to 9 in order to allow all the Dataset fields to be written to the filestore.

This needs to be changed in the cafs/ipfs and cafs/memfs packages

This causes annoying behavior: no error, but hanging! Maybe we need a function that returns whether all the channels are full? Not enough knowledge to make this function, also it's 1:30am, lol

test(Adder): ensure writing & reading to an adder are independant

Either our implementation of the Adder interface or the way we're consuming an adder isn't behaving properly. the size of the buffer theoretically shouldn't matter But clearly the buffer needs to be large enough to accommodate all files before reading starts, which is not how this code is supposed to behave. Or at least it should be possible to write code that doesn't behave this way.

Let's write a test that adds more files to adder than the size of the adder channel buffer and make it not hang forever.

I'm leaving this as a stub for later and will add steps to complete in the future. If you'd like to work on this issue and would like more guidance, comment here & I'd be happy to add details!

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.