Search
Sunday, 16th of August 2020, 5:09:27 UTC
10:39:36
jackdaniel
I'm sure that you've read it on internet explorer :)
11:03:56
pls153
COUNTER ACTION other breaking news: someone is already developing a new browser in Rust: https://github.com/twilco/kosmonaut
11:05:57
contrapunctus
pls153: orange crab bad
13:03:10
Josh_2
mrcom: https://github.com/K1D77A/metalock all slot access happens using a read-writer lock now
13:03:26
Josh_2
well each slot has It's own read-writer lock
14:53:00
puchacz
hi, what version of write / print function is equivalent of (format nil "~a" object) please? object being any object
14:53:04
puchacz
I just want to stringify it
14:55:09
puchacz
and if I want to concatenate 2 strings? like (format nil "~a ~a" obj1 obj2) ?
14:57:39
puchacz
and concatenate strings? do I need to with-output-to-string etc.?
14:57:42
pve
(concatenate 'string (princ-to-string obj1) " " (princ-to-string obj2))
14:58:01
pve
you'll want to define your own cat function
14:58:30
puchacz
concantenate from lisp too slow?
14:58:50
pve
no, I mean just for convenience
14:59:16
pve
or do with-output-to-string + (princ foo the-stream)
15:00:18
pve
so you could do like (stringify obj1 " " obj2) or something
15:01:01
puchacz
I have it with format nil already, maybe the compiler does something sensible with it, but I prefer to make it less ugly
15:01:54
pve
if it's too ugly you can make stringify like above
15:15:12
phoe
if you are not allergic to uiop
15:16:00
jackdaniel
(defun strdog (&rest args) (error "woof"))
15:16:25
jackdaniel
I find it nice that silly Common Lisp functions fit in one line
15:17:09
puchacz
phoe: I found strcat in arnesi
15:24:29
puchacz
jackdaniel: your function gives a compilation warning about unused argument. something is wrong with it :)
15:24:57
jackdaniel
the compiler is barking at the strdog
15:52:20
pve
is there some reason to be allergic to uiop?
15:53:51
pve
I'm somewhat reluctant to use it, but can't really put my finger on why
16:14:19
flip214
If a macro wants to store a (static) value per-callsite (same for all threads), is the best way to use use the value slot of a gensym? Is there a more memory-efficient way if I just want to remember a fixnum? (cache for max. size of w-o-t-s)
16:17:09
pve
flip214: would load-time-value work?
16:26:01
Lord_of_Life_
** NICK Lord_of_Life
Sunday, 16th of August 2020, 17:09:27 UTC