Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ff5c5c5746d85c7e092fcb02160b472dd0621ae0
Ticket: 1052584fffffffffffffffffffffffffffffffff
TIP#225: O(1) space [range] command.
User & Date: ferrieux on 2008-07-30 17:16:20
Changes

  1. icomment:
    Logged In: YES 
    user_id=496139
    Originator: NO
    
    Hey thanks Miguel for assigning this to me :-)
    A nearly 4-year-old TIP... Salvatore, and Miguel are you really still backing it ?
    The reason I'm asking this, is that:
    (1) All performance measurements should at least be updated to current Tcl
    (2) The List object type is so ubiquitous in the core that any extension of it should be carefully weighed against the increased complexity of tidying up its API in the future. I'm making this remark in the light of my recent attempt at Mutability and also my Cons proposal.
    (3) What exactly is the aim: just beat [for] by 30%, or open the way to "lazy lists", or generators seamlessly integrated with lists ? In other words, instead of hard-wiring just arithmetic series, shouldn't we rather work a little bit more to make Tcl_ListObjType polymorphic once for all ? Such a generic [lindex/lllength] hook in the core would instantly bring [range] and [cons] as extensions...
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"