freenode/#lisp - IRC Chatlog
Search
10:45:52
tapioco
regarding the problem with gpio from sysfs, seems that udev took time to change rw permisisons for user and group, then CL is faster and cannot open files under /sys/class/gpio/gpioXX/value or other
10:46:51
tapioco
if I use the functions from repl they worked! If I place them in the same sequence in a program they fail with permissions error
11:09:54
_death
ludston: Paul Graham uses mvbind... if you keep your functions short there's no need to use a short name
11:27:28
dim
another “nice” thing is that Alt-Tab is the same thing as C-M-i for Emacs, not for your usual window-manager
11:40:03
_death
since it's a mapping from position in the conventional ordering of the english alphabet to ascii code, independent of the keyboard's layout
11:40:04
dim
I used to use azerty and lots of things you take for granted on qwerty simply doesn't apply there
11:40:29
dim
I switched to qwerty because I'm an Emacs user and couldn't stand azerty anymore for shortcuts
11:41:44
dim
my rough uneducated guess is that the wiring isn't compatible due to needing more combinations for letters (such as à é ê µ and more that are directly available on azerty), despite sharing the same number of wires as qwerty
11:43:13
_death
maybe in some software there'll be a lookup table keyed by scan codes, and scan codes would be different.. but I never dealt with different keyboard layouts so not sure that is the case
13:10:21
dlowe
clhs also says typecase evaluates a form if "the test-key is of the type given by the clauses's type" which indicates a subtype comparison to me, but apparently not to sbcl implementors
13:10:53
Bike
typecase has an object, and if the object is of the clause's type, it does that clause
13:13:49
knobo
loke___: but anyway, the push and remove is in two different functions. I'm just simplifying the example.
13:14:14
Bike
it's not as easy to write, but i guess i'd suggest not using remove/push, since you can do it without actually consing a new array oh well nevermind then
13:14:31
varjag
Bike: simple thing, i want to generate alsa pcm format flags based on array element types
13:15:58
Bike
knobo: (make-array (array-dimensions original) :element-type (array-element-type original) :fill-pointer (fill-pointer original)). inconvenient, i realize
13:16:39
Bike
varjag: something like (cond ((equal (array-element-type array) '(unsigned-byte 8)) ...do shit...) ...) i guess.
13:23:08
_death
knobo: you could use REPLACE and decrementing the fill-pointer (or ADJUST-ARRAY) to remove an element
13:23:30
tonton
Hi! I've noticed slime is slow when calling an external command using sbcl with thread support (cf http://paste.lisp.org/display/349650)
13:23:53
_death
varjag: you can always write OCTET-VECTOR-P and (typecase ... ((satisfies octet-vector-p) ...) ...)
13:25:07
tonton
seems to be an issue linked to slime, wondered if you already noticed this (I plan to investigate further)
13:26:15
tonton
Bike: without thread support, no difference, a soon as sbcl is compiled with thread support, 1 second of difference
13:28:11
_death
(time (uiop:run-program "/bin/hostname")) Evaluation took: 0.026 seconds of real time
13:30:23
tonton
_death: thanks for your feedback. I'm using slime 2.19 + sbcl 1.3.18 under freebsd, can you tell me under which os you get those timings please?
13:31:54
tonton
_death: Good, I'll make some tests under linux too then. I'll let you know if I find something.
13:32:28
Bike
if you do find a persistent problem, you'll probably have to reduce the case. use whatever sbcl function uiop calls for run-program, at least
13:34:07
tonton
Bike: same performance issues with sb-ext:run-program by the way. Might be related to feeebsd/slime.