freenode/#lisp - IRC Chatlog
Search
10:15:14
dim
beach: I've been wondering if anyone used SICL to implement CL for the .Net environement, of all things, recently, ala clasp for the CLR…
13:16:50
phoe
dim: no one, though you could theoretically run ABCL on CLR via some bytecode translation mechanism and compatibility layer
15:21:24
puchacz
hi, can I execute a function from REPL that is normally executed inside hunchentoot handler please? things like *reply* would have to be bound to something
15:26:26
puchacz
right, (let ((*reply* (make-instance 'hunchentoot:reply))) .... ) takes me far enough for my current problem :)
16:35:06
gabbiel
ok, I have a macro, which macro expands into a defun, how come compiler says the function hasn't been defined though
16:40:36
gabbiel
(difun %.flavors #'cddr) (difun flavors% (compose (tuply '+) (curry 'mapcar 'car) %.flavors))
17:09:38
dim
anyway before CL on .Net I should invest time to produce a pgloader.jar that would be able to use JDBC, that'd be quite something, I guess
17:30:56
beach
gabbiel: If you try to call the function in the same file, it won't work because the file compiler does not create the function at compile time. Only at load time.
17:33:08
beach
I mean, it will work after the file has been loaded, but it will give you a warning at compile time because the compiler is trying to compile a function-call form with a function that is not yet defined.
17:33:55
beach
gabbiel: But I think you need to explain a lot more about the exact contents of your file(s), how you compile them, and what you expect the result to be. For that, use a pastebin site rather than typing the code here in the channel.
17:34:56
beach
gabbiel: However, I can't stick around to help you because I am off to spend time with my (admittedly small) family.
17:37:42
LdBeth
nydel: the original code generator targets PPC, I’m working on generating architecture independent IR so I can use other compiler back to generate native binary
18:02:39
dtw
krwq: Do you mean type specifiers? http://www.lispworks.com/documentation/lw50/CLHS/Body/04_bc.htm
18:11:45
krwq
gabbiel: nope, when i do (let ((foo "bar")) (check-type foo boolean)) it complains - only allows t and nil
18:16:40
pjb
krwq: (deftype generalized-boolean () 't) (let ((foo "bar")) (check-type foo generalized-boolean) foo) #| --> "bar" |#
18:22:32
krwq
pjb: i actually want the boolean behavior not generalized one but was wondering about a complete list of all types defined in the spec
18:34:34
beach
It is especially strange to exclude classes since it is allowed for an implementation to have a class where the standard requires it to be only a type. Like FIXNUM for instance.
18:49:53
mfiano
Anyone know a good way to go about downloading large files to disk with drakma or dexador without an intermediate octet vector in memory?
18:59:23
krwq
I mean not entire stream in the vector just buffer to forward it to another stream. haven't used dexador much - I had some issues with it in the past so came back to using drakma
19:00:43
krwq
mfiano: i recall having some issues with dexador - i think it was proxy servers but can't remember
19:01:28
mfiano
I've had issues with both, due to usocket bugs, but my use this time doesn't affect my choice
19:23:11
borodust
bodge-ui-window (yet another gui dependent on foreign powers) now should work alright on retina displays too, any help with running example (https://github.com/borodust/bodge-ui-window#install) on macos with retina display is much appreciated
20:59:41
saturn2
is there some code that will list the memory used by each global variable in a lisp image? or otherwise help track down gradual memory growth
21:08:52
edgar-rft
saturn2: AFAIK the only memory inspection tool mentioned in the CL standard is ROOM. Since low-level memory allocation is implementation-dependent there might be more or better tools provided by the respective CL implementation.
21:11:36
aeth
e.g. in SBCL, (sb-profile:profile foo) and then just periodically check on it to see how its measured consing climbs over time
21:19:22
saturn2
lots of functions do consing... i don't think sb-profile tracks how much of that consing sticks around for a given length of time
21:22:57
saturn2
it's trivial to iterate over all symbols and check if they're boundp, the tricky part is calculating the size of lists, arrays, hash tables, clos objects, etc
21:24:39
rdh
hey, i am trying to get list of values quoted but i want it as arguments to a function, currently: (OR (NIL NIL NIL NIL T T NIL NIL)) ... but i need it to print (or (nil) (nil)...
21:28:25
rdh
which adds extra quotes and trys to eval the first argument as a function... which is not what I want... is there a good web page that has good thorough example to read?
21:29:47
pjb
No, there's no web page explaining in details how you should write your specific program.
21:30:06
saturn2
(room t) on sbcl gives enough info to tell me i'm leaking simple-vectors, but it doesn't tell me where they're ending up