freenode/#lisp - IRC Chatlog
Search
19:04:03
learning_
i used a lambda. i didn't know apply could be used like that. (reduce (lambda (a b) (concatenate 'string a b)) args)
19:06:02
pjb
Actually, there's a little problem as I used it: if we pass more than (- call-arguments-limit 2) arguments to !, then it's possible that an implementation break on this apply call.
19:07:50
learning_
but won't the number of args passed to concatenate be limited by the number of args passed to !
19:07:55
pjb
Since we can pass call-arguments-limit arguments to !, and I prefix one argument for concatenate, concatenate may receive (1+ call-arguments-limit) arguments, which would break.
19:09:01
pjb
Happily, call-arguments-limit is at the minimum 50, which is more than enough, unless you get your original argument list from random data (lists).
19:09:42
pjb
(and some implementations don't impose any limit, so you can go as high as half the ram used for stack space).
19:39:39
elr99
Hi guys. I am trying to compile pgloader, i dont have root on the pc so I installed sbcl in a home directory and Ive set the SBCL_HOME directory but when I try to cpmpile I get the error (REQUIRE SB-BSD-SOCKETS NIL) and Im inside the debugger. Using google Ive tracked it down to Slime: https://github.com/slime/slime/issues/162 they mention a fix using " specifying :env in the lisp implementation definition" and a piece of
19:39:39
elr99
code..but where do I input that to be used for my make command inside hte pgloader directory?
19:55:03
elr99
there isnt a quick way to setup slim? if you look at the link it seams like a simple solution..
19:59:41
Bike
also, if you built sbcl yourself, i guess make sure that you do have the sockets contrib.
20:14:34
elr99
Shinmera: um..this is for a production server so i just need it to get pgloader installed for a mysql --> postgres migration
20:22:29
elr99
Shinmera, bike: here is a pastie: https://www.pastiebin.com/5975054cb158b I am on 12.04 which has the pg loader version 2 in repos, but the current
20:26:02
Bike
so do you have the module? i think it should just be in modules/ in the sbcl directory.
20:54:44
_user
helo everyone, i have a case, and I'm using a parameter as one of the cases, setf'ing the parameter to a new value doesn't seem to change the case, here is my code: https://pastebin.com/yFUXM7Sk
20:55:00
_user
I assume this has something to do with case macro expanding out the code or something?
21:01:02
elr99
bike: it worked when setting INSTALL_HOME when compiling slbc and then settinh SLBC_HOME to the lib directory
21:01:57
_user
this code needs to be extremely efficient as it will get called relatively frequently
21:02:37
Bike
if you want it to do a lookup, so that you can change the variable, you need it to actually do that rather than use a constant. and case only does constants.
21:04:16
Bike
of course, if that's the only variable case you could use cond/if for the variable, and case for the constants.
22:18:22
holycow
aha, finally someone found this video: https://www.reddit.com/r/lisp/comments/6p0riq/william_byrd_on_the_most_beautiful_program_ever/
22:47:32
axion
Anyone that uses paredit for CL, could you tell me what the ) key is bound to in a lisp-mode buffer?
23:29:01
edgar-rft
aion: I don't use paredit, but C-h k ) in a Lisp buffer should tell you what the ) key is bound to
23:35:47
axion
thank you pjb. i am trying to figure out if smartparens has something like it, where it condenses stray closing parens if you have whitespace between point
23:48:30
Fare
is this a compliant way to undefined a class? If not, is there one and what is it? (setf (find-class 'my-class) nil)
23:54:20
Bike
"if the new class given to setf is nil, the class association is removed (but the class object itself is not affected)"
0:37:29
Fare
The point of redefining a class is hot upgrade, and during hot upgrade, you want old instances of the old class to keep working
0:48:19
z3t0
Which then prints out the data for that global variable, can i go in and change the variable by literally typing in the output?
0:48:35
z3t0
I thought it might work because doing so changes it from red to green, though it doesnt save
0:57:54
yegortimoshenko
hi, which lisps have a built-in complete set of unix fs functions? (mkdir, symlink, etc.)
1:01:02
yegortimoshenko
actually i'd prefer that the interface is abstract enough that it supports other operating systems as well
1:01:33
Cthulhux
that would still require a basic set of common file system functionalities (e.g. symlinks)
1:08:30
yegortimoshenko
lisp is useful in any setting, whether it's scripting (which is what i'm looking for in this case) or system-agnostic applications. i like interactive development. it just so happens that i prefer common lisp over, say, scheme, where i could have used racket or guile or whatever.
2:08:48
aeth
my personal view on sh vs a scripting language: if it's a few lines in sh, no language probably comes close in conciseness...
5:47:53
jackdaniel
Fare: did you see the PR on asdf repository? about adding init-name buildarg to create-image for ecl
6:26:43
Fare
jackdaniel, I have a weird bug trying to upgrade asdf from your 3.1.8.5 to my 3.3.0 (tentative): the upgrade borks on #:FIND-COMPONENT being undefined (mind the uninterned symbol)
6:27:27
Fare
I don't understand what would unintern FIND-COMPONENT specifically. But the gf is defined in component and the methods in find-component
6:30:06
Fare
oh, I see it's listed as redefined in asdf/upgrade, which causes it to be fmakunbound. But not uninterned.