freenode/lisp - IRC Chatlog
Search
7:25:28
#lisp
** TOPIC Common Lisp, the #1=(programmable . #1#) programming language <http://cliki.net/> <http://paste.lisp.org/new> logs:<http://ccl.clozure.com/irc-logs/lisp/>|contact op if muted|SBCL 1.3.0, ASDF 3.1.6, CMUCL 21a, ECL 16.0.0, CFFI 0.16.0, cl-launch 4.1.4, flexi-streams 1.0.15, Hunchentoot 1.2.34, Drakma 2.0.1
7:27:24
#lisp
** TOPIC Common Lisp, the #1=(programmable . #1#) programming language <http://cliki.net/> <http://paste.lisp.org/new> logs:<http://ccl.clozure.com/irc-logs/lisp/>|contact op if muted|SBCL 1.3.0, ASDF 3.1.6, CMUCL 21a, ECL 16.0.0, CFFI 0.16.0, cl-launch 4.1.4, flexi-streams 1.0.15, Hunchentoot 1.2.34, Drakma 2.0.1
7:48:15
#lisp
** TOPIC Common Lisp, the #1=(programmable . #1#) programming language <http://cliki.net/> <http://paste.lisp.org/new> logs:<http://ccl.clozure.com/irc-logs/lisp/>|contact op if muted|SBCL 1.3.0, ASDF 3.1.6, CMUCL 21a, ECL 16.0.0, CFFI 0.16.0, cl-launch 4.1.4, flexi-streams 1.0.15, Hunchentoot 1.2.34, Drakma 2.0.1
8:34:56
DeadTrickster__
who is in charge of common-lisp.net? how it come I should send email to register? what a nonsense
9:35:05
jackdaniel
I'm sure cl.net admin will gladly accept your help with fixing this issue (if you know how to configure gitlab)
9:37:14
DeadTrickster__
jackdaniel, I wish I had second life just for fixing random CL-related stuff
9:44:47
jackdaniel
most direct path is writing to the mailing list or directly to admin. rambling on irc is just rambling
9:45:07
Shinmera
In case you didn't notice already, you aren't exactly helping by rambling about his rambling.
10:11:44
namespace
http://jdpressman.com/2015/11/25/how-to-setup-a-common-lisp-web-environment-%28november%202015%29.html
11:13:33
PuercoPop
pjb: have you considered breaking up your cl reader into smaller API. In the line of the util potential-number-p. stuff like a read-token would be useful for when writing reader macros like the pseudonym's proposed by phoe
11:29:22
splittist
beach's Cluffer library would have been useful when I was half-writing triviil ('The Really Incomplete Vi Implementation In Lisp')
13:18:06
otwieracz
I've *probably* found bug in ASDF/quicklisp: http://paste.lisp.org/display/160873
13:19:48
otwieracz
For me it looks like Quicklisp does not load dependencies for defsystem-dependencies.
13:20:40
otwieracz
While quickloading :X, ASDF crashes because there is no alexandria system available.
13:21:22
DeadTrickster__
I just push "flexible attachments" https://github.com/deadtrickster/cl-smtp/tree/flexible-attachments branch - now one can subclass attachments and I want feedback
13:23:13
otwieracz
Quicklisp should load defsystem dependecies dependencies before letting ASDF load dependant systems.
13:25:18
H4ns
DeadTrickster__: no. i've made several incompatible changes that did not quite follow the follow the philosophy of cl-smtp, which is why the fork exists. i've wanted to be able to format mail bodies myself, whereas cl-smtp tries to do that for the user.
13:25:41
H4ns
DeadTrickster__: your changes seem like a good addition to the main line, not to my fork.
13:26:52
H4ns
DeadTrickster__: format mime message in application or with other libraries, leave only the sending to cl-smtp
13:28:08
H4ns
DeadTrickster__: right. at the time, i had very specific requirements how i wanted the mime message to look like, i.e. with inline images, alternate bodies etc.
13:30:38
DeadTrickster__
H4ns, I just hope it won't interfere with content like some of cl-sendmail variants
14:18:54
Shinmera
On the other hand indexing with a displaced array can be very slow. More so than the overhead of copying the string in many cases.
14:19:49
pjb
Shinmera: not slower than indexing an array in C (which is always done thru the indirection of a pointer).
14:20:12
Shinmera
pjb: Type inference suffers greatly from displaced arrays, which can make things very slow.
14:21:38
pjb
phoe_krk: yes, for small strings. Also, displaced arrays keep a reference on the original array so if you start from big arrays and only use small part, that would prevent garbage collection of the unused parts.
14:22:52
pjb
Shinmera: the problem is of course not with sbcl, but with programmers who use sbcl and who retain the same reflex as C programmers: only thinking about speed.
14:46:59
phoe_krk
I have this macro, http://paste.lisp.org/display/160883, and later I have (defun a () (alist-gen :q :w)) (defun b () (alist-gen (:z (a))). When compiling that, it throws The function LISPFURC::A is undefined.
14:47:38
DeadTrickster
displaced arrays are really good idea, however I'm always worried about performance and gc and basically never use them
14:50:11
Shinmera
DeadTrickster: The type system doesn't support distinguishing them, so you have to test all the time.
14:52:10
DeadTrickster
is it really needed? it can inherit many things from base array i.e. vector/basic-vector
14:52:58
DeadTrickster
or speaking of sbcl displaced array for unsigned-byte 8 simple-array will be just a matter of adjusting pointers
14:53:01
Shinmera
I'm not the best to ask about this because I don't know the internals and don't remember the discussion in full. I'm sure someone on #sbcl like stassats could explain better though.
14:53:30
Posterdati
how can I print a binary number with format with a variable number of digit depending on a variable?
15:00:15
Cymew
pjb: The reason I'm curious is how its CLOS implementation is. I've gotten the impression there was something wrong with it, but I don't know any more than that.
15:03:57
White_Flame
Posterdati: (format nil (format "...insert numeric literal..." digit-length) number) comes to mind
15:05:27
phoe_krk
White_Flame: that's a solution, but I'd suddenly need to pop in four different files just to make my simple thing work =_=
15:12:07
Cymew
Feel free to call me stupid, but what's wrong here: (defmacro get-list-item (lst key `,(aref lst key)) and (get-list-item (make-array 10) 1) claims its input is not an array?
15:14:49
White_Flame
what's happening here is that at compile time, the macro body is _evaluating_ the equivalent of (aref '(make-array 10) 1), and '(make-array 10) is not an array
15:15:06
Cymew
Hmm. That made the error go away, but still did not give me what I expected. I think I should probably go home and sleep.
15:15:17
White_Flame
in my case, the macro body is constructing & returning the _list_ (aref (make-array 10) 1)
15:17:30
Cymew
I tried to create multiple SDL Surfaces and have an array as a lookup list for them, but I didn't get my correct Surface out.
16:13:46
hellekin
hello, is anyone involved with gcl? I need a gcl maintainer to fix a link on their website.
16:22:16
Cymew
phoe_krk: Something like this? (LOOP :for p from 1 to 10 :for q from 1 to 10 :do (FORMAT t "~A ~A - " p q))
16:23:24
Cymew
Possible. I don't use ITERATE myself, and I think you'll find more LOOP knowledge around.
16:23:47
Cymew
But, then I at least got what you meant, and I'm not as fried as I thought. Always something.
18:39:07
axion
how can i make a random-state object such that each call to random produces a series of predictable values?
18:39:54
axion
i'm procedurally generating game worlds, and i'd like to save the seed used so i can generate the same world again
18:41:40
Bicyclidine
yeah, sure. just save *random-state* at some point. if you start generating randoms with the same random state you should get the same sequence.
18:41:55
Shinmera
But you cannot seed it by the user, as the internals are implementation dependant.
18:42:26
Shinmera
I've started writing a library of portable RNGs for that reason, but never got it done. Not enough time in the day!
18:43:04
Bicyclidine
you can give it some arbitrary seed with (make-random-state t). and some implementations have extensions, so you can do e.g. sb-ext:seed-random-state.
18:43:57
minion
MT19937: No definition was found in the first 5 lines of http://www.cliki.net/MT19937