Search
Thursday, 19th of October 2017, 5:58:10 UTC
5:59:30
borei
Zhivago: i'll try to catch you tomorrow, wanted to chat a bit about pipes, about to run now
6:29:20
beach
Good morning everyone!
7:19:44
beach
phoe_: I completely forgot. I'll try to do it today.
9:48:07
hlavaty
hi, ist there a way to make file-length work on custom gray stream?
9:48:42
hlavaty
could be limited to sbcl and ccl
9:57:47
lieven
setf stream-file-position to :end and see if file-position returns a number instead of :end
9:59:27
hlavaty
lieven: yeah, but then i need to implement seeking
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:02:34
lieven
file-length isn't part of the gray stream protocol IIRC
10:03:25
hlavaty
i know, normally i avoid the whole common lisp idea of streams
10:03:48
lieven
anyhow, with text files you get into the octets versus characters encoding problems anyway
10:04:19
lieven
let alone the non posix filesystems that were around when the spec was finalized
10:05:05
lieven
on some systems even determining octet size was a O(n) operation
10:05:16
hlavaty
i don't care about that
10:05:42
lieven
add a mystream-file-length to your API and call it quits :)
10:37:43
beach
phoe_: Got an answer from moore33. He will release it under a different license.
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:03:24
_death
in that case, you have done too much python programming
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:11:01
jmercouris
phoe_: is this about the snippet we were talking about yesterday?
17:14:53
jmercouris
any difference between (require "something") and (require :something) ? Why is it done sometimes one way and sometimes another?
17:15:00
jmercouris
is :something a macro?
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:18:32
basket
Josh_2: What's chapter 6 about?
17:18:34
mfiano
Can you be more specific?
17:20:09
Josh_2
It's "Functions as Representation" using Closures as data structures
17:20:28
Josh_2
The 20 questions example
17:20:37
mfiano
Closures are a good way to queue function evaluation, so make good hybrid data structures for sure.
17:21:02
Bike
if i want actual accessors i use classes.
17:21:16
Josh_2
It says at the end that it "requires some unconventional thinking" that's 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?
17:44:38
phoe_
emaczen: implementation-dependent
17:44:57
phoe_
https://github.com/guicho271828/trivial-signal
Thursday, 19th of October 2017, 17:58:10 UTC