22:46:47ashlnI'd like to read a constant number of bytes from a stream (or until EOF), like the interface provided by read(2). Is the only interface to binary file reading to do so one byte at a time with read-byte?
6:32:08contrapunctusHm...I could use some design suggestions.
6:50:43contrapunctusI'm working on a code browser which displays code as trees, which have directories, files, and top-level Lisp forms as nodes.
6:50:53contrapunctusCurrently, the constructor for file nodes takes a pathname and checks whether the file type is supported, by calling `(compute-applicable-methods #'parse-file (list pathname ... <file extension as a keyword>))` ...but I'm not sure I like this approach.
6:59:34contrapunctusProbably because it would error if there is no applicable method, and I haven't yet figured out how to add a method to `no-applicable-method`...
8:18:41pjba trivial representation is to use the product of powers of prime numbers.
8:19:29pjbpowers of 2 for position in the toplevel list. Powers of 3 for positions in sublists of level 1. Powers of 5 for positions in sublists of level 2, etc.
8:20:04pjbSo 1 is 2^2 (starting from 1), and A is 2^3*3^2