freenode/#lisp - IRC Chatlog
Search
0:05:13
Mariaaa
Angel_Feroz(Humbert0@ferozmente.angelical.y.angelicalmente.feroz)- loca de mierda te jodiste te har la vida imposible te ir a buscar y probablemente te desaparezca!!!
0:05:13
Mariaaa
01:45 : Mariaaa 01:38:58 -Angel_Feroz(Humbert0@ferozmente.angelical.y.angelicalmente.feroz)- loca de mierda te jodiste te har la vida imposible te ir a buscar y probablemente te desaparezca!!!
0:16:16
gendl
Hi, I just started using paredit for the first time (after editing common lisp with emacs for 25 years). It seems pretty cool but I should probably read a manual or watch a tutorial - whenever I search for same (even specifying "how to use paredit for common lisp") i'm getting a bunch of nice looking directions on how to use it for clojure.
0:16:52
gendl
that's all well & good and i suppose most of that will apply to CL as well, but is there a nice "paredit for common lisp for dummies" somewhere?
5:09:56
mfiano
Hello all. If I want to sort a list of symbols such that they are sorted lexicographically and ascendingly on both PACKAGE-NAME and SYMBOL-NAME, is it enough to treat the elements as string designators using (sort some-list #'string<), or must I write my own predicate?
5:12:41
mfiano
Just to elaborate, the question is moreso about how a symbol is converted to a string designator, since I want '(mypkg::foo mypkg::bar cl-user::foo cl-user::bar) to be sorted as (cl-user::bar cl-user::foo mypkg::bar mypkg::foo)
5:16:17
White_Flame
but to sort by package, the :key would have to be (lambda (sym) (package-name (symbol-package sym)))
5:18:48
mfiano
I see. Thanks for the suggestion. I was about to resort to that, but was hesitant as while this doesn't occur frequently, when it is, it is being used in the context of a performance-sensitive event loop.
7:46:11
flip214
mfiano: group the symbols by package, then sort the packages and the symbols (per package) separately
10:45:05
ldb
is there any reason most programming langauges treats (expt x 0) const one rather than raise div by 0 error when x is 0?
10:49:51
jackdaniel
in algebra 0^0 usually is treated as 1, often it is left as undefined expression, but I've never heard an interpretation that it is division by 0
10:50:44
jackdaniel
here is even a section about software https://en.wikipedia.org/wiki/Zero_to_the_power_of_zero
10:51:55
jackdaniel
(and, from cl perspective, the answer would be: because it is specified to return 1)