Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28897

Re: Concurrency folded out?

Newsgroups comp.lang.javascript
Date 2015-11-19 17:13 -0800
References <e4834b6d-6881-46cd-8c2b-739f3fa6dd11@googlegroups.com>
Message-ID <faacbd18-19a2-4414-b76b-a7f5a5ce4db9@googlegroups.com> (permalink)
Subject Re: Concurrency folded out?
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


On Wednesday, November 18, 2015 at 2:48:21 AM UTC-6, Øyvind Teig wrote:
> During a conference I was on I saw a presentation by Seb Lee-Delisle where he presented a beautiful tree growing up and swaying slowly in the wind [1]. It was all coded in JavaScript. 
> 
> It doesn't need concurrency at all.
> 
> However, not in order to making matters complex (even if I realize it might), but to try to learn from it, I decided to blog about how one could still make that code concurrent.
> 
> I thought about using either JavaScript events and callbacks, task.js by mozilla (Firefox only?), Web worker, Reactive Extensions for JavaScript (RxJS) or node-csp channels library Node.js. 
> 
> There may be more alternatives? Or less?
> 
> I guess there are two main problems: by which paradigm, and what parts of the tree to make concurrent. Since it's a basically non-parallizable algorithm (?) I assume the latter is rather difficult.
> 
> If any of you feel like making a concurrent version, please do. If any of you want to "hold my hand" while I do, you're very welcome. 
> 
> My blog note is at [2]. Disclaimer: No ads, no money and no gifts in any of my blog notes. I don't write for anybody but myself and the accidental reader.
> 
> [1] http://www.teigfam.net/oyvind/code/114/001_tree_by_seb_lee_delisle.html
> [2] http://www.teigfam.net/oyvind/home/technology/114-javascript-tree-becoming-concurrent/

If this tree was described by an L-System[1], it could utilize Web Workers in a rather straightforward manner.

[1] <https://en.wikipedia.org/wiki/L-system>

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Concurrency folded out? Øyvind Teig <oyvind.teig@gmail.com> - 2015-11-18 00:48 -0800
  Re: Concurrency folded out? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-11-19 17:13 -0800
    Re: Concurrency folded out? Øyvind Teig <oyvind.teig@gmail.com> - 2015-11-20 04:47 -0800
      Re: Concurrency folded out? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-11-21 10:41 -0800
        Re: Concurrency folded out? Øyvind Teig <oyvind.teig@gmail.com> - 2015-11-22 13:47 -0800
          Re: Concurrency folded out? Øyvind Teig <oyvind.teig@teigfam.net> - 2015-11-24 13:15 -0800
          Re: Concurrency folded out? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-12-01 18:18 -0800
  Re: Concurrency folded out? Øyvind Teig <oyvind.teig@teigfam.net> - 2015-12-04 11:36 -0800
    Re: Concurrency folded out? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-12-05 10:25 -0800
  Re: Concurrency folded out? Øyvind Teig <oyvind.teig@teigfam.net> - 2015-12-08 00:04 -0800
    Re: Concurrency folded out? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-12-08 16:04 -0800

csiph-web