freenode/#lisp - IRC Chatlog
Search
1:06:44
charles`
Is there a way to ignore a package's nicknames in the local package without entering the debugger?
7:16:21
flip214
you first define a package that :USEs some other packages, then go IN-PACKAGE and have the :USEd package symbols available without package prefix.
7:41:13
beach
flip214: 2. Perhaps you should warn about the risk of :USE-ing packages other than the CL package.
7:48:01
ck_
this particular use case read to me like using a package purely as a debugging environment, shortening the names you see.
7:54:25
flip214
beach: you're right, 2 is important. And I don't think this is _for_ debugging, only that doing it wrong _causes_ debugging ;/
7:55:10
ck_
It's actually me who misread it -- in my mind it said "when entering the debugger" instead of "without entering the debugger"
8:03:24
beach
ck_: Yes, I agree. It is possible to compensate a lot with spell checkers and abbrev processors.
8:04:33
beach
But things take longer. I get warnings about undefined functions and variables, but I can't tell that I misspelled the names.
8:05:33
flip214
one of my favourite spelling tricks (reviewing books) is to get a count of used words.... everything written only once is suspect, and twice needs a clear look as well
8:06:47
ck_
yes, that's a nice move. Also good for a histogram of non-alphanumeric characters, telling you whether some things are unbalanced
8:07:39
flip214
but as I'm reviewing books and papers more or less regularly I might have automated a few bits more than other people, yeah.
9:14:56
ralt
I find :USE pretty useful when using package-inferred-systems, for other internal packages
9:15:40
ralt
for external systems I always use `(:import-from :other-package #:sym1 #:sym2)` though.
11:25:03
ldbeth
is there a alogrithm find n highest rating elements given a list and a rating function?
11:42:42
phoe
well, you need to sort the elements of the circular buffer anyway, I don't think this can be done better than in nlogn
11:43:12
phoe
you could possibly adapt quicksort to not care about the insignificant parts and only fully sort the N greatest elements
12:25:43
phoe
could as well just sort the whole or a part of the thing, it'll be equivalent and not need a prioqueue