Coder Social home page Coder Social logo

phenax / algebraic-effects Goto Github PK

View Code? Open in Web Editor NEW
205.0 3.0 13.0 2.99 MB

Manage side-effects in your javascript application cleanly with algebraic effects

Home Page: https://phenax.github.io/algebraic-effects

License: MIT License

JavaScript 43.35% TypeScript 53.56% HTML 3.09%
algebraic-effects functional-programming javascript generators effects side-effects

algebraic-effects's Issues

Typescript support?

Nice work with this library, I think it looks promising :-).

I'm trying to test it out in typescript but when I install from npm I get no typescript types. However looking at the code here in github it seems to be written in typescript. I tried both latest and 0.0.5-alpha.1. My guess is that it was re-written in typescript and it has not been a release to npm since. Or am I missing something?

Multiple continuations

Currently there doesn't seem to be support for multiple continuations. If this can not be implemented in any way then there should be a section of the documentation mentioning that this feature is not available and also suggesting workarounds for situations where you might need it.

Add a Scheduler effect

Operations

  • A "skip a frame" operation using requestAnimationFrame
  • Wait for idle operation using requestIdleCallback
  • Delay operation using setTimeout (same as sleep generic effect)

Operation ideas for Scheduler effect

  • setInterval equivalent using multiple continuations or enable in background.
  • throttled continuations
  • debounced continuations

Not sure yet what their apis will look like as operations.

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.