freenode/lisp - IRC Chatlog
Search
7:14:14
rain3
hi is the source for this available anywhere ? https://common-lisp.net/project/erlang-in-lisp/
7:38:37
varjag
is there special wisdom in intercepting socket-errors in postmodern's with-connection instead of letting the application handle it?
9:30:58
dim
hi! how can I find out which of my ASDF dependencies or their dependencies require a given system, here CFFI (or actually abcl-cffi)?
10:19:01
dim
for the very curious: Error while trying to load definition for system jna from pathname jar:file:///usr/local/Cellar/abcl/1.8.0/libexec/abcl-contrib.jar!/mvn/jna.asd:
10:19:11
dim
that's during Retry loading FASL for #<ASDF/LISP-ACTION:CL-SOURCE-FILE "cl-containers/with-utilities" "dev" "utilities-integration">.
10:20:44
dim
(and the previous offender that required CFFI was cl+ssl, which is needed for pgloader by direct dependencies qmynd, drakma, sqlite, mssql, and quri)
10:52:50
nij
I wonder if in guix we can make a software depends on multiple versions of a dependency, and call each function with name and the version they belong to.
11:10:53
dim
Xach: I managed to get a list of systems to avoid in :depends-on (using #-abcl) so that I could load pgloader in there, so that's good
11:11:27
dim
not good enough to load pgloader, though, so, no there yet, and running out of patience and time... gonna play with the kids instead
13:29:26
nij
Hi :) Can I fetch my github cl system from ql:quickload? Or I have to `git clone` it manually to my ~/quicklisp?
13:47:20
phoe
or you could use e.g. (ql:quickload :legit) to write a function that does that for you
14:36:51
jmercouris
nij: or you could add your system to ultra lisp and then add the ultra lisp dist to your QL
15:10:39
jcowan
beach: I worked out an answer to `read` allocating multiple empty strings. Stash the reader macro for " and replace it with one that peeks to see if the next character is also quote. If so, read the quote and return a unique empty string; if not, call the stashed macro. The only thing this breaks is if you try to use eq(l) on an empty string.
16:45:31
dbotton
so let's say I wanted to say "member function" it would give the equivalent clos term
16:46:05
Bike
oh, like for other kinds of jargon. yeah, i don't know anything like that. also i'm not sure there's any real equivalent to member functions?
16:50:14
dbotton
It is easy to look up method or generic function and then learn what that means in CL
16:51:34
dbotton
but if someone was coming from another language could explain the approximate mapping or why things are different
16:52:17
dbotton
I think would be helpful, maybe will try and work on. Would certainly help me be come more specific with my lisp terminology
16:53:18
Bike
let's see, i suppose the main things that trip people up are CLOS, the call by value semantics, and the condition system
16:56:23
dbotton
CL is itself the raw material of computer "language" and that lends itself to a different lingo in many ways
16:56:49
phoe
but, yeah, that is not going to work very well for people who come from C++/Java/whatever single inheritance language there is
16:57:19
phoe
there's CLOS basics that need to be understood before becoming somewhat able with it, and the two CLOS chapters of PCL work decent with that
17:00:44
phoe
"IOlib requires a C library named LibFixPOSIX - https://github.com/sionescu/libfixposix - and its headers in order to compile."
17:00:45
Bike
because i already knew iolib depended on libfixposix, and "lfp" is then an obvious initialism
17:06:23
nij
Unable to load foreign library (LIBFIXPOSIX). Error opening shared object "libfixposix.so": libfixposix.so: cannot open shared object file: No such file or directory.
17:08:01
Bike
so i've heard. but what i mean is that it's the normal posix tools that are failing to work, rather than anything in lisp.
17:08:56
Bike
https://common-lisp.net/project/cffi/manual/cffi-manual.html#g_t_002aforeign_002dlibrary_002ddirectories_002a cffi lets you manually define where libraries are
17:10:12
nij
Yeah.. it's time for me to face this thread and follow it - and hopefully it will fix the problem - https://www.mail-archive.com/bug-guix@gnu.org/msg16190.html
17:10:37
nij
I just want to make sure that it's CFFI's problem before it - cuz in the error message there's no cffi.
18:21:27
jasom
does SBCL have operations for efficiently calculating leading zeros or leading ones of a machine word?
18:27:16
jasom
(integer-length most-positive-fixnum) => 62, so given that there are negative fixnums, looks like 63
18:29:21
jasom
1 bit tag, 63 bits encode the number in twos complement; (integer-length #xff) => 8, but clearly if you can go up to 255 with signed values it's 9 bits twos complement
18:29:24
flip214
phoe: no, you were right first time... 1 tag, 1 sign, 62 significant for both positive and negative
18:30:26
flip214
the ol' compression trick - just remember where the 1 bits are, the 0 bits take care of themselves. applied recursively you end up with "1", which encompasses every possible meaning at once!
19:04:09
Shinmera
Heh, *exaggerated smug face* check this out: UAX-9 Total: 1'815'582 Passed: 1'815'582 (100%) Failed: 0 ( 0%)