freenode/#lisp - IRC Chatlog
Search
19:08:29
mfiano
Is there a way to reset the reader/printer control variables to the _default_? WITH-STANDARD-IO-SYNTAX seems to define it's own standard behavior, going against the defaults. For example, *print-readably* is defined to have an initial value of NIL, whereas WITH-STANDARD-IO-SYNTAX uses T
19:09:46
mfiano
phoe: I mean for things like *print-readably*, the standard defines it's initial-value to be NIL
19:12:16
phoe
You could try defining your own macro for that - I can't see it around from a very brief glance.
19:14:03
mfiano
Ok. I just spent a while debugging why i could not print CLOS objects, and *print-readably* was bound to T everywhere in a huge project. Turns out, I wrapped another library that calls this one in `with-standard-io-syntax`, in order to ensure things like floats being read correctly...i didn't realize *print-readably* is different than the defaults. I understand why it is though; it's really meant to make
19:22:33
mfiano
It seems the only one that differs from the defaults, aside possibly some implementation-specific ones, _is_ *print-readably*
22:13:24
jmercouris
is there a way to do (loop for item in list collect ...) and have the index of "item"?
22:28:28
pjb
phoe: no, that's the point, there is no "the" index of item! There are several indices of item!
22:28:57
pjb
(loop with list = '(1 2 1 2 3 4 1 2 3 4) for item in list collect (positions item list)) #| --> ((0 2 6) (1 3 7) (0 2 6) (1 3 7) (4 8) (5 9) (0 2 6) (1 3 7) (4 8) (5 9)) |#
2:44:57
vtomole
Good :). I really enjoyed the paper, will have to study the code a bit longer though specifically %apply-nQ-gate
2:46:19
vtomole
From the paper "Since qubits live in a two-dimensional space " should it be "Since a qubit lives in a two-dimensional space"?
2:52:14
vtomole
What is the performance comparison of implementing linear alg operations instead of handing them over to BLAS?
3:47:03
vtomole
stylewarning: Looking for feedback on the new pull request: https://github.com/tarballs-are-good/quantum-interpreter/pull/1/commits