Pseudomultithreading in JavaScript

Discuss the many weaknesses of browser security and ways to mitigate the threat

Pseudomultithreading in JavaScript

Post by mooph on Tue Nov 19, 2013 2:45 pm
([msg=78245]see Pseudomultithreading in JavaScript[/msg])

Wazzup!

I've worked for some time on http://pseudomultithreading.webzdarma.cz. I just want to ask you what is your opinion on that?

Cenek mooph Svoboda :twisted:
svobo.c@gmail.com
:shock:
User avatar
mooph
New User
New User
 
Posts: 15
Joined: Wed Aug 19, 2009 8:27 am
Location: CZ
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by tgoe on Thu Nov 21, 2013 12:31 am
([msg=78265]see Re: Pseudomultithreading in JavaScript[/msg])

Nice hack. A bit buggy in Chromium:

Image

And I think there is a memory leak somewhere.
User avatar
tgoe
Contributor
Contributor
 
Posts: 643
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by mooph on Thu Nov 21, 2013 3:32 am
([msg=78267]see Re: Pseudomultithreading in JavaScript[/msg])

Can you tell more?
:shock:
User avatar
mooph
New User
New User
 
Posts: 15
Joined: Wed Aug 19, 2009 8:27 am
Location: CZ
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by tgoe on Thu Nov 21, 2013 12:19 pm
([msg=78268]see Re: Pseudomultithreading in JavaScript[/msg])

Disregard that last post. I read the directions this time :)
User avatar
tgoe
Contributor
Contributor
 
Posts: 643
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by mooph on Thu Nov 21, 2013 1:03 pm
([msg=78269]see Re: Pseudomultithreading in JavaScript[/msg])

Other ideas?
:shock:
User avatar
mooph
New User
New User
 
Posts: 15
Joined: Wed Aug 19, 2009 8:27 am
Location: CZ
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by tgoe on Tue Nov 26, 2013 3:46 am
([msg=78311]see Re: Pseudomultithreading in JavaScript[/msg])

I guess I would ask "why?".

I understand that you did it because you can. Could you explain a bit beyond that? What do you have against web workers? :)
User avatar
tgoe
Contributor
Contributor
 
Posts: 643
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by mooph on Wed Nov 27, 2013 2:08 am
([msg=78322]see Re: Pseudomultithreading in JavaScript[/msg])

If you use web workers, you have to use more than one place where to define them. Web workers don't have support in older browsers. From web workers you can't touch DOM.

-- Fri Dec 27, 2013 11:02 am --

I've changed MOOPH a little (window.performance.now() + fallback to new Date().getTime()).

-- Sun Jan 05, 2014 12:57 pm --

I've changed MOOPH again. I use .call now for better object oriented programming. I also changed examples. All features of MOOPH are covered now. :!:

Cenek Svoboda
Last edited by mooph on Sat Sep 20, 2014 3:31 am, edited 2 times in total.
:shock:
User avatar
mooph
New User
New User
 
Posts: 15
Joined: Wed Aug 19, 2009 8:27 am
Location: CZ
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by tgoe on Thu Jan 09, 2014 12:05 am
([msg=78808]see Re: Pseudomultithreading in JavaScript[/msg])

Maybe you could morph this into a polyfill?

Stuff a license into that repository!
User avatar
tgoe
Contributor
Contributor
 
Posts: 643
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by mooph on Sat Jan 11, 2014 6:01 am
([msg=78845]see Re: Pseudomultithreading in JavaScript[/msg])

tgoe wrote:Stuff a license into that repository!


What licence would you recommend? I'd like to license it commercially.

Cenek Svoboda
:shock:
User avatar
mooph
New User
New User
 
Posts: 15
Joined: Wed Aug 19, 2009 8:27 am
Location: CZ
Blog: View Blog (0)


Re: Pseudomultithreading in JavaScript

Post by tgoe on Wed Jan 22, 2014 4:04 am
([msg=79040]see Re: Pseudomultithreading in JavaScript[/msg])

BSD!

Pretty sure commercial is off the table. heh
User avatar
tgoe
Contributor
Contributor
 
Posts: 643
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Next

Return to Web

Who is online

Users browsing this forum: No registered users and 0 guests

cron