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

Weblog Page

Showing 581 - 590 of 1561 Postings (summary)

[Xotcl] poll for opinions

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: Wed, 20 Feb 2002 16:28:53 +0100

 Dear XOTcl community,
 
 we are working currently on various issues which we
 think are important for our 1.0 release:
   
   - speedup through byte-code support
   - better components with introspection facilities
   - easy to use rel-db interface
   ...
 
 concerning the first item: i was performing some
 experiments for providing extension-specific
 byte-code support, e.g. to allow to register
 byte-code instructions for the most-used commands
 in XOTcl (such as [self], next, etc.). through
 these xotcl-specific bytre-codes we get
 nice improvements (e.g. [self]
 is more than 10 times faster, some benchmarks
 improve by 40%). This improvements require
 a patch for tcl, which is therefore not acceptable
 for most people now. We talked to the Tcl
 implementors to include such a patch, but currently
 some of them think about a substantial redesign
 of the bytecode which has much more constraints once
 extension writers depend on the current design, so
 i don't expect that a patch with this functionality
 will be intergrated in tcl in the new future.

 however, there is already some influence for XOTcl:
 In Tcl, compilation is command based: this means,
 for every call of a command literally available in
 the the body of a proc, a bytecode sequence can
 be provided by the command. This means that it
 is possible to compile the body of method m1 in
   Object o
   o proc m1 {} {
     o set x 123
   }
   o proc m2 {} {
     [self] set x 234
   }
 to something clever, but not the body of m2,
 since the command in the body of m2 depends on
 the results of [self] which the compiler does not know.
 Since m2 is the much
 better style, we should address this principal
 problem, since this will ease future improvements for xotcl.
 An easy soultion is to provide a tcl-command
 selfInvoke, which can be byte-compiled. selfInvoke has
 the following sematics
   
  proc selfInvoke args { eval [self] $args }

 and if implemented in C, it leads already to
 some speedup (without bytecode support), since the call
 of the tcl command "self" is replaced internally by a
 call to a c-function.

 Another advantage is that the number of [self] in an
 xotcl script is reduced, an programs might become easier
 to type ()since less shilft/alt/.. keys have to be pressed)
 and hopefully less "cluttered" to read.

 yet another advantage is that this change makes in a program
 more visible when a delegation is used (call to a
 different object) instead of the call of the current
 object.

 since "selfInvoke" is not something i would like to
 type often either, and this is rather a language
 primitive, we are considering some syntactical
 alternatives, and want some input from the
 "community". Certainly, the explicit call of [self] or
 to another object will be supported in the future as well.

 what do you think about the following variants:

   o proc m1 {} {
     [self] set x 123
   }
   o proc m2 {} {
     .. set x 123
   }
   o proc m3 {} {
     = set x 123
   }
   o proc m4 {} {
     => set x 123
   }
   o proc m5 {} {
     - set x 123
   }

 other ideas?

 note, that the used symbol cannot be used as an
 (global) object name (same as with next, self, set,
 and other global tcl commands)

 what do you think?

 best regards
 -gustaf neumann

[Xotcl] XOTcl 0.9.3 available

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: Mon, 17 Dec 2001 23:12:56 +0100

Dear XOTcl community,

XOTcl version 0.9.3 is now available. The biggest change
is a mostly TEA compliant built and install....

Here more details:

RECENT CHANGES relative to 0.9 are:

  - A "more or less" TEA compliant build process and its
    directory structure (aligend it as far as possible to Tcl, sample
    extension and other extensions)

    * We started building an XOTcl stub lib.

    * We separated xotcl from its library/applications
      (there is an xotcl-<VERSION> directory in the full distribution
       that just builds, installs, etc. the XOTcl libraries ... this
       can for instance be used in other distributions using and
       shipping XOTcl, but not using the shells).

    * The full distribution still builds shells, but they are using
      "package require" to load the XOTcl libraries now.

    * For building xowish (the XOTcl Tk shell) you do only require
      an installed Tk version on Unix now.

  - On Windows we still use nmake due to problems with VCC 6.0 in
    all TEA compliant extensions we have checked, but we use a
    completely new build process (more or less one-to-one the
    Unix build process).

  - A few minor bugfixes.

  - We have tested this release on platforms we have access to
    (Linux, Win NT, Solaris). Please inform us, if there are some
    problems on your platform so that we can eliminate them in future
    releases.

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


Best regards,

Gustaf Neumann
Uwe Zdun

Re: [Xotcl] installation on fedora

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

From: Catherine Letondal <letondal_at_pasteur.fr>
Date: Thu, 01 Apr 2004 10:57:14 +0200

