[Xotcl] [forwarded] Re: XOTcl, threading and AOLserver ?

Gustaf Neumann Gustaf.Neumann@wu-wien.ac.at
Thu, 16 Nov 2000 18:53:53 +0100 (CET)


Return-Path: <uzdun@k2.informatik.uni-essen.de>
Received: from isis.wu-wien.ac.at (isis.wu-wien.ac.at [137.208.3.42] (may be forged))
	by mohegan.wu-wien.ac.at (8.9.3/8.9.3) with ESMTP id RAA20025
	for <neumann@mohegan.wu-wien.ac.at>; Tue, 14 Nov 2000 17:42:25 +0100
Received: from k2.informatik.uni-essen.de (root@k2.informatik.uni-essen.de [132.252.68.82])
	by isis.wu-wien.ac.at (8.8.7/8.8.7) with ESMTP id RAA91188
	for <Gustaf.Neumann@wu-wien.ac.at>;
	emf uzdun@k2.informatik.uni-essen.de; Tue, 14 Nov 2000 17:42:28 +0100
Received: (from uzdun@localhost)
	by k2.informatik.uni-essen.de (8.9.3/8.9.3) id RAA20749;
	Tue, 14 Nov 2000 17:37:09 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <384771995.974213895428.JavaMail.root@web489-mc>
References: <384771995.974213895428.JavaMail.root@web489-mc>
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs  Lucid
Message-ID: <14865.25999.270833.46750@k2.informatik.uni-essen.de>
Reply-To: uwe.zdun@uni-essen.de
From: <uwe.zdun@uni-essen.de>
To: Zoran Vasiljevic <zoran@munich.com>
CC: Gustaf.Neumann@wu-wien.ac.at
Subject: Re: XOTcl, threading and AOLserver ?
Date: Tue, 14 Nov 2000 17:37:09 +0100 (CET)

Hi Zoran,

>>>>> "ZV" == Zoran Vasiljevic <zoran@munich.com> writes:
ZV> Question 1: do you plan to make (XOTcl) MT-safe ?

ZV> Since Tcl8.2, Tcl core is MT-safe, and so should be
ZV> the extensions. I can help you out with this, if needed.
ZV> I've noticed couple of globals/statics which may have to be
ZV> either moved to thread-specific-data or mutex-protected.

a brief answer is: yes, but not directly, ... we still have some other
issues on our todo-list, but I guess we should get that working
ASAP. So if you like to volunteer to help out, you're invited :)

ZV> Question 2: <read on>

ZV> Having nice introspection capabilities built into the
ZV> XOTcl, I wonder if one can write a Tcl script which
ZV> runs against the initialized interpreter and builds up
ZV> a script needed to re-construct all classes and/or object
ZV> which it finds there (in the interpreter)?

ZV> Why should one need this ?

if I understand it correctly, that is merely the same we internally
use in order to copy an object (or class). Hopefully, you can merely
re-use the code from predefined.xotcl in the src dir used to copy/move
objects (Object instproc copy). You just would have to build a script
instead of copying, right?

In general any XOTcl feature should be accesible via introspection. If 
you run into problems, this might be a missing language feature...

btw, we also require the obj/class code introspection in order to
build a script that is shipped around in the mobile code system


--Uwe

-- 
Uwe Zdun
Specification of Software Systems, University of Essen
Phone: +49 201 81 00 332, Fax: +49 201 81 00 398
zdun@xotcl.org, uwe.zdun@uni-essen.de