freenode/#lisp - IRC Chatlog
Search
9:57:47
lieven
setf stream-file-position to :end and see if file-position returns a number instead of :end
10:00:14
hlavaty
i am adding streaming version to zip inflate and it would be very handy, if file-length worked out of the box
10:03:48
lieven
anyhow, with text files you get into the octets versus characters encoding problems anyway
14:01:29
turkja
you when you have done too much lisp programming.. when working on a python gui program, you realize that your source changes are not working... after restarting the program :D
14:07:32
turkja
eheh.. but lately i've working on stumpwm, and got so spoiled on just throwing changes to living window manager i didn't even think things can be any other way.. was staring stupidly why my code doesn't work??
17:14:53
jmercouris
any difference between (require "something") and (require :something) ? Why is it done sometimes one way and sometimes another?
17:17:02
Josh_2
Chapter 6 of On Lisp is pretty awesome imo, do people use this sort of programming style often in CL?
17:20:37
mfiano
Closures are a good way to queue function evaluation, so make good hybrid data structures for sure.
17:22:23
Josh_2
I think that style or programming is awesome, kinda strange to get my head around though.
17:44:10
emaczen
How would I add a keyboard interrupt to stop program execution? Some kind of handle/condition code I assume?
18:58:23
rumbler31
in my case I don't particularly care when the input character arrives. I suppose that means that I might need to hit enter in my terminal
20:41:23
dim
I think I just optimized the qmynd driver *a lot* (looks like twice as fast with my current test case)
20:46:32
dim
I'm too worried about protocol support and edge cases to switch to another MySQL driver tho :(
20:50:59
Bike
if the compiler's smart enough, it can understand that the result of (aref row ...) will be of type (or nil simple-string), which could help
20:59:35
Shinmera
dim: I'd expect most implementations to give up when encountering compound types for arrays.
21:06:55
scymtym
dim: not that nil is the empty type. (or nil simple-string) is just simple-string. did you mean null instead of nil?
21:09:05
scymtym
dim: also, what sometimes helps is (and <some-kind-of-string> (not (array nil 1))) since otherwise the compiler has to entertain the possibility of your "string" being an (array nil 1)
21:11:17
scymtym
emaczen: if the octets are in an (array (unsigned-byte 8) 1), the nibbles library has all the integer conversions, otherwise what bike says
21:14:34
basket
emaczen: (loop with n = 0 for i from 0 for byte across bytes do (setf (ldb byte 8 (* i 8)) byte) finally (return n))
21:18:06
Bike
if you had two bytes, and wanted to make a two byte number out of them, you would take 256 times the high byte, plus the low byte
21:18:31
Bike
on a computer you might do the "256 times" with a shift or unaligned load, but it's all the same principle