Xach changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/>
orivej has quit [Ping timeout: 276 seconds]
gobble_gobble has quit [Ping timeout: 276 seconds]
gobble_gobble has joined #lisp
iovec has quit [Quit: Connection closed for inactivity]
avicenna has quit [Ping timeout: 276 seconds]
defaultxr has joined #lisp
avicenna has joined #lisp
<pjb> Depends on whether you wnat to use the library at the Department of Internal Affairs, or at the Department of State…
gjnoonan has quit [Ping timeout: 276 seconds]
gjnoonan has joined #lisp
buffergn0me has quit [Ping timeout: 245 seconds]
<jasom> I think a *found* domestic library would be the opposite of a missing foreign library
earl-ducaine has joined #lisp
random-nick has quit [Ping timeout: 276 seconds]
whiteline has joined #lisp
brown121407 has quit [Ping timeout: 250 seconds]
stzsch has joined #lisp
<White_Flame> (let ((*found* nil)) ... muhahaha)
h11 has joined #lisp
kmeow has quit [Remote host closed the connection]
clothespin has joined #lisp
clothespin_ has joined #lisp
_jrjsmrtn has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 245 seconds]
EvW has joined #lisp
ahungry has joined #lisp
rgherdt has joined #lisp
wiselord has quit [Read error: Connection reset by peer]
wiselord has joined #lisp
rgherdt has quit [Ping timeout: 276 seconds]
noobineer has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
wiselord has quit [Read error: Connection reset by peer]
wiselord has joined #lisp
shifty has quit [Ping timeout: 240 seconds]
william1 has quit [Ping timeout: 265 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 268 seconds]
Lord_of_Life_ is now known as Lord_of_Life
jello_pudding has joined #lisp
elfmacs has joined #lisp
bitmapper has quit [Ping timeout: 265 seconds]
ljavorsk has quit [Ping timeout: 268 seconds]
ArthurStrong has joined #lisp
wiselord has quit [Ping timeout: 265 seconds]
buffergn0me has joined #lisp
slyrus__ has quit [Ping timeout: 250 seconds]
slyrus has joined #lisp
clothespin__ has joined #lisp
clothespin_ has quit [Ping timeout: 250 seconds]
clothespin_ has joined #lisp
clothespin has quit [Ping timeout: 276 seconds]
EvW has quit [Ping timeout: 250 seconds]
SaganMan has quit [Ping timeout: 245 seconds]
earl-ducaine has quit [Ping timeout: 268 seconds]
clothespin has joined #lisp
clothespin_ has quit [Read error: Connection reset by peer]
tourjin has quit [Ping timeout: 265 seconds]
madand_ has left #lisp ["Killed buffer"]
madand_ has joined #lisp
oxum has joined #lisp
Bike has quit [Quit: Lost terminal]
Necktwi_ has joined #lisp
Necktwi_ has quit [Client Quit]
MinnowTaur has joined #lisp
dmiles has quit [Read error: Connection reset by peer]
dmiles has joined #lisp
orivej has joined #lisp
earl-ducaine has joined #lisp
elfmacs has quit [Quit: WeeChat 2.6]
buffergn0me has quit [Ping timeout: 250 seconds]
rotucer has quit [Ping timeout: 268 seconds]
whartung has quit [Read error: Connection reset by peer]
whartung has joined #lisp
vlatkoB has joined #lisp
ArthurStrong has quit [Quit: leaving]
ggole has joined #lisp
rotucer has joined #lisp
ebzzry has quit [Ping timeout: 252 seconds]
clothespin_ has joined #lisp
beach` is now known as beach
clothespin has quit [Ping timeout: 245 seconds]
ebrasca has quit [Remote host closed the connection]
<smokeink> so what do you guys think of this http://www.cs.yale.edu/homes/dvm/format-stinks.html
rippa has joined #lisp
clothespin__ has quit [Ping timeout: 250 seconds]
clothespin__ has joined #lisp
<beach> Good morning everyone!
<phadthai> I don't think removing format from the language is realistic, but I did use other things that are more like templates as well, CL nicely allowing it
<phadthai> hello beach
<aeth> I don't use FORMAT that much, but I don't have to. Unless you're doing FORMAT NIL you can just mix and match whatever you want to write to a stream, and I find that that leads to clearer code, personally.
<aeth> (format stream "Hello, ~A!~%") (write-line "Isn't this great?" stream) (terpri stream)
<aeth> oops, left out name in the FORMAT, but you got the idea
<equwal> Good morning beach!
gravicappa has joined #lisp
slyrus_ has joined #lisp
earl-ducaine has quit [Ping timeout: 268 seconds]
earl-ducaine has joined #lisp
<beach> _death: Yes, I think that's the one.
clothespin has joined #lisp
clothespin__ has quit [Read error: Connection reset by peer]
clothespin__ has joined #lisp
slyrus has quit [Ping timeout: 276 seconds]
clothespin has quit [Ping timeout: 276 seconds]
orivej has quit [Ping timeout: 268 seconds]
slyrus__ has joined #lisp
<smokeink> can describe be configured what info to display? in sbcl (describe 'symbol) doesn't show whether a symbol is external or not
slyrus_ has quit [Ping timeout: 268 seconds]
<smokeink> (defmethod describe-object ((s symbol) stream) ; seems to work
<phadthai> yes describe-object is a generic function
EvW has joined #lisp
dilated_dinosaur has quit [Ping timeout: 268 seconds]
Lycurgus has joined #lisp
<beach> Except you are not allowed to replace methods specialized to standard classes.
<beach> clhs 11.1.2.1.2
<specbot> Constraints on the COMMON-LISP Package for Conforming Programs: http://www.lispworks.com/reference/HyperSpec/Body/11_abab.htm
<beach> See item 19.
rotucer has quit [Ping timeout: 268 seconds]
rotucer has joined #lisp
<smokeink> saw it. Well, what can happen if I violate this rule?
<smokeink> I don't do it in the app , just in my temporary development environment
<beach> You can do what you want. I am just pointing it out.
<smokeink> ok , thanks and I'll be careful
EvW has quit [Ping timeout: 276 seconds]
vms14 has quit [Remote host closed the connection]
clothespin has joined #lisp
clothespin__ has quit [Ping timeout: 252 seconds]
<smokeink> https://www.xach.com/rpw3/articles/BJqdnd9R65ee3qDbnZ2dnUVZ_vGinZ2d%40speakeasy.net.html (defun ap (string &optional package) ; be more liberal about 2nd arg <- what's the use of this small utility? How is it "more liberal" than the regular apropos ?
clothespin__ has joined #lisp
clothespin has quit [Read error: Connection reset by peer]
clothespin has joined #lisp
clothespin__ has quit [Ping timeout: 276 seconds]
jlarocco has joined #lisp
clothespin__ has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
clothespin_ has quit [Ping timeout: 252 seconds]
brown121407 has joined #lisp
ahungry` has joined #lisp
sauvin has joined #lisp
ahungry has quit [Ping timeout: 268 seconds]
orivej has joined #lisp
orivej has quit [Ping timeout: 252 seconds]
vseloved has joined #lisp
khisanth_ has quit [Ping timeout: 240 seconds]
ahungry` has quit [Remote host closed the connection]
brown121407 has quit [Read error: Connection reset by peer]
07EABGUV6 has joined #lisp
<phoe> smokeink: shorter name. I have no idea about the second arg.
brettgilio has joined #lisp
Lycurgus has quit [Ping timeout: 276 seconds]
khisanth_ has joined #lisp
<no-defun-allowed> Looks like it is trying to avoid calling (apropos <string> nil).
clothespin_ has joined #lisp
clothespin has quit [Read error: Connection reset by peer]
<phoe> the latter is valid though, as described in clhs apropos
<no-defun-allowed> Yeah.
brown121408 has joined #lisp
07EABGUV6 has quit [Ping timeout: 265 seconds]
<equwal> for key being each hash-key in hash-table using (hash-value value)
clothespin has joined #lisp
enrio has joined #lisp
clothespin_ has quit [Ping timeout: 245 seconds]
fookara has joined #lisp
jonatack has quit [Ping timeout: 245 seconds]
tourjin has joined #lisp
orivej has joined #lisp
kritixilithos has joined #lisp
orivej has quit [Ping timeout: 250 seconds]
dddddd has quit [Remote host closed the connection]
frgo has quit []
clothespin has quit [Ping timeout: 245 seconds]
clothespin_ has joined #lisp
Posterdati has quit [Ping timeout: 240 seconds]
lnostdal has quit [Remote host closed the connection]
rgherdt has joined #lisp
tourjin has quit [Ping timeout: 240 seconds]
jonatack has joined #lisp
enrio has quit [Ping timeout: 240 seconds]
Posterdati has joined #lisp
jonatack has quit [Ping timeout: 265 seconds]
Lycurgus has joined #lisp
jonatack has joined #lisp
frgo has joined #lisp
shka_ has joined #lisp
enrio has joined #lisp
dale has quit [Quit: My computer has gone to sleep]
jonatack has quit [Ping timeout: 276 seconds]
enrio has quit [Ping timeout: 240 seconds]
orivej has joined #lisp
earl-ducaine has quit [Ping timeout: 268 seconds]
random-nick has joined #lisp
orivej has quit [Ping timeout: 240 seconds]
xkapastel has joined #lisp
cl-arthur has joined #lisp
SaganMan has joined #lisp
dilated_dinosaur has joined #lisp
jonatack has joined #lisp
<Posterdati> hi
<Posterdati> is (unsigned-byte 8) equivalent to (integer 0 *) ?
<no-defun-allowed> No, the former is equivalent to (integer 0 255) if I'm not mistaken.
<Posterdati> ok
<Posterdati> seems not
<Posterdati> :(
<smokeink> is there a better way of doing this? http://pastecode.ru/280189/
<beach> Posterdati: What is it that seems not?
<beach> Posterdati: (unsigned-byte 8) and (integer 0 255) are equivalent.
<beach> Posterdati: You can check that by doing (subtypep '(unsigned-byte 8) '(integer 0 255)) and then the same thing with the arguments reversed.
<Posterdati> not for typep
<beach> What did you do?
<Posterdati> (defparameter *test-array* (make-array 4 :element-type '(unsigned-byte 8) :initial-contents '(1 2 3 4)))
<Posterdati> CL-USER> (typep (array-element-type *test-array*) '(integer 0 255))
<Posterdati> NIL
<MichaelRaskin> Shouldn't you use subtypep ?
<Posterdati> ah ok, thanks
Lycurgus has quit [Quit: Exeunt]
<Posterdati> anyway: CL-USER> (subtypep (type-of *test-array*) '(simple-array (integer 0 *) (*)))
<Posterdati> NIL
<Posterdati> T
brown121408 has quit [Read error: Connection reset by peer]
hiroaki has quit [Ping timeout: 276 seconds]
brown121408 has joined #lisp
<MichaelRaskin> The difference between 255 and * matters
Guest55714 has quit [Read error: Connection reset by peer]
<MichaelRaskin> A 8-bit-integer array cannot be used to store bignums, after all
Guest55714 has joined #lisp
wiselord has joined #lisp
<Posterdati> how can I specify a variable bit (unsigned-byte *) ?
<Posterdati> the array could be n bit long
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #lisp
<MichaelRaskin> (typep (make-array 4 :element-type '(unsigned-byte *) :initial-contents '(1 2 3 4)) '(SIMPLE-ARRAY (integer 0 *) (*))) ; --> T
__vlgvrs has joined #lisp
_paul0 has quit [Ping timeout: 276 seconds]
<Posterdati> MichaelRaskin: ok, thanks
Kevslinger has quit [Quit: Connection closed for inactivity]
orivej has joined #lisp
loskutak has joined #lisp
jello_pudding has quit [Quit: Quit]
nowhereman has joined #lisp
<beach> Posterdati: That won't be a specialized array though.
<beach> Posterdati: What is it that you are trying to do.
<beach> So you can also write (TYPEP (MAKE-ARRAY 4 :ELEMENT-TYPE '(UNSIGNED-BYTE *) :INITIAL-CONTENTS '(1 2 3 4)) '(SIMPLE-ARRAY T))
<beach> And it will also return T.
<beach> And that's because (upgraded-array-element-type '(unsigned-byte *)) is T.
brown121408 has quit [Ping timeout: 250 seconds]
brown121408 has joined #lisp
scymtym has quit [Ping timeout: 268 seconds]
earl-ducaine has joined #lisp
ljavorsk has joined #lisp
isBEKaml has joined #lisp
wiselord has quit [Read error: Connection reset by peer]
raghavgururajan has joined #lisp
scymtym has joined #lisp
isBEKaml has quit [Quit: leaving]
wiselord has joined #lisp
loskutak has quit [Ping timeout: 276 seconds]
karlosz has quit [Quit: karlosz]
ljavorsk has quit [Ping timeout: 276 seconds]
Bike has joined #lisp
william1 has joined #lisp
enrio has joined #lisp
fookara has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
raghavgururajan has quit [Remote host closed the connection]
loskutak has joined #lisp
smokeink has quit [Quit: Leaving]
<pjb> smokeink: perhaps the author found an implementaion where apropos expected a package, instead of nil or a package designator (note that nil is a package designator for a package named "NIL"…)
clothespin_ has quit [Ping timeout: 265 seconds]
clothespin__ has quit [Ping timeout: 265 seconds]
<pjb> APROPOS is specified so it's impossible to select only symbols in a package named "NIL".
<pjb> So I would have implemented an AP that would have dealt better with this situation instead…
slyrus_ has joined #lisp
slyrus__ has quit [Ping timeout: 268 seconds]
wxie has joined #lisp
longshi has joined #lisp
<pjb> Posterdati: (make-array dimensions :element-type `(unsigned-byte ,n) :initial-element 0) will make you an array of elements of n bits.
__vlgvrs has quit [Remote host closed the connection]
<Posterdati> pjb: thanks
longshi has quit [Ping timeout: 252 seconds]
davepdotorg has joined #lisp
gareppa has joined #lisp
<pjb> Posterdati: For example: (let* ((elements (loop repeat 10 collect (random 1024))) (n (reduce 'max elements :key (lambda (x) (ceiling (log x 2)))))) (values (make-array (length elements) :element-type `(unsigned-byte ,n) :initial-contents elements) n)) #| --> #(997 899 788 132 783 817 807 778 631 262) ; 10 |#
__vlgvrs has joined #lisp
raghavgururajan has joined #lisp
Necktwi has quit [Read error: Connection reset by peer]
brown121408 has quit [Read error: Connection reset by peer]
brown121408 has joined #lisp
wxie has quit [Ping timeout: 245 seconds]
Necktwi has joined #lisp
<beach> Posterdati: Did you see what I wrote about specialized arrays?
ljavorsk has joined #lisp
<Posterdati> beach: yes
<beach> I don't know the reason why you are doing what you are doing, but you might have some surprises if you think that the array element type will be (integer 0) when that is the type you give to make-array.
<beach> (subtypep (make-array 4 :element-type '(integer 0)) '(integer 0)) => NIL, T
lucasb has joined #lisp
<Posterdati> I do not think that the elements of the array were (integer 0)
<Posterdati> I asked if they were like (integer 0 *)
<beach> That's the same type.
<beach> *sigh*
<pjb> (subtypep (array-element-type (make-array 4 :element-type '(integer 0))) '(integer 0)) #| --> nil ; t |#
<pjb> (subtypep (array-element-type (make-array 4 :element-type '(unsigned-byte 8))) '(unsigned-byte 8))
<pjb> #| --> t ; t |#
<pjb> it depends on the type AND on the implementation.
<pjb> for example, (subtypep (array-element-type (make-array 4 :element-type (quote (unsigned-byte 4)))) (quote (unsigned-byte 4))) returns NIL in abcl, ccl, and ecl, but T in clisp and sbcl.
<jackdaniel> (integer 0) is unlikely to have a specialized representation because it is unknown how many bytes one field should reserve
<beach> Posterdati: If you insist (subtypep (make-array 4 :element-type '(integer 0 *)) '(integer 0 *)) => NIL, T
<beach> jackdaniel: That's what I am trying to tell Posterdati, but I don't think my message is clear.
<pjb> You never know when somebody will write an implementation where integers are better represened than other objects and where arrays can store integers in a specialized array.
<pjb> Again that is not the point. The point is the semantics of the conforming application.
<pjb> The rest is the problem of the implementation and implementer, and we don't care if they are not able to optimize our application specific case.
<pjb> We'll just choose an implementation that is better able to deal with our conforming code…
Lord_of_Life_ has joined #lisp
<loke> Is it legal for a Lisp implementation to limit the size of an integer?
<loke> (I mean, there is always a limit in the amount of available memory, but can you have a conforming implementation where integer and fixnum are the same?
<jackdaniel> no, I've said it is unlikely that arbitrary integer will have specialized array representation
fookara has joined #lisp
<pjb> loke: IIRC, they must be distinct, but integer could be quite limited.
<jackdaniel> but bignums are obligatory in conforming implementation
<loke> Right. But there is no minimum size of a bignum?
<jackdaniel> minimum?
<pjb> We could have 16-bit fixnums and 64-bit bignums.
<jackdaniel> " The type bignum is defined to be exactly (and integer (not fixnum)). "
<jackdaniel> from the spec
<loke> Yeah. I mean could a bignum be limited to, say, 65 bits?
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<pjb> System Class INTEGER: An integer is a mathematical integer. There is no limit on the magnitude of an integer.
<jackdaniel> the only limit is the memory available. I suppose one could decide, that bignum has tops 65 bits and signal serious-condition that storage is exhausted, but that would be lame :)
<loke> But then a conforming implementation could exist which doesn't actually have a bignum implementtation. The type would exist, but there would be no way to obtain an instance of such type.
<pjb> So probably a hard limit such as 64-bit or 128-bit would not be acceptable. What "There is no limit on the magnitude of an integer." must mean, is that the actual limit should be a function of the memory size available.
<loke> There is nothing that says that (1+ MAX-POSITIVE-FIXNUM) must succeed?
<pjb> loke: only if your system only has 16 bits of memory.
<pjb> Now, the maximum integer size can be a small or very small fraction of the memory. But it must still be more or less proportional to it.
<loke> pjb: I agree that that is clearly the spirit of the standard.
<pjb> If you use generational GC, (/ memory-size (* ngen 2)) at most.
* loke is getting flashbacks from my argument on the SBCL list about the guarantees of SORT, where SBCL's position can only be maintined with a _very_ literal reading of the spec but was clearly against its spirit
<pjb> But nothing prevents the implementation to have more overhead. (/ (- memory-size some-gigabyes) (* ngen 2 some-factor)) such as the maximum integer size could be in the 10,000 bits… But I would expect it to be above 2Kbit at least.
<pjb> Or for example, that integer size must increment by a small amount, such as one word. bigint sizes could be exponents of 2.
<Bike> really? what's ambiguous about sort?
<loke> Bike: look up the spec and tell me if SORT on a vector is guaranteed to modify the array in-place, or if the implementation is allowed to allocate a new array and return it.
<Bike> oh, the latter.
<Bike> doesn't sbcl destroy it?
<loke> Yes, I agree. And there are even examples in the spec that explains that literally says so.
<Bike> but i don't understand what you mean by sbcl's position - it's certainly allowed for sort to always destroy its argument.
<loke> But the SBCL guys insist it's guaranteed, and the argument about the example is waved away with the argument that the notes section are not normative
<Bike> but i mean, even if it's allowed to not destroy it, sbcl can just decide not to make use of that latitude
<loke> Bike: Allowed, yes. But SBCL argues that it's gunarteed (SBCL used to emit a warning when you didn't read the return value of SORT, but they removed it with the argument that it's gunarteed by the spec)
<Bike> oh, i see.
<loke> I found that to be odd, since the spec explicitly says that it's allowed to copy.
kritixilithos has quit [Read error: Connection reset by peer]
oxford has quit [Read error: Connection reset by peer]
zooey_ has quit [Remote host closed the connection]
<jackdaniel> where does it say that it is allowed to copy?
<Bike> well it's not that explicit, it just says sorting "can be" destructive, which kind of implies it doesn't have to be.
<jackdaniel> (examples are not normative!)
kritixilithos has joined #lisp
<loke> jackdaniel: yeah, but nothing else says it it _must_ be destructive.
<Bike> oh,wait, the notes also say the result might not be identical to the argument.
<loke> At least by my reading.
<Bike> for a vector, anywhoozle
<loke> Right
<Bike> clhs 12.1.3.1
<specbot> Rule of Unbounded Rational Precision: http://www.lispworks.com/reference/HyperSpec/Body/12_aca.htm
<Bike> for you, loke
zooey has joined #lisp
<loke> I see
oxford has joined #lisp
<loke> Interesting... "the usual sense". SO I guess an implementation that hard crashes when overflowing a fixnum woul dbe technically compliant (albeit a bit useless)
<Bike> this doesn't rule out signalling an error on (1+ most-positive-fixnum), i don't think
<jackdaniel> I don't think that hard crashes are conforming ,)
<jackdaniel> I'd expect a storage-condition being signalled
aindilis has quit [Read error: Connection reset by peer]
<pjb> Yes, it says that you can get an out-of-memory condition, but not an overflow-error or integer-too-big (unless integer-too-big is a subclass of out-of-memory).
<_death> were any implementations submitted to storage stress tests
<pjb> _death: somebody tried it a few year ago, with results in cll.
<pjb> It would have to be included as an annex to ansi-test…
<pjb> Most implementations just crash, so it's not something that can be tested entirely from within the lisp image.
aindilis has joined #lisp
<pjb> Also, it's dependent on the memory size, so to test it well, you need both a lot of memory, and a way to restrict the memory allocated to the implementation.
<pjb> ie. you may have to use VMs.
<_death> well sbcl can often run out of dynamic space and end up in the debugger
<pjb> That's the worse: the process doesn't exit, but is hung in the debugger. How a controlling process can detect it?
<pjb> s/e/t
<_death> if that's important then you should --disable-debugger
EvW1 has joined #lisp
<_death> but I didn't check if a storage-condition is signaled
<_death> (I mean "often" as in, there's a cycle of developing, getting hit by it, tweaking dynamic space size.. in production the gc seems to do ok if enough RAM is available)
brown121408 has quit [Ping timeout: 240 seconds]
brown121408 has joined #lisp
FreeBirdLjj has joined #lisp
clothespin has joined #lisp
clothespin_ has joined #lisp
dddddd has joined #lisp
gareppa has quit [Quit: Leaving]
brown121408 has quit [Read error: Connection reset by peer]
raghavgururajan has quit [Read error: Connection reset by peer]
longshi has joined #lisp
tourjin has joined #lisp
brown121407 has joined #lisp
Oddity has quit [Ping timeout: 240 seconds]
ljavorsk_ has joined #lisp
ljavorsk has quit [Ping timeout: 240 seconds]
clothespin_ has quit [Ping timeout: 252 seconds]
clothespin has quit [Ping timeout: 276 seconds]
Oddity has joined #lisp
grewal_ has quit [Ping timeout: 265 seconds]
grewal_ has joined #lisp
william1 has quit [Ping timeout: 250 seconds]
phlim has quit [Quit: WeeChat 2.4]
vseloved has quit [Ping timeout: 265 seconds]
cl-arthur has quit [Read error: Connection reset by peer]
EvW1 has quit [Ping timeout: 245 seconds]
Inline has quit [Quit: Leaving]
brown121407 has quit [Read error: Connection reset by peer]
iovec has joined #lisp
davepdotorg has quit []
phlim has joined #lisp
Lycurgus has joined #lisp
raghavgururajan has joined #lisp
Inline has joined #lisp
noobineer has quit [Read error: Connection reset by peer]
william1 has joined #lisp
FreeBird_ has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Inline has quit [Quit: Leaving]
noobineer has joined #lisp
raghavgururajan has quit [Read error: Connection reset by peer]
stepnem has quit [Ping timeout: 268 seconds]
william1 has quit [Quit: WeeChat 1.9.1]
william1 has joined #lisp
davepdotorg has joined #lisp
noobineer has quit [Read error: Connection reset by peer]
stepnem has joined #lisp
kslt1 has joined #lisp
kslt1 has quit [Remote host closed the connection]
william1 has quit [Ping timeout: 240 seconds]
Inline has joined #lisp
kslt1 has joined #lisp
efm has quit [Ping timeout: 268 seconds]
efm has joined #lisp
kslt1 has quit [Remote host closed the connection]
kslt1 has joined #lisp
Krystof has quit [Ping timeout: 252 seconds]
efm has quit [Read error: Connection reset by peer]
davepdotorg has quit [Remote host closed the connection]
Kevslinger has joined #lisp
ebzzry has joined #lisp
tourjin has quit [Ping timeout: 268 seconds]
efm has joined #lisp
kslt1` has joined #lisp
xkapastel has joined #lisp
kslt1`` has joined #lisp
kslt1 has quit [Ping timeout: 268 seconds]
stepnem has quit [Ping timeout: 240 seconds]
pfdietz27 has joined #lisp
kslt1` has quit [Ping timeout: 240 seconds]
stepnem has joined #lisp
cosimone has joined #lisp
defaultxr has quit [Ping timeout: 265 seconds]
zmt00 has quit [Quit: Leaving]
tarod16 has joined #lisp
<tarod16> hi
<tarod16> Do you know vms14?
<beach> vms14 comes here regularly. Why?
<tarod16> I want to contact him
<boeg> If I have a function `(defun test (alst) (let ((name (assoc 'name alst))) (print name)))`, why can't I do `(test '((name . "Bob")))` and have it print out "(NAME . "Bob")" when I can do `(assoc 'name '((name . "Bob")))` and it returns "(NAME . "Bob")" as expected?
<boeg> The function just prints out "NIL"
<tarod16> Can you guys tell to vms14 that I was here?
<beach> minion: memo for vms14: tarod16 was here looking for you.
<minion> Remembered. I'll tell vms14 when he/she/it next speaks.
<tarod16> btw, I'm interested in Lisp programming because of him haha
<beach> Great!
<tarod16> Thanks :)
FreeBird_ has quit [Remote host closed the connection]
tarod16 has left #lisp ["Killed buffer"]
<beach> boeg: Should work.
<boeg> beach: I thought so too
<boeg> but it doesn't
<beach> What is the exact form you type that doesn't work?
<boeg> exactly that
<beach> Forget the `s
<boeg> I copy pasted those things and added the ` and " around
<boeg> I load the function from a buffer into sly
<boeg> and then I call the functions in the repl
<boeg> well, actually, i'm mistaken
gareppa has joined #lisp
<boeg> the actual function call is to http::test, not test. It's in the system land-of-lisp.http - the http function has the nickname http so I do (http::test ...)
<boeg> does that make a difference?
rotucer has quit [Ping timeout: 265 seconds]
<beach> Then try (test '((http::name . "Bob"))) instead.
<beach> You very likely have two symbols named NAME.
<boeg> that works. It returns "(LAND-OF-LISP.HTTP::NAME . "Bob")"
<beach> There you go.
stepnem has quit [Ping timeout: 250 seconds]
<boeg> so that is because there are two symbols named "name"?
<beach> Yes.
<beach> One in the package that was current when the TEST function was defined.
<beach> And the other one in the package that is current in your REPL.
<boeg> So when I'm working inside a package and referencing symbols, I should preface them with, in this example, http:: to make sure it's the correct one i'm targeting?
<boeg> because symbols are global
<beach> The word "global" does not characterize symbols. Symbols are just objects. Each symbol typically has a name and a package.
<boeg> alright
<beach> In your case, the two names are the same, but the packages are different.
<boeg> so to not run into that problem again, one would "namespace" symbols in practice?
brown121407 has joined #lisp
Dibejzer has joined #lisp
<beach> It is hard to give a general answer to that.
Dibejzer has quit [Client Quit]
<beach> I typically have many packages, and each one :USEs the CL package but no others.
<beach> So if I need to refer to a symbol that is neither in the current package nor in the CL package, I use an explicit package prefix.
<beach> Other people use :USE more frequently, and then you don't need the package prefix for symbols in the :USEd packages.
<boeg> alright thanks
<beach> Sure.
chipolux has quit [Ping timeout: 250 seconds]
stepnem has joined #lisp
chipolux has joined #lisp
smokeink has joined #lisp
__vlgvrs has quit [Quit: Leaving]
gabiruh has joined #lisp
kritixilithos has quit [Quit: quit]
rotucer has joined #lisp
<boeg> Anybody here know about usocket? When I read-line my socket stream, I get an utf-8 decoding error. Do I have to tell usocket to stream in utf-8 or something? I've tried googling but with no luck
efm has quit [Ping timeout: 240 seconds]
enzuru has joined #lisp
efm has joined #lisp
fanta1 has joined #lisp
hiroaki has joined #lisp
scymtym_ has joined #lisp
kslt1`` has quit [Ping timeout: 240 seconds]
scymtym has quit [Ping timeout: 252 seconds]
earl-ducaine has quit [Ping timeout: 276 seconds]
brown121407 has quit [Read error: Connection reset by peer]
scymtym_ has quit [Ping timeout: 245 seconds]
gareppa has quit [Quit: Leaving]
gareppa has joined #lisp
doublex has quit [Read error: Connection reset by peer]
doublex has joined #lisp
<boeg> smokeink: thanks, ill check it out
<smokeink> also try these search-strings on google: "usocket filetype:lisp" "usocket inurl:github"
earl-ducaine has joined #lisp
doublex has quit [Read error: Connection reset by peer]
doublex has joined #lisp
<boeg> smokeink: yes, thanks
kslt1`` has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
fanta1 has quit [Quit: fanta1]
gareppa has quit [Quit: Leaving]
_whitelogger has joined #lisp
earl-ducaine has quit [Ping timeout: 276 seconds]
fookara has quit [Remote host closed the connection]
longshi has quit [Ping timeout: 276 seconds]
oni-on-ion has quit [Ping timeout: 245 seconds]
cosimone has quit [Quit: Terminated!]
oni-on-ion has joined #lisp
stepnem has quit [Ping timeout: 265 seconds]
stepnem has joined #lisp
scymtym has joined #lisp
buffergn0me has joined #lisp
brown121407 has joined #lisp
<boeg> smokeink: Omg ... the problem was that i have the https everywhere extension in the browser i use so it calls the server with ssl over http so yeah
xkapastel has quit [Quit: Connection closed for inactivity]
<boeg> forcing http and everything worked
<smokeink> :)
ggole has quit [Quit: Leaving]
izh_ has joined #lisp
Krystof has joined #lisp
<boeg> if I have (in-package :my-package) at the top of my file, why do I still have to designate :my-package when I use `intern` or else it doesn't work?
<boeg> shouldn't in-package set current package correctly so `intern` uses it?
cosimone has joined #lisp
stepnem_ has joined #lisp
ljavorsk_ has quit [Ping timeout: 250 seconds]
bitmapper has joined #lisp
stepnem has quit [Ping timeout: 250 seconds]
enrioog has joined #lisp
<boeg> Seems if I set the current-package with in-package in the repl, it works as intended
enrio has quit [Ping timeout: 240 seconds]
<Bike> depends on where you're using intern
<Bike> if you have like (in-package foo) (defun bar () (intern ...)), the package used by intern will be the one in place when bar is CALLED
<Bike> rather than defined, which you may be expecting
rozenglass has joined #lisp
<boeg> yeah, so the repl was in cl-user and intern was called in a function in a file with (in-package...) at the top, and so I thought when intern was called, the package set with in-package would be current-package, but it was cl-user. That was the mistake
<boeg> I guess thats exactly what you just said so yeah, he :P
Arcaelyx has joined #lisp
loskutak has quit [Ping timeout: 250 seconds]
smokeink has quit [Remote host closed the connection]
loskutak has joined #lisp
smokeink has joined #lisp
enzuru has quit [Ping timeout: 240 seconds]
enzuru has joined #lisp
stepnem_ has quit [Ping timeout: 276 seconds]
stepnem has joined #lisp
phlim has quit [Quit: WeeChat 2.2]
phlim has joined #lisp
notzmv has quit [Remote host closed the connection]
buffergn0me has quit [Ping timeout: 245 seconds]
oxum_ has joined #lisp
oxum has quit [Read error: Connection reset by peer]
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` is now known as X-Scale
gravicappa has quit [Ping timeout: 240 seconds]
notzmv has joined #lisp
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<eeeeeta> yay, I made a thing \o/ https://git.theta.eu.org/cl-piglow.git/about/
X-Scale has quit [Ping timeout: 250 seconds]
<Xach> eeeeeta: is it ok for quicklisp?
ebrasca has joined #lisp
<eeeeeta> Xach: should be! I had no idea getting things into quicklisp was this simple :o
kslt1`` has quit [Remote host closed the connection]
<eeeeeta> (I also have https://git.theta.eu.org/osmpbf.git/about/ which I made yesterday >_< that one's functional but probably not optimized)
<Xach> darn it, the quicklisp build server crashed again
* Xach sends a child to go restart it
X-Scale` has joined #lisp
X-Scale` is now known as X-Scale
<eeeeeta> Xach: if you add things, they auto update when I push stuff to git, right?
<eeeeeta> (well, update whenever you rebuild the dist)
<Xach> eeeeeta: yes. i can pull from a branch or tag or release also, if you want finer control over what is fetched.
<eeeeeta> Xach: cool! just pulling from master should be fine for both of those (I'll use a develop branch for dodgy stuff, I guess)
mn3m has joined #lisp
<eeeeeta> Xach: and thanks for quicklisp :)) definitely has made my CL beginners' experience much nicer!
<Xach> glad to hear it
vseloved has joined #lisp
vseloved has quit [Remote host closed the connection]
<Xach> I'm interested in playing around with framebuffer stuff on my raspberry pi with lisp but i've heard it can be pretty slow
brown121407 has quit [Read error: Connection reset by peer]
<eeeeeta> I mean it takes like a solid 6 seconds to initialize CCL and load cl-piglow, hunchentoot, and their deps
<Xach> How is the runtime performance after that?
<eeeeeta> this is on a zero though
brown121407 has joined #lisp
<Xach> Is it the disk io that is slow or everything?
<eeeeeta> not too atrocious, I suppose
<Xach> I got my pi to play retro games on emulators but that novelty has worn off and I'm ready to play with my own stuff
<eeeeeta> I mean I was developing stuff on it via swank and it didn't make me want to die
<eeeeeta> consing seems slooow
<eeeeeta> like I removed one small cons in a tight loop and it got quite a bit faster
<eeeeeta> so yeah, be prepared to wait a literal minute or two if you want to compile stuff off quicklisp
vs has joined #lisp
<eeeeeta> Xach: which pi did you get? the newer pi3/4s are quite a bit faster
izh_ has quit [Quit: Leaving]
<Xach> 3 model b
<pjb> There's no disk or SSD, only SD-CARD. Speed will depend on the SD-CARD.
<pjb> If it's too slow, there are Raspberry Pi 4 now that are much faster and with more memory.
gareppa has joined #lisp
<eeeeeta> Xach: should be pretty quick then, but, as pjb says, if you buy a fast USB drive or something, things radically improve
<eeeeeta> SD cards are sluggish as all hell
* eeeeeta bought a SanDisk Extreme for their pi 3b, fwiw
gareppa has quit [Remote host closed the connection]
enrioog has quit [Ping timeout: 268 seconds]
shka_ has quit [Ping timeout: 268 seconds]
mn3m has quit [Ping timeout: 268 seconds]
<Xach> I have a number of "fast" SD cards I got for photography, maybe they will suffice.
mn3m has joined #lisp
ArthurStrong has joined #lisp
cl-arthur has joined #lisp
vs has quit [Ping timeout: 268 seconds]
vlatkoB has quit [Remote host closed the connection]
stepnem has quit [Ping timeout: 265 seconds]
stepnem_ has joined #lisp
bitmapper has quit [Ping timeout: 265 seconds]
Lycurgus has quit [Quit: https://meansofproduction.biz Exit Quassel.]
iovec has quit [Quit: Connection closed for inactivity]
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 265 seconds]
* Xach might have found some boot parameters to fix the quicklisp build server for now, on to hacking
rgherdt has left #lisp ["Leaving"]
<no-defun-allowed> It's been a while since I saw a "fast" micro-SD card.
<no-defun-allowed> The post office sells "fast" micro SD cards for phones, but I haven't seen any advertised for photography for a while.
torbo has joined #lisp
bitmapper has joined #lisp
<Xach> eeeeeta: ah, for quicklisp, the system file must have :description, :author, and :license
orivej has quit [Ping timeout: 240 seconds]
<eeeeeta> Xach: aha, I'll get on that in the morning then (and ping you after?)
loskutak has quit [Ping timeout: 268 seconds]
<Xach> thanks
cl-arthur has quit [Read error: Connection reset by peer]
cl-arthur has joined #lisp
vms14 has joined #lisp
<vms14> memo tell me
<minion> vms14, memo from beach: tarod16 was here looking for you.
<vms14> oh
jack_rabbit has joined #lisp
<vms14> forgot the name of the bot xD
stepnem_ has quit [Ping timeout: 240 seconds]
stepnem has joined #lisp
madage has joined #lisp
rotucer has quit [Ping timeout: 265 seconds]
rotucer has joined #lisp
stepnem has quit [Ping timeout: 265 seconds]
stepnem has joined #lisp
jack_rabbit has quit [Ping timeout: 245 seconds]