Coder Social home page Coder Social logo

guillaumecherel / cached Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 38 KB

Write data flows that cache values to disk. Run independant computations in parallel and only recompute what needs to be.

License: BSD 3-Clause "New" or "Revised" License

Haskell 100.00%

cached's Introduction

cached

Cache values to disk.

The module Data.Cached lets you cache values to disk to avoid re-running (potentially long) computations between consecutive executions of your program. Cached values are recomputed only when needed, i.e. when other cached values on which they depend change. Independent computations are run in parallel. It offers convenient fonctions for caching to text files, but caching and uncaching using arbitrary IO actions is also possible.

The module was motivated by writing scientific data flows, simulation experiments or data science scripts. Those often involve long computations and create "flows" where the output of some computation are the inputs of others, until final results are produced (values, figures, statistical tests, etc.).

See the module Data.Cached documentation:

cached's People

Contributors

guillaumecherel avatar

Watchers

 avatar  avatar

cached's Issues

Revision 1 of 0.1.0.0 for GHC 9.8

Hi, I revised cached-0.1.0.0's bounds as they stopped me building it with GHC 9.8: https://hackage.haskell.org/package/cached-0.1.0.0/revisions/
The package builds fine with GHC 9.8 after the revision.

I notice some tests fail but this isn't connected to the GHC version.

What is the status of cached? Should I use it?
I was looking for something that could cache values painlessly between executions of a haskell script.
Maybe what is missing in this package is generic (binary) serialization. It seems to prefer Read/Show which isn't a good method for serialization in general.

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.