Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Webworkers and any supported libs/shims

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Web workers and web sockets are, IMO, the two most interesting changes/additions to the JS/html landscape in a while. (Canvas probably being a close 3rd...)

Unlike web sockets, though, web workers don't seem to have been given as much love - there aren't a ton of cool demos, there don't seem to be any abstraction libs (i.e. socket.io), etc.

Are web workers still too immature/unsupported? Is an abstraction library (I'm thinking thread-pool style libs available in other langs, or maybe even some sort of actor model for passing data across workers) unnecessary?

At any rate, glad to see a book out on the subject!
 
author
Posts: 25
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree Andrew...
It would be great to see more:
* Libraries that making the developer life easier.
* Cool demo to what can be done with web workers today and transferrable objects.
My little contribution is with this set of examples (from the book) - http://greenido.github.com/Web-Workers-Examples-/

As for "Are web workers still too immature/unsupported?"
I would say that our current state is much better and in the near future all the major browsers will have them: http://caniuse.com/#feat=webworkers

Any comments/ideas to new demos are most welcome!

 
andrew ennamorato
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool! When in doubt, check the author's github for cool demos, haha.

I think a neat demo might somehow tie in something like D3 or Miso (http://misoproject.com/dataset/). Sorta like what Jos Dirksen did here: http://www.smartjava.org/content/threejs-tutorial-example-webgl-canvas-and-webworkers. And maybe tie in CrossFilter some how too: http://square.github.com/crossfilter/

I dunno, just random thoughts there.

Speaking of pools, Jos has a good post on his own little threadpool lib too: http://www.smartjava.org/content/html5-easily-parallelize-jobs-using-web-workers-and-threadpool

I think your book and more demos will be great (and help my own understanding of how to use these, too). So if anyone else has any good links, feel free to gather 'em up in this thread.
 
Ido Green
author
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds good!
Thank you for the links - I'll check them over the weekend.
reply
    Bookmark Topic Watch Topic
  • New Topic