Kristoffer Lawson wrote:
> On Wed, 31 Mar 2004, Alexandre Dehne wrote:
>
> > In order to use biok, I have to install xotcl. My problem with xotcl
> > installation is that my system is under Fedora and there is no tclInt.h
> > file under this distribution (even with the tcl-devel package). Of
> > course, I can uninstall the tcl package and install tcl manually but, by
> > uninstalling tcl package, other packages are going out and that put me
> > in trouble ...
>
> Well tclInt.h is internal Tcl stuff (unfortunately still required by
> XOTcl). Does Fedora have a Tcl source package? Would be in that.
>
> I think Debian is now clever enough to include tclInt.h in the tcl dev
> package, although naturally the best would be if external packages no
> longer needed tclInt.h

Dear Kristoffer,

I don't understand your answer : do you mean that there should be no problem at all?
But the file tclInt.h does not exist on alexander's disk although he has a tcl dev
installed. Is there another source distribution for tcl dev?
(sorry if this is not directly related to XOtcl, but is there a way to bypass
this problem when compiling XOtcl?)

Many thanks,

--
Catherine Letondal -- Pasteur Institute Computing Center

XOTcl/NX mailing list by object move?

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: Mon, 20 Mar 2006 11:57:07 +0100

Koen Danckaert schrieb:

> I use the following two global procs for that:
>
> proc myproc {args} {linsert $args 0 [uplevel 1 self]}
> proc myvar {var} {return [uplevel 1 self]::$var}

as kristoffer noted (and as in my earlier version shows)
it makes sense to add a requireNamespace to myvar.
a slightly faster version of myproc is:

> button $x -command [myproc show 1 2 3]
> ...
> trace add variable [myvar status] write [myproc statusevent]

you can use here as well

   my trace add variable status write [myproc statusevent]

>
> (Note: in fact the "uplevel" in the definition of myproc/myvar is not
> even necessary. It seems that [self] always refers to the last Xotcl
> object on the callstack.)


  self returns the current object from the xtcl call stack. if one calls
a pure tcl-proc or tcl-cmd
  from an xotcl method, the same xotcl callstack entry is still active.
so [self] continues
  to return "the right" obejct.

  therefore, a slightly faster version is:

  proc myproc {args} {linsert $args 0 [self]}


  seems as a good idea to add both methods to the xotcl distribution.

  Shouldn't we use "mymethod" instead of myproc, this function will not
only work for
  procs, but for instprocs and cmds as well....

-gustaf neumann

