Skip to content

Comment on Clojure Links To Get You Up To Speedparent

Comments

1. most people don't make significant use out of the basic REPL. They use one integrated in to their editor/IDE. Emacs/Slime is probably the most popular, but I think there are addons for the Java IDEs too.

2. That may depend on what you're scraping. Manipulating semi-structured text data is one of Perl's biggest uses, so it may work a bit better than Clojure for the same purpose. Clojure certainly has decent regex and string capabilities though, so yes, it's a good choice.

3. Yes. There's a very good dataflow library for Common Lisp called Cells. It provides dependent and independent variables that work a lot like spreadsheet cells within a program. There's a partial port to Clojure. Also, Clojure has watchers - functions that can be attached to reference types and run whenever their state changes. Clojure and Common Lisp are quite fast at math, especially with type annotations.

I got a sLIME environment set up and found a screen scraping tutorial. It is a regexp based tutorial which seems very Perlish. I guess I was wondering if there was going to be a magical Lisp pattern matching way of doing this. I'm building an aggregator of content for an industry filled with a bunch of jokers who don't have RSS feeds, clean HTML and are bad at keeping things consistent.

Next up, I'm checking out Cells. (that's for a different project than the scraper)

Thanks!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.