View · Search · Index
No registered users in community xowiki
in last 10 minutes

Weblog Page

Showing 1101 - 1110 of 1561 Postings (summary)

Re: [Xotcl] x64

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Jeff Hobbs <jeffh_at_activestate.com>
Date: Tue, 18 Nov 2014 11:25:45 -0800

Configure with --enable-64bit?

On Tue, Nov 18, 2014 at 9:17 AM, Josh Barton <Josh.Barton_at_usurf.usu.edu>
wrote:

> How do I compile nsf/xotcl for x64 on Solaris instead of 32? I have tried
> simply specifiying -m64 but that doesn't seem to be enough.
>
> bartonjd
> _______________________________________________
> Xotcl mailing list
> Xotcl_at_alice.wu-wien.ac.at
> http://alice.wu-wien.ac.at/mailman/listinfo/xotcl
>

Re: [Xotcl] compilation problem

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Bernd Eidenschink <eidenschink_at_web.de>
Date: Thu, 20 Jul 2006 11:50:54 +0200

Hi Michael,

> I saw the same error when compiling XOTcl 1.4 against Tcl 8.5 from cvs
> head, where TclIncrVar2 is commented out in the internal stubs table for
> tclIntDecls.h.
> (on SUSE 10.1 x86-64)

At least there is a patch here:
http://alice.wu-wien.ac.at/pipermail/xotcl/2006-April/005074.html

Bernd.

XOTcl/NX mailing list by object move?

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Scott Gargash <scottg_at_atc.creative.com>
Date: Sun, 19 Mar 2006 05:09:07 -0700

xotcl-bounces_at_alice.wu-wien.ac.at wrote on 03/19/2006 04:08:40 AM:

>
> On 19 Mar 2006, at 00:12, Scott Gargash wrote:
> >
> > When would you need the namespace of the object?
> I have only ever needed the namespace of an object which attaching
> traces to variables (f.ex. with Tk), but for that it is,
> unfortunately quite necessary.

I haven't used it yet, but doesn't the "trace" method handle this?

> > As an aside, I find Tcl's lack of true references to be one of its
> > nagging flaws.
> Yes, this is a problem. If Tcl had proper references then we could do
> garbage collection for objects. The problem is that Tcl's principle
> of everything being a string kind of conflicts with references.
> References can be represented as strings, although not very useful
> strings, but they really aren't strings. I mean, if the string output
> for a reference is 0x123456, but I generated that through some other
> string operations (or, say we lose the original Tcl object through
> various operations) then that will no longer necessarily work as a
> reference if the original is gone.

Amen, brother. For years I've tossed around thoughts on how to have references in Tcl, but I can't
come up with a way to do it without breaking "everything is a string". And if that breaks, well,
it's not Tcl anymore.

But I want lambdas. :)

> This is particularly problematic as Tcl still has quite a habit of
> losing that original representation which naturally I hope will be
> reduced in the future.

Where do you see this happening? Do you mean losing the original representation via shimmering, or
something else?

      Scott

Re: [Xotcl] Help with singleton design pattern

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Artur Trzewik <mail_at_xdobry.de>
Date: Tue, 22 Apr 2003 21:21:13 +0200

Hallo!

As singleton objects I often use Objects directly derived from Object

Object MySingleton
MySingleton proc doJob {} {
   puts "This is my job"
}

MySingleton doJob

This is not singleton pattern but is same cases you do not need some
Java, C++ solution.
One disadvantage is that you can not use method inheritance.

By the way.
The presented solution from G. Neumann.
That is to overwrite "new" method that returns singleton object
is the standard way to implements singleton in Smalltalk
(the singleton instance is saved in class variable Default).
That is XOTcl! "new" is just method not special operator and can
be overwritten.

Artur Trzewik

Re: [Xotcl] "tie" command

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Kristoffer Lawson <setok_at_fishpool.com>
Date: Fri, 24 Jan 2003 22:06:22 +0200 (EET)

On Fri, 24 Jan 2003, Gustaf Neumann wrote:

> >
> > But that doesn't solve the issue. $cmdReader cannot create the object
> > itself as volatile or bound to a variable as it will then be destroyed the
> > minute getNewMessage returns! Or, of course it could always use uplevel
> > and upvar but then every method that wants to return an object that may or
> > may not be bound to a variable has to provide this extra functionality and
> > argument checking. Ie. the methods need to be concerned with what the
> > caller wants, and I don't believe this is necessary a good thing.
>
> well, completely without uplevel/upvar or the like it is hard to find
> a solution. also tie needs it. passing the options via args is not painful.
> "uplevel" is only used for -volatile, which is scope-dependent.

