FORMAT in Common Lisp writes to a DESTINATION
Most uses of FORMAT either supply a stream or NIL as the destination argument. However, FORMAT can also take a string with a fill-pointer …
Continue readingMost uses of FORMAT either supply a stream or NIL as the destination argument. However, FORMAT can also take a string with a fill-pointer …
Continue readingWhile implementing a version of change-class specializing on a metaclass as mentioned in the previous post, I noted that the resultant instance (unless change-class got called with initargs) had all slot values as nil or unbound. This puzzled me…
Continue readingYesterday, while working on a private project – let’s call it BMCG – I did essentially the same blunder twice. The work on BMCG was MOP-focused. The first blunder occurred when I was implementing a method on change-class…
Initial positions can have significant effect on the outcome of a local search procedure, since you risk arriving at a local optimum. As an example, consider this quine:
Continue reading
Partial function application is the fancy term for fixing some of the arguments to a function, to obtain a lower-arity function. And I have had case to use it at work over the past few weeks. In particular, I have wanted to map/filter over a list – but with functions that take more than one variable, while I have only had one list of interest.
Continue reading