Hi Daniel,

D'oh! Thanks for pointing out the 'blog post not published' thing - I 
feel like a right idiot now!

I found a copy of your csv parser - a link is in the (now published) 
blog post[1]. Your parser is much more elegant than mine but as I 
mention in the post I was unable to get it to go very fast, I think 
because I couldn't get state-parser to compile; Is this something I'm 
doing wrong?

Actually while I'm here, another small question: I've been using emacs 
for my factor coding and printing to stdout to aid with debugging (e.g. 
using '.s' etc). However when doing the csv parser most of the code had 
stdio re-mapped so I couldn't print things. I ended up writing debug 
statements to a file - is there a better way?

Thanks again,

Phil

[1] 
http://www.phildawes.net/blog/2007/10/02/baby-steps-with-factor-a-csvparser/

Daniel Ehrenberg wrote:
> Phil, I think you forgot to post the blog entry. Maybe it's saved as a
> draft, and the way you have things set up, that gets displayed when
> you're logged in. The post is not displayed.
> 
> Hmm, I definitely did write a csv parser, and it definitely was in the
> factor distribution before, but I don't see it in .90... weird. (I
> also had a CSV writer, which is useful with a reader.) Anyway, your
> code looks really good for the first thing you've written. Keep at it!
> Why not try writing a CSV printer? And possibly allow for
> tab-delimited things, something I never got around to. You could store
> the delimiter in a dynamically scoped variable.
> 
> Daniel Ehrenberg
> 
> On 10/3/07, Phil Dawes <[EMAIL PROTECTED]> wrote:
>> Hi Slava,
>>
>> Slava Pestov wrote:
>>> Hi,
>>>
>>> Congratulations on your CSV parser. Have you seen extra/csv/, another
>>> CSV parser written by Dan Ehrenberg?
>> AFAICS it's not included with the factor distribution anymore (not in
>> 0.90 or in the git repository), but I did find a copy on the internet.
>> Unfortunately I couldn't get it to parse very fast on my laptop (1M file
>> took ~5 seconds), I think mainly because factor wasn't able to compile
>> the critical sections in the state-parser module.
>>
>>> Also I get a 404 on that link...
>>>
>> That's odd; maybe the email client is cropping it?
>>
>> http://phildawes.net/blog/
>> http://phildawes.net/2007/factor-csv/csvparser-0.1.tgz
>>
>> Thanks,
>>
>> Phil
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Factor-talk mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to