15:49:21jmercourisI'm getting an interesting stream error when I'm trying to return an image from my lisp web server: https://gist.github.com/36f339d186996b2f8c40cab099739366
15:55:48jmercourisas far as I can tell, the png stream does not like being converted to a string
15:56:01jmercourisbut I can't also tell how to return a stream in caveman
15:56:02tfbjmercouris: something is trying to write a byte to a character stream
15:56:26jmercourisI guess vecto:save-png-stream writes a byte stream
15:56:57tfbwell, I assume pngs are defined in terms of bytes
15:57:17jmercourishow can I return a byte stream though? isn't a stream just kind of like a pipe?
15:57:48jmercourisor what is it? more like a buffer? excuse my ignorance, as I still don't know what streams are :\
16:03:35eminhiflexi-streams : with-output-to-sequence may help
16:04:31tfbI'm the wrong person to answer this but traditionally streams either deal with (a subtype of) character, or (a subtype of) integer. And CL-the-standard is missing some stuff around this I think
16:04:46tfb(ie with-output-to-sequence as eminhi says)
16:07:21tfbSomewhere there is stuff (also not in the standard) about bivalant sreams which are streams which can contain both characters and bytes, and which I think you really kind of need for webby stuff
16:08:30eminhitfb: we can use *open* with different :element-type, when finer control over stream is needed
16:08:33tfb(and. doh, flexi-streams is 'Flexible bivalent streams for Common Lisp': I should have looked at it!)
17:58:31jasomcl-user is an implementation-defined superset of the CL package; it has non-portable but useful things (most implementations define QUIT for example; SBCL defined EXIT in addition to QUIT because they changed the interface IIRC)
18:03:43skidd0sabrac: with s-sql and postmodern, how tedious is session handling?
18:07:09skidd0so in my understanding, every db op (like add-task) would need to be wrapped in the with-connection
18:08:15skidd0sabrac: are you the author of sabra on the hill?
19:47:47jasomskidd0: that is correct. I would recommend doing a with-connection around your main function though (assuming *most* invocations of your program will need to connect to the database).
19:48:51skidd0well the "main" function that the end-user interacts with is a cli function with CLON
19:49:23skidd0i'm wondering how to with-connection the commands
19:49:41skidd0when the cli program is a separate package from the to-do package
19:49:48jasomskidd0: assuming the commands are functions, just put it in the body of those functions.
19:50:17jasomI'm just suggesting you not do (with-connection <lookup some data>) (with-connection <modify some data>) ... or something stupid like that
0:04:14esthlosheya, I want to make an array containing a bunch of bit vectors which are not eq (different memory locations). how can I do this without much pain?