gorignak has quit [Remote host closed the connection]
gorignak has joined #commonlisp
troojg has quit [Remote host closed the connection]
gorignak has quit [Remote host closed the connection]
gorignak has joined #commonlisp
gorignak has quit [Remote host closed the connection]
troojg has joined #commonlisp
paddymahoney has quit [Ping timeout: 265 seconds]
triffid has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
paddymahoney has joined #commonlisp
PennyBlake has joined #commonlisp
paddymahoney has quit [Ping timeout: 252 seconds]
gorignak has joined #commonlisp
paddymahoney has joined #commonlisp
amb007 has joined #commonlisp
paddymahoney has quit [Ping timeout: 246 seconds]
awlygj has joined #commonlisp
treflip has joined #commonlisp
pve has joined #commonlisp
troojg has quit [Ping timeout: 276 seconds]
wacki has joined #commonlisp
spdegabrielle has joined #commonlisp
PennyBlake has quit [Ping timeout: 265 seconds]
wacki has quit [Ping timeout: 252 seconds]
wacki has joined #commonlisp
elderK has joined #commonlisp
elderK has quit [Client Quit]
lucerne has quit [Ping timeout: 252 seconds]
phantomics has quit [Remote host closed the connection]
phantomics has joined #commonlisp
paddymahoney has joined #commonlisp
shka has joined #commonlisp
alendvai__ has joined #commonlisp
alXsei has joined #commonlisp
McParen has joined #commonlisp
skeemer has joined #commonlisp
cage has joined #commonlisp
cage has quit [Excess Flood]
cage has joined #commonlisp
alternateved has joined #commonlisp
shka has quit [Ping timeout: 264 seconds]
shka has joined #commonlisp
alXsei has quit [Quit: Leaving]
mwnaylor has quit [Ping timeout: 276 seconds]
rtypo has joined #commonlisp
alendvai__ is now known as attila_lendvai
shka has quit [Quit: Konversation terminated!]
dino_tutter has quit [Remote host closed the connection]
shka has joined #commonlisp
dino_tutter has joined #commonlisp
McParen has left #commonlisp [#commonlisp]
edgar-rft_ has joined #commonlisp
edgar-rft has quit [Ping timeout: 252 seconds]
treflip has quit [Remote host closed the connection]
skeemer has quit [Ping timeout: 248 seconds]
jonatack has quit [Ping timeout: 260 seconds]
brokkoli_origin has quit [Ping timeout: 248 seconds]
brokkoli_origin has joined #commonlisp
random-nick has joined #commonlisp
green__ has quit [Quit: Leaving]
green has quit [Quit: Leaving]
kevingal has joined #commonlisp
scymtym has quit [Ping timeout: 244 seconds]
yitzi has joined #commonlisp
scymtym has joined #commonlisp
<dbotton>
Is there an example anywhere of a simple way to create a binary stream I write to with one function and read from in another? ie some sort of simple buffered stream.
decweb has joined #commonlisp
<dbotton>
(in this case I want to pass a png from vecto to imago)
<yitzi>
dbotton: you mean like a memory pipe?
<dbotton>
yes
<dbotton>
using streams
<beach>
Don't these libraries already always use files?
<yitzi>
You can roll your own using Gray streams. There is also flexistreams if you want out of the box binary memory streams.
<dbotton>
beach I can write and read from a file for each, I want to avoid the IO portion between them
<dbotton>
I know yitzi I can write one, but this seems something common
<yitzi>
flexistreams then
<_death>
why not use vecto's image data vector directly
<dbotton>
it could be imago is in same format or convert between two yes, but figure this maybe already exists
chomwitt has joined #commonlisp
<dbotton>
just output png-stream and read png-stream
<dbotton>
seems strange that there was not a simple way
pranav has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 252 seconds]
Akbar-Birbal has left #commonlisp [#commonlisp]
jonatack has joined #commonlisp
josrr has quit [Remote host closed the connection]
donleo has joined #commonlisp
pranav has joined #commonlisp
PennyBlake has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
treflip has quit [Remote host closed the connection]
shawnw has joined #commonlisp
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 246 seconds]
awlygj has quit [Quit: leaving]
shawnw has quit [Ping timeout: 246 seconds]
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
shawnw has joined #commonlisp
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 246 seconds]
shawnw has quit [Ping timeout: 244 seconds]
treflip has joined #commonlisp
JuanDaugherty has joined #commonlisp
shka has quit [Read error: Connection reset by peer]
<paulapatience>
Let FN be the name of a function in a macro I am defining.
<paulapatience>
Is (,fn ...)
<paulapatience>
or (funcall ',fn ...)?
<paulapatience>
the same as (funcall #',fn ...)
elderK has joined #commonlisp
<paulapatience>
I know that #'fn looks fn up in the lexical environment and 'fn in the global environment, but I am not certain about (,fn ...).
<paulapatience>
I would think it would be equivalent to (funcall ',fn ...).
<paulapatience>
Also, I thought I read somewhere that using #',fn in macro definitions is unwise, because then rebinding fn in the global environment would not have an effect in previously defined macros.
<paulapatience>
Am I remembering that right?
<paulapatience>
shka has joined #commonlisp
<elderK>
paulapatience: With regards to 'fn, doesn't it depend on the function you're calling in general? Like, do all function that expect to be passed a function as an argument, allow you to use a general function designator?
<elderK>
As for not using #',fn, I guess it depends on how your macro works.
<elderK>
I'm curious to this answer, too :)
<paulapatience>
Well, normally function designators are passed to funcall or apply, no? And they accept the designators.
<elderK>
Okay, that's true.
<elderK>
Are you feeding the fn to the macro on invocation?
<elderK>
I guess it's up to you to define whether the macro uses the bindings that were active at the time it were defined, or whether it uses whatever bindings are active when the macro is invoked.
<paulapatience>
What do you mean on invocation?
<paulapatience>
Right, but I think that the default way to write macros is to do the same as (,fn ...).
<elderK>
By invocation, I mean when the macro is used.
<elderK>
Yes provided the ,fn is fed in by the user.
<elderK>
It would be up the user to pass in #'... for fn if that is necessary.
<paulapatience>
Oh, that's a good point.
<elderK>
Hopefully someone with more knowledge can chime in.
JuanDaugherty has quit [Quit: JuanDaugherty]
attila_lendvai_ has joined #commonlisp
jonatack has joined #commonlisp
attila_lendvai has quit [Ping timeout: 245 seconds]
<_death>
if FN is the name of a macro, then (,fn ...) will work but (funcall ...) will not.. the former will also consider the lexical environment (like #',fn)
PennyBlake has quit [Remote host closed the connection]
<paulapatience>
_death: Right, I hadn't thought about macros too. Great, thanks.