česky
english

PseudoMultiThreading


Module MOOPH is a workaround for absence of crossplatform crossbrowser multithreading (parallel processing) with access to DOM in JavaScript. It uses recursion (function calls itself with timeout). Unlike web workers, the solution can access resources shared between pseudothreads easily. Unlike requestAnimationFrame, it is better for processes, that are not related to animation (pseudothreads running in background) (see this). Unlike setInterval solutions, if set to max speed, MOOPH by default doesn't queue time consuming function calls. I think that this technology/programming technique may be called pseudomultithreading.



Example application 1 (transit through paragraphs)

Example application 2 (JSAD = JavaScript Aided Design)

Example application 3 (Chaos in 3D)

App 4 (Web Designer's Productivity Tool)

App 5 (DoubleTheSnake - double snake game)

App 6 (SimpleChat.eu)

Example application 7 (http requests creating (web server testing) tool aka testovadlo)

Example application 8 - MOOPH settings changer (Module for Object Oriented Pseudomultithreaded Hypertext example that lets you change how one pseudothread works)

Example application 9 - MOOPH context changer (Module for Object Oriented Pseudomultithreaded Hypertext example that changes execution context of pseudothreads)

Example application 10 - MOOPH "is measured after call" changer (Module for Object Oriented Pseudomultithreaded Hypertext example that lets you change "is measured after call" feature of displaying pseudothread)


Download Module for Object Oriented Pseudomultithreaded Hypertext - development version.

Download Module for Object Oriented Pseudomultithreaded Hypertext - production (minified) version.

MOOPH on GitHub

Offer licence for MOOPH.

See this short text about current state of JavaScript multithreading.

© 2012-2015 Cenek Svoboda
svobo.c@gmail.com