Skip to content
Tcl Source Code History Of Ticket 672050
Login

History Of Ticket 672050

Artifacts Associated With Ticket 672050

  1. Ticket change [31e44623f2] (rid 93514) by elfring on 2003-01-21 21:10:10:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The programming interface for the thread package consists of 
      several functions that are grouped into a few namespaces. A lot of 
      functions have got a parameter/argument that specifies a 
      subcommand at the first position.
      
      How do you think about the 
      following suggestion?
      I would like to try an interface design like 
      that:
      Examples...
      1. thread::mutex lock 
          instead of
          
      thread::mutex::lock 
      
      2. thread::cond::create
          instead 
      of
          thread::cond create
      
      3. tsv::array::names
          instead 
      of
          tsv::array names
      
      Does the increased use of 
      namespace functions make a valuable difference in speed and 
      maintenance?
      Is it a step nearer to an object oriented TCL class 
      library for thread programming?
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "elfring"
    9. subsystem initialized to: "80. Thread Package"
    10. title initialized to: "function interface design and namespaces"
    11. type initialized to: "RFE"
  2. Ticket change [06e7053c24] (rid 89289) by nobody on 2003-01-22 15:32:30:

    1. icomment:
      Logged In: NO 
      
      I have nothing against that. It will however yield no speed  
      imporvements. Ok, the maintenance might be simpler.   
      The ideal OO-like approach would be:  
        
      set mutex [thread::mutex new]  
      $mutex lock  
        
      But, this would defeat the byte-compiler and impose speed  
      limits. Also, since the "$mutex" command will then be   
      limited to single interpreter, you'd loose the transparency  
      of the item (in this case the mutex) among threads, so it will  
      even more complicate the matter. Therefore, this is the  
      approach I've dropped from further considerations. 
       
      Which leaves us with your proposed change. As I said, I see 
      no real problems in that. 
       
      Zoran 
        
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [2c21d08361] (rid 118847) by dkf on 2003-10-15 22:05:15:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      What about leveraging TIP#112 in Tcl 8.5?
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  4. Ticket change [ca7ec7b0f6] (rid 95357) by elfring on 2003-10-16 15:22:01:

    1. icomment:
      Logged In: YES 
      user_id=572001
      
      TIP #112: Ensembles are Namespaces are Commands
      http://www.tcl.tk/cgi-bin/tct/tip/112.html
      
      This will be an useful interface for the threads library, too.
      
      
    2. login: "elfring"
    3. mimetype: "text/plain"
    4. username: "elfring"