<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
            "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">

<channel>
<title>tcljava-dev archive @ ASPN</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/tcljava-dev</link>
<description>Unlike the user oriented list, this mailing list is focused on issues related to the implementation of tcljava. Patches and implementation discussions will be posted here. Interested users are invited to subscribe as well.</description>
<language>en-us</language>
<copyright>Copyright 2005, ActiveState</copyright>
<managingEditor>aspn-feedback@activestate.com</managingEditor>
<webMaster>aspn-feedback@activestate.com</webMaster>

<image>
<title>tcljava-dev @ ASPN Mail Archive</title>
<url>http://ASPN.ActiveState.com/ASPN/img/logo_78x25.gif</url>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Browse/Threaded/tcljava-dev</link>
</image>

<item>
<title>[tcljava-dev] New TclBench results show that Jacl outperforms Tcl</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3172619</link>
<description>&lt;PRE>Thanks to some recent modificaitons, the
Jacl/TJC expr evaluator
is now as fast or faster than the expr evaluation logic in
the C version of Tcl. Re-running the Tcl Bench suite with
the server JVM shows that Jacl is actually faster than the
C version of Tcl in many cases.

http://www.modejong.com/tcljava/tjc_results_6_20_2006/index.html

The results are split into 3 bar charts so that execution time (in ms)
can be compared side by side.

cheers
Mo DeJong

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=107521&amp;bid=248729&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>Re: [tcljava-dev] Re: tcljava-dev digest, Vol 1 #174 - 2 msgs</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3133542</link>
<description>&lt;PRE>On Thu, 18 May 2006 10:22:08 -0700
Martti Tienhaara &lt;martti@... wrote:

> Obviously with the TJC compiler running in a separate thread 
> this is no longer feasible.

Another approach that you might find useful is to invoke vwait
on some variable at the end of your existing eval script. This
will process events in your script without having to make big
changes to the init logic in your Java and Tcl code. It is something
that might be worth trying before you make bigger changes.

cheers
Mo DeJong


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>[tcljava-dev] Re: tcljava-dev digest, Vol 1 #174 - 2 msgs</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3133515</link>
<description>&lt;PRE>>    2. Re: Re: tcljava compiler (Mo DeJong)
>>
>> The only minor problem so far is that the "-readyvar" option on
>>  >> TJC::compile never returns a result in the server.
> 
> Your code is not processing Tcl events. Please take a look at the
> new documentation in the CVS and let me know if that clears
> things up for you.
> 
> tcljava/docs/Topics/EventLoop.html
> 
> Or online via:
> 
>
http://tcljava.cvs.sourceforge.net/*checkout*/tcljava/tcljava/docs/Topics/EventLoop.html?re
vision=1.1
> 
> cheers
> Mo DeJong

Thank you very much for the documentation on The Tcl Event Loop which is 
excellent. I definitely did not understand the event processing 
relationship and I now understand why we have got away without the 
understanding up to now.

We have been using the Jacl interpreter and doing eval strictly within 
each thread in past projects and so have not run into any problems with 
just eval. Obviously with the TJC compiler running in a separate thread 
this is no longer feasible. In our new project under development we are 
using the Bean Scripting Framework, an Apache Jakarta project to allow 
other scripting languages to be used by users as well as Jacl. We use 
Jacl for everything but some users will prefer to use Javascript since 
they already know it. I will have to look at the Jacl engine source in 
the BSF package to see what we need to do to use the Tcl events 
properly. Being able to queue Jacl commands from other threads will also 
  be very useful.

