Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 26 19:20
    stringparser closed #7
  • Jun 26 19:20
    stringparser commented #7
  • May 30 20:34
  • Oct 03 2017 01:23
  • Feb 12 2017 11:16

    stringparser on master

    docs: fix license (compare)

  • Feb 12 2017 11:11

    stringparser on master

    docs: fix license (compare)

  • Oct 12 2016 20:21

    stringparser on master

    dev: bring back tree but with a… dev: tree based on the runtime … dev: update example and 11 more (compare)

  • Sep 18 2016 20:22

    stringparser on next_release

    dev: tree is necessary for boli… docs: update example docs: lint readme a bit (compare)

  • Sep 18 2016 19:43

    stringparser on next_release

    dev: minor improvements (compare)

  • Sep 18 2016 19:27

    stringparser on next_release

    dev: using props needs a more d… dev: use simple arrays for stac… test: update tests and 1 more (compare)

  • Sep 17 2016 12:53

    stringparser on next_release

    dev: moving towards instance.pr… test: small update (compare)

  • Sep 17 2016 12:33

    stringparser on next_release

    dev: tree based on the runtime … dev: update example (compare)

  • Aug 23 2016 21:24

    stringparser on next_release

    dev: bring back tree but with a… (compare)

  • Aug 23 2016 20:44

    stringparser on master

    docs: remove tree from example deps: ditch inherits and utils-… dev: cleanup and perf improveme… (compare)

  • Aug 23 2016 20:44

    stringparser on next_release

    docs: remove tree from example deps: ditch inherits and utils-… dev: cleanup and perf improveme… (compare)

  • Aug 22 2016 20:28

    stringparser on master

    dev: remove tree publish: v0.13.0 (compare)

  • Aug 22 2016 20:28

    stringparser on next_release

    publish: v0.13.0 (compare)

  • Aug 22 2016 20:20

    stringparser on next_release

    dev: remove tree (compare)

  • Aug 21 2016 21:46

    stringparser on master

    fix: inheritance using createCl… (compare)

  • Aug 21 2016 21:43

    stringparser on next_release

    v0.12.3 - fix: repeated calls t… release: v0.12.3 Merge branch 'next_release' and 7 more (compare)

Javier Carrillo Milla
@stringparser
Ok, its on! 3 months later but is moving
This is the package that will make gulp-runtime work like a charm and make async function composition a breeze
I would need help with some stuff, like just playing with it and tell me what you think. If you are up to it, of course :)
some code to play with
Javier Carrillo Milla
@stringparser
var app = require('runtime').create();

app.set(':handle(\\d+)', function(next){
    setTimeout(next, Math.random()*10);
);

function done(next){ next(); }

app.stack('1 2 3', app.stack('4 5 6', done, {wait: true}), {wait: true})(1, 2, 3);
Stanislav
@DarkPark
to be honest - I'm a little bit lost with this example
can you please explain what should happen here?
Javier Carrillo Milla
@stringparser
hey there darkpark!
i was out all morning
the first function call sets a handle that will match any string with one number
the second is just a function
the next function calls stack them all together
and run them
just to be clearer
var app = require('runtime').create();

app.set(':handle(\\d+)', function(next){
    setTimeout(next, Math.random()*10);
);

function done(next){ next(); }

var fnFourFiveSixDone = app.stack('4 5 6', done, {wait: true});
app.stack('1 2 3', fnFourFiveSixDone, {wait: true})(1, 2, 3);
{wait: true} makes any function call to wait
but if you have time, just run that code and you'll see
Javier Carrillo Milla
@stringparser
it has a pretty neat logger by default ;)
Javier Carrillo Milla
@stringparser
all right, now the library starts to look way better hopefully in the next couple weeks I'll write some docs