Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Feb 10, 2014

  1. Russ Tyndall

    downcasing all iterate related symbols to hopefully avoid Allegro mod…

    …ern mode woes re AccelerationNet/cl-csv#16
    authored February 10, 2014

Feb 04, 2014

  1. Russ Tyndall

    simplified read-until stuff so there was less index passing and flags

    authored February 04, 2014
  2. Russ Tyndall

    think I fixed different row separator characters for read-csv-row

    authored February 04, 2014

Feb 03, 2014

  1. Russ Tyndall

    remove more fast-read-into-buffer-until tests

    authored February 03, 2014
  2. Russ Tyndall

    added missing line-endings,csv tests file

    authored February 03, 2014
  3. Russ Tyndall

    Use read-line if we can, otherwise use read-into-buffer-until

     * Handle newlines that span buffers
     * removed sbcl specific fast-read-until (too complex and used private
       stuff)
    authored February 03, 2014

Jan 31, 2014

  1. Russ Tyndall

    merged master changes

    authored January 31, 2014

Jan 29, 2014

  1. Russ Tyndall

    Better handling of early EOF signals

     * dont handle it if the parser has not started (eg: EOF on first read)
     * if its a parse error signal such correctly with a finish-item restart
    
    github issue: Fix #14
    authored January 29, 2014
  2. Russ Tyndall

    type optimizations

    authored January 29, 2014

Jan 16, 2014

  1. Russ Tyndall

    added some declarations that bring fast-read-into-buffer-until inline

    with sbcls own read-line function
    
    re #13
    re Programming:#310
    authored January 16, 2014
  2. Russ Tyndall

    tried copying SBCLs "fast" implentation of readline (which is a branch

    inside of READLINE)
    
    This seems to be using rewindable streams and buffers to make readline
    faster than read until, I was hoping that by using this implementation
    I could see the same performance, but for whatever reason this seems
    twice as slow :/
    
    re #13
    
    Programming:#310 (1.25)
    authored January 16, 2014
  3. Russ Tyndall

    print statistics instead of returning them (where they are invisible)

    authored January 16, 2014
  4. Russ Tyndall

    optimized read-into-buffer-until, added test to check its speed

    against: read-line & read-sequence
    
    Its currently twice as slow as read-line and 3 times slower than
    read-sequence.
    
    re #13
    
    Time on yesterdays commit didnt go through because I fumbled the
    ticket number
    re Programming:#310 (4)
    authored January 16, 2014

Jan 15, 2014

  1. Russ Tyndall

    tried a read-into-buffer-until parsing strategy, but it seems slower …

    …than read-until :/
    
    re #13
    re Programming:#1201 (3)
    authored January 15, 2014
  2. Russ Tyndall

    Replaced read-line with a read-until implementation to allow arbitrary

    row-separators
    
    Thanks Dimitri Fontaine, dimitri@github
    authored January 15, 2014

Jan 07, 2014

  1. Russ Tyndall

    added some signals / retarts

    authored January 07, 2014

Jan 06, 2014

  1. Russ Tyndall

    fixed test suite after fixing lisp-unit2

    authored January 06, 2014
  2. Russ Tyndall

    further work on whitespace trimming and nilling to allow maximal

    control
    
    AcclerationNet/cl-csv#12
    authored January 06, 2014

Jan 01, 2014

  1. Russ Tyndall

    Added :empty-string-is-nil / *empty-string-is-nil* to control whether

    or not empty strings are returned as empty string or nil
    
    This was suggested by #lisp/dim (thanks dimitri)
    
    I am not sure why this couldnt be done as a pass after the fact, but
    its pretty unobtrusive, so I added it.
    
    fix AcclerationNet/cl-csv#12
    authored January 01, 2014
  2. Russ Tyndall

    csv-parse-error is now an error, updated run-tests re ADWolf:#1201

    authored January 01, 2014

Dec 27, 2013

  1. Russ Tyndall

    Made speed tests their own lisp-unit2 suite

    authored December 27, 2013
  2. Russ Tyndall

    switched tests to lisp-unit2

    authored December 27, 2013

Mar 19, 2013

  1. Russ Tyndall

    fixing bugs with sampling code and adding tests re github issue #11

    authored March 19, 2013

Mar 18, 2013

  1. Russ Tyndall

    added run-all-tests function

    authored March 18, 2013
  2. Russ Tyndall

    make sampling iterate clause allocate a variable if needed

    authored March 18, 2013
  3. Russ Tyndall

    made some defmethods, defgenerics to avoid style warnings

    authored March 18, 2013

Jan 18, 2013

  1. fix type error when completing an import

    authored January 18, 2013
  2. support exporting lists of a single item as a one column CSV

    authored January 18, 2013

Jan 07, 2013

  1. bugfix with the `sampling` iterate clause

    Now works in more complicated iterate forms where the sampling clause
    is present but not executed.
    
    refs Programming:#310
    authored January 07, 2013

Jan 03, 2013

  1. use iterate clauses for internal csv reading

    refs Programming:#310 (.5)
    authored January 03, 2013
  2. don't need to export the iterate symbols

    authored January 03, 2013
  3. moved iterate clauses around, added iterate clause for sampling

    The `sampling` clause uses reservoir sampling to randomly generate a
    subset of the original series, returns a list.
    
    Examples:
    {{{#!lisp
    (iter (for row in-csv "1,2,3
    4,5,6
    7,8,9")
      (sampling row size 2))
    => (("1" "2" "3") ("7" "8" "9"))
    (iter (for row in-csv "1,2,3
    4,5,6
    7,8,9")
      (sampling row into sample size 2)
      (finally (break "got the sample ~a" sample)))
    }}}
    
    refs Programming:#310(.5)
    authored January 03, 2013
  4. exporting in-csv

    authored January 03, 2013
  5. improved docs. Refs Programming:#301 (.5)

    authored January 03, 2013
  6. add an in-csv iterate driver clause for reading CSV contents

    Can now read a CSV using a syntax like:
    
    {{{#!lisp
    
    (iter
      (for (col1 col2 col3) in-csv #P"file.csv"
           ;; optional settings to configure the read
           SKIPPING-HEADER T SEPARATOR #\| QUOTE #\" ESCAPED-QUOTE "\"\"")
      (break "look at my columns" col1 col2 col3))
    
    }}}
    
    Had to reproduce the logic from `with-csv-input-stream` inside the
    iterate clause to get the expansion to work right, using `iterate`'s
    `finally-protected` clause to be sure we clean up after ourselves.
    
    Might be able to simplify a lot of this lib by using that as the main
    driver.
    
    refs Programming:#310 (1.5)
    authored January 03, 2013
Something went wrong with that request. Please try again.