<gendl__>
just made a👆 naive implementation which apparently works for my use case, may or may not be useful as a reference. It's naive because it doesn't do anything about "fairness" and it'd be possible for the lock to get swamped by constant overlapping readers (i.e.in an application where the reader count never gets to zero, a writer might be locked out indefinitely). So some kind of "fairness" heuristic should probably be
<gendl__>
added.
<remexre>
should I expect writing to the uiop/launch-process:process-info-input of an exited-but-not-waited process to error in some way? unless i'm messing something up, I'm not getting any kind of condition
<remexre>
oh, forgot to finish-output it
contrapunctus has joined #commonlisp
bilegeek has quit [Quit: Leaving]
Cymew has joined #commonlisp
pve has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
blop_ has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
blop_ has joined #commonlisp
shka has joined #commonlisp
semarie has quit [Quit: WeeChat 4.0.4]
semarie has joined #commonlisp
rgherdt has joined #commonlisp
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #commonlisp
varjag has joined #commonlisp
<varjag>
i wonder if it's possible to have a json backend for cl-store
igemnace has joined #commonlisp
dtman34 has quit [Ping timeout: 245 seconds]
pve has quit [Read error: Connection reset by peer]
msavoritias has joined #commonlisp
pve has joined #commonlisp
loke has quit [Ping timeout: 252 seconds]
bendersteed has joined #commonlisp
dtman34 has joined #commonlisp
bjorkint0sh has joined #commonlisp
bjorkintosh has quit [Ping timeout: 240 seconds]
LW has joined #commonlisp
loke has joined #commonlisp
markb1 has quit [Ping timeout: 255 seconds]
loke has quit [Ping timeout: 260 seconds]
LW has quit [Quit: WeeChat 3.8]
dtman34 has quit [Ping timeout: 258 seconds]
igemnace has quit [Read error: Connection reset by peer]
bendersteed has quit [Quit: bendersteed]
dino_tutter has joined #commonlisp
mgl has joined #commonlisp
rogersm has quit [Ping timeout: 255 seconds]
igemnace has joined #commonlisp
azimut has joined #commonlisp
igemnace has quit [Ping timeout: 244 seconds]
rtypo has joined #commonlisp
bendersteed has joined #commonlisp
dnhester26 has joined #commonlisp
igemnace has joined #commonlisp
herjazz has joined #commonlisp
dtman34 has joined #commonlisp
loke has joined #commonlisp
loke has quit [Ping timeout: 258 seconds]
MajorBiscuit has joined #commonlisp
rogersm has joined #commonlisp
rainthree has joined #commonlisp
markb1 has joined #commonlisp
loke has joined #commonlisp
mgl has quit [Quit: Client closed]
random-nick has joined #commonlisp
loke has quit [Ping timeout: 240 seconds]
mgl has joined #commonlisp
NicknameJohn has joined #commonlisp
NicknameJohn has quit [Read error: Connection reset by peer]
dnhester26 has quit [Ping timeout: 255 seconds]
vjalmr has joined #commonlisp
mgl has quit [Quit: Client closed]
loke has joined #commonlisp
loke has quit [Ping timeout: 258 seconds]
anticrisis has quit [Read error: Connection reset by peer]
rtypo has quit [Quit: WeeChat 4.0.4]
mgl has joined #commonlisp
attila_lendvai has joined #commonlisp
kevingal has joined #commonlisp
rainthree has quit [Read error: Connection reset by peer]
cstub has joined #commonlisp
mgl has quit [Quit: Client closed]
loke has joined #commonlisp
loke has quit [Ping timeout: 258 seconds]
dnhester26 has joined #commonlisp
attila_lendvai has quit [Ping timeout: 246 seconds]
yitzi has joined #commonlisp
rainthree has joined #commonlisp
loke has joined #commonlisp
tyson2 has joined #commonlisp
cage has joined #commonlisp
dino_tutter has quit [Ping timeout: 258 seconds]
overclucker has quit [Ping timeout: 240 seconds]
overclucker has joined #commonlisp
loke has quit [Ping timeout: 244 seconds]
bendersteed has quit [Remote host closed the connection]
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
notzmv has quit [Ping timeout: 240 seconds]
cstub has quit [Quit: Leaving]
dino_tutter has joined #commonlisp
herjazz has quit [Quit: leaving]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
dnhester26 has quit [Ping timeout: 246 seconds]
loke has joined #commonlisp
thollief has joined #commonlisp
mgl has joined #commonlisp
jjnkn has joined #commonlisp
kevingal has quit [Remote host closed the connection]
kevingal has joined #commonlisp
loke has quit [Ping timeout: 244 seconds]
Josh_2 has joined #commonlisp
jmdaemon has quit [Ping timeout: 260 seconds]
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
loke has joined #commonlisp
dnhester26 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
loke has quit [Ping timeout: 258 seconds]
thuna` has joined #commonlisp
yitzi has quit [Remote host closed the connection]
notzmv has joined #commonlisp
waleee has joined #commonlisp
Cymew has quit [Ping timeout: 240 seconds]
loke has joined #commonlisp
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
mgl has quit [Quit: Client closed]
loke has quit [Ping timeout: 240 seconds]
waleee has quit [Ping timeout: 260 seconds]
dnhester26 has quit [Ping timeout: 252 seconds]
cstub has joined #commonlisp
shoggouth has quit [Quit: Connection closed for inactivity]
yitzi has joined #commonlisp
loke has joined #commonlisp
loke has quit [Ping timeout: 240 seconds]
kevingal has quit [Ping timeout: 240 seconds]
Pixel_Outlaw has joined #commonlisp
kevingal has joined #commonlisp
kevingal has quit [Ping timeout: 264 seconds]
dino_tutter has quit [Ping timeout: 260 seconds]
kamafam has joined #commonlisp
mgl has joined #commonlisp
overclucker has quit [Ping timeout: 258 seconds]
MajorBiscuit has quit [Ping timeout: 258 seconds]
NicknameJohn has joined #commonlisp
ronald has quit [Ping timeout: 244 seconds]
ronald_ has quit [Ping timeout: 246 seconds]
ronald has joined #commonlisp
ronald_ has joined #commonlisp
cstub has quit [Quit: Leaving]
kamafam has quit [Quit: kamafam]
thuna` has quit [Ping timeout: 258 seconds]
loke has joined #commonlisp
thuna` has joined #commonlisp
cstub has joined #commonlisp
mgl has quit [Quit: Client closed]
kevingal has joined #commonlisp
sloanr has joined #commonlisp
kevingal has quit [Remote host closed the connection]
loke has quit [Ping timeout: 244 seconds]
<jjnkn>
how to correctly generate defun with a computed name in a macro? i'm getting a function named |name| instead of just name, and don't understand why
<jjnkn>
for example, generating a function with a name of 2 symbols joined by -
<jjnkn>
i'm computing the name like this: (intern (format nil "~(~a~)-~(~a~)" sym1 sym2))
<bike>
by default symbols are all upcased
<bike>
like if you write (defun foo ...), the symbol will have an actual name of FOO. you can try it, do (symbol-name 'defun). you'll get "DEFUN"
<bike>
so stick in some string-upcases and it'll probably be fine
<jjnkn>
oh, that's right
<gilberth>
Why not take the SYMBOL-NAME of sym1 and sym2 and be set?
<jjnkn>
and i was doing the opposite - converting to lowercase
<edgar-rft>
jjnkn: you need (format nil "~:@(~a~)-~:@(~a~)" 'a 'b) because the default readtable-case is :UPOCASE
<edgar-rft>
* :UPCASE of course
kevingal has joined #commonlisp
* gilberth
wants :UFOCASE.
<edgar-rft>
:UPOCASE is for people with a LIFP
chrcav has quit [Quit: leaving]
dlowe has joined #commonlisp
wonko-the-sane has quit [Remote host closed the connection]
wonko-the-sane has joined #commonlisp
ns12 has quit [Quit: bye]
ns12 has joined #commonlisp
loke has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
amb007 has joined #commonlisp
msavoritias has quit [Remote host closed the connection]
azimut has quit [Ping timeout: 252 seconds]
jjnkn has quit [Quit: leaving]
amb007 has quit [Ping timeout: 264 seconds]
wonko-the-sane has quit [Quit: leaving]
NicknameJohn has quit [Remote host closed the connection]
azimut has joined #commonlisp
loke has quit [Ping timeout: 240 seconds]
amb007 has joined #commonlisp
dino_tutter has joined #commonlisp
goober has joined #commonlisp
prokhor has quit [Remote host closed the connection]
prokhor has joined #commonlisp
dnhester26 has joined #commonlisp
attila_lendvai has joined #commonlisp
gooba has joined #commonlisp
goober has quit [Quit: Leaving]
loke has joined #commonlisp
rainthree has quit [Ping timeout: 258 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
NicknameJohn has joined #commonlisp
tyson2 has joined #commonlisp
anticrisis has joined #commonlisp
NicknameJohn has quit [Read error: Connection reset by peer]
rogersm has quit [Quit: Leaving...]
kevingal has quit [Remote host closed the connection]
dnhester26 has quit [Ping timeout: 260 seconds]
loke has quit [Ping timeout: 244 seconds]
sloanr has quit [Remote host closed the connection]
NicknameJohn has joined #commonlisp
jmdaemon has joined #commonlisp
lagash has quit [Ping timeout: 246 seconds]
<jmercouris>
Why does uiop accept arbitrary keywords and not complain?
<jmercouris>
I have to say, I was expecting at least some error
<jmercouris>
for example: (uiop:launch-program (list "ls") :oputput :interactive)
<jmercouris>
"oputput" is not a keyword arg for launch-program
<jmercouris>
anyways, that's the end of my rant
<jmercouris>
a heads up for anyone who hasn't yet encountered this
cdegroot has quit [Ping timeout: 244 seconds]
obijohn has quit [Quit: Connection closed for inactivity]
NicknameJohn has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 240 seconds]
tyson2 has quit [Read error: Connection reset by peer]
loke has joined #commonlisp
amb007 has joined #commonlisp
<bike>
jmercouris: launch-program specifically has &allow-other-keys, probably because different implementations might have their own keywords
thollief has quit [Quit: Leaving]
cstub has quit [Read error: Connection reset by peer]
cstub has joined #commonlisp
tevo has quit [Ping timeout: 260 seconds]
<jmercouris>
bike: aha, that makes sense
tyson2 has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
amb007 has joined #commonlisp
Brucio-61 has quit [Quit: Application exit]
cage has quit [Remote host closed the connection]
pfdietz has quit [Quit: Client closed]
Brucio-61 has joined #commonlisp
shoggouth has joined #commonlisp
shoggouth has quit [Changing host]
shoggouth has joined #commonlisp
attila_lendvai has quit [Ping timeout: 255 seconds]
yitzi has quit [Remote host closed the connection]
vjalmr has quit [Quit: Terminated!]
NicknameJohn has joined #commonlisp
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
shka has quit [Ping timeout: 255 seconds]
NicknameJohn has quit [Ping timeout: 240 seconds]
pfdietz has joined #commonlisp
bendersteed has joined #commonlisp
bendersteed has quit [Client Quit]
rgherdt has quit [Quit: Leaving]
tyson2` has joined #commonlisp
<_death>
maybe it would've been preferable for it not to have &allow-other-keys, so that someone who wants to pass implementation-specific keys would have to specify :allow-other-keys t
NicknameJohn has joined #commonlisp
<_death>
it also passes :allow-other-keys t to the implementation's run-program, which is why it doesn't signal an error
thuna` has quit [Read error: Connection reset by peer]
lagash has joined #commonlisp
dino_tutter has quit [Ping timeout: 240 seconds]
son0p has quit [Quit: Bye]
drewjose has quit [Quit: Ping timeout (120 seconds)]
drewjose has joined #commonlisp
dlowe has quit [Ping timeout: 240 seconds]
pve has quit [Quit: leaving]
jello_pudding has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 258 seconds]
yitzi has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
cstub has quit [Quit: Leaving]
son0p has joined #commonlisp
tyson2` has quit [Ping timeout: 244 seconds]
jello_pudding has joined #commonlisp
anticrisis_ has joined #commonlisp
anticrisis has quit [Ping timeout: 258 seconds]
anticrisis__ has joined #commonlisp
anticrisis_ has quit [Ping timeout: 258 seconds]
wonko-the-sane has joined #commonlisp
gooba has quit [Remote host closed the connection]
igemnace has quit [Read error: Connection reset by peer]
jmdaemon has joined #commonlisp
random-nick has quit [Ping timeout: 246 seconds]
<jmercouris>
alright so I have a most perplexing problem
<jmercouris>
I am writing "\\\\n" to a socket and on the receving end I am only reading "\\n"
<jmercouris>
why is this?
<jmercouris>
who is swallowing the escape characters?
ronald_ has quit [Ping timeout: 258 seconds]
ronald has quit [Ping timeout: 252 seconds]
<jmercouris>
is it lisp that is swallowing them?
<jmercouris>
presumably, because it thinks I am trying to escape something
<bike>
the lisp reader, yes
<jmercouris>
bike: I did a stupid hack to be able to write strings, so the reason you see "\\\\n" is because I had just "\\n" before, and something was getting lost on the way
<jmercouris>
so I added more backslashes.
<bike>
if you do (write-string "\\\\n") you should see \\n
<jmercouris>
wow that blows my mind
<bike>
not sure from your paste whether lisp is the sender or receiver, though
<jmercouris>
lisp is the sender
<bike>
ah ok then.
<jmercouris>
javascript is the receiever
<jmercouris>
can you think of a better way for me to do this?
<jmercouris>
because right now I am doing a stupid str replace to add more slashes
<jmercouris>
it is code being outputted by parenscript
<bike>
as long as we're on this topic, \n doesn't do anything special in lisp. it'll just be a backslash and then an n, so if you want a newline you're out of luck
<jmercouris>
I know, it is because it is being used by JS
<jmercouris>
let me post a little snippety snippet