Simon Willison’s Weblog

Subscribe

Friday, 6th April 2018

Parsing CSV using ANTLR and Python 3. I’ve been trying to figure out how to use ANTLR grammars from Python—this is the first example I’ve found that really clicked for me.

# 2:33 pm / antlr, csv, parsing, python

Typesense (via) A new (to me) open source search engine, with a focus on being “typo-tolerant” and offering great, fast autocomplete—incredibly important now that most searches take place using a mobile phone keyboard. Similar to Elasticsearch or Solr in that it runs as an HTTP server that you serve JSON via POST and GET—and it offers read-only replicas for scaling and high availability. And since it’s 2018, if you have Docker running (I use Docker for Mac) you can start up a test instance with a one-line shell command.

# 5:07 pm / autocomplete, open-source, search

2018 » April

MTWTFSS
      1
2345678
9101112131415
16171819202122
23242526272829
30