freenode/#lisp - IRC Chatlog
Search
17:21:09
asarch
“—Dad, why my sister's name is Violet? —Because your mom is a designer and she used the name of the first color she saw. —Thank you dad! —You're welcome Asdf”
17:50:39
moldybits
(let ((s (make-array 0 :element-type 'character :fill-pointer 0))) (format s "hello") (format s ", world!") s) => "hello, world!"
18:11:08
pjb
asarch: unless you want to use a pre-allocated buffer. (let ((buffer (make-array 80 :element-type 'character :fill-pointer 0 :adjustable t))) (format buffer "Hello from ~A~%" 'channel) buffer) #| --> "Hello from channel ; " |#
18:12:46
pjb
Hey! My output processing splits the result on newlines and adds semicolons as if it was multiple values…
18:13:42
pjb
(let ((buffer (make-array 3 :element-type 'character :fill-pointer 0 :adjustable t))) (format buffer "Hello from ~A~%" 'channel) buffer) #| --> "Hello from channel ; " |#
18:13:56
pjb
(let ((buffer (make-array 3 :element-type 'character :fill-pointer 0 :adjustable nil))) (format buffer "Hello from ~A~%" 'channel) buffer) #| ERROR: "Hel" is not an adjustable array. |#
18:15:47
moldybits
"If adjustable is non-nil, the array is expressly adjustable (and so actually adjustable); otherwise, the array is not expressly adjustable (and it is implementation-dependent whether the array is actually adjustable)."
19:54:29
Xach
ACTION has his new quicklisp build server booted, installed with debian 9, and ready to configure
20:08:10
mgsk
Any idea why unicly doesn't support ccl? https://common-lisp.net/project/cl-test-grid/library/unicly.html
20:59:13
Xach
Here is a fun question prompted by https://github.com/quicklisp/quicklisp-client/pull/186 - what standard special variable settings would break what packages if they're something other than the default? the PR refers to *print-case*. *read-base* is too obvious. what are some other low-hanging breakages?
21:05:27
Lycurgus
no, it doesn't seem like a useful query to me, every system does it's own thing with *features*
21:08:56
MichaelRaskin
They say that being able to reset easily increases the fun of breaking things
21:09:44
MichaelRaskin
Although judging from A/G/M for some people breaking others' stuff that is hard to reset to a working state is fun…
21:15:15
MichaelRaskin
Well, by the time Google did _pointlessl_ evil things (as opposed to selfish), they had dropped the motto
21:26:13
mgsk
ccl is giving the error `> Error: #.(NAMED-OPERATOR #<error printing NAMED-OPERATOR #x3020067E8E8D> has no slot named #:%0.` -- which makes me think that cl-adt and `#.(...)` aren't playing nicely together.
21:27:15
mgsk
This is where the error is being raised https://github.com/rigetti/quilc/blob/master/src/compilers/state-prep.lisp#L14
22:37:43
no-defun-allowed
I'm not sure how many mutations you have to get from there to writing in your returns (which I'm pretty sure are wrong, RETURN returns from the block named NIL) and stating every case without any logic.
0:12:19
aeth
Does Common Lisp have an is-windows package yet? https://www.reddit.com/r/programming/comments/c0zwxb/one_liner_npm_package_iswindows_has_25_million/
0:21:14
aeth
I mean, at least CL has the legitimate need for something like that. It's portability across implementations. It's just that it's done in trivial-features and not 10+ libraries each of one line per implementation
0:22:47
aeth
apparently process.platform === 'win32' is what it does. https://github.com/jonschlinkert/is-windows/blob/4dcfff4ed9e36ad761a1a24d3899c832382d7254/index.js#L25
0:24:39
aeth
well, trivial-features because e.g. some use :win32 and some use :windows https://github.com/trivial-features/trivial-features/
0:24:58
aeth
I'm not sure why trivial-features decided to make them all standardize on :windows, not :win32, though
3:42:31
asarch
In HTML you could write: <meta charset="utf-8">, in net.html.generator:html you could: (:meta ...), however, how could you add the "chartset=utf-8" attribute to the tag?
4:02:30
no-defun-allowed
Does ql:register-local-projects not recurse into directories to find systems for anyone else on CCL?
4:28:13
PuercoPop
asarch: In spinneret it would be (:meta :charset "utf-8" ...). I imagine it would be the same in htmlgen
4:29:41
PuercoPop
the documentation of htmlgen says the attributes can be symbols or strings although they encourage keywords since "that looks more lisp like"
4:37:11
asarch
(net.html.generator:html (:meta (:body (:p "Hello world!")))) -> <meta><body><p>Hello world!</p></body>