Thanks again.
-- 
Martti Tienhaara (martti@...
DASH Software Ltd.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>Re: [tcljava-dev] Re: tcljava compiler</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3132695</link>
<description>&lt;PRE>On Tue, 04 Apr 2006 22:34:31 -0700
Martti Tienhaara &lt;martti@... wrote:

> tcljava-dev-request@... wrote:
> 
> The only minor problem so far is that the "-readyvar" option on
>  >> TJC::compile never returns a result in the server.

Your code is not processing Tcl events. Please take a look at the
new documentation in the CVS and let me know if that clears
things up for you.

tcljava/docs/Topics/EventLoop.html

Or online via:

http://tcljava.cvs.sourceforge.net/*checkout*/tcljava/tcljava/docs/Topics/EventLoop.html?re
vision=1.1

cheers
Mo DeJong


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>[tcljava-dev] tcljava status update</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3132692</link>
<description>&lt;PRE>Hello all

There have been many problems with the Sourceforge
CVS, but it all seems to be fixed now. You should
now be able to check out the most recent CVS
version of Jacl and Tcl Blend. Note that old working
copies will need to be checked out again since the
name of the project cvs server has changed. Use:

cvs -d:pserver:anonymous@... checkout tcljava

A number of new features are now available in
the CVS, they include:

(2006-04-07)
The expr module now updates TclObject internal rep.

(2006-04-10)
Numeric range checking when Tcl numbers are passed to Java.

(2006-04-12)
Add inner class support for all java::* commands.

(2006-04-13)
New java::for collection iteration command added.

(2006-04-26)
Add interp.setInterrupted() API to support interruption
of a running interpreter from another thread.


I have also created a new set of timing results that compare
uncompiled Jacl to TJC compiled Jacl and to Tcl 8.4 compiled
with optimizations. It turns out that some earlier tests
were run with a C Tcl shell compiled in debug mode, and
that has a big impact on execution time for Tcl compiled
byte code. In most cases, TJC compiled Jacl code runs 2 to 4
times slower than C Tcl bytecodes. The results can be found
here:

http://www.modejong.com/tcljava/tjc_results_5_17_2006/index.html

Clearly some expr optimizations are needed. The only big winner is
TJC compiled switch command, they execute must more quickly
than in C Tcl.

cheers
Mo DeJong


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>Re: [tcljava-dev] doubt: using of 'expr' in Jacl</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3105152</link>
<description>&lt;PRE>On Tue, 11 Apr 2006 15:34:14 +0530
"raj knowledge" &lt;raj.knowledge@... wrote:

> $AdminApp edit my_webapp.war {-MapModulesToServers {{XXXX
> xxxx.war,WEB-INF/web.xml
> WebSphere:cluster=$ clusterName
> +WebSphere:cell=HD-CELLNUMBERCell02,node=$nodeName,server=$webserverName }}}

If you have vars that need to be evaluated, pass in double quotes:

set name Bob
set word "My name is $name"
puts $word

(The above will print: "My name is Bob")

If you pass a brace quoted string then no $ subst will be done.

set name Bob
set word {My name is $name}
puts $word

(The above will print: "My name is $name")

P.S.
The expr is for math expressions and has nothing to do with the problem you are having.

Mo DeJong


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=110944&amp;bid=241720&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>[tcljava-dev] doubt: using of 'expr' in Jacl</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3103809</link>
<description>&lt;PRE>Hi,



I have my variables set in my jcl script file as



Set clusterName new

Set nodeName singlenode

Set webserverName webserver



And I have a command in my jcl file to edit my deployed webapp as,



$AdminApp edit my_webapp.war {-MapModulesToServers {{XXXX
xxxx.war,WEB-INF/web.xml
WebSphere:cluster=$ clusterName
+WebSphere:cell=HD-CELLNUMBERCell02,node=$nodeName,server=$webserverName }}}



Here  I am not able to run the above command as it is not able to evaluate
my $variables.

I tried to use 'expr' in this  case�.btu dint work.





Can anyone help me how to execute this command using the *'$ variables'*set.



Thanks in advance.



*- rajalakshmi ravva*
&lt;/PRE></description>
</item>

<item>
<title>[tcljava-dev] Re: What is the real JACL license?</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3102745</link>
<description>&lt;PRE>On Mon, 10 Apr 2006 08:56:29 -0700
"Khalid Sebti" &lt;ksebti@... wrote:

> Hi,
> 
> On JACL forum, I found this response from Neil Madden on JACL license.
> What are the licensing restrictions that may apply to using Jacl .?
> Jacl, like Tcl, is BSD-licensed, so you can do pretty much whatever you like
> with it. There should be a license.terms or similar in the distribution
> which gives the full license details.

Each Jacl download comes with the file license.txt that gives the license terms.

Mo DeJong


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=110944&amp;bid=241720&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>[tcljava-dev] Re: tcljava compiler</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3094850</link>
<description>&lt;PRE>tcljava-dev-request@... wrote:

The only minor problem so far is that the "-readyvar" option on
 >> TJC::compile never returns a result in the server.

 > Exception in thread "TJCThread service" java.lang.NoSuchMethodError:

 >This is a binary compat issue with a version of the compiler that you 
 >installed already.
 >The following should fix the problem:
 >
 >make clean
 >make all
 >make install
 >rm -rf tjc2
 >make tjc2
 >make install

Thank you. I'll remember to make clean in the future.
I'll now post a simple example of my problem with the -readyvar option.
--------
/* Test2 */
import tcl.lang.*;
public class Test2 {
     public static void main(String[] args) {
	try {
	    Interp interp = new Interp();
	    interp.eval("source [pwd]/unknown.tcl");
	    interp.eval("test");
	} catch ( Exception e ) {
	    e.printStackTrace();
	}
     }
}
----unknown.tcl----
package require TJC
proc unknown { args } {
     set command [lindex $args 0]
     source [pwd]/${command}.tcl
     set compile_ready NOT
     TJC::compile $command -readyvar compile_ready
     vwait compile_ready
     if { ! [string equal [string range $compile_ready 0 1] "OK"] } {
	puts "Compilation failed on $args ($compile_ready)"
	return
     } else {
	return [eval $args]
     }
}
-------
The ouput is "Compilation failed on test (NOT)". If I don't set the 
variable compile_ready then it is undefined. The compiler runs correctly 
and vwait takes 6 seconds just as in a direct compile but the -readyvar 
variable is never set. In a more complex example the unknown proc 
running ignores the wait and seems to compile as it goes along and the 
proc execution speeds up considerably after a while. However I suspect 
it is dangerous to allow the compiler to replace procs from another 
thread while the interpreter is executing the source proc without 
waiting for the compile to finish.

Cheers
-- 
Martti Tienhaara (martti@...
DASH Software Ltd.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=110944&amp;bid=241720&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

<item>
<title>Re: [tcljava-dev] Re: tcljava-dev digest, Vol 1 #169 - 2 msgs</title>
<link>http://ASPN.ActiveState.com/ASPN/Mail/Message/tcljava-dev/3094396</link>
<description>&lt;PRE>On Tue, 04 Apr 2006 12:36:53 -0700
Martti Tienhaara &lt;martti@... wrote:

> make tjc2
> make tjc2.replace
> make tjc.install
> 
> java -classpath
>
/usr/local/lib/tcljava1.3.2/jacl.jar:/usr/local/lib/tcljava1.3.2/tcljava.jar:/usr/local/lib
/tcljava1.3.2/tjc.jar:. 
> Test1
> Exception in thread "TJCThread service" java.lang.NoSuchMethodError: 
> tjc.ProcessTclSourceCmd.setVarScalar(Ltcl/lang/Interp;Ljava/lang/String;
> Ltcl/lang/TclObject;ILtcl/lang/Var;I)Ltcl/lang/TclObject;

This is a binary compat issue with a version of the compiler that you installed already.
The following should fix the problem:

make clean
make all
make install
rm -rf tjc2
make tjc2
make install

cheers
Mo DeJong


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=110944&amp;bid=241720&amp;dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@...
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
&lt;/PRE></description>
</item>

</channel>
</rss>