[tie] needs it too, yes. The point is that is just one command which
will handle all cases like that, instead of each case having to deal with
it separately.
>
> ============================================
> Class Msg
>
> Class CmdReader
> CmdReader instproc getMessage args {
> uplevel [concat [list Msg new] $args]
> }
>
> Class Client -parameter reader
> Client instproc read {} {
> my instvar reader
> set msg [$reader getMessage -volatile]
> }
>
> Client c1 -reader [CmdReader new]
> ============================================
>
> The instvar "reader" is btw. a good example, where i prefer control
> in the new command rather than in the calling environment.
> "tie" is here no good solution either. "new -refcount" would be
> much nicer ....

[tie] doesn't cover everything and is not the best for everything. For
the specific case I demonstrated it is useful. In your [read] method, I
would probably prefer to do this:

Client instproc read {} {
  my instvar reader
  tie msg [$reader getMessage]
}

And thus the reader would not have to care what happens to the object
after it returns it. I think [tie] sort of works neatly in that way as
it's not realy to do with object creation but more of a statement "destroy
the ob when the variable changes", whereas volatile feels more like
something related to creation.

I haven't really thought of volatile much, the
following doesn't seem "right" somehow:

Client instproc read {} {
  my instvar reader
  volatile msg [$reader getMessage]
}

Perhaps your system is best for that, I don't know... -refcount can help
in many situations but even then I feel that in [getMessage] I shouldn't
care how destruction is handled.

What if you could specify after creation what happens to the object?
Like:

Client instproc read {} {
  my instvar reader
  set msg [$reader getMessage]
  $msg memmanagement refcount
}

I mean, in addition to the "-refcount" option with [new]. That way methods
that should not know about the dynamics (like [getMessage]) can use normal
[new] and let the caller decide what it wants to do with the object.

> these discussions are great. we have a young language/extension, where
> we can try to find "the right" way (whatever this is) and we can implement
> it with not to much hassle...

Yeah. Great to be back on the mailing list participating :-) I have some
strong sentimentality for XOTcl: I feel it's my kind of OO extension and I
have great interest in seeing it succeed.

                              / http://www.fishpool.com/~setok/

[Xotcl] XOTcl 1.6.4 available

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Gustaf Neumann <neumann_at_wu.ac.at>
Date: Sat, 17 Oct 2009 16:11:07 +0200

Announcing XOTcl 1.6.4
*************************

Dear XOTcl Community,
We are pleased to announce the availability of XOTcl 1.6.4,
which is mostly a bug-fix release.

Major changes relative to 1.6.3 are:

  * 2 fixes of potential crashes introduced in 1.6.3
  * Improved documentation (added "stack" as introductory example)

 For more details about the changes, please consult the ChangeLog and
 documentation. The planned next release will be 2.0.0

MORE INFO
  General and more detailed information about XOTcl and its components
  can be found at http://www.xotcl.org

best regards
-gustaf neumann

[Xotcl] Re: XOTcl 0.83 questions (continued...)

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Zoran Vasiljevic <zoran_at_munich.com>
Date: Fri, 8 Dec 2000 07:22:22 -0500 (EST)

------Original Message------
From: <uwe.zdun_at_uni-essen.de>
To: Zoran Vasiljevic <zoran_at_munich.com>
Sent: December 8, 2000 11:57:35 AM GMT
Subject: Re: XOTcl 0.83 questions (continued...)


>I'll hope to extend & test it ASAP to support more >functionalities,
>but today I will not make it. Therefore, I send what I have so >far.

You are very kind Uwe!
Thanks for help and for the time you took!!

I will use this as a start point, but would nevertheless
like to see what you'll make out of it later, whenever that is. Please send
my your changes whenever you are ready.

Now, let's see if I can do something on my own...
I've read about XOTcl enough. Now is time to put it in practice.

Cheer's
Zoran


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

Re: [Xotcl] "Cannot locate library"

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Tue, 13 May 2003 11:49:01 +0200

On Tuesday 13 May 2003 11:53, Uwe Zdun wrote:
> It does not solve the main problems solved by check_library_path:
> to include the env(XOTcl) variable

true, i think we dont need it

> and use the local directory
> when you are in it so that you don't necessarily have to install.

as stated in my last mail. extending the autopath or tcllibpath
should solve this.

> The rest of the code (in the second else part) is only used to set the
> xotcl::lib variable correctly. Again: this variable is not really needed.
> At the moment, it is only an information for the programmer.
>
> we can think about getting rid of the variable, maybe.

 there is code in the xotcl package "package" to determine
 the name of the library directory. an application needing this
 info can use this approach...