[Xotcl] 3rd Call For Papers - 22nd Annual Tcl/Tk Conference (Tcl'2015)

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

From: <andreask_at_activestate.com>
Date: 28 Jul 2015 10:58:58 -0700

Hello XOTcl Developers, fyi ...

22nd Annual Tcl/Tk Conference (Tcl'2015)
http://www.tcl.tk/community/tcl2015/

October 19 - 23, 2015
Comfort Suites Manassas
7350 Williamson Blvd, 20109
Manassas, Virginia, USA

[Attention! One month to the paper deadline]

[[ Attention! Registration is open! Please have a look at
   http://www.tcl.tk/community/tcl2015/register.html
]]

[[ Known Speakers
-- Keynotes

  * Kevin Walzer - Tk on the Mac: Past, Present, Future

-- Tutorials

  * Clif Flynt - Advanced Tcl: TclOO Intro
                 New Tcl/Tk Platforms --- Pi and Android

  * Gerald Lester - Introduction to Tcl 1
                    Introduction to Tcl 2
                    Introduction to Tk 1
                    Programming the Web with Tcl: A Survey of Tools, Tips and Tricks

  * Sean Woods - Advanced TclOO & Megawidgets in TclOO

]]

Important Dates:

Abstracts and proposals due August 24, 2015
Notification to authors August 31, 2015
WIP and BOF reservations open July 27, 2015
Hotel Room Release August 25, 2015
Author materials due September 28, 2015
Tutorials Start October 19, 2015
Conference starts October 21, 2015

Email Contact: tclconference_at_googlegroups.com

Submission of Summaries

Tcl/Tk 2015 will be held in Manassas, Virginia, USA from October 19, 2015 to October 23, 2015.

The program committee is asking for papers and presentation proposals
from anyone using or developing with Tcl/Tk (and extensions). Past
conferences have seen submissions covering a wide variety of topics
including:

* Scientific and engineering applications
* Industrial controls
* Distributed applications and Network Managment
* Object oriented extensions to Tcl/Tk
* New widgets for Tk
* Simulation and application steering with Tcl/Tk
* Tcl/Tk-centric operating environments
* Tcl/Tk on small and embedded devices
* Medical applications and visualization
* Use of different programming paradigms in Tcl/Tk and proposals for new
  directions.
* New areas of exploration for the Tcl/Tk language

Note:
    We are especially interested in papers for OS X this time, to
    complement the keynote.

Submissions should consist of an abstract of about 100 words and a
summary of not more than two pages, and should be sent as plain text
to tclconference_at_googlegroups.com no later than August 24, 2015. Authors of accepted
abstracts will have until September 28, 2015 to submit their final
paper for the inclusion in the conference proceedings. The proceedings
will be made available on digital media, so extra materials such as
presentation slides, code examples, code for extensions etc. are
encouraged.

Printed proceedings will be produced as an on-demand book at lulu.com

The authors will have 30 minutes to present their paper at
the conference.

The program committee will review and evaluate papers according to the
following criteria:

* Quantity and quality of novel content
* Relevance and interest to the Tcl/Tk community
* Suitability of content for presentation at the conference

Proposals may report on commercial or non-commercial systems, but
those with only blatant marketing content will not be accepted.

Application and experience papers need to strike a balance between
background on the application domain and the relevance of Tcl/Tk to
the application. Application and experience papers should clearly
explain how the application or experience illustrates a novel use of
Tcl/Tk, and what lessons the Tcl/Tk community can derive from the
application or experience to apply to their own development efforts.

Papers accompanied by non-disclosure agreements will be returned to
the author(s) unread. All submissions are held in the highest
confidentiality prior to publication in the Proceedings, both as a
matter of policy and in accord with the U. S. Copyright Act of 1976.

The primary author for each accepted paper will receive registration
to the Technical Sessions portion of the conference at a reduced rate.

Other Forms of Participation

The program committee also welcomes proposals for panel discussions of
up to 90 minutes. Proposals should include a list of confirmed
panelists, a title and format, and a panel description with position
statements from each panelist. Panels should have no more than four
speakers, including the panel moderator, and should allow time for
substantial interaction with attendees. Panels are not presentations
of related research papers.

Slots for Works-in-Progress (WIP) presentations and Birds-of-a-Feather
sessions (BOFs) are available on a first-come, first-served basis
starting in July 27, 2015. Specific instructions for reserving WIP
and BOF time slots will be provided in the registration information
available in July 27, 2015. Some WIP and BOF time slots will be held open
for on-site reservation. All attendees with an interesting work in
progress should consider reserving a WIP slot.

Registration Information

More information on the conference is available the conference Web
site (http://www.tcl.tk/community/tcl2015/) and will be published on
various Tcl/Tk-related information channels.

To keep in touch with news regarding the conference and Tcl events in
general, subscribe to the tcl-announce list. See:
http://code.activestate.com/lists/tcl-announce to subscribe to the
tcl-announce mailing list.


Conference Committee

   * Andreas Kupries ActiveState Inc
   * Arjen Markus Deltares
   * Brian Griffin Mentor Graphics
   * Clif Flynt Noumena Corp
   * Cynthia Lilagan National Museum of Health & Medicine, Chicago
   * Donal Fellows University of Manchester
   * Gerald Lester KnG Consulting LLC
   * Jeff Hobbs ActiveState Inc
   * Joe Mistachkin Mistachkin Systems
   * Kevin Kenny GE Global Research Center
   * Larry Virden
   * Mike Doyle National Museum of Health & Medicine, Chicago
   * Ronald Fox CAEN Technologies
                      NSCL _at_ Michigan State University
   * Steve Landers Digital Smarties
   * Steve Redler, IV SR Technology

Contact Information tclconference_at_googlegroups.com

Tcl'2015 would like to thank those who are sponsoring the conference:

   * ActiveState Inc
   * Buonacorsi Foundation
   * Mentor Graphics
   * Noumena Corp
   * SR Technology
   * Tcl Community Association

[Xotcl] XOtcl 1.3 bug

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

From: Attilio Dona` <attilio.dona_at_telecomitalia.it>
Date: Wed, 06 Oct 2004 17:38:02 +0200

Hy Gustaf and Uwe,

We have the following bug:

package require XOTcl
namespace import xotcl::*

xotcl::Class::Parameter create Param -parameter {
    {value ""}
}

Class create MA -superclass Class

MA parameter {{v -Class {Param -value ciao} -default 1}}

MA create A

puts "A exists pippo: [A exists pippo]"

set pippo 10

puts "A exists pippo: [A exists pippo]"


--> A exists pippo: 0
--> A exists pippo: 1

This is true if you have at least one parameter defined for a Metaclass
and for every global variable defined!

ciao
Attilio




--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to webmaster_at_telecomitalia.it.

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------

[Xotcl] xodoc

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

From: Jeff Levesque <jeffreyslevesque_at_gmail.com>
Date: Tue, 18 Aug 2009 09:38:42 -0400

Hi All,
I hope this is still the right place for this, but I was wondering if anyone
has any interest in some changes I've made to xodoc. I've really only added
a couple things but they were big requirements for our documentation and I
figured it might be this way for others as well. Here's the feature list and
what I've completed so far:

   - Cleanup the output appearance/Make it look more like javadoc (In
   progress)
   - List inherited procedures for each class (Mostly finished)
   - Fix package (_at_ package provide ...) documentation (Mostly finished)
   - Create a side navigation bar of classes/procedures (similar to javadoc)
   (Not started)
   - Add HTML functionality to xodoc as needed (In progress)

I've attached a sample of the files generated from my version of xodoc. If
other people are interested I would go through and clean up the code before
I made it available.

- Jeff

[Xotcl] Probable bug: no method calls with "next" & init

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

From: Gustaf Neumann <Gustaf.Neumann_at_wu-wien.ac.at>
Date: Mon, 5 Feb 2001 22:28:18 +0100 (CET)

>>>>> "RH" == Rick Hedin <rhedin_at_aquifer.geology.uiuc.edu> writes:

RH> Hi Kristoffer.
RH> This behavior seems correct. You are trying to pass three arguments:
RH> 1. myArg 2. -whatever 3. niceSystem
RH> to one formal parameter:
RH> arg
RH> We could send one argument:
RH> next {myArg -whatever niceSystem}
 
  in the general case, you will prefer
 
        next [list myArg -whatever niceSystem]
 
  to get the tcl substitions correct.
 
RH> or use the special properties of the args keyword:
RH> Foo instproc init {args} { . . .
 
RH> Am I looking at this right?
 
  technically yes.
 
  Somehow, i have the feeling, that Kristoffer intended a class to the
  method "whatever". Why not use:

     Class Bar -superclass Foo
     Bar instproc init {} {
       next myArg
       [self] whatever niceSystem
     }
 
 -gustaf

Re: [Xotcl] Non-polymorphic methods (long post)

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: Wed, 01 Mar 2006 13:24:33 +0100

... before i forget, a small comment to your comment:

Kurt Stoll schrieb:
> The last solution is one that I had not considered. I find it intriguing
> and may use it as well. My first objection was that a class proc does not
> normally have access to instance variables. But, this can be solved by
> passing in the object itself.
The approach using procs as in

Base instproc foo {} {
  [self class] bar 1 2
}
Base proc bar {x y} {
  puts "[self] [self proc] $x $y"
}

is based on delegation (delegation to the class object), which is a pattern
frequently very handy. One can pass the object implizitely, or one can relay
on callstack information to access the objects state:

Base proc bar {x y} {
  puts "[self] [self proc] $x $y"
  [self callingobject] instvar x y z
}

This behaves well with interceptors as well (i am proposing this as
an option, not a general solution)

> Of course, I don't really want to eliminate
> polymorphism; I just want to start the search higher up the tree.

"starting higher in the tree" can lead to strange behavior, when
mixins are involved. temporary reclassing does not have this problem.

-gustaf

[Xotcl] Re: [Xotcl] Object mixin with passing init args ?

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

From: <uwe.zdun_at_uni-essen.de>
Date: Wed, 13 Dec 2000 10:55:56 +0100 (CET)

>>>>> "ZV" == Zoran Vasiljevic <zoran_at_munich.com> writes:

ZV> Hi XOTcl gurus!
ZV> Consider this:

ZV> % Class Foo
ZV> % Foo instproc init {dir} {puts hallo}

ZV> % Class Bar
ZV> % Bar bar
ZV> % bar mixin Foo
ZV> no value given for parameter "dir" to "init"

ZV> After snooping arround I've found out that mixin's does
ZV> not allow any argument passing to the mixin class initializer.

ZV> Is this something normal ? If one needs such functionality
ZV> are there any workarounds ?

1. That's a general problem of composing classes with the
next-path. "mixin" calls the constructor. If different constructors
are composed & constructors should receive args, nearly always they
should not receive the same args ...

Therefore, with "generic" methods, like constructors, filters, etc.,
it is almost always a good choice to use "args" as argument, like:

% Class Foo
Foo
% Foo instproc init args {puts hallo}
% Class Bar
Bar
% Bar bar
bar
% bar mixin Foo
hallo
%

we've once discussed to enforce this (with filters its a MUCH bigger
problem, because they nearly always receive different args), but for
the sake of compatibility with OTcl its still in the responsibility of
the programmer.

2. However, in the "mixin" case we could enable argument passing,
because "mixin" has just one argument? The rest could be passed to
"init". any objections?

--Uwe

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

Next Page