freenode/lisp - IRC Chatlog
Search
3:12:22
loke
pierpa: The spec does not place any restrictions or guarantees on either of those functions.
3:27:54
pierpa
yes, but the WITH-HASH-TABLE-ITERATOR version would be unreasonable if it was not O(1). The HASH-TABLE-COUNT would not be completely crazy if in some circumstances it would not be O(1)
3:28:41
pierpa
for example, in Racket (the equivalent of) HASH-TABLE-COUNT is O(1) only for non-weak tables.
3:37:44
loke
pierpa: I could imagine the case where the second version is also not O(1), although I agree with you that it's less likely.
9:28:05
John[Lisbeth]
Is there a common lisp implementantion of latex so I can point out people should use that instead of latex?
9:31:41
John[Lisbeth]
I couldn't use some domain specific langauge that lets me make pretty pdfs in common lisp?
9:32:35
John[Lisbeth]
yes a lisp typesetting system so I can format pretty characters in pdfs in common lisp
10:57:00
VitoVan
I recently is reading <On Lisp>, I am stuck in chapter 12.4, http://ep.yimg.com/ty/cdn/paulgraham/onlisp.pdf
10:58:02
VitoVan
Which the author is trying to construct a macro _f to make things like this: (_f + x y) the same as (incf x y)
10:58:52
VitoVan
and then have given a wrong example: (defmacro _f (op place &rest args) '(setf ,place (,op ,place ,@args)))
10:59:28
VitoVan
which I can't find anything wrong with this example, and I can't understand why "Unfortunately, we can’t define a correct f with define-modify-macro, because the operator to be applied to the generalized variable is given as an argument."
11:05:38
Grue``
for example Graham offers the example (incf (aref a (incf i))). with the naive implementation i would be incremented twice
11:06:05
VitoVan
Grue``: Yes, I aware the eval twice thing, but it should be *not good* instead of **wrong**
11:14:22
VitoVan
Thank you very much Grue``, and malice and jdz, problem solved, what a magical place~
12:05:54
scymtym
flip214: there is LPARALLEL:PSORT which can sort vectors in parallel (according to the documentation string)
12:10:08
flip214
scymtym: thanks a lot, didn't see that in the documentation at https://lparallel.org/api/
13:56:06
Posterdati
I've got problem to quickload antik on sbcl 1.3.8-26 for x86_64: caught error: illegal function call
14:00:51
jackdaniel
Posterdati: beach asks for a particular code snippet which contains that illegal function call
14:02:52
Posterdati
(eval-when (:compile-toplevel :execute) (asdf:oos 'asdf:load-op :cffi-grovel) (asdf:oos 'asdf:load-op :trivial-features))
14:18:02
scymtym
antik seems to depend on gsll. over the last weeks people have reported problems with gsll caused by changes in the gsl C library that are not (yet) reflected in the gsll ffi bindings. the only suggestion i have seen is downgrading the gsl C library
14:23:43
LiamH
sampiero: OK, well just keep in mind it will not load with GSL 2.x. However, I have in the repo a version that may load.
14:29:02
scymtym
assuming OS-COND to be a function would put things like ((UIOP/OS:OS-WINDOWS-P) "dll") mentioned in the error message in an evaluated position
14:29:59
scymtym
sampiero: not sure, but your asdf may be too old (see http://ircbrowse.net/browse/lisp?q=os-cond).
14:35:35
scymtym
sorry, that macro seems to be provided by the uiop system. what does (asdf:component-version (asdf:find-system :uiop)) report?
14:44:48
devon
Know of a file output stream that automatically takes care of preventing partially written files from appearing under the real file name?
14:46:43
devon
E.g., as Emacs makes foo a placeholder link to nowhere, writes to #foo# and then renames it to the final real foo.
14:49:17
cromachina
http://clhs.lisp.se/Body/f_finish.htm these functions help with flushing streams
14:51:52
scymtym
cffi-toolchain.asd seems to assume that the asdf version is identical to the uiop version
14:55:05
devon
Here I go reinventing this old wheel once again. I should set it to music, _the Lisper's Lament_