<josrr>
I know what happened, when you run make in the recently cloned cl-cairo2 tutorial, the generated files are saved where ASDF finds the cl-cairo2 system (~/quicklisp/dists/quicklisp/software/cl-cairo2-20211020-git/tutorial)
<josrr>
yates_work: look at the start of example.lisp
<yates_work>
you mean (asdf:operate 'asdf:load-op :cl-cairo2)
donleo has quit [Ping timeout: 260 seconds]
<josrr>
(setf *default-pathname-defaults* ...
<yates_work>
do you know of any other cairo2 demos/examples?
<yates_work>
beach: ok with your syntax, the (cairo-demo:run #'cairo-demo:arc1) completes without error (returning nil), but I don't see anything. i thought ti would pop up the graphic
<yates_work>
i tried mesh1 too - same result
<beach>
I know nothing about cairo. Sorry.
<yates_work>
i appreciate your help, thank you
<beach>
Sure.
<yates_work>
what is the "#'" syntax mean?
<yates_work>
s/is/does/
<kenanb>
yates_work: Assuming you are not familiar with CL already, you will probably have an easier start to the language if you start with a book like PCL ( https://gigamonkeys.com/book/ ) rather than directly testing the library ecosystem. Because there are too many layers between what you are testing and the core language primitives. So you will be constantly encountering issues that feel diffucult to figure out.
<ixelp>
Practical Common Lisp
<beach>
It is a reader macro, so that #'foo is turned by the reader into (function foo).
<beach>
,(first '#'foo) ,(second '#'foo)
<beach>
Hmm.
<mfiano>
ixelp: ,42
<beach>
,(first '#'foo)
<ixelp>
(first '#'foo) => FUNCTION
<mfiano>
ha
<beach>
,(second '#'foo)
<ixelp>
(second '#'foo) => FOO
<mfiano>
,(first '#'foo) ,(second '#'foo)
<ixelp>
(first '#'foo) => FUNCTION, and then (second '#'foo) => FOO
<beach>
yates_work: So (first '#'foo) is turned by the reader into (first '(function foo)) and (second '#'foo) is turned by the reader into (second '(function foo)).
<mfiano>
and yet it works for me
<beach>
Oh well.
<mfiano>
the process has like 1s or something to complete. it could have just been an OS scheduling problem
olnw has joined #commonlisp
<yates_work>
kenanb: point taken
<beach>
yates_work: And FUNCTION takes the name of a function and returns the function object, as in ,(function +)
<beach>
yates_work: But I agree with kenanb. You are going to run into a lot of problems, especially with a library like this, which I assume is using foreign code.
<olnw>
yates_work: The function cairo-demo:run simply creates a png file containing the graphic
<yates_work>
ok well it's been a LONG day. thanks everyone. time to watch a Twilight Zone (TOS) episode..
<yates_work>
olnw: ah.
<mfiano>
Yes, start with PCL to get these basics solidified, and confirm them in #clschool
<yates_work>
aha.
<yates_work>
right now i'm drinking from a firehose
<yates_work>
also learning emacs slime
White_Flame has joined #commonlisp
Kyuvi has quit [Ping timeout: 250 seconds]
iska has quit [Remote host closed the connection]
White__Flame has joined #commonlisp
Aesth has quit [Read error: Connection reset by peer]
White_Flame has quit [Ping timeout: 276 seconds]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
treflip has joined #commonlisp
blackshuck has joined #commonlisp
olnw has quit [Remote host closed the connection]
Kyuvi has joined #commonlisp
dajole has quit [Quit: Connection closed for inactivity]
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
White__Flame has quit [Ping timeout: 256 seconds]
azimut has joined #commonlisp
White_Flame has joined #commonlisp
shka has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
White_Flame has quit [Ping timeout: 245 seconds]
White_Flame has joined #commonlisp
Aesth has joined #commonlisp
White_Flame has quit [Ping timeout: 245 seconds]
White_Flame has joined #commonlisp
araujo has joined #commonlisp
blackshuck has quit [Quit: Using Circe, the loveliest of all IRC clients]
Aesth has quit [Read error: Connection reset by peer]
elderK has joined #commonlisp
treflip has quit [Ping timeout: 268 seconds]
araujo has quit [Ping timeout: 276 seconds]
donleo has joined #commonlisp
dino_tutter has joined #commonlisp
monospod has joined #commonlisp
White_Flame has quit [Remote host closed the connection]
dcb has joined #commonlisp
mzan has quit [Ping timeout: 276 seconds]
pve has joined #commonlisp
mzan has joined #commonlisp
cage has joined #commonlisp
<cage>
Hi! Someones know how to contact a person that is able to write on the cl-smtp repository? I have sent a small patch to the email address written in the README but my message was rejected because the address is unknown.
olnw has joined #commonlisp
<olnw>
cage: Have you tried opening a merge request on the project's GitLab page? I would assume that this is now the preferred way to contribute.
jjnkn has joined #commonlisp
<cage>
olnw: thanks!
<cage>
I did not because the gitlab of commonlisp.net asks for a second factor autentication with OTP and that is a bit an inconvenience for me, but if this is the only way I will go that way
<olnw>
OK, looking at Jan's commits reveals a different address: <ji@knowledgetools.de>. Perhaps you could try contacting them there?
<cage>
olnw: thanks again, i just filed an issue report but i am going to send a message to the address you provided, just in case
monospod has quit [Quit: Konversation terminated!]
waleee has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
kenanb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
random-nick has joined #commonlisp
waleee has quit [Ping timeout: 245 seconds]
waleee has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
donleo has quit [Remote host closed the connection]
decweb has joined #commonlisp
donleo has joined #commonlisp
yitzi has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
sernamar has joined #commonlisp
olnw has quit [Remote host closed the connection]
sernamar has quit [Ping timeout: 250 seconds]
azimut has quit [Ping timeout: 240 seconds]
traidare has joined #commonlisp
pve has quit [Ping timeout: 260 seconds]
waleee has quit [Ping timeout: 256 seconds]
lucasta has joined #commonlisp
josrr has joined #commonlisp
elderK has quit [Quit: Connection closed for inactivity]
AetherWind has joined #commonlisp
monospod has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
NicknameJohn has joined #commonlisp
Aesth has joined #commonlisp
attila_lendvai has quit [Ping timeout: 276 seconds]
dcb has joined #commonlisp
attila_lendvai has joined #commonlisp
notzmv has quit [Ping timeout: 255 seconds]
attila_lendvai has quit [Ping timeout: 255 seconds]
dino_tutter has quit [Ping timeout: 256 seconds]
Kyuvi has quit [Quit: Client closed]
jjnkn has quit [Ping timeout: 268 seconds]
azimut has joined #commonlisp
jon_atack has quit [Ping timeout: 255 seconds]
kevingal has joined #commonlisp
rtypo has joined #commonlisp
yitzi has quit [Ping timeout: 245 seconds]
yitzi has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
lucasta has quit [Quit: Leaving]
NicknameJohn has quit [Ping timeout: 245 seconds]
bjorkint0sh has joined #commonlisp
bjorkintosh has quit [Ping timeout: 260 seconds]
rainthree has quit [Ping timeout: 252 seconds]
waleee has joined #commonlisp
Aesth has quit [Read error: Connection reset by peer]
Oladon has joined #commonlisp
igemnace has joined #commonlisp
reb has joined #commonlisp
seanw has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
Kyuvi has joined #commonlisp
azimut has joined #commonlisp
notzmv has joined #commonlisp
jjnkn has joined #commonlisp
seanw has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
Josh_2 has joined #commonlisp
<Josh_2>
Hi hi
dino_tutter has joined #commonlisp
<Josh_2>
Can I split a sequence by n elements? say I have a list of 100 items. (some-fun 10 <my sequence>) -> sequence of sequences of length 10?
<Josh_2>
Dont wanna write it myself :O
zxcvz has joined #commonlisp
<beach>
But it's not hard: (loop for i from 0 below (length sequence) by n collect (subseq sequence i (+ i n)))
<Josh_2>
:D
zxcvz has quit [Quit: zxcvz]
Devon7 has joined #commonlisp
Devon7 has quit [Client Quit]
traidare has quit [Ping timeout: 246 seconds]
<Josh_2>
:(
Devon has joined #commonlisp
<edgar-rft>
...must be "below (- (length sequence) n)" otherwise you get "bad bounding index" errors
<Josh_2>
Yep
Devon has quit [Read error: Connection reset by peer]
Devon has joined #commonlisp
<edgar-rft>
still incorrect, must be "from ... to" -> "for i from 0 to (- (length sequence) n)"
<Josh_2>
Turns out I can just do it with :column-count :O
<Josh_2>
(css)
monospod has quit [Quit: Konversation terminated!]
<Josh_2>
edgar-rft: this?
<Josh_2>
(loop :for i :from 0 :to (- (length sequence) n) :collect (subseq sequence i (+ i n)))) that doesn't work :thinking:
<Josh_2>
If I have (1 2 3 4 5 6 7 8 9 10) then #'group-by would be (group-by 5 <seq>) ((1 2 3 4 5) (6 7 8 9 10))
<Josh_2>
I have a total hack of a solution working now which doesn't use that :O
monospod has joined #commonlisp
<edgar-rft>
your loop code gives me ((1 2 3 4 5) (6 7 8 9 10))
<edgar-rft>
here is what I typed into SLIME and what it returned -> https://bpa.st/D42A
<ixelp>
View paste D42A
<Josh_2>
These are not the same :O
<Josh_2>
mine was missing the :by n
<Josh_2>
Now it works :sunglasses:
cage has quit [Quit: rcirc on GNU Emacs 29.1]
<edgar-rft>
and I was missing to see that your code missed the :by n :-)
AetherWind has quit [Quit: leaving]
josrr has quit [Remote host closed the connection]
josrr has joined #commonlisp
epony has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 268 seconds]
Aesth has joined #commonlisp
waleee has joined #commonlisp
_cymew_ has quit [Ping timeout: 276 seconds]
epony has joined #commonlisp
josrr has left #commonlisp [#commonlisp]
josrr has joined #commonlisp
khrbtxyz has quit [Ping timeout: 240 seconds]
khrbtxyz has joined #commonlisp
dino_tutter has quit [Ping timeout: 252 seconds]
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
dino_tutter has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
_cymew_ has joined #commonlisp
Guest63 has joined #commonlisp
Guest63 has quit [Client Quit]
igemnace has quit [Read error: Connection reset by peer]
Aesth has quit [Read error: Connection reset by peer]
igemnace has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
dajole has joined #commonlisp
younder has joined #commonlisp
random-jellyfish has joined #commonlisp
NicknameJohn has joined #commonlisp
random-jellyfish has quit [Client Quit]
jmdaemon has quit [Ping timeout: 276 seconds]
random-jellyfish has joined #commonlisp
jjnkn has quit [Quit: leaving]
Aesth has joined #commonlisp
kevingal has quit [Ping timeout: 245 seconds]
son0p has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
monospod has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
pakala has joined #commonlisp
<pakala>
Hello, I'm trying to solve AOC23 day 8 in CL (for learning purposes). I'm using list as data structures but the execution takes too much time... I guess that I have to use tree structures but I cannot find documentation about them. does such a library exist?
<Josh_2>
nested lists
<Josh_2>
there ya go, there is your tree
Aesth has quit [Read error: Connection reset by peer]
<pakala>
but how is it performance wise?
<Josh_2>
idk what you are doing :shrug:
<aeth>
there are libraries for data structures, yes