Coder Social home page Coder Social logo

Project active? about js-csp HOT 16 CLOSED

js-csp avatar js-csp commented on September 27, 2024
Project active?

from js-csp.

Comments (16)

donato avatar donato commented on September 27, 2024 1

Awesome, I'll check it out. Have you done any profiling comparisons?

from js-csp.

XVincentX avatar XVincentX commented on September 27, 2024 1

from js-csp.

donato avatar donato commented on September 27, 2024

Hey @darrenhaken - I'm using and following this project, if that counts!

from js-csp.

darrenhaken avatar darrenhaken commented on September 27, 2024

@donato That's really useful. Would you be able to show me any examples of using CSP's to chain multiple AJAX requests together? I'd love to see an example of how a chain of AJAX Promises could be converted to using CSP

from js-csp.

majnu-campact avatar majnu-campact commented on September 27, 2024

+1 Love this project!

from js-csp.

zeroware avatar zeroware commented on September 27, 2024

I'm using it in a fairly large codebase.
I know that some people prefer the async version : https://github.com/dvlsg/async-csp

from js-csp.

darrenhaken avatar darrenhaken commented on September 27, 2024

@zeroware can you offer any gists showing multiple AJAX requests together with CSP?
I'm curious to see a working example.

from js-csp.

kenOfYugen avatar kenOfYugen commented on September 27, 2024

@darrenhaken check this out if you haven't
http://jlongster.com/Taming-the-Asynchronous-Beast-with-CSP-in-JavaScript

It does contain an AJAX example among other things. You can just add as many calls as you want inside the go block. Read the whole thing and try out some examples, you'll get to understand the logic eventually.

@ubolonton doesn't seem to be too active. I am using this library and love it, but would like to see more activity going on.

from js-csp.

yosbelms avatar yosbelms commented on September 27, 2024

Hey folks I'm making a lightweight "CSP in javascript" library, if you want to take a look at this or any suggestion, here the repo https://github.com/yosbelms/getjs

@darrenhaken the documentation of the library I'm working on has an example using AJAX, may be you want to try it.

from js-csp.

yosbelms avatar yosbelms commented on September 27, 2024

@donato, no yet, I'm right now focused in the docs. I'll test channels performance soon. I opened a new thread here to suggest metrics comparison.

from js-csp.

zeroware avatar zeroware commented on September 27, 2024

@yosbelms Great job ! Do you plan on adding transducers support like js-csp ?

from js-csp.

yosbelms avatar yosbelms commented on September 27, 2024

@zeroware, Actually you can use a transformer function, for example:

var ch = chan(null, x => x*2) // unbuffered channel with a `transformer`

Both, channels and streams supports tranformers, that is just a function to transform arriving values. It is an open door to link with tranducers, underscore, lodash or any related lib.

from js-csp.

XVincentX avatar XVincentX commented on September 27, 2024

It seems like @hung-phan is actively working on it again! Could you confirm?

from js-csp.

hung-phan avatar hung-phan commented on September 27, 2024

Uhm, @XVincentX.

from js-csp.

XVincentX avatar XVincentX commented on September 27, 2024

Should I take that as a yes?

from js-csp.

hung-phan avatar hung-phan commented on September 27, 2024

Yup. πŸ˜„

from js-csp.

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.