Search
Friday, 1st of March 2019, 3:39:31 UTC
3:43:50
verisimilitude
Yes, it's just one-dimensional, aeth.
4:04:00
beach
Good morning everyone!
5:07:28
aeth
verisimilitude: Yes, so I think an extension of that would have worked well for arrays
5:09:37
aeth
for 2D (probably the most common after 1D), just selecting a row and a start and an end works for most cases
5:14:37
aeth
or more generally maybe lists for start/end, but that could cons
6:43:18
karlosz
its wrong to assume that array elements are initialized to 0 without specfiying initial element or initial contents right?
6:45:39
specbot
http://www.lispworks.com/reference/HyperSpec/Body/f_mk_ar.htm
6:45:41
beach
"If initial-element is not supplied, the consequences of later reading an uninitialized element of new-array are undefined unless either initial-contents is supplied or displaced-to is non-nil."
6:46:12
pillton
ACTION apologises to beach.
6:46:22
karlosz
right, i was beginning to self doubt myself because the sbcl internals make that assumption somewhere in make-hash-table
6:47:39
pillton
I was about to paste that.
6:48:40
karlosz
er, i just meant in the implementation of hash tables for sbcl
6:49:04
karlosz
an array is created but implicitly assumed to be initialized to zero which was causing problems for me
6:49:21
pillton
Your question pertained to make-array, not make-hash-table.
6:50:39
beach
karlosz: The implementation can obviously rely on its own default.
6:52:42
karlosz
that's true... well, that complicates things a little
7:05:00
verisimilitude
It's just poor practice to do so, yes.
8:12:32
no-defun-allowed
Morning splittist
12:20:26
Lord_of_Life_
** NICK Lord_of_Life
15:27:33
jmercouris
how can I set the place that CFFI looks for things
15:27:38
jmercouris
I get a 0: (CFFI::FL-ERROR "Unable to load any of the alternatives:~% ~S" ("libmysqlclient.20.dylib" "libmysqlclient.dylib"))
15:27:50
jmercouris
however, /usr/local/lib does in fact contain a link to a libmysqlclient.dylib
15:28:03
Bike
i believe it does whatever the implementation does, and the implementation probably defers to the operating system
15:28:07
Bike
let me see if i can find the manual page
15:28:17
jmercouris
for SBCL specifically I looked, but the sourceforge page is down...
15:28:33
Bike
https://common-lisp.net/project/cffi/manual/html_node/_002aforeign_002dlibrary_002ddirectories_002a.html
15:28:34
Bike
"You should not have to use this variable."
15:29:27
jmercouris
it just expands into a set of functions, not strings
15:29:42
jmercouris
however if I run one of those functions
15:29:48
jmercouris
in this case: (CFFI::DARWIN-FALLBACK-LIBRARY-PATH)
15:29:54
jmercouris
I get: (#P"/Users/jmercouris/lib/" #P"/usr/local/lib/" #P"/usr/lib/")
15:30:06
jmercouris
and YET! it claims unable to find libmysqlclient.dylib
15:30:48
jmercouris
$ pwd /usr/local/lib; ls libmysqlclient.dylib; libmysqlclient.dylib
15:31:08
jmercouris
I'm really out of ideas here
15:32:19
Bike
i dunno how to help, sorry.
15:32:36
jmercouris
I now have a different error
15:32:39
jmercouris
so it seems I fixed that
15:32:52
jmercouris
had to make the symlink and restart my inferior lisp
15:33:39
rpg
I have been having trouble with slime-selector recently -- none of the characters I type as selections matches against slime-selector-methods. E.g.: "No method for character: ?\R" -- any idea why this would be happening? I'm not sure what is going on, but it seems like my selector characters are being UPCASED, then matched against slime-selector-methods. Any idea what could be doing this upcasing?
Friday, 1st of March 2019, 15:39:31 UTC