freenode/#lisp - IRC Chatlog
Search
4:02:13
pillton
stylewarning: SLAD is fine I guess. Bike says it is hip and I am in no position to question Bike's wisdom on current street talk. I thought we said "a dumped image".
4:07:18
pierpa
stylewarning: no idea about this problem, but, just to exclude some hypothesis, can you see if changing the string to "COMMON-LISP::NIL" changes the result?
4:09:49
|3b|
(which is not a particularly conformant thing to do, so could cause any other random problems too)
4:10:28
|3b|
possibly something tried to unintern something else, without realizing it didn't have any something else (and so it had a NIL instead)
4:12:47
|3b|
ACTION tried, and it does have that effect, surprisingly without any package lock problems
6:50:46
flip214
uh.... why does https://www.european-lisp-symposium.org/ say "site not installed"!?!?!
6:53:32
jackdaniel
I wrote a small piece about rendering and CLIM: https://common-lisp.net/project/mcclim/posts/Sheets-as-ideal-forms.html
7:49:19
Shinmera
Didier and I had a few problems yesterday and only got them all worked out by evening.
7:52:15
Shinmera
One problem was his email hoster, so maybe that's related to the temp page being up, but I don't know.
10:19:58
p_l
anyone knows of somewhat complete SMTP implementation in Lisp? Specifically server-side...
11:12:47
beach
knobo1: For each standard object, the number of slots plus a few words overhead. For an array, the size times the element size. For a CONS cell, 2 words. For a symbol maybe 6 words or so.
11:13:37
Shinmera
knobo1: Run the application and just use ROOM to see how much memory it uses total?
11:15:02
Shinmera
GC is going to falsify any kind of precise memory estimation you might want to make anyway. It could keep garbage around for a long time, or freak out during GC even if potentially there's enough garbage around to recover.
11:22:27
schweers
uh. I just realized I have a fairly old sbcl installation myself. so nevermind my question ;)
11:29:17
beach
knobo1: That's a small difference. Probably some header or other data that is not counted in the first number.
11:29:39
beach
knobo1: Because of how the heaps are managed, you will never be able to get that kind of accuracy anyway.
11:33:24
beach
shka: What is the definition of "hash table size"? The number of buckets? The number of elements? The number of buckets plus the data structure to store the elements in a bucket? Something else?
11:41:16
shka
beach: i don't know because standard does not explains that, http://clhs.lisp.se/Body/f_hash_4.htm but i would assume number of buckets
13:40:55
Shinmera
enum foo { A, B, C } <=> (cffi:defcenum foo :a :b :c), and for functions that take or return an enum, just specify the type foo
13:43:27
thodg
i feel safer with ctype than with enum which does not seem to take into account the existing definition
13:44:47
Shinmera
You can adjust the base type of the enum with (defcenum (foo :base-type :whatever) ..)
13:56:31
loginoob
I am expecting guidance as in what languages to learn and correct path of learning. I sometime have stupid questions like is learning javascript hindering my programing abilities, so i can ask these questions or better not to have these kinds of questions. Do i make sense?
13:57:04
beach
loginoob: I am afraid that's too general for #lisp. This channel is dedicated to Common Lisp.
13:57:55
jmercouris
loginoob: feel free to PM me with any questions you have, I am not an "expert" lisp developer, but I am a professional developer
14:06:19
jdz
I'll use a this quiet moment to ask a question: I bet somebody has travelled to Japan, I guess one would get appropriate amount of Yen along? Another option would be to bring
14:19:34
flip214
on SBCL, a call to (SB-BSD-SOCKETS:GET-HOST-BY-NAME x) with x being (VECTOR CHARACTER 20) gives an error: #<SB-KERNEL:CASE-FAILURE expected-type: (OR NULL (ALIEN (* CHAR)) SIMPLE-BASE-STRING SIMPLE-STRING)
14:23:21
Shinmera
jdz: I'll be in Japan around September, though I expect that'll be too far off for you to have a little lisp meet?
14:23:58
Shinmera
In other news, Trial is back up on its feet and I can play around with live GL coding again, woo woo. https://filebox.tymoon.eu//file/TVRVeE5nPT0=
14:27:18
flip214
can somebody tell me in short, easy words the effective difference between SIMPLE-STRING and (VECTOR CHARACTER)? Apart from being "different" types, that is.
14:27:42
Bike
a (vector character) could be non-simple, for example being displaced or having a fill pointer
14:29:05
flip214
hmmm, I guess that's the reason -- the VECTOR might be displaced to the original file data
14:34:44
Bike
Simple arrays and displaced arrays are totally different sorts of objects on SBCL. The underlying code to access them is distinct. So code can be written that works on only simple arrays.
14:44:45
flip214
Bike: but does this distinction make _any_ sense for (SB-BSD-SOCKETS:GET-HOST-BY-NAME x)?
14:45:46
Bike
Beats me. But it wouldn't be a change to check-type or how it's invoked, it would be a change to get-host-by-name.
14:45:47
flip214
well, what I'm trying to say is that some CHECK-TYPEs should include other possible STRING-related types.
14:46:22
Shinmera
The suggestion should be more that the function should automatically coerce to simple-string.
14:48:10
Shinmera
simple-strings have a nice property in that they can be shared directly with C in a lexical context by pinning.
14:55:34
scymtym
coercing automatically at the high-level interface instead of forcing the user to do it sounds good to me
15:07:17
comborico1611
Yeah, that was just a test. Trying to learn how to print a string of symbols without being contained in braces.
15:12:30
comborico1611
Yeah, I just looked up the answer in teh book. I see. I must also be half asleep, because I thought I posted this in the #clnoobs
15:46:54
easye
Sorry if I missed it, but <http://www.european-lisp-symposium.org/> is down and not coming back?