-gustaf
>
> --uwe
>
> On Tuesday 13 May 2003 10:50, Gustaf Neumann wrote:
> > On Monday 12 May 2003 23:27, MichaelL_at_frogware.com wrote:
> > > I don't know if this helps, but my approach was to add the following in
> > > xotcl-1.0.2/pkgIndex.tcl:
> >
> > Good idea!
> >
> > the following is more generic an should work (if it placed
> > into the installed directory of the xotcl library) platform indepently.
> >
> > We should think a little about what to do to execute xotcl
> > in the noninstalled case (e.g.
> > - putting this into xotcl-$(VERSION)/library,
> > - add a simple pkgIndex.tcl to xotcl-$(VERSION) to load the shared lib
> > - add xotcl-$(VERSION) to auto_path
> > ) and to produce the attached one on install....
> > This is the way we should go.
> >
> > -gustaf
> >
> > ============================================================
> > package ifneeded XOTcl 1.0 [list load \
> > [file join $dir .. libxotcl1.0[info sharedlibextension]] XOTcl]
> >
> > set _dir_ $dir
> > foreach index [glob -nocomplain [file join $dir * pkgIndex.tcl]] {
> > set dir [file dirname $index]
> > source $index
> > }
> > set dir $_dir_
> > unset _dir_
> > ============================================================

-- 
Univ.Prof. Dr.Gustaf Neumann
Abteilung für Wirtschaftsinformatik
WU-Wien, Augasse 2-6, 1090 Wien

[Xotcl] Is this a bug?

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Murr, Florian <florian.murr_at_siemens.com>
Date: Thu, 8 Dec 2005 12:14:48 +0100

package require XOTcl 1.3.8
namespace import xotcl::*

Class X -parameter {
    {y y0}
}
X instproc init {args} { puts "[self] init '$args'"; next }
X instproc y {args} {
    set x [next]
    puts "[self] y '$args'"
    set x
}
X create x -y y1
puts "expected 'y1', but got: '[x y]'"



regards,
- Florian Murr

Re: [Xotcl] "tie" command

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Fri, 24 Jan 2003 16:43:25 +0100

On Friday 24 January 2003 15:16, Kristoffer Lawson wrote:
> On Fri, 24 Jan 2003, Gustaf Neumann wrote:
> > we could provide an option -bind <varname> to the new instproc to allow
> > the user to specify a local or a per-object or global variable name,
> > but
> > this does not provide reference counting at all. i have started some
> > time ago
> > to work on reference counting, and xotcl has some good prerequirements
> > for this: we have tcl_objs for xotcl objects, they maintain already a
> > reference count. the obvious idea is to destroy the object, when the
> > reference count reaches 0. however, practically this showed to be quite
> > tricky in the current implementation since the refcount = 0 condition
> > happens in some unvonveniant situations... i have not given up on this,
> > but it needs a bigger chunk of time to devote to this...
>
> Yes, exactly. Obviously it's all just steps to make some things easier
> while refcount based destruction is the absolute solution. However,
> as you may have noticed from c.l.t, ref-count -based systems are really
> nasty to get done properly. How would you propose to deal with the
> situation where a reference is lost, because the object just happens to
> be made into a string (ie. some command or procedure does not keep the
> Tcl_Obj but just uses the data as a command). F.ex. when building
> callback scripts and containing the object handle there, or as an array
> key (I think array keys are still just considered to be strings and the
> Tcl_Obj form is not retained).

 sure, in general, this is an intrinsic problem. what i have
 implemented already in 0.94 was a double refcounting, that allows
 multiple tcl_objs to point to a single xotcl-object (or class), having
 therefore refcounts on the tcl_objs and separate refcounts on the
 xotcl-structures (classes and objects).
 therfore it is possible to convert for example the string "Object"
 with little effort to he class Object, as long it exists. For example
 after the statement

  Class C -superclass Object

 Object is a TclObj pointing
 to the appropriate xotcl-structure. So, this is not exactly the same
 situation as the general case, where the string to object
 mapping is not possible or leads to a new structure not
 representing the old state.

 Certainly, when all references are gone (stringified, only string callbacks
 point to an object) the object will be destroyed.... still, we would
 have the choice btwn traditional objects (that can be used safely
 in callbacks) and refcounted objects, there are many cases,
 where this might be useful ... i my code, i have not experienced
 the problem with unneeded objects (people that grew up with
 Java rather than C might thing differently)

 -gusaf

-- 
Univ.Prof. Dr.Gustaf Neumann
Abteilung für Wirtschaftsinformatik
WU-Wien, Augasse 2-6, 1090 Wien

Next Page