PDA

View Full Version : Ext 2.0 - beta1 for JSVM2



wanchanghua
22 Oct 2007, 7:01 AM
I very like Ext, It's a great job!
but, Ext is so intricate for code management.

I hope JSVM2 can give Ext a hand. :)
For example :


<script src="jsvm2/jsre.js"></script>
<script>

$import("Ext.EventManager");

Ext.EventManager.on(window, 'load', function(){
//TODO ...
});
</script>

Download: http://demo.jsvm.org/ext2/ext-2.0-beta1-jsvm2.tar.gz

mystix
22 Oct 2007, 8:03 AM
question 1: what are the advantages of JSVM2 over others like, say, Rhino? (and what's the difference?) :-/

question 2: how will JSVM2 help to simplify Ext development? :-/

question 3: is there anywhere else where i can download / see a demo? :-/ the link you provided above stalls at 1.1mb, the JSVM2 sourceforge site hasn't been updated since december 18th 2006, and all the demo sites i've googled lead to nowhere... :s
http://sourceforge.net/projects/jsvm2
http://www.files-library.com/library/jsvm2.html
http://technorati.com/tag/JSVM2
http://jsvm.org/docs/api/overview-summary.html

helloniko
22 Oct 2007, 7:42 PM
i know something about JSVM (BSD License), it's well designed to modularize prototype-based javascript programming, and it will automatically manage code dependence so you even no need to care about intricate code dependency :D

in a nutshell, JSVM is a good example in code organization for reference. We all like Ext and hope Ext will be better and better. ;)

mystix
22 Oct 2007, 8:36 PM
i know something about JSVM (BSD License), it's well designed to modularize prototype-based javascript programming, and it will automatically manage code dependence so you even no need to care about intricate code dependency :D

in a nutshell, JSVM is a good example in code organization for reference. We all like Ext and hope Ext will be better and better. ;)

thanks for the info. :)

do you have any links where i could take a look at some demos?

seasky7
22 Oct 2007, 9:32 PM
this is a demo url:

http://demo.jsvm.org/ext2/ext-2.0-beta1-jsvm2/examples/

you can compare with EXT examples

http://extjs.com/deploy/dev/examples/


we can open the same example from Ext and JSVM

The first, clear all IE's caches.
the JSVM url :
http://demo.jsvm.org/ext2/ext-2.0-beta1-jsvm2/examples/desktop/desktop.html

use HTTPWatch ,get IE load data:
1、total load time:6.202S;
2、main code file size :149538;

Data:
00:00:00.000 * 933 GET 200 text/html http://demo.jsvm.org/ext2/ext-2. ... esktop/desktop.html
00:00:00.565 * 75397 GET 200 text/css http://demo.jsvm.org/ext2/ext-2. ... ces/css/ext-all.css
00:00:00.566 * 12400 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2.0-beta1-jsvm2/jsvm2/jsre.js
00:00:01.642 * 6651 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... rnel.js?2.06.071001
00:00:01.644 * 1999 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... ader.js?2.06.071001
00:00:03.056 1.008 149538 GET 200 application/x-javascript;charset=utf-8 http://demo.jsvm.org/ext2/ext-2. ... llReferencedClasses
00:00:04.143 * 8804 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... top/js/StartMenu.js
00:00:04.323 * 14688 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... sktop/js/TaskBar.js
00:00:05.038 * 3672 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... sktop/js/Desktop.js
00:00:05.166 * 2234 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... s/desktop/js/App.js
00:00:05.275 * 694 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... esktop/js/Module.js
00:00:05.386 * 15872 GET 200 text/javascript http://demo.jsvm.org/ext2/ext-2. ... s/desktop/sample.js
00:00:06.202 * 14877 GET 200 text/css http://demo.jsvm.org/ext2/ext-2. ... top/css/desktop.css



-------------------
ok,we open the EXT desktop example:
URL:http://extjs.com/deploy/dev/examples/desktop/desktop.html
use HTTPWatch ,get IE load data:
1、total load time:17.101S;
2、main code file size :502651;

Data:
00:00:00.000 0.665 2072 GET 200 text/html http://extjs.com/deploy/dev/examples/desktop/desktop.html
00:00:00.736 0.004 0 GET (缓存) text/javascript http://www.google-analytics.com/urchin.js
00:00:00.736 2.139 75464 GET 200 text/css; http://extjs.com/deploy/dev/resources/css/ext-all.css
00:00:02.946 0.857 1024 GET 404 text/html; charset=utf-8 http://extjs.com/deploy/dev/resources/css/xtheme-default.css
00:00:02.955 0.003 0 GET (缓存) text/javascript; http://extjs.com/deploy/dev/adapter/ext/ext-base.js
00:00:03.828 8.456 502651 GET 200 text/javascript; http://extjs.com/deploy/dev/ext-all.js
00:00:12.449 0.740 8637 GET 200 text/javascript; http://extjs.com/deploy/dev/examples/desktop/js/StartMenu.js
00:00:13.213 1.152 14501 GET 200 text/javascript; http://extjs.com/deploy/dev/examples/desktop/js/TaskBar.js
00:00:14.382 0.500 3538 GET 200 text/javascript; http://extjs.com/deploy/dev/examples/desktop/js/Desktop.js
00:00:14.913 0.490 2154 GET 200 text/javascript; http://extjs.com/deploy/dev/examples/desktop/js/App.js
00:00:15.422 0.476 646 GET 200 text/javascript; http://extjs.com/deploy/dev/examples/desktop/js/Module.js
00:00:15.922 1.161 15539 GET 200 text/javascript; http://extjs.com/deploy/dev/examples/desktop/sample.js
00:00:17.101 1.223 14890 GET 200 text/css; http://extjs.com/deploy/dev/examples/desktop/css/desktop.css


compare main code file size is JSVM=149538 < EXT = 502651 ---- (1:3)

i_love_sc
23 Oct 2007, 1:29 AM
The result is impressive.
And I think it should be more effective when we using iframe or frameset based application.

wanchanghua
23 Oct 2007, 7:29 AM
i know something about JSVM (BSD License), it's well designed to modularize prototype-based javascript programming, and it will automatically manage code dependence so you even no need to care about intricate code dependency :D

in a nutshell, JSVM is a good example in code organization for reference. We all like Ext and hope Ext will be better and better. ;)

helloniko is right. seasky made a mistake. JSVM2 example is compressed with gzip.
JSVM2 can help you load javascript code on demand.

The attatchment is code organization chart.

mystix
23 Oct 2007, 7:07 PM
@wanchanghua: very interesting... :D
will fiddle with it when i get some time.

thanks to the rest for replying =)

p.s the download link's working now.