freenode/#lisp - IRC Chatlog
Search
1:34:00
p_l
I'm not sure about equivalent of dtrace helpers for dynamic generated code that isn't represented in binary's DWARF data
1:34:31
p_l
most of the time it's "dump a file named according to template X in /tmp that contains symbol data in this format"
2:23:43
pjb
p_l: you could patch a CL compiler to generate DWARF at the same time it generates code dynamically.
2:29:01
mister_m
i find myself wanting to traverse a list and use those list values to populate a hash table. My first instinct is to define a hash table in a let statement, and in the body of that statement have a dolist expression where i modify the hash table. Is there a better way to do this?
2:30:29
mister_m
I'd use a reduce perhaps in JS but I'm having a bit of trouble with CL's reduce in doing this
4:56:07
pjb
mister_m: if you like reduce go ahead! (reduce (lambda (h e) (setf (gethash (car e) h) (cdr e)) h) '((a . 1) (b . 2) (c . 3)) :initial-value (make-hash-table))
6:35:10
p_l
pjb: the linux perftools format is essentially "drop a file named after PID with table of `address:symbol name`". DWARF is only used for static data. DTrace OTOH had essentially a callback interface that you could implement top return the data