Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hi! I'm struggling to lean peg in guile - care to share csv-parsing code please?


Sure. Ill put it online whenever I have access to my computer next. Are you in #guile on freenode? Ivan ping you there when it's up.

It is slow as molasses though. A 5mb CSV file takes roughly 12s on 2.2. A properly implemented streaming parser should be several orders of magnitude faster. I want to see, just for shits and giggles if it is possible to beat pythons CSV parser with a pure guile module. I think it is. With guile 2.9 it should be a walk in the park.


Sorry for delay - will raise hand on #guile when online next


I have a CSV parser that was originally portable R5RS+SRFI, and probably still is given minor editing. I don't know how the performance compares. (Paying work has had me focused on Racket, so I stopped doing portable packagings, but I might be going back to releasing portable packagings in R7RS.) https://www.neilvandyke.org/racket/csv-reading/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: