Search
Sunday, 10th of December 2017, 4:42:07 UTC
6:09:45
aeth
Is there a way to see if a function with a given name exists?
7:26:21
SaganMan
I read sbcl realesed a new version recently
7:26:27
SaganMan
any major changes?
7:28:42
jackdaniel
important changes are usually mentioned in the announcement
7:29:33
jackdaniel
so you need to type "sbcl.org" and select tab with news
7:29:43
jackdaniel
(in web browser)
10:04:35
Ober
fouric: left handed salut bent at the wrist?
12:56:58
francogrex
http://paste.lisp.org : Due to continued abuse, this service has been disabled
12:57:12
francogrex
so that's it, the end of the pastebin?
12:59:04
jackdaniel
the end of paste.lisp.org, it's not pastebin. there is plenty of other paste services
13:02:51
francogrex
it's sad. But anyway
13:02:58
francogrex
this : https://pastecode.xyz/view/de5c1fad
13:03:31
francogrex
why wouldn't the slot-value show, any syntax mistake I am making?
13:05:07
phoe
francogrex: the slot name could be in a different package. I mean, the symbol.
13:05:41
phoe
Make sure that the symbol you use in the SLOT-VALUE and the symbol used as the slot name are EQ.
13:06:04
francogrex
phoe: ok the package this is probably it yes
13:06:38
phoe
francogrex: https://stackoverflow.com/questions/40742048/is-there-a-way-to-get-the-slots-of-a-class
13:13:16
random-nick
is there a pastebin service which does rainbow parentheses or parentheses highlighting?
13:17:08
jackdaniel
most do. one created by Shinmera has also CL-specific highligting: https://plaster.tymoon.eu/
13:23:05
Shinmera
It doesn't do paren highlighting though.
13:23:17
Shinmera
I should check codemirror if it has a setting for that, actually
13:23:55
Shinmera
I'll see about adding that.
13:31:43
francogrex
pastebin is the end of an era!!! it's yet another setback for common lisp... really makes me sad a little
13:34:36
beach
oleo: I think that was supposed to be funny.
13:37:13
Shinmera
Okey, plaster now does paren matching.
13:37:31
Shinmera
Doesn't do rainbow parens, but I never liked that anyway.
13:46:25
pjb
The big problem with the absence of lisppaste, is that the other don't keep the history. With lisppaste, I could refer to pastes 3 or 5 year old!
13:51:42
oleo
btw could not someone else had maintained it instead ?
13:52:15
oleo
i suppose it requires much space too.....
13:53:09
jackdaniel
oleo: it is gone due to huge volume of spam which couldn't be easily dismissed
13:53:51
jackdaniel
there was a discussion on mailing list about possibilities, nobody stepped in to propose that he can maintain it *and* keep it safe from spam
13:55:55
pjb
Eventually I'll stop using email for spam too… But not right now.
13:56:26
pjb
But there's spam everywhere.
13:56:44
oleo
and sometimes you don't know what is spam and what is not....
16:16:58
waynecolvin
Ahhhh YOUR NAME IS PASCAL! sorry sorry sorry sorry!
16:22:40
waynecolvin
wrong line, pascal joke. i'm just an idiot...
16:23:19
jmercouris
Any idea why my code is not working? https://gist.github.com/0fb1a792795b8ec02e26e0b419e3545c
16:23:28
jmercouris
Is there something with the way I've set up my code?
16:25:27
_death
remove-if is not destructive
16:25:35
Xach
jmercouris: the list you get back doesn't have any document-modes in it, does it?
16:25:36
jmercouris
I keep forgetting that
16:25:46
jmercouris
_death: That is the problem
16:31:06
jmercouris
What happened was I originally mistook NIL as "no matches" for remove-if, rather than the list was now empty
16:34:23
lisp_guest
does using a macro in COND's clauses work?
16:34:45
beach
lisp_guest: You can use a macro in every place that is evaluated normally.
16:34:59
lisp_guest
the key here being "normally" i guess?
16:35:11
Bike
you can't use a macro AS a clause, if that's what you mean.
16:35:12
beach
Drop the "normally" if you like.
16:35:16
lisp_guest
what i'm doing for example is (COND (macro ...) (macro ...))
16:35:29
lisp_guest
i guess COND is taking those forms and treating them as code to evaluate, without expanding them?
16:35:37
Bike
no, it treats them as cond clauses.
16:35:51
lisp_guest
right, then it proceedes to eval the first form, and bla bla
16:35:55
Bike
this is the non-normal evaluation beach alluded to.
16:36:06
lisp_guest
yes, that's what i was thinking of
16:36:36
lisp_guest
does a way around this exist? i'm just curious
16:36:54
Bike
what are you trying to do exactly?
16:37:16
lisp_guest
i knew you were going to ask that :D. i'm doing a simple rot-13 but it's not relevant. i'm just curious whether it's possible
16:37:20
lisp_guest
the problem i'm solving is solved already
16:37:28
Bike
well it depends on what you mean by possible.
16:37:40
Bike
you could have a macro that expands into cond with constructed clauses.
16:37:49
Bike
i don't know whether you think that counts.
16:38:06
Bike
macros expand into code. cond clauses are not code.
16:39:16
beach
Bike: The correct terminology here would be "form", as opposed to "code".
16:40:58
lisp_guest
hm, what about a version of cond that would first macroexpand the forms in its clauses?
16:41:25
Bike
you could do that, but you'd have ambiguous behavior.
16:41:36
Bike
say you have a macro named foo and a variable named foo, what does (mycond (foo ...) ...) do?
Sunday, 10th of December 2017, 16:42:07 UTC