logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 12-28-2010, 06:13 AM   #1
jmichae3
 
Join Date: Dec 2010
Posts: 366
Default classes, packages may be in future for JS

take a look at the FutureReservedWords in ecma262 5th edition specification. interesting stuff.

too bad threads aren't a part of that. it's not part of the spec, but I need multithreading, but it might throw most web developers for a loop (thinking wise, and debugging nightmares) if they choose to use it. You would also need fancier browser properties and methods for synchronization and some sort of mutex, and either the ability to declare volatile variables or make them volatile by default.

multithreading comes in handy when you have multiple tasks to do at the same time that can be handled asynchronously, such as handling UI events for various windows or controls: you can do this in Java. I wish I could get it into the JS spec - the browser makers may balk.

Imagine a Dreamweaver (uses Gecko/JS) that can simultaneously handle your mouse clicks while you are doing a global search and replace... The idea is remote mind you, but the possibility is there.
or do a regex search and replace across the entire site's HTML files while modifying a CSS file. I have about 700 of them, and it takes me about 10-15 minutes where I go do nothing for a while.
jmichae3 is offline   Reply With Quote
Old 12-28-2010, 03:47 PM   #2
ranjan
 
Join Date: Dec 2004
Posts: 405
Default Web Workers

Part of HTML5 draft specs

http://www.whatwg.org/specs/web-workers/current-work/

Some examples (use latest browsers and be ready for a few crashes)

http://html5demos.com/worker
http://benjaminplee.github.com/HTLM5-GoL/

Read more
http://wearehugh.com/public/2010/08/html5-web-workers/
ranjan is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com