00:01
bpanthi977 has quit [Remote host closed the connection]
00:01
bpanthi977 has joined #commonlisp
00:07
chomwitt has quit [Ping timeout: 276 seconds]
00:07
usagi_mimi has quit [Quit: WeeChat 4.5.2]
00:13
usagi_mimi has joined #commonlisp
00:16
ixelp has quit [Ping timeout: 244 seconds]
00:23
ixelp has joined #commonlisp
00:24
shawnw has joined #commonlisp
00:30
ixelp has quit [Ping timeout: 252 seconds]
00:41
surabax has quit [Quit: Leaving]
00:46
markb1 has quit [Ping timeout: 248 seconds]
00:46
ixelp has joined #commonlisp
00:47
X-Scale has quit [Ping timeout: 272 seconds]
00:58
shawnw has quit [Ping timeout: 252 seconds]
00:59
markb1 has joined #commonlisp
01:01
JuanDaugherty is now known as ColinRobinson
01:05
ixelp has quit [Ping timeout: 252 seconds]
01:05
lutherann has joined #commonlisp
01:22
ixelp has joined #commonlisp
01:26
ixelp has quit [Ping timeout: 268 seconds]
01:48
bpanthi977 has quit [Ping timeout: 260 seconds]
01:50
kevingal has quit [Remote host closed the connection]
01:52
aeth_ has joined #commonlisp
01:52
bpanthi977 has joined #commonlisp
01:53
aeth has quit [Quit: ...]
01:53
aeth has joined #commonlisp
01:58
aeth_ has quit [Quit: ...]
02:01
markb1 has quit [Ping timeout: 244 seconds]
02:12
markb1 has joined #commonlisp
02:21
ixelp has joined #commonlisp
02:29
markb1 has quit [Ping timeout: 246 seconds]
02:39
random-nick has quit [Ping timeout: 252 seconds]
02:42
markb1 has joined #commonlisp
02:44
josrr has quit [Ping timeout: 246 seconds]
03:02
dinomug has joined #commonlisp
03:08
shawnw has joined #commonlisp
03:18
markb1 has quit [Ping timeout: 244 seconds]
03:24
decweb has quit [Quit: Konversation terminated!]
03:26
jonatack has joined #commonlisp
03:32
markb1 has joined #commonlisp
03:41
stanrifkin_ has joined #commonlisp
03:44
stanrifkin has quit [Ping timeout: 252 seconds]
03:46
markb1 has quit [Ping timeout: 276 seconds]
03:58
markb1 has joined #commonlisp
04:04
dinomug has quit [Ping timeout: 252 seconds]
04:14
surabax has joined #commonlisp
04:29
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
04:47
markb1 has quit [Ping timeout: 245 seconds]
04:54
surabax has quit [Quit: Leaving]
04:59
markb1 has joined #commonlisp
05:09
markb1 has quit [Ping timeout: 248 seconds]
05:22
markb1 has joined #commonlisp
05:40
thuna` has quit [Ping timeout: 244 seconds]
05:43
khinsen has joined #commonlisp
06:04
Ruby has joined #commonlisp
06:04
lutherann has quit [Quit: WeeChat 4.4.3]
06:05
mason has quit [Ping timeout: 260 seconds]
06:07
mason has joined #commonlisp
06:07
Guest47 has joined #commonlisp
06:09
chomwitt has joined #commonlisp
06:12
edgar-rft` has joined #commonlisp
06:15
chomwitt has quit [Ping timeout: 244 seconds]
06:16
edgar-rft has quit [Ping timeout: 260 seconds]
06:16
lutherann has joined #commonlisp
06:23
shka has joined #commonlisp
06:28
pve has joined #commonlisp
06:37
markb1 has quit [Ping timeout: 268 seconds]
06:49
markb1 has joined #commonlisp
06:56
istewart has quit [Quit: Konversation terminated!]
06:58
bpanthi977 has quit [Ping timeout: 268 seconds]
06:59
bpanthi977 has joined #commonlisp
07:02
Pixel_Outlaw has quit [Quit: Leaving]
07:02
cmack` has joined #commonlisp
07:04
cmack has quit [Ping timeout: 252 seconds]
07:12
mjoerg has joined #commonlisp
07:14
mjoerg has quit [Client Quit]
07:16
mgl has joined #commonlisp
07:17
Lord_of_Life has quit [Ping timeout: 252 seconds]
07:18
Lord_of_Life has joined #commonlisp
07:29
mgl has quit [Ping timeout: 252 seconds]
07:50
attila_lendvai has joined #commonlisp
08:01
bjorkintosh has quit [Remote host closed the connection]
08:01
bjorkintosh has joined #commonlisp
08:03
khinsen has left #commonlisp [#commonlisp]
08:16
ecraven- has joined #commonlisp
08:17
ecraven- has quit [Remote host closed the connection]
08:19
ecraven- has joined #commonlisp
08:24
mwnaylor has quit [Ping timeout: 246 seconds]
08:32
ecraven- has quit [Quit: quit]
08:38
veqq has quit [Ping timeout: 248 seconds]
08:44
ecraven- has joined #commonlisp
08:45
X-Scale has joined #commonlisp
08:45
ecraven- has quit [Remote host closed the connection]
08:53
svm has joined #commonlisp
08:55
msv has quit [Ping timeout: 268 seconds]
09:07
bpanthi977 has quit [Ping timeout: 268 seconds]
09:12
ecraven has quit [Quit: quit]
09:21
ecraven has joined #commonlisp
09:30
ecraven has quit [Quit: quit]
09:31
ecraven has joined #commonlisp
09:34
ecraven has quit [Remote host closed the connection]
09:36
ecraven has joined #commonlisp
09:44
attila_lendvai has quit [Ping timeout: 252 seconds]
09:53
attila_lendvai has joined #commonlisp
09:55
TMA has quit [Ping timeout: 252 seconds]
10:29
random-nick has joined #commonlisp
10:47
mgl has joined #commonlisp
10:52
markb1 has quit [Ping timeout: 245 seconds]
11:04
markb1 has joined #commonlisp
11:11
GalaxyNova has quit [Ping timeout: 276 seconds]
11:22
Equill has joined #commonlisp
11:24
triffid has quit [Ping timeout: 264 seconds]
11:26
decweb has joined #commonlisp
11:26
mgl has quit [Ping timeout: 252 seconds]
11:28
svm is now known as msv
11:30
mosin has joined #commonlisp
11:31
zxcvz has joined #commonlisp
11:31
zxcvz has quit [Client Quit]
11:33
McParen has joined #commonlisp
11:35
cage has joined #commonlisp
11:36
mgl has joined #commonlisp
11:36
triffid has joined #commonlisp
11:40
mgl has quit [Ping timeout: 245 seconds]
12:01
markb1 has quit [Ping timeout: 252 seconds]
12:03
markb1 has joined #commonlisp
12:03
ixelp has quit [Ping timeout: 252 seconds]
12:03
shawnw has quit [Ping timeout: 268 seconds]
12:05
bpanthi977 has joined #commonlisp
12:05
McParen has left #commonlisp [#commonlisp]
12:06
ixelp has joined #commonlisp
12:10
bpanthi977 has quit [Ping timeout: 276 seconds]
12:13
mosin has quit [Remote host closed the connection]
12:28
vardhan__ has joined #commonlisp
12:40
kevingal has joined #commonlisp
12:53
mooseball has joined #commonlisp
12:53
TMA has joined #commonlisp
13:01
vardhan__ has quit [Quit: Leaving]
13:02
markb1 has quit [Ping timeout: 268 seconds]
13:15
markb1 has joined #commonlisp
13:16
shawnw has joined #commonlisp
13:18
Guest5501 has joined #commonlisp
13:28
mishoo has joined #commonlisp
13:29
chomwitt has joined #commonlisp
13:36
Guest47_ has joined #commonlisp
13:42
apac has joined #commonlisp
13:51
edline has joined #commonlisp
14:10
chomwitt has quit [Ping timeout: 272 seconds]
14:15
<
edline >
Is (string-downcase 'foo) portable?
14:15
<
beach >
::clhs string-downcase
14:15
<
ixelp >
CLHS: Function STRING-UPCASE, STRING-DOWNCASE...
14:16
<
ixelp >
CLHS: Function STRING-UPCASE, STRING-DOWNCASE...
14:16
<
beach >
As you can see, the argument is a "string designator" and a symbols is a valid string designator.
14:16
<
edline >
what does this part in the documentation mean: "the string designator must be a string"?
14:16
<
beach >
No, it says that it has to be a string designator.
14:17
<
edline >
isn't it making the type more specific. like the type must be a string designator which must also be a string?
14:17
<
beach >
A string is a string designator, but so is a symbol or a character. But those two last ones are not allowed when the function modifies the argument.
14:17
<
edline >
oh, sorry, totally misunderstood that
14:17
<
edline >
"For nstring-upcase, nstring-downcase, and nstring-capitalize, the string designator must be a string." - this is the full sentence, so the "string" restriction applies to those 3 functions only.
14:17
<
edline >
thanks beach. this makes sense now
14:19
shawnw has quit [Ping timeout: 252 seconds]
14:25
akoana has joined #commonlisp
14:31
apac has quit [Ping timeout: 244 seconds]
14:31
apa_c has joined #commonlisp
14:34
smlckz- has joined #commonlisp
14:35
smlckz- has quit [Changing host]
14:35
smlckz- has joined #commonlisp
14:59
bpanthi977 has joined #commonlisp
15:05
jonatack has quit [Ping timeout: 265 seconds]
15:12
yitzi has joined #commonlisp
15:19
bpanthi977 has quit [Ping timeout: 248 seconds]
15:23
veqq has joined #commonlisp
15:25
Guest47 has joined #commonlisp
15:32
edline has quit [Quit: Client closed]
15:35
akoana has quit [Quit: leaving]
15:36
akoana has joined #commonlisp
15:37
akoana has quit [Client Quit]
15:37
apa_c has quit [Ping timeout: 252 seconds]
15:46
spdegabrielle has joined #commonlisp
16:00
surabax has joined #commonlisp
16:00
surabax has quit [Changing host]
16:00
surabax has joined #commonlisp
16:15
apa_c has joined #commonlisp
16:20
X-Scale has quit [Ping timeout: 272 seconds]
16:22
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
16:23
X-Scale has joined #commonlisp
16:24
khinsen has joined #commonlisp
16:27
Guest47 has joined #commonlisp
16:28
mathrick has quit [Ping timeout: 260 seconds]
16:33
mi6x3m has joined #commonlisp
16:33
<
mi6x3m >
hey, can someone help me figure out why CFFI is suddenly complaining about cffi/libffi/libffi-types__grovel.c:7:10: fatal error: ffi.h: No such file or directory
16:34
chomwitt has joined #commonlisp
16:36
<
mi6x3m >
nvm libffi was missing
16:41
<
skeemer >
why some functions finish with -p when they return boolean and other just with p? (characterp #\x)
16:41
<
skeemer >
(alpha-char-p #\x)
16:41
<
skeemer >
(alphanumericp #\x)
16:41
<
skeemer >
(digit-char-p #\7)
16:41
<
skeemer >
(lower-case-p #\x)
16:41
<
skeemer >
(upper-case-p #\X)
16:42
<
skeemer >
or stringp
16:42
<
skeemer >
also would that be okay to name predicate functions with a "?" at the end as it happens in scheme?
16:43
<
skeemer >
also why is it logior and not logor?
16:43
<
smlckz- >
p means predicate. The convention is to append p for single word name, and -p for hyphen seperated multiple word name.
16:44
<
ixelp >
6. Predicates
16:44
<
smlckz- >
i for inclusive? (in contrast to exclusive or..)
16:44
<
yitzi >
skeemer: The norm is "p" in CL, not ?
16:45
<
gilberth >
Yes. i is for inclusive.
16:45
<
skeemer >
yaha ok now i get it
16:46
khinsen has left #commonlisp [#commonlisp]
16:46
<
skeemer >
also how do i perform the equivalent of (take '(1 2 3 4) 2) ?
16:47
mi6x3m has quit [Remote host closed the connection]
16:47
<
gilberth >
What does it do?
16:49
<
skeemer >
(take '(1 2 3 4 5) 2) ;; '(1 2)
16:49
<
skeemer >
> (take 'non-list 0) ;;'()
16:51
<
gilberth >
I'm not aware of such a thing. Roll your own.
16:52
<
ski >
why the latter ?
16:52
<
gilberth >
It appears to take n CDRs until n is reach or an atom is hit.
16:52
<
yitzi >
subseq maybe?
16:52
<
skeemer >
ski: it was just in the docs of racket...
16:54
<
gilberth >
Yes, SUBSEQ would work for the sane case. ,(subseq '(1 2 3 4 5) 0 2) but ,(subseq '(1) 0 2) and ,(subseq "hello" 0 2)
16:54
<
ixelp >
(subseq '(1 2 3 4 5) 0 2) => (1 2) and (subseq '(1) 0 2) ERROR: Bad interval for sequence operation on (1) : start = 0, end = 2 finally (subseq "hello" 0 2) => "he"
16:55
<
yitzi >
Yeah, well `(take 'non-list 0)` just seems dumb
16:55
<
ski >
skeemer : afaik, SRFI-1 mandates that your second example should give back that non-list, not an empty list
16:55
<
gilberth >
If one insists, how about (defun take (list n) (loop repeat n while (consp list) collect (pop list)))
16:56
<
gilberth >
ski: Oh, so my approach won't work.
16:56
<
ski >
er, no. sorry, thinko. but it doesn't seem to mandate what should happen, when the given number exceeds the number of CONSes in the chain
16:57
<
yitzi >
Yes, if you want to roll your own. I'd be pleasantly suprised if LOOP was faster then SUBSEQ.
16:57
<
gilberth >
UB? Making coffee?
16:57
<
ski >
preumably it's allowed to return an unspecified value, in this case
16:58
khinsen has joined #commonlisp
17:00
<
skeemer >
subseq seems cool enough
17:01
<
gilberth >
yitzi: I would be surprised otherwise. Though I think time would be dominated by consing anyway.
17:02
<
yitzi >
You could also probably use BUTLAST, but you'd need to call LENGTH first and would probably result in interating through the list twice.
17:02
bpanthi977 has joined #commonlisp
17:03
khinsen has left #commonlisp [#commonlisp]
17:04
<
gilberth >
Almost as silly as (defun take (list n) (reverse (last (reverse list) n)))
17:05
waleee has joined #commonlisp
17:05
<
gilberth >
Another option: (defun take (list n) (ldiff list (nthcdr n list)))
17:06
skeemer has quit [Quit: WeeChat 4.5.2]
17:06
<
gilberth >
Which should actually be about fair.
17:09
skeemer has joined #commonlisp
17:17
<
decweb >
(loop for i in '(1 2 3 4 5) repeat 2 collect i)
17:27
<
skeemer >
thank you
17:27
<
skeemer >
i liked the subseq
17:34
stanrifkin_ has quit [Quit: Leaving]
17:39
X-Scale has quit [Ping timeout: 272 seconds]
18:16
apa_c has quit [Ping timeout: 265 seconds]
18:22
Equill has quit [Ping timeout: 244 seconds]
18:25
shawnw has joined #commonlisp
18:33
stanrifkin has joined #commonlisp
18:34
Pixel_Outlaw has joined #commonlisp
18:36
mooseball has quit [Quit: Leaving]
18:36
Equill has joined #commonlisp
18:38
chomwitt has quit [Ping timeout: 260 seconds]
18:41
bpanthi977 has quit [Ping timeout: 268 seconds]
18:42
bpanthi977 has joined #commonlisp
18:53
zwr has quit [Read error: Connection reset by peer]
18:57
mishoo has quit [Ping timeout: 272 seconds]
18:57
josrr has joined #commonlisp
18:59
zwr has joined #commonlisp
19:04
bpanthi977 has quit [Remote host closed the connection]
19:05
bpanthi977 has joined #commonlisp
19:05
cage has quit [Quit: rcirc on GNU Emacs 30.1]
19:06
Adoz has joined #commonlisp
19:15
bpanthi977 has quit [Ping timeout: 260 seconds]
19:20
bpanthi977 has joined #commonlisp
19:25
bpanthi977 has quit [Ping timeout: 252 seconds]
19:33
bpanthi977 has joined #commonlisp
19:37
remexre has quit [Remote host closed the connection]
19:44
mgl has joined #commonlisp
19:47
bpanthi977 has quit [Remote host closed the connection]
19:47
bpanthi977 has joined #commonlisp
19:50
GalaxyNova has joined #commonlisp
19:52
bpanthi977 has quit [Remote host closed the connection]
19:52
bpanthi977 has joined #commonlisp
19:52
molson has quit [Quit: Leaving]
20:09
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
20:18
chomwitt has joined #commonlisp
20:26
mathrick has joined #commonlisp
20:28
skin has joined #commonlisp
20:39
kevingal has quit [Ping timeout: 268 seconds]
20:44
bpanthi977 has quit [Ping timeout: 245 seconds]
20:45
bpanthi977 has joined #commonlisp
20:48
JuanDaugherty has joined #commonlisp
20:50
shka has quit [Quit: Konversation terminated!]
20:53
Equill has quit [Ping timeout: 252 seconds]
21:11
pve has quit [Quit: leaving]
21:17
istewart has joined #commonlisp
21:19
bpanthi977 has quit [Ping timeout: 252 seconds]
21:23
bpanthi977 has joined #commonlisp
21:27
jonatack has joined #commonlisp
21:28
apac has joined #commonlisp
21:47
Adoz has quit [Ping timeout: 264 seconds]
21:48
bpanthi977 has quit [Ping timeout: 252 seconds]
21:49
mala has joined #commonlisp
21:52
kevingal has joined #commonlisp
21:53
skin has quit [Ping timeout: 252 seconds]
21:55
bpanthi977 has joined #commonlisp
22:01
yaneko has quit [Quit: parting]
22:02
yaneko has joined #commonlisp
22:07
jonatack has quit [Ping timeout: 252 seconds]
22:11
X-Scale has joined #commonlisp
22:15
mgl has quit [Ping timeout: 248 seconds]
22:22
chomwitt has quit [Ping timeout: 245 seconds]
22:23
waleee has quit [Ping timeout: 252 seconds]
22:34
stanrifkin has quit [Quit: Leaving]
22:46
spdegabrielle has quit [Quit: Connection closed for inactivity]
22:48
X-Scale has quit [Ping timeout: 272 seconds]
23:06
kevingal has quit [Ping timeout: 272 seconds]
23:32
decweb has quit [Quit: Konversation terminated!]
23:36
decweb has joined #commonlisp
23:45
remexre has joined #commonlisp
23:45
skeemer has quit [Ping timeout: 252 seconds]
23:51
gooba has quit [Remote host closed the connection]
23:53
gooba has joined #commonlisp
23:57
JuanDaugherty has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]