lisp

Difference between load and include in Scheme R7RS

点点圈 提交于 2020-07-08 21:16:16
问题 In Scheme R7RS there is both a load and include form. Include is described as: Semantics: Both include and include-ci take one or more filenames expressed as string literals, apply an implementation-specific algorithm to find corresponding files, read the contents of the files in the specified order as if by repeated applications of read, and effectively re- place the include or include-ci expression with a begin expression containing what was read from the files. The difference between the

Difference between load and include in Scheme R7RS

心已入冬 提交于 2020-07-08 21:07:11
问题 In Scheme R7RS there is both a load and include form. Include is described as: Semantics: Both include and include-ci take one or more filenames expressed as string literals, apply an implementation-specific algorithm to find corresponding files, read the contents of the files in the specified order as if by repeated applications of read, and effectively re- place the include or include-ci expression with a begin expression containing what was read from the files. The difference between the

Lisp - write to file using low memory footprint

我怕爱的太早我们不能终老 提交于 2020-07-03 09:37:44
问题 I have large hash tables that I am writing to disk as an occasional backup. I am finding that as I map the hash tables and write to a file, the RAM usage skyrockets compared to the size of the hash. I am running lisp on emacs with slime and sbcl 2.0.3.176. System is Ubuntu 19.10 on a dell server. Data is multiple levels of hash tables. The basic structure of it is: customer-ht - hash table of structs called customer, keyed on lists of integers, like (1 2), (1 3) (defstruct customer (var1 0)