Doing Boring Stuff in APL
summary
Shows how to replace Python utility scripts with Dyalog APL user commands that call the Dyalog HTTP command client and handle CouchDB JSON. Implements single-doc GET by _id, _all_docs scans, and view queries by POSTing a keys array to fetch users grouped by cluster; uses basic HTTP auth from a local creds file. Produces list commands for plans/clusters and a users command that accepts multiple cluster names. Claims working demo and a real-world port that shrinks ~5,000 lines of Python to ~300 lines of APL.
AI-written summary · about
chapters (13)
- 0:00Dealing with data ecosystems
- 3:10Why choose APL?
- 3:54Example application - JSON data from CouchDB
- 7:52Dyalog User Commands
- 11:20HTTP Communication
- 15:50Fetch document by ID
- 23:25Fetching multiple documents
- 28:00All plans command
- 31:35Filtering out secondary indices in the clusters command
- 34:08Question about primary keys
- 38:07Get users grouped by cluster
- 46:50Wrapping up
- 49:20Questions about workflow and data processing
