Archive for February, 2007
Small, but pleasant functionality is added to XSieve. Now it’s possible to call arbitrary XPath functions:
(write (x:call "concat" "ab" "cde" "fgh")) (write (x:call "generate-id")) (write (x:call "generate-id" (x:current)))
Some time ago I tried to compile XSieve for the win32 platform. I was partially successfull, I compiled everything except of the XSieve DLL itself. I’m not going to repeat the attempt in the near future, and I have to do something with the notes. The simplest solution is to put the notes to the blog for future reference.
After long break, I returned back to XSieve and found that the new tools doesn’t compile the sources.
I need to generate S-expressions like:
(let ((val "datum")) val)
The actual expressions are more complex, the value “datum” is dynamic, therefore the special Scheme feature “quasiquote” should be used:
The expression “1+2+3” is converted to:
(list-ec (:list e1 (gx:. gx:unit gx-ffi:number gx:fido (gx:unit 1))) (:list e2 (gx:. gx:unit gx-ffi:number gx:fido (list-ec (:list e1 (gx:. gx:unit gx-ffi:number gx:fido (gx:unit 2))) (:list e2 (gx:. gx:unit gx-ffi:number gx:fido (gx:unit 3))) (+ e1 e2)))) (+ e1 e2))
I’ve upgraded wordpress to the version 2.1. It wasn’t very easy because the authors have broken incompatibility with older versions, therefore my tweaked theme stopped working. I hope I repaired everything. Also, I temporary switched off spam protection to see how active are the spammers now.