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
damke_ has joined #lisp
slyrus has joined #lisp
makomo has quit [Ping timeout: 260 seconds]
damke has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 268 seconds]
mckitty has quit [Quit: Page closed]
JenElizabeth has quit [Remote host closed the connection]
JenElizabeth has joined #lisp
Fare has joined #lisp
fikka has joined #lisp
Fare has quit [Ping timeout: 256 seconds]
kajo has quit [Quit: WeeChat 2.1]
fikka has quit [Ping timeout: 240 seconds]
Fare has joined #lisp
kajo has joined #lisp
MasouDa has quit [Read error: Connection reset by peer]
fikka has joined #lisp
MasouDa has joined #lisp
Mutex7 has quit [Remote host closed the connection]
SuperJen has joined #lisp
quazimodo has quit [Ping timeout: 256 seconds]
fikka has quit [Ping timeout: 240 seconds]
JenElizabeth has quit [Ping timeout: 264 seconds]
Bronsa` has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
fisxoj has joined #lisp
warweasle has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
ismdeep has joined #lisp
ismdeep has quit [Client Quit]
fikka has quit [Ping timeout: 240 seconds]
loli has quit [Quit: WeeChat 2.1]
daniel-s has joined #lisp
fikka has joined #lisp
pjb has quit [Ping timeout: 255 seconds]
fikka has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
markong has quit [Ping timeout: 240 seconds]
d4ryus1 has joined #lisp
mflem has quit [Ping timeout: 246 seconds]
d4ryus has quit [Ping timeout: 256 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
ebrasca has joined #lisp
<dmiles> i was indeed using chance loosely.. What I was trying to do is distinguish chess from a game of perfect information
arescorpio has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
<dmiles> yet most all chess solvers i know about are designed to work based on "perfect information" which is never possibly going to happen
<dmiles> in fact with all chess gambits if your opponent was playing with the same perfect information they cant win
<dmiles> i mean the gambit will fail if your opponent actually was making all the perfect counter moves
doanyway has joined #lisp
<dmiles> the best case is that your moves have create a multiplex of gambits that at leat one is not detected by your opponent
FreeBirdLjj has joined #lisp
<dmiles> which one will succeed will always be at best a random guess
<dmiles> not that this makes it a game of chance but you cannot know which gambits your opponent will miss
FreeBirdLjj has quit [Client Quit]
fikka has joined #lisp
yangby has joined #lisp
yangby is now known as Guest36608
<ebrasca> dmiles: I think you can find some steps with 100% win rate. I don't know if for white or black.
<dmiles> yes with white i think there are
<dmiles> but those still i assumed is when both sides play with the same bootstrap
fikka has quit [Ping timeout: 248 seconds]
zachk has quit [Quit: Leaving]
<dmiles> if you, ebrasca, are correct then indeed there can be a perfect, non-chanchy, game of chess played
pmetzger has joined #lisp
orivej has quit [Ping timeout: 240 seconds]
<dmiles> also i was wrong about not being perfect information.. it is.. but its a game of incomplete information instead
fisxoj has quit [Quit: fisxoj]
dtornabene has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
yoel has joined #lisp
SuperJen has quit [Remote host closed the connection]
JenElizabeth has joined #lisp
milanj__ has quit [Quit: This computer has gone to sleep]
yoel has quit [Ping timeout: 260 seconds]
iqubic has joined #lisp
<pierpa> dmiles: but chess*is* the prototypical example of a perfect information game!
<pierpa> and the point of chess is not hoping the opponenet doesn't see your cunning plans
<pierpa> (but let's continue in lispcafe, if interested)
dddddd has quit [Remote host closed the connection]
<iqubic> where's is lispcafe? is that just #lispcafe?
<pierpa> yes
vtomole has joined #lisp
fikka has joined #lisp
Winterschlaf has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
MasouDa has quit [Read error: Connection reset by peer]
Kundry_Wag has joined #lisp
fikka has joined #lisp
Fare has quit [Ping timeout: 240 seconds]
Kundry_Wag has quit [Ping timeout: 248 seconds]
brendyn has joined #lisp
<Josh_2> https://pastebin.com/Ay4Utu8x can someone help me with this macro, I understand why it is saying it is an unknown block but I don't know how to fix it
fikka has quit [Ping timeout: 240 seconds]
pmetzger has quit []
<pierpa> (loop named foo ... (return-from foo ...)) maybe
<pierpa> (block foo (loop ... (return-from foo ...))) maybe^2
<Josh_2> I did try the second, I will try it again though
<pierpa> hmmm
<pierpa> then wait, let me look better
<Josh_2> Wait that might have done it
<Josh_2> however if I have return from block pop nil will the end result of the function be nil?
fikka has joined #lisp
<Josh_2> I think so
<pierpa> what function?
<Josh_2> Well the macro sorry
<pierpa> you are mixing compile time things with run time things
<pierpa> let's see
<pierpa> the return-from is source code that your macro manipulates
<pierpa> it is not executed at the time your macro expander function is run
<pierpa> they are in two different worlds, so to speak
mflem has joined #lisp
<pierpa> use MACROEXPAND to understand better
<pierpa> (pprint (macroexpand-1 '(pop-data ...)))
fikka has quit [Ping timeout: 264 seconds]
<Josh_2> I mean it is working
<pierpa> if you macroexpand your original macro you see that there's no block named pop-data in the expansion
<Josh_2> Yeh
<pierpa> ok
<Josh_2> It is working with (block pop .. (return-from pop nil))
<pierpa> good
<pierpa> (loop named pop ...) should be equivalent
<Josh_2> THanks for the help, you think I need to gensym the symbol names? I am actually trying to pass in global variable names intentionally
<pierpa> If I remember corectly Loops syntax, that is
warweasle has quit [Quit: Leaving]
<pierpa> I think there's no need to gensym the names, but let me check more carefully
<Josh_2> This is an example call " (pop-data *sites-data* *sites-lock* *sites-queue*)"
<Josh_2> I want it to modify the global variables, that's why I used a macro
<pierpa> wait! why are you defining a macro at all?
<Josh_2> Uhm
<Josh_2> Because I needed the name of the global variable not the data
<Josh_2> and when I had just a function it kept trying to push a value to nil
<pierpa> ok. got it
<pierpa> I think there's no need to gensym the names, then. But don't sue me if I'm wrong.
Guest36608 has quit [Ping timeout: 260 seconds]
Guest36608 has joined #lisp
jself has quit [Quit: ZNC - 1.6.0 - http://znc.in]
doanyway has quit []
<z3t0> Hi, I am trying to learn about programming languages that are fundamentally different from others
<z3t0> So far I have spent some time hacking in common lisp and now am taking a look at smalltalk
<z3t0> One of the main features of smalltalk is that everything is accessible and reflective as it is based on a live image
<z3t0> I have noticed pretty much the same idea in common lisp, or is there something different about how one of these functions in terms of everything being at your fingertips at all times?
<pierpa> I'd say CL is less reflective than Smalltalk.
fikka has joined #lisp
jself has joined #lisp
fikka has quit [Ping timeout: 263 seconds]
schoppenhauer has quit [Ping timeout: 264 seconds]
smasta has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #lisp
karswell has quit [Read error: Connection reset by peer]
karswell has joined #lisp
quazimodo has joined #lisp
JenElizabeth has quit [Remote host closed the connection]
JenElizabeth has joined #lisp
ym has quit [Ping timeout: 240 seconds]
<Josh_2> So I was just thrown into the ldb, how do I get back to my normal slime session?
<pfdietz_> Can't?
<Josh_2> I don't know how
JenElizabeth has quit [Remote host closed the connection]
fikka has joined #lisp
<theemacsshibe[m]> I think if you get thrown in, you should go to inferior-lisp, quit ldb and start a new lisp.
fikka has quit [Ping timeout: 256 seconds]
<Josh_2> Yeh that's what I did
arescorpio has quit [Quit: Leaving.]
JenElizabeth has joined #lisp
fikka has joined #lisp
shifty has joined #lisp
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
Josh_2 has quit [Read error: Connection reset by peer]
Hello_ has quit [Quit: Page closed]
JenElizabeth has quit [Remote host closed the connection]
JenElizabeth has joined #lisp
Josh_2 has joined #lisp
<Josh_2> Just caused my pc to crash because I didn't manage to kill a rogue thread on time
<pierpa> hmmm
fikka has joined #lisp
yoel has joined #lisp
<Josh_2> Yeh wasn't smart
fikka has quit [Ping timeout: 240 seconds]
yoel has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
<Josh_2> added a sleep now so it doesn't crash
fikka has quit [Ping timeout: 264 seconds]
dented42 has joined #lisp
shrdlu68 has joined #lisp
bird-dog has joined #lisp
bird-dog has quit [Client Quit]
fikka has joined #lisp
pierpa has quit [Quit: Page closed]
fikka has quit [Ping timeout: 260 seconds]
asarch has joined #lisp
Josh_2 has quit [Remote host closed the connection]
fikka has joined #lisp
Kundry_Wag has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
nullniverse has quit [Quit: Leaving]
pierpal has joined #lisp
nullniverse has joined #lisp
Kundry_Wag has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
brendyn has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
zooey has quit [Remote host closed the connection]
kushal has quit [Read error: Connection reset by peer]
kushal has joined #lisp
zooey has joined #lisp
damke has joined #lisp
johnvonneumann has joined #lisp
al-damiri has quit [Quit: Connection closed for inactivity]
damke_ has quit [Ping timeout: 264 seconds]
mflem has quit [Read error: Connection reset by peer]
koenig has quit [Read error: Connection reset by peer]
koenig has joined #lisp
Denommus has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 240 seconds]
slyrus_ has quit [Ping timeout: 264 seconds]
slyrus_ has joined #lisp
vlatkoB has joined #lisp
fikka has joined #lisp
Sauvin has joined #lisp
Sauvin has quit [Max SendQ exceeded]
energizer has quit [Ping timeout: 264 seconds]
vaporatorius has quit [Ping timeout: 240 seconds]
Sauvin has joined #lisp
vaporatorius has joined #lisp
igemnace has joined #lisp
<asarch> From "http://www.gigamonkeys.com/book/object-reorientation-generic-functions.html": (defmethod withdraw ((account bank-account) amount) <- Which part is the name of the parameter[1] and which is the specializer[2]?
<asarch> Is [1] == (account bank-account) and [2] == amount?
Firedancer has quit [Ping timeout: 255 seconds]
nullniverse has quit [Read error: Connection reset by peer]
<Bike> "account" and "amount" are parameter names. bank-account is a specializer.
<asarch> Thank you Bike
<asarch> Thank you very much :-)
* asarch takes notes...
uint has quit [Ping timeout: 255 seconds]
uint has joined #lisp
Firedancer has joined #lisp
yoel has joined #lisp
rumbler31 has joined #lisp
yoel has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
surya_ has joined #lisp
quazimodo has joined #lisp
rumbler31 has quit [Ping timeout: 248 seconds]
<asarch> Another question: what is a "specializer"? Does it mean, "an instance" or "a super class"?
<Bike> specializers are either classes or eql specializers.
<Bike> your method definition is for a method that takes two parameters, and the first parameter is an instance of the class bank-account.
MichaelRaskin has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
oldtopman has joined #lisp
wigust has joined #lisp
test1600 has joined #lisp
sz0 has joined #lisp
<asarch> Thank you
<asarch> Thank you very much once again Bike :-)
fourier has joined #lisp
Bike has quit [Quit: Lost terminal]
<carmack> Hi! Anyone have job where you wirk with clisp?
<carmack> work*
<phoe> carmack: CLISP or Common Lisp?
<phoe> The first is an implementation, the other is a language.
megalography has left #lisp [#lisp]
<carmack> Common Lisp
fikka has joined #lisp
<phoe> some of us do, yes; I know of at least two companies which are hiring right now
<phoe> they advertised at the last European Lisp Symposium.
orivej has joined #lisp
<beach> Good morning everyone!
<phoe> beach: good morning!
Pixel_Outlaw has quit [Quit: Leaving]
<addsub> I am not sure whether the author cares, but I found a grammatical error in the first chapter of 'gentle intro'
<beach> What's the error?
<addsub> one sec
shka_ has joined #lisp
<addsub> I lost it, it isn't really important since it doesn't impact the procedure, but sounds ghetto. It's a 'be' that should be an 'are'.
<addsub> no big deal though.
<beach> addsub: Are you sure that it is not the subjunctive form?
<carmack> i read "ghetto" like a "gentoo", lol
<beach> addsub: As in "I would rather they be fired".
<addsub> beach: exactly.
<beach> That's correct.
<addsub> :/
<addsub> ok nevermind then.
<beach> It is not the subjunctive, but I forget the name of the verb form.
nika_ has joined #lisp
<TMA> I have seen subjunctive or conjunctive for this form in English
lyding has quit [Ping timeout: 265 seconds]
vtomole has quit [Ping timeout: 260 seconds]
<beach> Yes, but Steven Pinker says it is something different. I just can't remember.
Kundry_Wag has joined #lisp
lyding has joined #lisp
<TMA> addsub: it is the same form as in "If I were ..." or "If he care"
<phoe> Sigh
<phoe> It is impossible to retrieve the value of a class-allocated slot without creating an instance of said class.
<addsub> I found it. In this case I doubt it's a special verb form.
Kundry_Wag has quit [Ping timeout: 240 seconds]
<phoe> I thought that MOP:CLASS-PROTOTYPE would allow me to do this, but: "Whether the instance is initialized is not specified."
<phoe> Or rather, s/impossible/impossible in a way I hoped to do it/.
<jackdaniel> everything is impossible in lisp! wait, that doesn't sound right :-)
<phoe> I'll need to write a class-slot-value or something that fetches the slot metaobject from the class itself.
<addsub> page 19 'Chapter 1 Functions and Data 7. Second sentence in second line 'It is important that you be able to tell the difference between numbers'
<beach> That is correct.
<addsub> ok
<beach> phoe: Use the class prototype.
<beach> mop class-prototype
<phoe> beach: "Whether the instance is initialized is not specified."
<phoe> Does this mean that class-allocated slots are also not initialized?
SuperJen has joined #lisp
trn has quit [Read error: Connection reset by peer]
JenElizabeth has quit [Ping timeout: 264 seconds]
<addsub> I wish the first chapter had expanded exercises, those look fun.
asarch has quit [Quit: Leaving]
<phoe> beach: I can't yet see the MOP specifying this anywhere.
<beach> phoe: You use the prototype only for specialization.
random-nick has joined #lisp
<beach> The prototype does not contain the slot. The class does.
<phoe> Hm. Wait a second.
<beach> phoe: So don't attempt to read any instance-allocated slots.
<phoe> Does this mean that I can do (slot-value (class-prototype 'foo) 'class-allocated-slot)?
<beach> yes.
<beach> That's the typical use for the prototype.
<phoe> ...oh. Oooooh.
<phoe> Makes sense now. Thanks!
<beach> Anytime.
fikka has quit [Ping timeout: 248 seconds]
<phoe> beach: I have one more question that you might be able to answer.
<beach> Sure, go right ahead.
<phoe> Why SET-FUNCALLABLE-INSTANCE-FUNCTION is not a (SETF FUNCALLABLE-INSTANCE-FUNCTION)?
<beach> Oh, I don't know. I have asked myself that as well.
<phoe> Hmm. Okay.
<beach> The MOP definitely does not have the same level of standard as the Common Lisp HyperSpec does.
<beach> ... as the authors also admit.
fikka has joined #lisp
trn has joined #lisp
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ykm has joined #lisp
<LdBeth> How to translate string to bit array?
<beach> That depends a lot on how you want it translated.
ykm has quit [Remote host closed the connection]
<LdBeth> I want to checksum a password string
angavrilov has joined #lisp
<LdBeth> So it probably like how the characters represented in a text file
<phoe> LdBeth: best translate it to a vector of (unsigned-byte 8)s then
<LdBeth> Yes I get some idea
<phoe> is your string a hexadecimal string?
<phoe> or does it contain arbitrary text?
<LdBeth> Just ASCII texts
<phoe> use FLEXI-STREAMS:STRING-TO-OCTETS
<phoe> that will give you a vector of uint8s that you can work on.
damke has quit [Ping timeout: 264 seconds]
damke has joined #lisp
ym has joined #lisp
damke has quit [Ping timeout: 264 seconds]
pjb has joined #lisp
sz0 has quit [Quit: Connection closed for inactivity]
shrdlu68 has quit [Read error: Connection reset by peer]
dtornabene has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
<jackdaniel> fe[nl]ix: I've updated the semaphore PR yesterday (taken into account your remarks)
light2yellow has joined #lisp
fikka has quit [Ping timeout: 276 seconds]
Winterschlaf has left #lisp ["leaving"]
light2yellow has quit [Quit: brb]
light2yellow has joined #lisp
shrdlu68 has joined #lisp
quazimodo has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
hhdave has joined #lisp
damke has joined #lisp
damke_ has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
damke has quit [Ping timeout: 264 seconds]
shka_ has quit [Quit: Konversation terminated!]
shka has joined #lisp
pyx has joined #lisp
pyx has quit [Client Quit]
fikka has joined #lisp
Karl_Dscc has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #lisp
deng_cn has joined #lisp
yoel has joined #lisp
fikka has joined #lisp
johnvonneumann has quit [Remote host closed the connection]
yoel has quit [Ping timeout: 256 seconds]
SlowJimmy has joined #lisp
makomo has joined #lisp
DemolitionMan has joined #lisp
python476 has joined #lisp
wigust- has joined #lisp
wigust has quit [Ping timeout: 268 seconds]
makomo has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 248 seconds]
<light2yellow> why am I getting "value (fact k) is not of type number" ( https://pastebin.com/raw/EhG8tW6R ) ? shouldn't it look at fact and see that it returns number? or I cannot do this because macros don't evaluate at compile time, but have to be compileable?
janivaltteri has joined #lisp
hhdave has quit [Quit: hhdave]
fourier has quit [Ping timeout: 264 seconds]
hhdave has joined #lisp
<light2yellow> if I replace (mult2 (fact k)) with (* 2 (fact k)) it works as intended, so I don't undestand why it doesn't work with the macto
hhdave has quit [Ping timeout: 260 seconds]
<phoe> light2yellow: why do you use macrolet?
<phoe> replace MACROLET with FLET and this code will work.
<phoe> Also, why do you use INCF? Now both X and Y contain 5.
fikka has joined #lisp
shka has quit [Quit: Konversation terminated!]
v0|d has joined #lisp
edgar-rft has quit [Quit: edgar-rft]
fikka has quit [Ping timeout: 248 seconds]
markong has joined #lisp
<light2yellow> phoe: because I'm exploring the laguage. also, never mind, I finally figured out what `, , and @ do, so (mult2 (a) `(* 2 ,a)) seems to work
<beach> But it is not good style to use a macro when a function will do.
<light2yellow> I know
<light2yellow> see first sentense
shka has joined #lisp
zaquest has quit [Quit: Leaving]
SlowJimmy has quit [Quit: good bye cruel world]
<beach> light2yellow: Things don't quite work that way. If you ask for help, you can not demand that people ignore all the style violations in order to answer only the particular issue you are asking for.
<beach> light2yellow: And there is still the question of the INCF.
yeticry has quit [Remote host closed the connection]
cmatei has quit [Ping timeout: 255 seconds]
zaquest has joined #lisp
<light2yellow> beach: not demanding anything, but okay
gacepa has joined #lisp
fikka has joined #lisp
Arcaelyx_ has joined #lisp
Arcaelyx has quit [Ping timeout: 265 seconds]
SuperJen has quit [Ping timeout: 264 seconds]
surya_ has quit [Ping timeout: 248 seconds]
cage_ has joined #lisp
dented42 has joined #lisp
dddddd has joined #lisp
quazimodo has joined #lisp
karswell has quit [Remote host closed the connection]
karswell has joined #lisp
makomo has joined #lisp
Bike has joined #lisp
yoel has joined #lisp
yoel has quit [Ping timeout: 248 seconds]
wigust- has quit [Ping timeout: 260 seconds]
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cmatei has joined #lisp
damke has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
thuffir has joined #lisp
janivaltteri has quit [Quit: leaving]
fikka has quit [Quit: leaving]
fikka has joined #lisp
edgar-rft has joined #lisp
SenasOzys has quit [Ping timeout: 256 seconds]
chenggong_ has quit [Quit: Connection closed for inactivity]
thuffir has quit [Ping timeout: 256 seconds]
thuffir has joined #lisp
scymtym has quit [Ping timeout: 256 seconds]
hjek has joined #lisp
thuffir has quit [Ping timeout: 240 seconds]
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thuffir has joined #lisp
SenasOzys has joined #lisp
SenasOzys has quit [Remote host closed the connection]
thuffir has quit [Ping timeout: 260 seconds]
Anthaas_ has joined #lisp
surya has joined #lisp
quazimodo has quit [Ping timeout: 264 seconds]
brendyn has joined #lisp
SenasOzys has joined #lisp
zooey has quit [Remote host closed the connection]
quazimodo has joined #lisp
zooey has joined #lisp
milanj__ has joined #lisp
<phoe> If someone has a while, I'd like to request a review of https://github.com/phoe/protest/blob/master/doc/protocol.md - I have more or less finished documenting the protocol side of PROTEST and I wonder if it is understandable.
Kundry_Wag has joined #lisp
gacepa has quit [Quit: Connection closed for inactivity]
Kundry_Wag has quit [Ping timeout: 264 seconds]
<phoe> (whew, that's 700 lines of Markdown)
EvW has joined #lisp
scymtym has joined #lisp
<Xof> oh, horrors, you're probably allowed to redefine a short-form method combination into a long-form one (and vice versa)
<Xof> "no-one would ever do that"
Anthaas_ has quit [Quit: WeeChat 1.9.1]
<Bike> i don't think the standard says anything at all about redefining method combinations
<phoe> ^
<Xof> true
<Xof> it doesn't say anything about quite a lot of things
<Bike> especially not about method combinations
palter has joined #lisp
<jackdaniel> a live coding session with McCLIM and gadgets: https://www.youtube.com/watch?v=RBOrllTA-yc (forgive me a shameless plug :)
<Xof> change-class to the rescue
yoel has joined #lisp
daniel-s has quit [Remote host closed the connection]
<wetha> jackdaniel: nice!
<wetha> I think we need more of these..
<phoe> Xof: change-class + method-combinations?
<wetha> Does anybody know of lisp meetups/groups in Toronto?
<wetha> The one I could find seems dead ☹️
fikka has quit [Ping timeout: 276 seconds]
yoel has quit [Ping timeout: 240 seconds]
pmetzger has joined #lisp
<Xof> phoe: absolutely!
<phoe> Xof: woah dude
<phoe> ...in a perfect world, (change-class 1 (find-class 'float)) would evaluate to 1.0f
<Bike> you want mutable numbers?
<phoe> ...well, that's a good argument
<Xof> phoe: speaking as an implementor, that is very far from a perfect world
<_death> one thing about change-class is that it preserves the identity of the object..
<Xof> (change-class 1 'float :value 2) => 2.0f?
<Xof> if you're in the mood for looking at overgeneralizations in CLOS, contemplate (class-prototype (find-class 'integer))
<phoe> XD
<_death> SBCL gives a nice result for that ;)
sz0 has joined #lisp
<phoe> Xof: damn you to hell, I laughed so hard that my girlfriend came to check on me
<_death> but it gives bad result for (find-class 'float), and a weird result for (find-class 't)..
<phoe> ...well, correct, (sb-mop:class-prototype (find-class 't)) ;=> #<unknown pointer object, lowtag=#x3 {10005972F3}>
<Xof> _death: at some point you have to say "no-one would ever do that"
<_death> but we just did ;)
<Xof> it's my line and I'm sticking to it
<Xach> no-one ought ever do that
<Bike> i was doing i forget what in clasp and it started trying to take class prototypes of numeric classes, and that went badly
glv has joined #lisp
<Bike> it ws something general like trying to get prototypes of classes methods specialized on, for some reason
fikka has joined #lisp
<phoe> woah
<Xof> next up: I need to write a method combination which uses args-lambda-list, and then redefine it in an interesting way
<phoe> (mop:class-prototype (find-class 'integer)) on ECL gives me a god object
<phoe> I am that I am
<Xof> comments that make me feel this might be a long afternoon:
<Xof> ;;; This baby is a complete mess. I can't believe we put it in this
<Xof> ;;; way. No doubt this is a large part of what drives MLY crazy.
<Bike> args lambda list is just inoperable on ecl and clasp
Fare has joined #lisp
wigust has joined #lisp
<Bike> what is MLY? a maintainer?
fikka has quit [Ping timeout: 248 seconds]
<Xof> probably a developer of PCL back when it was at Xerox
<splittist> Molly Miller?
<Xof> the good news is that I reckon this can be made to display hilariously broken behaviour
<Xof> so much worse than anything Didier showed at ELS
<_death> could be Richard Mlynarik
<phoe> Xof: please document it and submit to the next ELS, so you can stand up and announce everyone, "I have bad news and bad news; the bad news is that Didier was right last year, the bad news is that I found things that are even worse than that"
<phoe> s/everyone/
Lord_Nightmare has quit [Ping timeout: 248 seconds]
v0|d has quit [Read error: Connection reset by peer]
Lord_Nightmare has joined #lisp
<Bike> i've thought about how to implement it, but it seems like a huge pain in the ass, and nobody uses method combinations to begin with, let alone their exotic features
<Bike> and i don't think that's because of poor support
<Xof> I think they have potential in the obfuscated lisp coding contest
<Bike> oh, well, when you put it that way
<addsub> I guess in lisp world there's no real rush to port docs to epub format.
<beach> McCLIM defines a method combination called VALUES-MAX-MIN.
<phoe> addsub: what do you mean?
<addsub> phoe: I am converting 'gentle intro' to epub.
pmetzger has left #lisp [#lisp]
<phoe> obfuscated lisp coding contest is troublesome as soon as you allow reader macros because you can implement a malbolge parser and write the rest of your program in malbolge.
<addsub> the small font is killing my eyes.
<addsub> really hard to browse too.
<Xof> (defgeneric foo (x) (:method-combination japh) (:method ((x symbol)) x)) (foo x) ; => "Just another Lisp hacker"
<Bike> kinda neat though
<beach> Yes, that one.
<Xof> I touched that code almost 10 years ago
<Xof> Athas wrote most of it, though
fikka has joined #lisp
<Bike> looks like it's only used for one function, which has two methods, both of which return 0 as primary value
<Bike> need some extensions to truly leverage all the complication
<Xof> pretty sure it is (was) actually used
fikka has quit [Ping timeout: 240 seconds]
surya has quit [Read error: No route to host]
surya has joined #lisp
<MichaelRaskin> phoe: you do know that obfuscated C contest is considered succesful when the year's winning entry leads to a rule change for the next year?
<MichaelRaskin> A malbolge parser as a reader in obfuscated lisp content would not even need a rule change, it will just get a «so what» from every judge
<Bike> yeah dull
<Bike> now, if there was a malbolge method combination,
<Xof> don't tempt me
<Bike> at least a turing complete method combination
<Bike> you could have the qualifiers be transition tuples
<phoe> MichaelRaskin: yes
Kundry_Wag has joined #lisp
<phoe> Bike: oh my god
zaquest has quit [Remote host closed the connection]
fikka has joined #lisp
zaquest has joined #lisp
Kundry_Wag has quit [Ping timeout: 248 seconds]
deng_cn has quit [Ping timeout: 260 seconds]
fikka has quit [Ping timeout: 240 seconds]
shrdlu68 has quit [Read error: Connection reset by peer]
<jackdaniel> are we designing CL++ or what? :)
deng_cn has joined #lisp
<Bike> should be doable without standards changes
fikka has joined #lisp
<Xof> well I think method combinations might be the opposite of Turing complete
<Xof> I can't work out how to do anything with them
<phoe> Xof: you could get it to loop unto itself somehow
<Bike> off the top of my head, you could have a positive integer be the parameter, then have qualifiers be a rational, then make the effective method the list of execution of a FRACTRAN program in order
<phoe> while inside a method combination, you could perhaps redefine the method combination and call the GF again
<phoe> I don't think the standard disallows this
fikka has quit [Ping timeout: 255 seconds]
brendyn has quit [Ping timeout: 240 seconds]
asarch has joined #lisp
fikka has joined #lisp
comborico1611 has joined #lisp
cage_ has quit [Quit: Leaving]
fisxoj has joined #lisp
JuanDaugherty has joined #lisp
deng_cn has quit [Remote host closed the connection]
deng_cn has joined #lisp
milanj__ has quit [Quit: This computer has gone to sleep]
fikka has quit [Ping timeout: 268 seconds]
test1600 has quit [Quit: Leaving]
quazimodo has quit [Ping timeout: 268 seconds]
quazimodo has joined #lisp
yoel has joined #lisp
EvW has quit [Ping timeout: 260 seconds]
yoel has quit [Ping timeout: 256 seconds]
iqubic has quit [Remote host closed the connection]
Hello_ has joined #lisp
fikka has joined #lisp
rml has joined #lisp
rml is now known as rml_
dented42 has joined #lisp
azimut has quit [Ping timeout: 256 seconds]
azimut has joined #lisp
dented42 has quit [Ping timeout: 255 seconds]
python476 has quit [Ping timeout: 255 seconds]
dented42 has joined #lisp
fisxoj has quit [Quit: fisxoj]
shrdlu68 has joined #lisp
<beach> jackdaniel: The clstandard_build is not exactly what I am looking for to use for WSCL. It builds each file separately, which is not good enough for the kind of cross referencing I have in mind.
<beach> jackdaniel: But thanks for suggesting it.
sz0 has quit [Quit: Connection closed for inactivity]
<jackdaniel> sure
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Josh_2 has joined #lisp
shifty has quit [Ping timeout: 240 seconds]
rml_ has quit [Quit: rcirc on GNU Emacs 25.0.94.2]
Fare has quit [Ping timeout: 264 seconds]
surya has quit [Ping timeout: 248 seconds]
surya has joined #lisp
fisxoj has joined #lisp
nullman has quit [Ping timeout: 268 seconds]
nullman has joined #lisp
<Xof> looping back is, I think, fairly easy: you can manipulate the next method list for every call-method site
<Xof> ok, I have a semi-sensible long-form method combination with arguments
<Xof> remember Didier said he wanted to be able to choose between or and and method-combination at runtime?
python476 has joined #lisp
Fare has joined #lisp
<Xof> behold:
<Xof> (what 'every 3) ; => NIL
<Xof> (what 'some 3) ; => T
<Xof> (what (lambda (f seq) (apply 'concatenate 'string (mapcar 'string seq))) 3) ; => "NILT"
igemnace has quit [Read error: Connection reset by peer]
dlowe has quit [Quit: ZNC - http://znc.sourceforge.net]
Pixel_Outlaw has joined #lisp
Petit_Dejeuner has joined #lisp
<Bike> using :arguments?
<Bike> i mean, the first argument is how to combine, i guess
jonh has left #lisp ["WeeChat 1.4"]
fourier has joined #lisp
quazimodo has quit [Ping timeout: 256 seconds]
JenElizabeth has joined #lisp
SenasOzys has quit [Ping timeout: 240 seconds]
Fare has quit [Quit: Leaving]
<Xof> yes
<Xof> I mean it's nothing that you can't do with an around method
<Xof> don't rain on my parade
fikka has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
EvW has joined #lisp
megalography has joined #lisp
SlowJimmy has joined #lisp
shrdlu68 has quit [Read error: Connection reset by peer]
milanj__ has joined #lisp
megalography has quit [Ping timeout: 255 seconds]
JuanDaugherty has quit [Quit: Ex Chat]
mflem has joined #lisp
sauvin_ has joined #lisp
Sauvin has quit [Ping timeout: 264 seconds]
lonjil has quit [Read error: Connection reset by peer]
sauvin_ is now known as sauvin
beach` has joined #lisp
* edgar-rft prefers '(:bam :clunk :pow :slosh :whack) over :arguments
ferada has joined #lisp
<ferada> hi all, anyone using next/cl-webkit?
beach has quit [Ping timeout: 256 seconds]
yoel has joined #lisp
megalography has joined #lisp
yoel has quit [Ping timeout: 256 seconds]
ghostyy has quit [Disconnected by services]
fikka has quit [Ping timeout: 255 seconds]
ghostyy has joined #lisp
ghostyy has quit [Disconnected by services]
SenasOzys has joined #lisp
ghostyyy has joined #lisp
fikka has joined #lisp
ghard`` has joined #lisp
cage_ has joined #lisp
tripty has quit [Ping timeout: 256 seconds]
ghard` has quit [Ping timeout: 265 seconds]
<thorondor[m]> hello. I have problem running cl-cairo2 on ECL. https://github.com/rpav/cl-cairo2/issues/24
dcluna_ has quit [Ping timeout: 240 seconds]
<thorondor[m]> Does anybody have an idea why?
palter has quit []
damke_ has joined #lisp
<cage_> no idea sorry :(
<jackdaniel> pointer-void means (void *)
dcluna has joined #lisp
<jackdaniel> how the problem manifests?
<jackdaniel> (because it looks like a correct function result)
surya has quit [Read error: No route to host]
damke has quit [Ping timeout: 263 seconds]
Lord_Nightmare2 has joined #lisp
<thorondor[m]> pointer should not be void
tripty has joined #lisp
<thorondor[m]> should give a SAP pointer to a created cairo surface
<thorondor[m]> happens only on ECL, works in SBCL, CCL
<thorondor[m]> I don't know how to debug
<jackdaniel> function declaration says: pointer
Lord_Nightmare has quit [Ping timeout: 248 seconds]
Lord_Nightmare2 is now known as Lord_Nightmare
<jackdaniel> if it is not (void*), then what should be default?
<jackdaniel> (int*)?
<Petit_Dejeuner> struct cairo_image_surface *?
svillemot has quit [Ping timeout: 276 seconds]
<jackdaniel> I fail to see it in the function definition in linked issue
<thorondor[m]> I don't know, but the surface is not created :)
<jackdaniel> if function is declared to return :pointer, then result will be a void pointer and it is not incorrect
<Bike> i think what thorondor means is that the pointer should not be NULL?
<thorondor[m]> bike: yes
<Bike> does ecl not print the address? :pointer-void just means it's a void*, i guess
<jackdaniel> it does not print the address
svillemot has joined #lisp
<Bike> alright, so the result might be fine
<jackdaniel> and and I've tried it in my repl
<Bike> maybe there's supposed to be a side effect of making something on the screen or whatnot
<jackdaniel> (ffi:null-pointer-p (cairo::cairo_image…)) ; -> NIL
<jackdaniel> maybe, but returned pointer is not a null pointer on my system
<_death> also seems cl-cairo2 already wraps surfaces.. https://github.com/rpav/cl-cairo2/blob/master/src/surface.lisp#L222
<jackdaniel> I'll add a ticket to ecl's gitlab to print address of the pointer to avoid user confusion
<jackdaniel> thorondor[m]: sap is sbcl-specific type
<thorondor[m]> oh
<pfdietz_> "nobody uses method combinations"
<Bike> if ecl keeps track of the referent type that's kind of interesting, i don't think other implementations do that
<thorondor[m]> and does cairo tests work for you?
<thorondor[m]> yes
<Bike> pfdietz_: i was being hyperbolic, of course
lemoinem has quit [Ping timeout: 240 seconds]
<jackdaniel> Bike: it does
<thorondor[m]> (ql:quickload :cl-cairo2-demos)
<thorondor[m]> (cairo-demo:run 'cairo-demo::mesh1)
lemoinem has joined #lisp
krwq has joined #lisp
omilu has quit [Remote host closed the connection]
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
nckx has joined #lisp
dented42 has joined #lisp
dented42 has quit [Client Quit]
comborico1611 has quit [Quit: Konversation terminated!]
yoel has joined #lisp
dented42 has joined #lisp
<jackdaniel> if you narrow the problem please report the issue (if it is ECL's fault) at https://gitlab.com/embeddable-common-lisp/ecl/issues/
<jackdaniel> thing described in your ticket is not the cause of cairo demos failing
JenElizabeth has quit [Remote host closed the connection]
JenElizabeth has joined #lisp
scymtym has quit [Ping timeout: 260 seconds]
<thorondor[m]> ok, thanks
megalography has quit [Ping timeout: 268 seconds]
krwq has quit [Remote host closed the connection]
SlowJimmy has left #lisp ["good bye cruel world"]
glv has quit [Quit: glv]
ophan has joined #lisp
drastik_ is now known as drastik
dddddd has quit [Remote host closed the connection]
<asarch> If I do: (defgeneric bread (butter ham) (:documentation "Bread for your breakfast")) and then I do: (defmethod bread ((butter hot-cake) coffe) (format t "American breakfast to go")). What's wrong?
<asarch> "There is no class named COMMON-LISP-USER::HOT-CAKE."?
megalography has joined #lisp
<Bike> that seems like a pretty informative error message
<jackdaniel> well, do you have class hot-cake?
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jackdaniel> bisection indicates, that problem is somewhere between screen and a chair (exclusive)
<jackdaniel> ;-)
<Bike> (defmethod ((butter hot-cake) coffee) ...) means the method takes two arguments, and the first one is an instance of the class hot-cake
<Bike> if there is no class hot-cake to be an instance of, t here's problems
<asarch> How would I fix it?
megalography has quit [Ping timeout: 264 seconds]
<Bike> have a class hot-cake
<asarch> I mean, this example is from the PCL and it doesn't say anything about it
<Bike> what are you trying to do here? what did you expect to happen?
<asarch> The book doesn't say anything about a previous class definition for, this case, "hot-cake"
<Bike> what chapter is this?
<Bike> there's no "hot-cake" in this text, or 'bread" in code
<Bike> am i missing something
<asarch> No, I just replace some words for other words
<asarch> Then, would you declare a class?
<asarch> *How would you...
<Bike> defclass. covered in the next chapter.
<asarch> Doesn't DEFGENERIC do that?
<asarch> D'oh!
<Bike> no, defgeneric defines a generic function.
<Bike> looking at this chapter, it doesn't seem like the code is intended to be run independently.
<asarch> Oh :-( I thought generic function was the same for classes in Lisp
ferada has left #lisp [#lisp]
<asarch> Thank you Bike
<asarch> Thank you very much :-)
<edgar-rft> asarch, the last sentence on that page is "In the next chapter I'll show you how to define your own classes."
<Bike> there's a section in here titled "Generic Functions and Classes"
<hjek> hi, anyone tried LTK? any code i run just gives me a blank window. tried to run a TCL/TK example with 'wish' and worked fine.
<asarch> D'oh! I still was in the section "Multimethod" trying to figure out how to run that code...
<jackdaniel> hjek: check out query
<jackdaniel> I didn't paste code here for obvious reasons
fsmunoz has joined #lisp
<jackdaniel> you may have forgotten to call "pack" for instance
<jackdaniel> or you didn't estabilish dynamic context by using with-ltk macro
<hjek> even (ltktest) just shows up blank though...?
<jackdaniel> and the thing I've pasted on query, if you type it in the repl – does it work?
<hjek> and (ltk-eyes). the two examples. but will give 'pack' and 'query' a look
<jackdaniel> it should show a button
beach` is now known as beach
<hjek> jackdaniel: pasted on query (?). what's that? a code pasting channel?
<hjek> ah ok i see, another window popped up!
scymtym has joined #lisp
<hjek> ouch, i need to disable the smileys in pidgin. all the lisp code is just smiling faces
<jackdaniel> on IRC you have channels (like #lisp) and direct messages
<jackdaniel> which are sometimes called query
<edgar-rft> hjek, Lisp was designed to make you smile :-)
yoel has quit [Remote host closed the connection]
<hjek> jackdaniel: it shows a blank window
<hjek> with the title LTK
<jackdaniel> then there is something wrong with your system, but I can't tell what is wrong
<jackdaniel> (as in: works for me)
<hjek> oh actually, it was the :p in "(ltk:pack b)))" that was a smiley. so tcl is happy too
<hjek> using newest ECL and LTK from quicklisp. any idea how to get information that would be useful for debugging / filing bug report?
<thorondor[m]> I've fixed cl-cairo2 on ECL
<jackdaniel> thorondor[m]: what was wrong?
<jackdaniel> hjek: no, I don't know, but it works with ECL on my host
<hjek> ah ok also on ECL. weird.
<thorondor[m]> it was not ECL problem
<jackdaniel> hjek: ops, my bad, it does not work on ECL
<jackdaniel> it worked on sbcl though
<jackdaniel> OK, so the problem is that ltk was never proted to ECL
<thorondor[m]> jackdaniel: cl-cairo2 assumed that after calling (trivial-garbage:finalize <object> <function>), <object> was returned, but that was not the case for ECL
<jackdaniel> it has some mop stuff for sbcl/cmu, but nothing for ecl
<hjek> mop?
megalography has joined #lisp
<jackdaniel> metaobject protocol
<hjek> ah
<jackdaniel> well, it has run-program for ecl, but except that nothing
<jackdaniel> either way it is most likely a bug in the library
<jackdaniel> I'm not going to debug ltk beyond what I did until now though
<hjek> cool, thanks
<hjek> i know where to look now
<Bike> thorondor[m]: the trivial-garbage documentation states that finalize returns the object. if it doesn't on ecl, that's a bug in trivial garbage, not cairo2.
<thorondor[m]> oh. ok.
<thorondor[m]> I'll make a ticket for trivial-garbage then. thanks
<Bike> https://github.com/trivial-garbage/trivial-garbage/blob/master/trivial-garbage.lisp#L307-L313 ext:set-finalizer doesn't return the object i guess, so all you'd have to do is have the let return object
<phoe> https://common-lisp.net/project/ecl/static/manual/re89.html does not say anything about the return value
<jackdaniel> I know that page :)
JenElizabeth has quit [Remote host closed the connection]
megalography has quit [Ping timeout: 240 seconds]
<thorondor[m]> it is trivial to implement in trivial-garbage anyway. just return the passed object, regardless of the implementation specific finalizer implementation
<phoe> jackdaniel: gasp
loli has joined #lisp
JenElizabeth has joined #lisp
ealfonso has joined #lisp
yoel has joined #lisp
<ealfonso> I was using one package (via (:use :lib1)) and decided to change to a different library lib2, so I removed lib1 from the :use list. now I'm getting a warning: "MY-PACKAGE also uses the following packages: lib1". how can I "un-use" a package?
<Bike> clhs unuse-package
<ealfonso> I tried (unexport nil (FIND-PACKAGE 'lib1)) (unexport 'lib1), etc, which didn't work
<Bike> package redefinition is kind of egh though
<Petit_Dejeuner> "it is trivial to implement in trivial-garbage" ha
<ealfonso> Bike thanks, I should probably have thought of that.
fourier has quit [Ping timeout: 276 seconds]
fourier has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
<phoe> Petit_Dejeuner: time for trivial-trivial
fikka has joined #lisp
yoel has quit [Remote host closed the connection]
Arcaelyx has joined #lisp
megalography has joined #lisp
fikka has quit [Ping timeout: 276 seconds]
Quetzal2 has joined #lisp
hjek has quit [Quit: Leaving.]
Naergon has joined #lisp
AxelAlex has joined #lisp
dented42 has joined #lisp
vtomole has joined #lisp
fikka has joined #lisp
<phoe> gosh, I wrote over a thousand lines of markdown over the course of the last three days
fikka has quit [Ping timeout: 255 seconds]
<phoe> and one of the worst things is that I'm enjoying it
yoel has joined #lisp
yoel has quit [Remote host closed the connection]
yoel has joined #lisp
vtomole has quit [Ping timeout: 260 seconds]
MasouDa has joined #lisp
fikka has joined #lisp
khisanth__ has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 240 seconds]
angavrilov has quit [Remote host closed the connection]
fikka has joined #lisp
JohanP has joined #lisp
fsmunoz has quit [Ping timeout: 268 seconds]
fikka has quit [Ping timeout: 260 seconds]
Mutex7 has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
fourier` has joined #lisp
fourier has quit [Ping timeout: 264 seconds]
Baggers has joined #lisp
AxelAlex has quit [Quit: AxelAlex]
nika_ has quit [Quit: Leaving...]
khisanth__ has joined #lisp
yoel has quit [Remote host closed the connection]
<ealfonso> anyone familiar with stefil know how to clear/delete previously defined tests in a suite?
fikka has joined #lisp
zachk has joined #lisp
zachk has joined #lisp
zachk has quit [Changing host]
fikka has quit [Ping timeout: 248 seconds]
loli has quit [Quit: WeeChat 2.1]
Mutex7 has quit [Quit: Leaving]
Karl_Dscc has quit [Remote host closed the connection]
ym has quit [Ping timeout: 260 seconds]
jeosol has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
SlowJimmy has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
python476 has quit [Ping timeout: 260 seconds]
fisxoj has quit [Quit: fisxoj]
josemanuel has joined #lisp
dlowe has joined #lisp
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dented42 has joined #lisp
energizer has joined #lisp
fikka has joined #lisp
Quetzal2 has quit [Remote host closed the connection]
vlatkoB has quit [Remote host closed the connection]
matijja has quit [Ping timeout: 240 seconds]
EvW has quit [Ping timeout: 255 seconds]
python476 has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
Kundry_Wag has joined #lisp
light2yellow has quit [Quit: brb]
fikka has joined #lisp
Kundry_Wag has quit [Ping timeout: 248 seconds]
SlowJimmy has quit [Ping timeout: 265 seconds]
fikka has quit [Ping timeout: 248 seconds]
light2yellow has joined #lisp
SlowJimmy has joined #lisp
damke has joined #lisp
milanj__ has quit [Quit: This computer has gone to sleep]
damke_ has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
quazimodo has joined #lisp
EvW has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
quazimodo has joined #lisp
megalography has quit [Ping timeout: 276 seconds]
rngoodn has joined #lisp
rngoodn has left #lisp [#lisp]
asarch has quit [Quit: Leaving]
fikka has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
<PuercoPop> ealfonso: following ensure-test points to the *TESTS* variable. Also FIND-TEST is SETFable. So (setf (find-test 'my-test) nil) should work
<PuercoPop> (you are using the hu.dwim.stefil version right?)
<pfdietz_> Is there a CL test framework for property-based testing? That is, it allows descriptions of properties that some piece of software must have, and (separately) ways of generating inputs for the software.
<PuercoPop> pfdietz_: there are two attempts
fikka has joined #lisp
<PuercoPop> (sec, I'm looking for the URL)
dddddd has joined #lisp
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
yoel has joined #lisp
<pfdietz_> Hmm
fikka has quit [Ping timeout: 260 seconds]
yoel has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
v0|d has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
JohanP has quit [Ping timeout: 264 seconds]
shka has quit [Ping timeout: 260 seconds]
Hello_ has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
cage_ has quit [Quit: Leaving]
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
nckx has joined #lisp
nckx has quit [Client Quit]
SuperJen has joined #lisp
nckx has joined #lisp
JenElizabeth has quit [Ping timeout: 264 seconds]
pierpa has joined #lisp
damke_ has joined #lisp
Tristam has quit [Ping timeout: 260 seconds]
damke has quit [Ping timeout: 264 seconds]
<ealfonso> when I saw an array returned from drakma:http-request, I thought it had interpreted the application/json content type and automatically parsed response JSON to an array... I was wrong. apparently I have to add the hack: (push (cons "application" "json") drakma:*text-content-types*) suggested here https://sites.google.com/site/sabraonthehill/home/json-libraries
JohanP has joined #lisp
random-nick has quit [Remote host closed the connection]
SuperJen has quit [Remote host closed the connection]
JenElizabeth has joined #lisp
makomo has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
light2yellow has quit [Quit: light2yellow]
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
josemanuel has quit [Quit: leaving]
<z3t0> ealfonso, you may find cl-json useful to convert that to a list
<pfdietz_> That all made me not appreciate CL's punning of () and NIL.
ealfonso has quit [Ping timeout: 276 seconds]
python476 has quit [Ping timeout: 260 seconds]
fourier` has quit [Read error: Connection reset by peer]
thuffir has joined #lisp
ealfonso has joined #lisp
<pierpa> I like CL's punning. The problem only occurs when interfacing with a format that chose a different set of punnings.
<antoszka> What's a punning, pierpa?
<pierpa> so, a naive mapping between the two doesn't work. Not a CL fault.
<pierpa> it means something for two different purposes
<pierpa> *something used
<pierpa> (in this context)
<pierpa> like nil being the empty list and the boolean false value
v0|d has quit [Read error: Connection reset by peer]
fikka has quit [Ping timeout: 240 seconds]
<antoszka> pierpa: tx
<antoszka> thx*
thuffir has quit [Ping timeout: 260 seconds]
thuffir has joined #lisp
Pixel_Outlaw has quit [Quit: Leaving]
fikka has joined #lisp
myrkraverk has quit [Ping timeout: 256 seconds]
DemolitionMan has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
thuffir has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
ebzzry has quit [Ping timeout: 256 seconds]
<antoszka> Is there a reader macro out there for ingesting/operating on IP addresses written in decimal notation? (and keeping them internally as 32-bit integers as they are?)
<antoszka> I'd rather not have to enter them as strings and convert manually.
comborico1611 has joined #lisp
<Bike> not that i'm aware of. i think socket libraries tend to use vectors as addresses, but i could be wrong
<Bike> so like #(127 0 0 1)
yoel has joined #lisp
myrkraverk has joined #lisp
Lord_Nightmare has quit [Ping timeout: 264 seconds]
<antoszka> Bike: oh, okay, any particular socket library you have in mind? Do you think it'd be useful to write a macro like this?
<antoszka> I could try creating a library for that.
<Bike> sb-bsd-sockets
<Bike> e.g. (sb-bsd-sockets:host-ent-address (sb-bsd-sockets:get-host-by-name "google.com")) => #(172 217 3 110)
<antoszka> thx
<antoszka> guess that's not bad
<Bike> tho it's actually a ub8 vector, not a general vector
<antoszka> still, that works
<Bike> as for a reader macro, id on't know, i don't deal with that kind of stuff much, but i thought hardcoded ip addresses weren't common
<antoszka> wonder if ipv6 is supported
yoel has quit [Ping timeout: 256 seconds]
<antoszka> that'd actually be non-trivial for a reader macro (and probably fun to code)
ebzzry has joined #lisp
Lord_Nightmare has joined #lisp
<Bike> let's see, on sbcl gethostbyname actually returns two values, and the second is v6
<Bike> #(38 7 248 176 64 6 8 24 0 0 0 0 0 0 32 14)
megalography has joined #lisp
detectiveaoi has joined #lisp
<antoszka> it does, in fact :)
Hello_ has joined #lisp
ealfonso has quit [Ping timeout: 265 seconds]
Guest36608 has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 264 seconds]
markong has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
<pierpa> There's only a finite number of characters, and very few of them are usable easily. I wouldn't waste one for this macro. And the convenience would be infinitesimal anyway.
pmetzger has joined #lisp
<antoszka> Yeah, seems most of the useful code is there already in sb-bsd-sockets.
borei has left #lisp [#lisp]
wxie has joined #lisp
<Bike> despite the name, the interface is also usable on ecl and maybe other implementations