From: Donald G P. <don...@ni...> - 2010-03-31 20:40:02
|
TIP 364 proposes we bundle the Thread package. However, the source code distribution thread*.tar.gz includes both the Thread package and another package called "Ttrace". Was it intended by the TIP that we bundle only Thread or Ttrace as well? If we want both, I'd feel better with some sense that we've examined both and made a conscious decision to take both. In addition, I'd be interested in a bit of repackaging so that two packages actually takes the form of two packages, or in the alternative, we decide that in spite of the history, this really is a single package and ought to be coded that way without some artificial division that is never actually exploited. -- | Don Porter Mathematical and Computational Sciences Division | | don...@ni... Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| |
From: Vasiljevic Z. <zv...@ar...> - 2010-03-31 21:01:56
|
On 31.03.2010, at 22:39, Donald G Porter wrote: > TIP 364 proposes we bundle the Thread package. However, the source > code distribution thread*.tar.gz includes both the Thread package and > another package called "Ttrace". I would split the two. The ttrace is just a lazy-interp-init done in pure Tcl and could be easily omitted from thread extension. I have put those two together as it was "most logical" place. Then. Perhaps not now. Cheers, Zoran |
From: Donald G P. <don...@ni...> - 2010-04-01 12:58:53
|
Donald G Porter wrote: > TIP 364 proposes we bundle the Thread package. However, the source > code distribution thread*.tar.gz includes both the Thread package and > another package called "Ttrace". > > Was it intended by the TIP that we bundle only Thread or Ttrace as well? Just to add a bit more detail on this, the package named "Thread" provides many commands in multiple namespaces including the global namespace (!). See the complete list at the end of this message. Honestly I'm not a fan of packages that consume more than one toplevel namespace. Both Tcl and Tk are also guilty of this, but I'd really hoped to demand better practices as part of the price of admission to the tcl/pkgs bundle. So to anyone who was wondering, no the thread*.tar.gz distribution does not include "tpool" and "tsv" packages in addition to "Thread" and "Ttrace", though I can see how that confusion might arise. ::thread::create ::thread::send ::thread::broadcast ::thread::exit ::thread::unwind ::thread::id ::thread::names ::thread::exists ::thread::wait ::thread::configure ::thread::errorproc ::thread::preserve ::thread::release ::thread::join ::thread::transfer ::thread::detach ::thread::attach ::thread::mutex ::thread::rwmutex ::thread::cond ::thread::eval ::tpool::create ::tpool::names ::tpool::post ::tpool::wait ::tpool::cancel ::tpool::get ::tpool::preserve ::tpool::release ::tpool::suspend ::tpool::resume ::keylkeys ::keylget ::keyldel ::keylset ::tsv::var ::tsv::object ::tsv::set ::tsv::unset ::tsv::get ::tsv::incr ::tsv::exists ::tsv::append ::tsv::array ::tsv::names ::tsv::pop ::tsv::move ::tsv::lock ::tsv::keylset ::tsv::keylget ::tsv::keyldel ::tsv::keylkeys ::tsv::lpop ::tsv::lpush ::tsv::lappend ::tsv::lreplace ::tsv::linsert ::tsv::llength ::tsv::lindex ::tsv::lrange ::tsv::lsearch ::tsv::lset -- | Don Porter Mathematical and Computational Sciences Division | | don...@ni... Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| |
From: Vasiljevic Z. <zv...@ar...> - 2010-04-01 13:06:48
|
On 01.04.2010, at 14:58, Donald G Porter wrote: > Just to add a bit more detail on this, the package named "Thread" > provides many commands in multiple namespaces including the global > namespace (!). See the complete list at the end of this message. The global key* commands (keyed-lists from TclX) should not be there really. I will see why and will remove those. I recall I backported that to the thread-shared-variables part and thought it would be nice to have them as regular Tcl commands but this may not be generally desirable of course. > > So to anyone who was wondering, no the thread*.tar.gz distribution > does not include "tpool" and "tsv" packages in addition to "Thread" > and "Ttrace", though I can see how that confusion might arise. Hmhm... so (a) package should not create/declare more than one namespace? Where (and why??) is this limitation imposed? Cheers Zoran |