jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language<http://cliki.net/> logs:<https://irclog.whitequark.org/lisp,http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.4.5, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
innovati has joined #lisp
Kaisyu has joined #lisp
arescorpio has joined #lisp
bbobb has quit [Quit: bbobb]
smurfrobot has joined #lisp
tomsen has joined #lisp
smurfrobot has quit [Remote host closed the connection]
defunkydrummer has joined #lisp
aindilis has quit [Read error: Connection reset by peer]
fikka has quit [Ping timeout: 240 seconds]
fisxoj has quit [Quit: fisxoj]
eli_oat has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
igemnace has joined #lisp
markong has quit [Ping timeout: 256 seconds]
elfmacs has joined #lisp
zachk has quit [Quit: Leaving]
milanj has quit [Read error: Connection reset by peer]
pierpal has joined #lisp
fikka has joined #lisp
Mutex7 has quit [Quit: Leaving]
pierpal has quit [Ping timeout: 240 seconds]
milanj has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
varjag has joined #lisp
fikka has joined #lisp
varjag has quit [Ping timeout: 264 seconds]
warweasle has quit [Quit: Leaving]
smurfrobot has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
davsebamse has quit [Ping timeout: 265 seconds]
rumbler31 has joined #lisp
smurfrobot has quit [Remote host closed the connection]
tomsen has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
rumbler31 has quit [Ping timeout: 268 seconds]
Arcaelyx has joined #lisp
eschatologist has quit [Ping timeout: 268 seconds]
eschatologist has joined #lisp
davsebamse has joined #lisp
fikka has quit [Ping timeout: 265 seconds]
Arcaelyx_ has quit [Ping timeout: 276 seconds]
terpri has quit [Ping timeout: 260 seconds]
johnvonneumann has joined #lisp
johnvonneumann is now known as Guest82658
fikka has joined #lisp
<dtornabene> so am I correct in thinking that Clack only uses roswell for the commandline launching script(s)?
fikka has quit [Ping timeout: 264 seconds]
<PuercoPop> dtornabene: if you are wondering that if you need to use roswell to use clack, then the answer is no
<dtornabene> sweet! that was indeed that implicit question, thanks for answering!
<dtornabene> PuercoPop:
smurfrobot has joined #lisp
sellout-1 has joined #lisp
Oladon has joined #lisp
bjorkintosh has joined #lisp
sellout- has quit [Ping timeout: 256 seconds]
Cymew has joined #lisp
fikka has joined #lisp
d4ryus1 has joined #lisp
jameser has joined #lisp
Cymew has quit [Ping timeout: 240 seconds]
smurfrobot has quit [Remote host closed the connection]
Cymew has joined #lisp
d4ryus has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 260 seconds]
dtornabene has quit [Remote host closed the connection]
Cymew has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
Cymew has joined #lisp
Cymew has quit [Ping timeout: 240 seconds]
Kundry_Wag_ has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
damke has quit [Ping timeout: 268 seconds]
damke has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
EvW has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
karlosz has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
Cymew has joined #lisp
eli_oat has quit [Quit: Leaving.]
fikka has quit [Ping timeout: 265 seconds]
eli_oat has joined #lisp
vhost- has quit [Ping timeout: 248 seconds]
damke_ has joined #lisp
Cymew has quit [Ping timeout: 240 seconds]
damke has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
sukaeto has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
<aeth> (not (mismatch #(1 2 3) #(4 5 6 1 2 3) :start2 3 :end2 6)) will generally be more efficient than this, right? (equalp #(1 2 3) (subseq #(4 5 6 1 2 3) 3 6))
<aeth> Is there another way that's even better?
eli_oat has quit [Read error: Connection reset by peer]
eli_oat has joined #lisp
<Bike> loop over the elements yourself
<White_Flame> hold these digits as a fixnum and mask
karlosz has joined #lisp
<Bike> parallelize it
<aeth> I guess I could use define-vop to SIMD it.
fikka has joined #lisp
<defunkydrummer> aeth: equalp is overkill here, if they are fixnums i think eq would do the job. Also, i'd rather explicitely create simple-vectors of type fixnum, instead of using the #() reader macro.
damke_ has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 264 seconds]
<defunkydrummer> aeth: (eq if you want to loop over the elements yourself.) I might be wrong, though.
Oladon has quit [Quit: Leaving.]
pierpal has joined #lisp
nika has joined #lisp
smurfrobot has joined #lisp
pierpal has quit [Ping timeout: 256 seconds]
pierpal has joined #lisp
Kundry_Wag_ has quit [Remote host closed the connection]
fikka has joined #lisp
smurfrobot has quit [Ping timeout: 256 seconds]
eli_oat has quit [Quit: Leaving.]
asarch has joined #lisp
Kundry_Wag_ has joined #lisp
terpri has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
damke_ has joined #lisp
energizer has quit [Remote host closed the connection]
energizer has joined #lisp
Kundry_Wag_ has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
damke has joined #lisp
Pixel_Outlaw has quit [Quit: Leaving]
damke_ has quit [Ping timeout: 268 seconds]
dddddd has quit [Remote host closed the connection]
damke_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
defunkydrummer has quit [Ping timeout: 265 seconds]
fikka has quit [Ping timeout: 256 seconds]
elfmacs has quit [Ping timeout: 260 seconds]
EvW1 has joined #lisp
vtomole has joined #lisp
asarch has quit [Quit: Leaving]
fikka has joined #lisp
damke has joined #lisp
damke_ has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 240 seconds]
schoppenhauer has quit [Ping timeout: 248 seconds]
schoppenhauer has joined #lisp
Kundry_Wag_ has joined #lisp
fikka has joined #lisp
vhost- has joined #lisp
Kundry_Wag_ has quit [Remote host closed the connection]
Kundry_Wag_ has joined #lisp
damke_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
Beepy has quit [Ping timeout: 256 seconds]
damke has joined #lisp
damke_ has quit [Ping timeout: 268 seconds]
damke_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke has quit [Ping timeout: 246 seconds]
damke has joined #lisp
pierpal has quit [Read error: Connection reset by peer]
damke_ has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
Bike has quit [Quit: Lost terminal]
damke_ has joined #lisp
rumbler31 has joined #lisp
pierpal has joined #lisp
damke has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 265 seconds]
Kundry_Wag_ has quit [Remote host closed the connection]
damke_ has quit [Read error: Connection reset by peer]
pierpal has quit [Read error: Connection reset by peer]
damke_ has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
EvW1 has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
Kevslinger has quit [Quit: Connection closed for inactivity]
terpri has quit [Ping timeout: 240 seconds]
pierpal has joined #lisp
fikka has joined #lisp
rumbler31 has quit [Remote host closed the connection]
vtomole has quit [Ping timeout: 260 seconds]
fikka has quit [Ping timeout: 255 seconds]
karlosz has quit [Quit: karlosz]
fikka has joined #lisp
Kundry_Wag_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
ebrasca has quit [Remote host closed the connection]
varjag has joined #lisp
vibs29 has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 255 seconds]
vibs29 has joined #lisp
varjag has quit [Ping timeout: 268 seconds]
aindilis has joined #lisp
fikka has joined #lisp
marusich has joined #lisp
oleo has quit [Quit: Leaving]
fikka has quit [Ping timeout: 264 seconds]
orivej has joined #lisp
smurfrobot has joined #lisp
smurfrobot has quit [Ping timeout: 240 seconds]
mejja has quit [Quit: mejja]
fikka has joined #lisp
sauvin has joined #lisp
Kundry_Wag_ has quit [Ping timeout: 255 seconds]
fikka has quit [Ping timeout: 240 seconds]
obi-cons-cdrobi has quit [Ping timeout: 276 seconds]
lnostdal has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
vlatkoB has joined #lisp
paul0 has quit [Quit: Leaving]
fikka has joined #lisp
lnostdal has quit [Ping timeout: 240 seconds]
rumbler31 has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
rumbler31 has quit [Ping timeout: 276 seconds]
vlatkoB has quit [Ping timeout: 240 seconds]
varjag has joined #lisp
RebelCoderRU has joined #lisp
fikka has joined #lisp
shka_ has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 260 seconds]
Khisanth has quit [Ping timeout: 256 seconds]
fisxoj has joined #lisp
varjag has quit [Ping timeout: 248 seconds]
heisig has joined #lisp
smurfrobot has joined #lisp
makomo has joined #lisp
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
Khisanth has joined #lisp
MasouDa has joined #lisp
fikka has joined #lisp
elfmacs has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
ebrasca has joined #lisp
smurfrobot has quit [Remote host closed the connection]
fikka has joined #lisp
terpri has joined #lisp
MasouDa has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 240 seconds]
Ven`` has joined #lisp
MichaelRaskin has quit [Quit: MichaelRaskin]
fikka has joined #lisp
rumbler31 has joined #lisp
smurfrobot has joined #lisp
Cymew has joined #lisp
Cymew has quit [Remote host closed the connection]
Cymew has joined #lisp
iqubic` has joined #lisp
rumbler31 has quit [Ping timeout: 276 seconds]
iqubic has quit [Ping timeout: 240 seconds]
xificurC has joined #lisp
<xificurC> does anyone know how to see the contents of a Lisp_Object in gdb?
<xificurC> I'm fighting a weird emacs crash, it just stops with exit code 15. A fresh install on a freshly installed ubuntu 18.04. Pure emacs runs fine but adding spacemacs to it crashes with this weird error. I'm surfing the stacktrace in gdb to find out what's causing it. http://ix.io/1aoa
<xificurC> there's a call to call_process and I'm trying to find out what the arguments are
smurfrobot has quit [Remote host closed the connection]
Kundry_Wag_ has joined #lisp
Bindler has joined #lisp
d4ryus1 is now known as d4ryus
matijja has joined #lisp
pierpal has quit [Ping timeout: 248 seconds]
RebelCoderRU has quit [Ping timeout: 256 seconds]
Quetzal2 has joined #lisp
Quetzal2 has joined #lisp
Quetzal2 has quit [Changing host]
Ven`` has quit [Read error: Connection reset by peer]
<edgar-rft> xificurC, in #emacs you might have better chances for an answer than here
Ven`` has joined #lisp
<xificurC> edgar-rft: hehe, autopilot made me join here. Excuse the mistake
Ven`` has quit [Read error: No route to host]
Ven`` has joined #lisp
makomo has quit [Ping timeout: 255 seconds]
obi-cons-cdrobi has joined #lisp
MasouDa has joined #lisp
zhrek has joined #lisp
nowhere_man has joined #lisp
MasouDa_ has joined #lisp
flamebeard has joined #lisp
MasouDa has quit [Ping timeout: 240 seconds]
schweers has joined #lisp
Kundry_Wag_ has quit [Ping timeout: 248 seconds]
flamebeard has quit [Remote host closed the connection]
flamebeard has joined #lisp
Bindler has quit [Ping timeout: 260 seconds]
Bindler has joined #lisp
slyrus1 has quit [Remote host closed the connection]
araujo has quit [Quit: Leaving]
rumbler31 has joined #lisp
bbobb has joined #lisp
fikka has quit [Ping timeout: 276 seconds]
rumbler31 has quit [Ping timeout: 268 seconds]
hhdave has joined #lisp
xificurC has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hhdave has quit [Ping timeout: 268 seconds]
shrdlu68 has joined #lisp
hhdave has joined #lisp
fikka has joined #lisp
Kaz` has joined #lisp
Kundry_Wag_ has joined #lisp
fikka has quit [Ping timeout: 255 seconds]
smurfrobot has joined #lisp
markong has joined #lisp
fikka has joined #lisp
fisxoj has quit [Quit: fisxoj]
varjag has joined #lisp
MasouDa_ has quit [Read error: Connection reset by peer]
MasouDa has joined #lisp
kajo has quit [Ping timeout: 276 seconds]
MasouDa has quit [Client Quit]
kajo has joined #lisp
MasouDa has joined #lisp
jmercouris has joined #lisp
Kundry_Wag_ has quit [Ping timeout: 255 seconds]
_cosmonaut_ has joined #lisp
_cosmonaut_ has quit [Ping timeout: 240 seconds]
Ukari has quit [Quit: Leaving.]
Ukari has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
flamebeard has quit [Remote host closed the connection]
blt has quit [Ping timeout: 264 seconds]
flamebeard has joined #lisp
MasouDa has quit [Ping timeout: 256 seconds]
MasouDa has joined #lisp
scymtym has quit [Ping timeout: 240 seconds]
_cosmonaut_ has joined #lisp
blt has joined #lisp
blt has joined #lisp
blt has quit [Changing host]
blt has quit [Ping timeout: 256 seconds]
araujo has joined #lisp
araujo has joined #lisp
araujo has quit [Changing host]
<jmercouris> how can I hash a string in common-lisp?
nickenchuggets has quit [Read error: Connection reset by peer]
blt has joined #lisp
blt has joined #lisp
blt has quit [Changing host]
<jmercouris> I'd really rather not write my own hashing function
<_death> why? it's xb
<_death> er, around 5 lines
<jmercouris> I prefer to use something in the standard lib more often than inventing something
<jmercouris> I guess I could write a hashing function, but then I'll have to consider collisions, etc
lnostdal has joined #lisp
<_death> it depends on what you need the hash for
<jmercouris> I need the hash to serve as a unique identifier for elements in a survey
<jmercouris> so each survey question has a description, I would like to hash this description and treat it as an ID
<jmercouris> the survey is served on a web page, so I can't just use a hashmap
<jmercouris> I have to hash myself and then reassociate the values later
<_death> so ironclad..
<jmercouris> seems quite a dependency to bring in
<dim> (sxhash "string") is 3782781368
damke_ has quit [Quit: quit]
<jmercouris> Yeah, seems to work in SBCL
<jmercouris> even if I make new strings
<dim> that's the function used internally by hash-table IIRC
<jmercouris> thanks for the tip
jdz has quit [Ping timeout: 250 seconds]
<_death> there's no guarantee of a unique value for each string.. in fact it's quite the opposite, unless you have a bounded set of strings so you can build a perfect hash function for them
<jmercouris> agreed, but it's probably good enough for my case
<jmercouris> I will only have about 10 questions at a time per survey, the liklihood of collision is very low
<_death> sxhash is not a good idea for this case, because it's implementation dependent
<jmercouris> it is for my own application that I will deploy though
<jmercouris> though I guess others could use it with mixed results on other implementations
<_death> so what's the point of hashing them instead of just using some autoincrement
<jmercouris> damnit, maybe I should use ironclad
<jmercouris> autoincrement would require me to keep state in between the rendering and receipt of a request
<jmercouris> sorry, I don't mean receipt of a request, I mean submission of a survey
<jmercouris> though that could be fixed with some routing so that the submit button contains information about which survey the user is submitting
<jmercouris> so yeah, autoincrement could also work
jdz has joined #lisp
lagagain has joined #lisp
<_death> how would you go from hash to question without state?
<jmercouris> I was planning on doing a search
<jmercouris> it wasn't well thought out in hindsight
<jmercouris> I just got tunnel vision, should have spent more time thinking about it instead of x-ying myself
<_death> if your questions are kept in order, an index into them would make an ID as well.. if you only append questions it could be ok
<jmercouris> that could work as well
<jmercouris> let me first do a really basic implementation that works for me, and if anyone else ever uses the software, I'll consider making it more robust
<shrdlu68> jmercouris: sxhash
<jmercouris> shrdlu68: Indeed, but I'll be pursuing a different solution, I hadn't thought about my problem well at all, thanks anyway!
nowhere_man has quit [Remote host closed the connection]
smurfrobot has quit [Remote host closed the connection]
nowhere_man has joined #lisp
smurfrobot has joined #lisp
Arcaelyx has quit [Ping timeout: 276 seconds]
jameser has quit [Ping timeout: 260 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomsen has joined #lisp
scymtym has joined #lisp
vlatkoB has joined #lisp
energizer has quit [Ping timeout: 240 seconds]
<loke> jmercouris: "unique" and "hash" are not compatible.
nowhere_man has quit [Ping timeout: 256 seconds]
<jmercouris> loke: yes, when reducing the amount of data, it is not possible to be unique
<loke> jmercouris: When _increasing_ you mean?
<jmercouris> because the "hash space" is smaller than the "data space"
<jmercouris> No, I mean decreasing
<loke> I mean, for a 64-bit integer, the hash (the integer itself) is unique :-)
<loke> Expand that to arbitrary sized integers and the hashes are no longer unique.
<jmercouris> Imagine this, every hash should ideally return a unique item with no collisions
<jmercouris> if the sequence of possible hashes is less than the amount of possible items, it is impossible
lnostdal has quit [Ping timeout: 260 seconds]
<_death> the pigeonhole principle
<shrdlu68> Principle of bijection.
<loke> jmercouris: Exactly.
<loke> jmercouris: Which means as you _increase_ the amount of data, the likelyhood of collisions goes up
<jmercouris> anyways, I think we could count on no collisions for around 10 items
<jmercouris> loke: I am talking about the LOSS of information when hashing
<loke> jmercouris: I wouldn't.
<jmercouris> so, I said, if we have some large piece of data, the more we reduce it during hashing, the more likely a collision
<loke> jmercouris: So terminologyu configusion then. I kinda suspected tha.
<jmercouris> yeah, abstract conversations can be difficult
rumbler31 has joined #lisp
smurfrobot has quit [Remote host closed the connection]
Bindler has quit [Ping timeout: 256 seconds]
rumbler31 has quit [Ping timeout: 255 seconds]
smurfrobot has joined #lisp
<loke> If SXHASH returns a 32-bit number, you're going to have a roughly one-in-3000 chance of collision on a 4-element list.
Kundry_Wag_ has joined #lisp
<jmercouris> I think that's acceptable
dddddd has joined #lisp
Negdayen has quit [Ping timeout: 260 seconds]
lnostdal has joined #lisp
fikka has quit [Ping timeout: 255 seconds]
<_death> I don't understand that statement.. what is a "chance of collision on a 4-element list"
<jmercouris> Imagine (list "abc" "def" "hij" "klm")
<jmercouris> now imagine hashing each of those values in the list
<_death> if there are more than 2^32 possible 4-element lists, the probability of a collision is 1
<jmercouris> Oh I see your question now
damke has joined #lisp
<jmercouris> _death: no, because the lists may all be duplicates
<jmercouris> I am referring to a collision within the list, that is, of the elements in the list, will there be a collision amongst themselves, not amongst all members of all lists
<jmercouris> so if I have 2^32 lists that are all (list "a" "b" "c" "d"), and it is known that the set "a" "b" "c" "d" does not produce a collision, then it would be fine
<_death> jmercouris: next time I will M-x pedantic-mode
<jmercouris> _death: are you calling me pedantic?
kajo has quit [Ping timeout: 256 seconds]
<_death> jmercouris: I think it's reasonable to assume that I meant distinct lists..
<jmercouris> That's fine, but my problem spaces does not involve this many distinct lists
<jmercouris> s/spaces/space
<jmercouris> so, within the context of my problem, what are you suggesting, is *not* an issue
<_death> jmercouris: at this point we're not talking about your problem?.. I guess we've reached offtopicness
<jmercouris> If we are talking about a generalized problem, then your response make sense
fikka has joined #lisp
kajo has joined #lisp
<jmercouris> if we were talking about my actual problem, we can assume that no survey list will ever reach 2^32 questions long
<jmercouris> which was my whole point
<_death> jmercouris: but that's only for the best-case scenario where SXHASH is does its best to be a uniform hash
<jmercouris> Still, do you think any reasonable survey will be over 100 elements?
<_death> jmercouris: well, I already explained the issue with sxhash
flamebeard has quit [Remote host closed the connection]
<shka> jmercouris: benchmark on real data
<_death> better off using crc32 or something :)
<jmercouris> I don't need to benchmark, I'm not going to use any hashing
<jmercouris> I'm going to use _death's later suggestion, incrementing
<shka> ah, good
orivej has joined #lisp
smurfrobot has quit [Remote host closed the connection]
<loke> jmercouris: Actrually, accroding to the birthday paradox, the probability of two elements colliding is arougly sqrt(N). And remember that if you have more than two elements, you have to didivde that by (N-1)!
sellout has quit [Ping timeout: 256 seconds]
<loke> so for a 10-element list you have an overwhelming chance of collision
<loke> oops.I I'm getting the numbers wrong
<jmercouris> Yes, you definitely are
<loke> but the chanche is still high
<jmercouris> otherwise hashmaps would be useless over 10 elements
<jmercouris> they would constantly be cherry picking or whatever to deal with that
<jmercouris> nobody would ever use them and just stick to arrays
<jmercouris> is it called cherry picking? I can't remember the strategies for dealing with collisions, it's been so long
<loke> jmercouris: The probability of a collision for _two_ elements is definititely on the order of sqrt(2^32) for a 32-bit hash
<loke> where I got it wrong was how this changes for more elemnts.
<loke> ah
<loke> exp((-k*(k-1)) / (2*N))
<loke> That page even has a graph for 32-bit hashes
Ven`` has joined #lisp
<loke> jmercouris: Plug your numbers in there, and you'll see that the chance of collision is much higher than you might think.
elfmacs has quit [Ping timeout: 240 seconds]
<jmercouris> seems to be 1 in 100 million
<jmercouris> I should be okay
<jmercouris> at any rate, I'm not using a hash
Kundry_Wag_ has quit [Ping timeout: 240 seconds]
<loke> jmercouris: Isn't that the probability that it's _unique_?
smurfrobot has joined #lisp
<jmercouris> I probably read the table wrong :\
<jmercouris> I'm sorry I'm distracted with something else
<jmercouris> No, it seems I've read the table correctly
<jmercouris> if you have 10 32 bit hash values, your probability of collision is 1 in 100 million
<jmercouris> if I had 77163, in a 32 bit space, it is 1/2
<jmercouris> assuming even distribution
fikka has quit [Ping timeout: 268 seconds]
<_death> wouldn't use the term "odds" there
Naergon has quit [Ping timeout: 264 seconds]
smurfrobot has quit [Remote host closed the connection]
SaganMan has quit [Ping timeout: 240 seconds]
<flip214> jmercouris: I#
<flip214> jmercouris: I'm not sure that SXHASH stays constant when the lisp is restarted...
<jmercouris> It's fine, it doesn't matter, I am not using SXHASH
<flip214> so you're giving out some HTML, restart the server, and the clients' values can't be associated any more
<flip214> oh, okay
araujo has quit [Quit: Leaving]
<_death> clhs sxhash
<dim> does that ring a bell to anyone here: The symbol "*SYSTEM-DEFINITION-SEARCH-FUNCTIONS*" is not external in the ASDF/FIND-SYSTEM package.
<dim> asdf 3.3.2 and sbcl 1.4.7
fikka has joined #lisp
Kaisyu has quit [Quit: Connection closed for inactivity]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kushal has quit [Remote host closed the connection]
kushal has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
SaganMan has joined #lisp
python476 has joined #lisp
fikka has joined #lisp
Myon has joined #lisp
smurfrobot has joined #lisp
Ven`` has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
flamebeard has joined #lisp
smurfrobot has quit [Ping timeout: 264 seconds]
Kundry_Wag_ has joined #lisp
Bike has joined #lisp
fikka has joined #lisp
smurfrobot has joined #lisp
Kundry_Wag_ has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 276 seconds]
smurfrob_ has joined #lisp
smurfrobot has quit [Remote host closed the connection]
nowhere_man has joined #lisp
Colleen has quit [Remote host closed the connection]
Colleen has joined #lisp
nowhere_man has quit [Ping timeout: 255 seconds]
pierpal has joined #lisp
sellout has joined #lisp
damke has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
pierpal has quit [Client Quit]
pierpal has joined #lisp
TCZ has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
smurfrob_ has quit [Remote host closed the connection]
makomo has joined #lisp
TCZ has quit [Client Quit]
fikka has quit [Ping timeout: 240 seconds]
rumbler31 has joined #lisp
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
python476 has quit [Ping timeout: 248 seconds]
tomsen has quit [Ping timeout: 256 seconds]
pierpal has quit [Remote host closed the connection]
fikka has joined #lisp
Kundry_Wag_ has joined #lisp
Nouv has joined #lisp
flamebeard has quit [Remote host closed the connection]
flamebeard has joined #lisp
smurfrobot has joined #lisp
scymtym has quit [Remote host closed the connection]
scymtym has joined #lisp
Kaisyu has joined #lisp
MasouDa has quit [Read error: Connection reset by peer]
MasouDa has joined #lisp
smurfrobot has quit [Ping timeout: 240 seconds]
Kevslinger has joined #lisp
elfmacs has joined #lisp
Ven`` has joined #lisp
milanj has joined #lisp
milanj has quit [Client Quit]
milanj has joined #lisp
Bike is now known as Bicyclidine
rumbler31 has quit [Remote host closed the connection]
Ven`` has quit [Read error: Connection reset by peer]
Ven`` has joined #lisp
smurfrobot has joined #lisp
shrdlu68 has quit [Ping timeout: 256 seconds]
<Ukari> I have a 'funcallable/cc' and check it with (eq (type-of x) 'funcallable/cc). Then I use a lambda to wrap funcallable/cc, how could i check type of stuff inner the lambda eq funcallable/cc now?
nowhere_man has joined #lisp
<Ukari> could i define sth like the struct funcallable/cc that could called by (funcall x) directly
smurfrobot has quit [Ping timeout: 248 seconds]
Kundry_Wag_ has quit [Ping timeout: 240 seconds]
Nouv has quit [Remote host closed the connection]
DataLinkDroid has quit [Ping timeout: 240 seconds]
<Ukari> oh i get it, it is a class..
LiamH has joined #lisp
EvW has joined #lisp
Cymew has quit [Read error: Connection reset by peer]
tomsen has joined #lisp
smurfrobot has joined #lisp
Cymew has joined #lisp
<dim> mmm, ql:bundle-systems isn't using the .asd version I want it to
shrdlu68 has joined #lisp
tomsen has quit [Ping timeout: 240 seconds]
smurfrobot has quit [Ping timeout: 240 seconds]
<Xach> dim: how can you tell?
<dim> because the list of :depends-on did change, and the newer items are not taken into account
<dim> basically I'm makeing a bundle where I want to deal with what's in PWD, not what's in QL
<dim> (let ((pkgs (append '("pgloader" "buildapp") (getf (read-from-string (uiop:read-file-string (uiop:merge-pathnames* "pgloader.asd" *pwd*))) :depends-on)))) ... (ql:bundle-systems pkgs ...))
Cymew has quit [Read error: Connection reset by peer]
<dim> that's what I want to do, not sure it should be the default, now that I think about it
terpri has quit [Ping timeout: 248 seconds]
python476 has joined #lisp
flamebeard has quit [Remote host closed the connection]
<dim> FATAL error: system pgloader is out of date
<dim> oh. that's news to me, never had that before.
shrdlu68 has quit [Ping timeout: 264 seconds]
<dim> it's ASDF/SESSION:CONSULT-ASDF-CACHE complaining now, in a call to ASDF/SYSTEM:SYSTEM-RELATIVE-PATHNAME, interesting
<dim> (I'm using that for regression tests)
Cymew has joined #lisp
Cymew has quit [Read error: Connection reset by peer]
Cymew has joined #lisp
shrdlu68 has joined #lisp
wxie has joined #lisp
nowhere_man has quit [Ping timeout: 240 seconds]
warweasle has joined #lisp
DataLinkDroid has joined #lisp
wxie has quit [Ping timeout: 256 seconds]
_cosmonaut_ has quit [Remote host closed the connection]
rumbler31 has joined #lisp
Bike has joined #lisp
ldb has joined #lisp
<ldb> sup
sjl__ has joined #lisp
sjl has quit [Quit: WeeChat 1.9.1]
DataLinkDroid has quit [Ping timeout: 240 seconds]
jmercouris has quit [Ping timeout: 264 seconds]
fisxoj has joined #lisp
Demosthenex has quit [Quit: leaving]
nowhere_man has joined #lisp
light2yellow has joined #lisp
oleo has joined #lisp
flamebeard has joined #lisp
fisxoj has quit [Ping timeout: 256 seconds]
elderK has quit [Quit: WeeChat 1.9]
Guest82658 has quit [Remote host closed the connection]
lnostdal_ has joined #lisp
heisig has quit [Quit: Leaving]
lnostdal has quit [Ping timeout: 256 seconds]
iqubic` has left #lisp ["ERC (IRC client for Emacs 25.3.1)"]
foom2 is now known as foom
DataLinkDroid has joined #lisp
_cosmonaut_ has joined #lisp
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dieggsy has joined #lisp
flamebeard has quit []
omilu has quit [Remote host closed the connection]
DataLinkDroid has quit [Ping timeout: 240 seconds]
shrdlu68 has quit [Ping timeout: 260 seconds]
shrdlu68 has joined #lisp
Ven`` has joined #lisp
rumbler3_ has joined #lisp
DataLinkDroid has joined #lisp
beach has joined #lisp
<beach> Good afternoon everyone!
matijja has quit [Ping timeout: 268 seconds]
Kundry_Wag_ has joined #lisp
DonVlad has joined #lisp
rumbler3_ has quit [Ping timeout: 276 seconds]
<oleo> heya beach o/
<schweers> Hi beach
ZombieChicken has joined #lisp
scymtym_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
ZombieChicken has quit [Client Quit]
ZombieChicken has joined #lisp
scymtym has quit [Ping timeout: 240 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjman has joined #lisp
MasouDa has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
DataLinkDroid has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Remote host closed the connection]
<kqr> may or may not be the right place to ask: I use Emacs and SLIME, and evaluate things in SLIME with C-c C-c. this works for pretty much everything except (in-package :foo) declarations. is there a way to get it to work even with those?
<Bike> what do you mean by it not working?
<kqr> it does not change which package SLIME is in. I have to go over to that buffer and manually enter (in-package :foo) for the change to take effect
<Xach> kqr: I use C-c ~ for that.
ldb has quit [Remote host closed the connection]
<Xach> It syncs the repl package with the file package
ldb has joined #lisp
ldb has quit [Remote host closed the connection]
smurfrobot has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
<kqr> hm. that's good. one problem down! but I have been dishonest with you. the full problem does not involve interactive use of SLIME. rather, it's an automated Org document export where Babel evaluates common lisp code and – apparently – does not respect (in-package :foo) either
<Xach> I can't help with that one
tomsen has joined #lisp
<kqr> i think I solved it, though. apparently there's a parallel to C-c ~ in the Org export – a :package header argument
<Xach> Cool
<kqr> thanks for the useful tip, though, I have been missing something like C-c ~ but not bothered enough to find it!
BitPuffin has joined #lisp
<Xach> I have to say I use ,ch-p in the repl a lot more than C-c ~. But when I think of it I use it.
<schweers> Xach: thank you for the tip with C-c ~. I did not know that, I always did C-c M-p, which can be annoying if one has packages foo and foo-test or foo and foo/test
* Xach lives to serve
smurfrobot has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
<schweers> I never used a comma command in the repl. does this make me a bad person/lisper?
gigetoo has joined #lisp
scymtym_ has quit [Ping timeout: 248 seconds]
rippa has joined #lisp
terpri has joined #lisp
Josh_2 has joined #lisp
<Xach> schweers: inefficient maybe? i find them very handy and use them 1000000 times per day
<schweers> Xach: they are slime specific, right?
<Xach> schweers: yes, but most repls have shortcuts like them
<schweers> I’m asking because I want to find documentation on those
sjl__ is now known as sjl
<Xach> it is part of slime, yes
fikka has quit [Ping timeout: 268 seconds]
<schweers> push-package looks funny. I don’t know if I’ll ever use it, but I’ll try to keep an eye out for when it may be useful
<schweers> anyway, thanks for reminding me to look into this feature :)
defunkydrummer has joined #lisp
<antoszka> I keep wanting to read *all* the current SLIME manual one day.
<antoszka> I never did that :)
shrdlu68 has left #lisp [#lisp]
asarch has joined #lisp
<rumbler31> antoszka: it doesn't take that long
FreeBirdLjj has joined #lisp
<ecraven> you can even read all the source in a day, I think
SaganMan has quit [Ping timeout: 260 seconds]
<ecraven> sloccount says it's 18k lines of lisp code (though I don't know how many of those might be auto-generated)
Kundry_Wag_ has quit [Ping timeout: 256 seconds]
DataLinkDroid has joined #lisp
SaganMan has joined #lisp
viuuulentemente has joined #lisp
MasouDa has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
edgar-rft has quit [Quit: edgar-rft]
viuuulentemente has quit [Quit: viuuulentemente]
viuuulentemente has joined #lisp
smurfrobot has joined #lisp
EvW has quit [Ping timeout: 255 seconds]
viuuulentemente has quit [Remote host closed the connection]
EvW1 has joined #lisp
fikka has joined #lisp
makomo has quit [Ping timeout: 240 seconds]
smurfrobot has quit [Ping timeout: 268 seconds]
kajo has quit [Ping timeout: 276 seconds]
<mfiano> Or, if you use Sly, sly-mrepl-sync
kajo has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
smurfrobot has joined #lisp
ealfonso` has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
DataLinkDroid has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
vtomole has joined #lisp
<ealfonso`> does anyone have any experience with websockets on CL? I've heard about hunchensockets and clws. any recommendation between the two?
dyelar has quit [Remote host closed the connection]
<loke> ealfonso`: Yes.
<loke> ealfonso`: Potato uses it.
FreeBirdLjj has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
Kundry_Wag_ has joined #lisp
<ealfonso`> loke which one?
elfmacs has quit [Ping timeout: 256 seconds]
<loke> ealfonso`: hunchsocket
<ealfonso`> loke thanks. I've heard that hunchensocket "is not recommended for production use" https://stackoverflow.com/questions/23855626/websockets-from-common-lisp do you know why someone might think this?
<loke> ealfonso`: I never heard that. I've used hunchensocket for production for years
<loke> I don't know if there is an issue with lots of connections though, I've only tested with a few hundred on a single process.
fikka has joined #lisp
<ealfonso`> loke sounds good. thanks
tomsen has quit [Ping timeout: 240 seconds]
innovati has quit [Quit: Textual IRC Client: www.textualapp.com]
<loke> I think I've started 1000 clients on one process. That worked.
<loke> But it was running off a laptop and I wasn't able to saturate the connections. But the system worked.
<loke> I'm using it for a web-chat application.
tomsen has joined #lisp
<ealfonso`> loke thanks, I'll give it a try.
<loke> Good luch
slyrus2 has quit [Quit: slyrus2]
<loke> hunchensocket is really easy to use
innovati has joined #lisp
terpri has quit [Ping timeout: 260 seconds]
fikka has quit [Ping timeout: 255 seconds]
fikka has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
smurfrobot has quit [Remote host closed the connection]
<Xach> I think people define "production" in curious ways sometimes
<Xach> Like the word "professional"
<Xach> Different things to different people and some are less flexible about needs and context.
fikka has joined #lisp
scymtym has joined #lisp
DataLinkDroid has joined #lisp
Kundry_Wag_ has quit [Ping timeout: 240 seconds]
_cosmonaut_ has quit [Ping timeout: 265 seconds]
slyrus_ has quit [Read error: Connection reset by peer]
Cymew has quit [Remote host closed the connection]
Cymew has joined #lisp
smurfrobot has joined #lisp
lnostdal_ is now known as lnostdal
dieggsy has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 276 seconds]
CrazyEddy has joined #lisp
scymtym_ has joined #lisp
<drmeister> What are the best resources for teaching a couple of undergraduates with little to no programming experience Common Lisp?
Cymew has quit [Ping timeout: 240 seconds]
DataLinkDroid has quit [Ping timeout: 240 seconds]
<drmeister> They are committed for the summer - they already have a working Common Lisp environment (Cando/Clasp in a jupyter notebook). Emacs is being installed today.
<Xach> drmeister: I like Practical Common Lisp and Paradigms of AI Programming very much. The latter is dense but rewarding.
Cymew has joined #lisp
<Josh_2> drmeister: if programming noobs then gentle introduction to symbolic computation
<drmeister> We've started with Practical Common Lisp and we have a copy of Land of Lisp - we have found a couple of web tutorials and we are running a boot camp.
<drmeister> I'm casting about for other resources that I'm not aware of.
<drmeister> Two of them are programming noobs, the other two have Python and C experience.
scymtym has quit [Ping timeout: 255 seconds]
tomsen has quit [Ping timeout: 260 seconds]
CrazyEddy has quit [Ping timeout: 268 seconds]
slyrus_ has joined #lisp
<Josh_2> When I was a nub I found PCL too hard, but Gentle introduction to symbolic computation was perfect when I had no programming experience
Cymew has quit [Ping timeout: 260 seconds]
raynold has joined #lisp
Cymew has joined #lisp
papachan has quit [Ping timeout: 256 seconds]
<sjl> I also recommend Gentle first, then Practical, then go make things for a while, then maybe PAIP or CLR
<ealfonso`> I never read any Common Lisp book. I started with emacs lisp and the emacs lisp manual, which is very user and beginer friendly. It wasn't hard to transition to CL. I may still be a noob though
<Xach> ealfonso`: i think it would be helpful to read common lisp books and code in that case.
<sjl> also throw "watch the SICP lectures" somewhere in there. not strictly about CL, but still really helpful
comborico1611 has joined #lisp
<Xach> i wouldn't recommend being too awful literal in translating its lessons
varjagg has joined #lisp
smurfrobot has quit [Remote host closed the connection]
Cymew has quit [Ping timeout: 264 seconds]
<antoszka> From what I know now, I'd recommend starting with PAIP. Then using PCL (and Edi's excellent recipes) as a *practical* guide/reference.
<antoszka> Gentle might be a little too gentle for some.
<antoszka> Scheme related stuff (PAIP lectures, * Schemer books) is good, too, but doesn't pertain to Common Lisp that much.
<antoszka> The similarity is very superficial.
Cymew has joined #lisp
jmercouris has joined #lisp
<Xach> I think it can be helpful to learn about new ways of thinking about problems and solutions
<phoe> +1 for PCL and Book of Edi
<phoe> Also be sure to throw them at #lisp and #clnoobs
<antoszka> Oh yes.
<antoszka> They might have to learn IRC first ;)
<phoe> IRC is simple
<phoe> It's just a multiplayer notepad
<antoszka> But it's not hipchat.
<antoszka> Nor Slack.
<jmercouris> they can use IRC via the web client
<jmercouris> it's not challenging to learn IRC, if they can't learn it, they won't have much luck with CL
<phoe> ^
<phoe> I giggled reading this
<phoe> no, seriously, freenode's webchat is good enough for starters
hhdave has quit [Ping timeout: 256 seconds]
tomsen has joined #lisp
TMA has quit [Ping timeout: 240 seconds]
Cymew has quit [Ping timeout: 264 seconds]
EvW1 has quit [Ping timeout: 255 seconds]
Quetzal2 has quit [Ping timeout: 240 seconds]
DonVlad has quit [Remote host closed the connection]
Cymew has joined #lisp
MichaelRaskin has joined #lisp
jeosol has joined #lisp
Cymew has quit [Ping timeout: 240 seconds]
DataLinkDroid has joined #lisp
<ealfonso`> Xach what if you look at a random sample of my code https://pastebin.com/GCKGpn2B and tell me how bad you think it is and whether I still need to read common lisp books?
<jmercouris> ealfonso`: That's not a measure of "skill"
<jmercouris> a measure of skill would be simple, are you able to do anything you'd like to do with the language in a timely manner?
<Josh_2> ealfonso`: dropping )) onto the next line EEEEEW
<Xach> ealfonso`: I think reading books and code would helpl
<Xach> help, rather.
Cymew has joined #lisp
mflem has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
schweers has quit [Ping timeout: 255 seconds]
<ealfonso`> Josh_2 yeah, I did that while making lots of changes to a defstruct, I wanted git commits to be one-line changes, then forgot to close it.
poutinewick has joined #lisp
papachan has joined #lisp
Kaisyu has quit [Quit: Connection closed for inactivity]
Kundry_Wag has joined #lisp
<ealfonso`> jmercouris I was able to write this restful front-end to my C library in about a week: http://ec2-54-213-11-217.us-west-2.compute.amazonaws.com/
wigust has joined #lisp
<jmercouris> I have no way of judging that, nor is it my place to, I'm not an employer considering you nor am I condeming
cage_ has joined #lisp
<jmercouris> I think if you are happy, that is the best reward
Cymew has quit [Ping timeout: 256 seconds]
<ealfonso`> jmercouris I'm happy
<jmercouris> then you are doing just fine :)
michalisko has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
<jmercouris> don't worry about whether you are "pro" or not, when it comes time, and you need to learn more to get something done, you will learn it
Cymew has joined #lisp
random-nick has joined #lisp
michalisko has joined #lisp
DemolitionMan has joined #lisp
<ealfonso`> jmercouris I just don't think reading dense programming books is necessarily always the best approach. some people might learn more quickly by doing
DataLinkDroid has quit [Ping timeout: 240 seconds]
<jmercouris> I wouldn't describe the books on Lisp as dense, but they aren't really engaging
<jmercouris> I find the literature on programming books in general to be rather dry
<comborico1611> As long as I don't get lost, I consider the programming book a win. :-) Going to lunch!
<Xach> If you rely only on learning by doing and teaching yourself, you will have gaps. It is possible to learn on your own and accomplish many great things. But I think you can do greater things by reading some other stuff.
MichaelRaskin has quit [Ping timeout: 256 seconds]
<comborico1611> (That is very true for playing guitar, too.)
python476 has quit [Ping timeout: 240 seconds]
<jmercouris> there will be gaps in your knowledge only if you learn *just enough* to accomplish what you set out to do. If you explore the topics of things that you use, you shouldn't have many gaps
Cymew has quit [Ping timeout: 265 seconds]
smurfrobot has joined #lisp
Cymew has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
Cymew has quit [Ping timeout: 268 seconds]
DonVlad has joined #lisp
Cymew has joined #lisp
DonVlad has quit [Read error: Connection reset by peer]
fikka has joined #lisp
DonVlad has joined #lisp
poutinewick45 has joined #lisp
poutinewick has quit [Quit: Leaving]
poutinewick45 has quit [Client Quit]
poutinewick has joined #lisp
Cymew has quit [Ping timeout: 260 seconds]
DonVlad has quit [Read error: Connection reset by peer]
DonVlad has joined #lisp
Cymew has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
dtornabene has joined #lisp
poutinewick has quit [Remote host closed the connection]
smurfrobot has quit [Remote host closed the connection]
poutinewick has joined #lisp
Cymew has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
Cymew has joined #lisp
quazimodo has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 240 seconds]
Cymew has quit [Ping timeout: 240 seconds]
DataLinkDroid has joined #lisp
Cymew has joined #lisp
nika has quit [Quit: Leaving...]
fikka has joined #lisp
Cymew has quit [Ping timeout: 255 seconds]
Cymew has joined #lisp
fikka has quit [Ping timeout: 276 seconds]
Cymew has quit [Ping timeout: 260 seconds]
scymtym_ has quit [Ping timeout: 255 seconds]
Cymew has joined #lisp
Cymew has quit [Ping timeout: 248 seconds]
terpri has joined #lisp
Cymew has joined #lisp
araly has joined #lisp
Cymew has quit [Ping timeout: 268 seconds]
python476 has joined #lisp
fikka has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
<araly> hello everyone, I'm having a question about CLOS, using the lispcord library if that helps. There's a class called guild which has a id slot, and I have instances of a class called available-guild, which inherits from the guild class. I'm trying to access the id slot of my object, but it says that the slot is missing from the object
FreeBirdLjj has joined #lisp
<Bike> sounds like it shouldn't happen. maybe paste a bit of code?
<araly> all inherited slots are accessible from the same accessor right ?
<jmercouris> Yes
smurfrobot has joined #lisp
<araly> (slot-value (lc:guild msg) 'id) is my bit of code, (lc:guild msg) returns an instance of available-guild
<Bike> are you sure id is in the right package?
<White_Flame> are you sure 'id is from the right package?
<araly> the class available-guild inherits from the class guild, and the class guild has a (id :initarg :id :type snowflake :accessor id) slot
<sjl> araly: what they said. you should be using the accessor function though, not calling `slot-value` directly
<sjl> (lc:id (lc:guild msg))
<araly> I'm calling 'id because that's what I see in the :accessor value
<jmercouris> is there an echo in here?
<araly> okay I'll try that
fikka has quit [Ping timeout: 256 seconds]
<sjl> araly: if you're not importing the `id` symbol from that package, then you're trying to effectively do (slot-value ... 'some-other-package:id) instead of (slot-value ... 'lc:id)
<araly> there's no (lc:id)
<Bike> :accessor makes a reader and writer function. you're not using those, you're using slot-value
FreeBirdLjj has quit [Ping timeout: 256 seconds]
<araly> okay, I thought slot-value could get the value from the reader accesso
<araly> accessor*
<sjl> slot-value is a low-level function. if there's an accessor, you should generally prefer using that.
<Bike> the only "reader accessor" is a function
<araly> which function is that, something from CLOS or something that should exist in the package ?
<jmercouris> araly: it's usually defined in the defclass
<Bike> the function would be called id
<jmercouris> if you look at the definition there should be :accessor attribute
smurfrobot has quit [Ping timeout: 260 seconds]
<Bike> that's what :accessor id means
<nirved> if it's really needed (slot-value (lc:guild msg) 'lc::id)
<Bike> slot-value uses the slot name instead
<jmercouris> so you'd do something like (id some-object)
<sjl> araly: I don't know what the lc package is. Is it a nickname you're defining for one of the lispcord packages?
<jmercouris> to retrieve some-object's id
<araly> lc is a shortcut for the lispcord package I think
<jmercouris> you think? whose code is this? someone elses?
asarch has quit [Quit: Leaving]
<sjl> araly: okay, so here's where guild is defined: https://github.com/lispcord/lispcord/blob/master/src/classes/guild.lisp
edgar-rft has joined #lisp
<araly> yeah I see that, that's where I looked the accessor up, but there isn't anything more in the defclass guild
<sjl> that's in the lispcord.classes package. it defines the guild class with a slot with name `id` in that package, and accessor named `id` in that package
<sjl> Defining that accessor means there will be a function called `id` in the `lispcord.classes` package that will take a guild and give you its id
<sjl> if we look in the packages.lisp file in that directory https://github.com/lispcord/lispcord/blob/master/src/classes/package.lisp we can see that the package exports that `id` name
<araly> okay, so the accessor itself doesn't do anything, it just says that there will be a function
fikka has joined #lisp
<sjl> No, it will also define that function automatically
<Bike> the :accessor specifies that there should be reader and writer functions, and that they should use the given symbol in their names
<araly> hum
<sjl> by "should be" Bike means "it will ensure there are" not "you need to define manually"
Kundry_Wag has quit [Read error: No route to host]
<Bike> yes.
<sjl> (lc:id (lc:guild msg)) should work. does it not? can you paste the error?
<sjl> also wow this code is hard to read because of tabs instead of spaces
<araly> okay, it worked, I don't really understand why though, is the lc:id a function that exists because of the :accessor, and it knows that it's has to be the id from an available-guild instance, because it has that in parameters ?
tomsen has quit [Ping timeout: 240 seconds]
Kundry_Wag has joined #lisp
Kundry_W_ has joined #lisp
7F1AAORTS has joined #lisp
Cymew has joined #lisp
<jmercouris> sjl: C-x h - C-i
<araly> so what is the slot-value for, because it works for a class I have created, but where I don't accessors. Should I write accessors and use this instead ?
<jmercouris> araly: Yes, you should write with accessors
<sjl> when you say (defclass foo () ((some-slot :accessor some-accessor))) lisp will create the class with a slot named some-slot. It will also create (if it doesn't already exist) a generic function called some-accessor, and will define a method on some-accessor for members of class foo
<sjl> by convention, a lot of people use the same symbol to name the slot and the accessor function
7F1AAORTS has quit [Client Quit]
<jmercouris> araly: I think it would be a good idea to stop what you are doing, and read about CLOS
<araly> okay, is there a naming convention for accessors ?
<araly> okay
karlosz has joined #lisp
dieggsy has joined #lisp
<jmercouris> araly: start here: http://www.gigamonkeys.com/book/ on section 16, and then 17
<jmercouris> that should give you a basic understanding
smurfrobot has joined #lisp
<araly> thanks people, I've been blocked on this for a little while now ^^
<sjl> If you want a really good intro to CLOS, Keene's book is a good resource. It's worth spending a while getting the basics down.
<araly> roger
<sjl> (Object Oriented Programming in Common Lisp: A Programmer's Guide to CLOS)
<sjl> It's a pretty short book, well written too.
Cymew has quit [Ping timeout: 256 seconds]
<sjl> There are PDFs floating around of it, unsure how legal they are. I own two paper copies because I bought a second while I was in grad school rather than shipping my copy I left at home across the ocean.
Cymew has joined #lisp
<sjl> jmercouris: whatever those letters are, github dot com doesn't support them
igemnace has quit [Read error: Connection reset by peer]
smurfrobot has quit [Ping timeout: 240 seconds]
<araly> lisp is a language I learn on my own for fun, so I have a more try and read when you can't approach, I think it's time to read a bit further than just to be able to keep going ^^
energizer has joined #lisp
energizer has quit [Remote host closed the connection]
<jmercouris> sjl: copy/paste into a local buffer. select all, c-x h, c-i indent
energizer has joined #lisp
<sjl> jmercouris: those keystrokes also don't work in vim
orivej has joined #lisp
sauvin has quit [Read error: Connection reset by peer]
<jmercouris> sjl: sure, type :q, then when you drop back into the terminal, type in emacs to get a sensible environment
<sjl> I could pipe to lispindent but it's just less effort to read the weird indentation
<sjl> jmercouris: you forgot the <cr> there bud
<jmercouris> Ah, yes :P
<jmercouris> you mean <RET>
Cymew has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 240 seconds]
random-nick has quit [Ping timeout: 268 seconds]
Cymew has joined #lisp
makomo has joined #lisp
ealfonso` has quit [Ping timeout: 276 seconds]
Cymew has quit [Ping timeout: 268 seconds]
tomsen has joined #lisp
Cymew has joined #lisp
smurfrobot has joined #lisp
jxy has quit [Quit: leaving]
rumbler3_ has joined #lisp
Cymew has quit [Ping timeout: 276 seconds]
smurfrobot has quit [Ping timeout: 240 seconds]
jxy has joined #lisp
Cymew has joined #lisp
<White_Flame> is this the most compatible/safe way of getting the directory of a file? (make-pathname :defaults filename :name nil :type nil)
<jmercouris> that's how I do it
<White_Flame> took me a while to converge on that, still seems kind of indirect
fikka has joined #lisp
rumbler3_ has quit [Ping timeout: 276 seconds]
mflem has quit [Ping timeout: 250 seconds]
Cymew has quit [Ping timeout: 264 seconds]
fraya has joined #lisp
Cymew has joined #lisp
light2yellow has quit [Quit: light2yellow]
lvo` has joined #lisp
lvo` has quit [Remote host closed the connection]
<jmercouris> I didn't think of it myself, I saw someone else do it, and just copied them
fikka has quit [Ping timeout: 276 seconds]
CrazyEddy has joined #lisp
Kundry_Wag has quit [Ping timeout: 248 seconds]
comborico1611 has quit [Quit: Konversation terminated!]
Cymew has quit [Ping timeout: 240 seconds]
smurfrobot has joined #lisp
zooey has quit [Remote host closed the connection]
<White_Flame> I have some old cygwin path support in my lisp build tools. With the various linux subsystems in newer windows, and VMs being more popular, do you think cygwin usage is going to drop away?
zooey has joined #lisp
<jmercouris> I would agree with that statement
<jmercouris> you could look at google trends to get an idea
<jmercouris> if you expand the graph date range, the trend is very clear
pierpal has joined #lisp
smurfrobot has quit [Ping timeout: 256 seconds]
comborico1611 has joined #lisp
EvW has joined #lisp
tomsen has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
araly has quit [Quit: leaving]
dcluna has quit [Ping timeout: 246 seconds]
fikka has quit [Ping timeout: 240 seconds]
Kundry_W_ has quit [Remote host closed the connection]
<ZigPaw> for me WSL superseded Cygwin on all windows machines I use. It is just plainly easier to use as I can leverage all of the software packaged in ubuntu and not to worry if something will compile under cygwin.
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
<ZigPaw> and Emacs (latest snapshot) works really good under it.
hjek has joined #lisp
dcluna has joined #lisp
Kundry_Wag has joined #lisp
tomsen has joined #lisp
fikka has joined #lisp
Negdayen has joined #lisp
Kundry_Wag has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 256 seconds]
tomsen has quit [Ping timeout: 256 seconds]
varjagg has quit [Ping timeout: 255 seconds]
Josh_2 has quit [Ping timeout: 265 seconds]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
fikka has joined #lisp
<aeth> I thought WSL isn't graphical? I know Emacs outside of the terminal has more features, like more colors available for better syntax highlighting, and PDF reading.
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #lisp
Quetzal2 has joined #lisp
<jasom> White_Flame: (uiop:pathname-directory-pathname "/foo")
<White_Flame> I'm doing build scripts from a very raw environment, can't depend on libs being loaded yet
<jasom> White_Flame: well you can copy the source-code for that then. It's a single .lisp file to load it as well.
orivej has quit [Ping timeout: 240 seconds]
cage_ has quit [Quit: Leaving]
scymtym has joined #lisp
varjagg has joined #lisp
rumbler3_ has joined #lisp
rumbler3_ has quit [Ping timeout: 276 seconds]
MasouDa has quit [Read error: No route to host]
MasouDa has joined #lisp
fikka has quit [Ping timeout: 255 seconds]
fikka has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
wigust has quit [Read error: Connection reset by peer]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Read error: Connection reset by peer]
vlatkoB has quit [Remote host closed the connection]
Quetzal2 has quit [Quit: ?? Bye!]
fikka has joined #lisp
Mandus has quit [Ping timeout: 248 seconds]
kjeldahl has quit [Ping timeout: 240 seconds]
Kundry_Wag has joined #lisp
kjeldahl has joined #lisp
Mutex7 has joined #lisp
zachk has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
__rumbler31 has joined #lisp
zachk has quit [Changing host]
zachk has joined #lisp
_rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 260 seconds]
__rumbler31 has quit [Ping timeout: 240 seconds]
Mandus has joined #lisp
hjek has left #lisp [#lisp]
<dtornabene> so I've got a library (cl-async) with a bugfix that doesn't seem to have migrated up to a new package yet, i.e. the fixed library isn't available on quicklisp yet
MasouDa_ has joined #lisp
<dtornabene> my question is: should I download the fixed library from github and just install it via the local-projects mechanism?
<sjl> that's generally what I do
<dtornabene> cool
<sjl> don't forget step 2: forget you did this until six months later when it breaks something because you're running an old version
<dtornabene> ha
<sjl> I should clean out my local-projects every time I update the quicklisp dist, but I forget
<dtornabene> its like the third thing to go wrong loading another library and I'm getting perilously close to saying "yeah, nah....."
<dtornabene> i forget as well
MasouDa has quit [Ping timeout: 248 seconds]
MasouDa_ has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
MasouDa has joined #lisp
TMA has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
Kundry_Wag_ has joined #lisp
pierpa has joined #lisp
fikka has joined #lisp
* Xach uses ql:where-is-system a lot as a result
fikka has quit [Ping timeout: 248 seconds]
<Xach> It would be interesting (and easy to implement) to have an easy way to see local projects that shadow quicklisp projects.
warweasle has quit [Quit: rcirc on GNU Emacs 24.4.1]
<dtornabene> that would be interestin
<dtornabene> i didn't even know about that command, super cool
vtomole has quit [Ping timeout: 260 seconds]
ryanwatkins has quit [Ping timeout: 248 seconds]
<dtornabene> irony of it is that I had the quicklisp source queued up in another window to do some reading specifically to see what other commands there were that I haven't learned yet and I had to spend time trying to get another library to load
fikka has joined #lisp
jeosol has quit [Ping timeout: 260 seconds]
smurfrobot has joined #lisp
smurfrobot has quit [Ping timeout: 260 seconds]
dyelar has joined #lisp
Kundry_Wag_ has quit [Ping timeout: 260 seconds]
MasouDa_ has joined #lisp
MasouDa has quit [Ping timeout: 256 seconds]
Cymew has joined #lisp
sz0 has joined #lisp
DonVlad has quit []
Cymew has quit [Ping timeout: 240 seconds]
MasouDa has joined #lisp
MasouDa_ has quit [Ping timeout: 248 seconds]
_rumbler31 has quit [Ping timeout: 260 seconds]
smurfrobot has joined #lisp
innovati has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
smurfrobot has quit [Ping timeout: 256 seconds]
python476 has quit [Ping timeout: 240 seconds]
smurfrobot has joined #lisp
innovati has joined #lisp
Kaz` has quit [Ping timeout: 255 seconds]
smurfrobot has quit [Ping timeout: 260 seconds]
LiamH has quit [Quit: Leaving.]
reu_ has quit [Ping timeout: 256 seconds]
Bike has quit [Ping timeout: 260 seconds]
innovati has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
vtomole has joined #lisp
innovati has joined #lisp
<vtomole> stylewarning: Congrats https://www.youtube.com/watch?v=svmPz5oxMlI&t=2s
iqubic has joined #lisp
DemolitionMan has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
terpri has quit [Ping timeout: 256 seconds]
comborico1611 has quit [Remote host closed the connection]
comborico1611 has joined #lisp
mrcom has joined #lisp
reu has joined #lisp
katco has joined #lisp
MasouDa has quit [Ping timeout: 240 seconds]
rumbler31 has joined #lisp
Bicyclidine is now known as Bike
defunkydrummer has quit [Ping timeout: 260 seconds]
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #lisp
MasouDa has joined #lisp
ecraven has quit [Ping timeout: 276 seconds]
fraya has quit [Quit: WeeChat 1.8]
<ZigPaw> aeth you can run X Server on windows and have WSL apps using this (MobaXTerm works best with latest emacs snapshot).
ecraven has joined #lisp
jmercouris has quit [Ping timeout: 255 seconds]
MasouDa has quit [Ping timeout: 240 seconds]
MasouDa has joined #lisp
sjl has quit [Quit: WeeChat 2.0.1]
MasouDa has quit [Ping timeout: 256 seconds]
<drunk_foxx[m]> Lisp and Rigetti Computing on computerfile, wow
<drunk_foxx[m]> And it seems to be a series
<drunk_foxx[m]> Parenthesis to the masses!
<drunk_foxx[m]> But honestly this intro video tells almost nothing about the language, I bet it could have been done better. But whatever
dtornabene has quit [Quit: Leaving]
johnvonneumann has joined #lisp
johnvonneumann is now known as Guest60134
vtomole has quit [Ping timeout: 260 seconds]
papachan has quit [Quit: WeeChat 2.1]
energizer has quit [Quit: Leaving]
milanj has joined #lisp
rumbler31 has quit [Remote host closed the connection]
Kundry_Wag_ has joined #lisp
markong has quit [Ping timeout: 240 seconds]
bbobb has quit [Ping timeout: 256 seconds]
JuanDaugherty has joined #lisp
varjagg has quit [Ping timeout: 240 seconds]
vsync has quit [Quit: ZNC - http://znc.sourceforge.net]
vsync has joined #lisp
Kaisyu has joined #lisp
didi has joined #lisp
<didi> Heh, I'm having a brain fart. So (loop for fn in (loop for i to 3 collect (lambda () i)) collect (funcall fn)) evals to (4 4 4 4), but I want (0 1 2 3), i.e. I want the thunk to have the value of 'i' when it was created, not a reference to 'i'. What to do?
fikka has quit [Ping timeout: 264 seconds]
<Bike> (let ((x i)) (lambda () x))
<Bike> it's a pretty obscure and ambiguous point about what closures actually allocate
<didi> Bike: Ah. I tried (lambda () (let ((x i)) x)) and I failed.
<didi> This is interesting.
<Bike> the basic idea is that LOOP will create just one binding, and repeatedly modify it
<didi> Bike: Thank you.
orivej has joined #lisp
pierpa has quit [Quit: Page closed]
Kundry_Wag_ has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
spoken-tales has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
python476 has joined #lisp
spoken-tales has quit [Remote host closed the connection]
quazimodo has joined #lisp
spoken-tales has joined #lisp
fikka has joined #lisp
spoken-tales has quit [Remote host closed the connection]
zachk has quit [Quit: Leaving]
fikka has quit [Ping timeout: 240 seconds]