oni-on-ion has quit [Remote host closed the connection]
jkordani has quit [Read error: Connection reset by peer]
Necktwi has joined #lisp
oni-on-ion has joined #lisp
z3t0 has joined #lisp
campy_fellow has joined #lisp
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 258 seconds]
karlosz has joined #lisp
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
karlosz has quit [Quit: karlosz]
gabbiel has quit [Remote host closed the connection]
caltelt has quit [Remote host closed the connection]
caltelt has joined #lisp
karlosz has joined #lisp
karlosz has quit [Read error: Connection reset by peer]
caltelt has quit [Ping timeout: 244 seconds]
clothespin has quit [Ping timeout: 248 seconds]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 268 seconds]
anewuser has joined #lisp
asarch has joined #lisp
<beach>
Good morning everyone!
Kundry_Wag has joined #lisp
Necktwi has quit [Ping timeout: 246 seconds]
Kundry_Wag has quit [Ping timeout: 244 seconds]
Necktwi has joined #lisp
wigust has joined #lisp
vlatkoB has joined #lisp
wigust- has quit [Ping timeout: 258 seconds]
sauvin has joined #lisp
asarch_ has joined #lisp
slyrus_ has joined #lisp
benkard has joined #lisp
hvxgr__ has joined #lisp
zcid- has joined #lisp
corvidzz_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 258 seconds]
mulk has quit [Ping timeout: 258 seconds]
hugotty has quit [Ping timeout: 258 seconds]
corvidzz has quit [Ping timeout: 258 seconds]
hvxgr has quit [Ping timeout: 258 seconds]
vxe has quit [Read error: Connection reset by peer]
asarch has quit [Ping timeout: 258 seconds]
zcid has quit [Ping timeout: 258 seconds]
luis has quit [Ping timeout: 258 seconds]
Oddity has quit [Ping timeout: 258 seconds]
slyrus__ has quit [Ping timeout: 258 seconds]
khisanth_ has quit [Ping timeout: 258 seconds]
eschatologist has quit [Ping timeout: 258 seconds]
benkard is now known as mulk
zcid- is now known as zcid
khisanth_ has joined #lisp
eschatologist has joined #lisp
libertyprime has joined #lisp
luis has joined #lisp
Lord_of_Life has joined #lisp
FreeBirdLjj has joined #lisp
Oddity has joined #lisp
asarch_ has quit [Quit: Leaving]
dddddd has joined #lisp
lavaflow has quit [Read error: No route to host]
lavaflow has joined #lisp
minion has quit [Disconnected by services]
minion has joined #lisp
longshi has joined #lisp
minion has quit [Disconnected by services]
minion has joined #lisp
Lord_of_Life has quit [Ping timeout: 258 seconds]
bitch has quit [Ping timeout: 258 seconds]
campy_fellow has quit [Ping timeout: 258 seconds]
copec has quit [Ping timeout: 258 seconds]
samebchase has quit [Ping timeout: 258 seconds]
eschatologist has quit [Ping timeout: 258 seconds]
khisanth_ has quit [Ping timeout: 258 seconds]
hjudt has quit [Ping timeout: 258 seconds]
khisanth_ has joined #lisp
copec has joined #lisp
eschatologist has joined #lisp
Lord_of_Life has joined #lisp
campy_fellow has joined #lisp
Krystof has quit [Ping timeout: 246 seconds]
drewc has quit [Ping timeout: 255 seconds]
bitch has joined #lisp
elazul has joined #lisp
hjudt has joined #lisp
elazul has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 244 seconds]
libertyprime has quit [Ping timeout: 252 seconds]
andrei-n has joined #lisp
libertyprime has joined #lisp
Necktwi has quit [Ping timeout: 246 seconds]
Necktwi has joined #lisp
campy_fellow has quit [Ping timeout: 245 seconds]
karlosz has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
levitanong has joined #lisp
reverse_light has quit [Remote host closed the connection]
Necktwi has quit [Ping timeout: 258 seconds]
longshi has quit [Ping timeout: 258 seconds]
<levitanong>
hi all, I'm new here, both IRC and Common Lisp. Hoping someone can help me out! I'm trying to run (uiop:run-program '("ls" "~/Downloads")) and I get some kind of subprocess error. However, when I use an absolute path instead of the shortcut "~", it works just fine. It also works fine if i do (uiop:run-program "ls ~/Downloads"). I've checked as much documentation as I can find, but I don't see anything related to this problem. Can anyone explain to me
<levitanong>
why this inconsistency happens, and how to fix it?
<beach>
Hello levitanong.
<beach>
levitanong: Sorry, I don't know the answer. I don't use run-program myself.
<White_Flame>
"~" is resolved by the shell, before passing the parameter to the program
<White_Flame>
here, there's no shell. the literal filename "~/Downloads" does not exist
<no-defun-allowed>
~ is an expansion done by your shell, not by your OS's syscall for running programs
<White_Flame>
if you run-program with a complete string, it probably passes it to the shell to break apart
<levitanong>
oh! That makes sense. So would it work if I add a ":force-shell t"?
<White_Flame>
sounds like something that's applicable. try it
<levitanong>
Hmm. Same error. I guess that's not what it's for.
<levitanong>
Anyway, thanks, White_Flame, no-defun-allowed, and beach!
<no-defun-allowed>
You can expand it yourself using MERGE-PATHNAME and USER-HOMEDIR-PATHNAME.
<levitanong>
Ah, I'm writing out a CLI for parsing out a bank statement into a csv, so I'd like to avoid hardcoding the homedir thing.
nowhereman has joined #lisp
<levitanong>
So like, I'd want the user (mostly me for now, but who knows!) to type out a path that they would naturally use, tildes and all.
Necktwi has joined #lisp
<no-defun-allowed>
Well, ~ can only occur at the start of a pathname, so it shouldn't be too hard to detect it and expand it.
<levitanong>
that's a good point! Thanks, friend :)
orivej has joined #lisp
libertyprime has quit [Remote host closed the connection]
anewuser has quit [Quit: anewuser]
orivej has quit [Ping timeout: 245 seconds]
nowhereman has quit [Ping timeout: 255 seconds]
levitanong has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeBirdLjj has joined #lisp
juki has joined #lisp
invergo has joined #lisp
_whitelogger has joined #lisp
_whitelogger has joined #lisp
lavaflow has joined #lisp
random-nick has joined #lisp
Necktwi has quit [Ping timeout: 245 seconds]
Necktwi has joined #lisp
invergo has quit [Quit: invergo]
<MichaelRaskin>
no-defun-allowed: well, sometimes you do want to pass a literal string starting with ~ to an application
<no-defun-allowed>
Yep.
<MichaelRaskin>
(and, oh the horror, you can have ~ as a directory name)
nowhereman has joined #lisp
svillemot has joined #lisp
<White_Flame>
and that's what single quotes are for in shells
mindCrime has quit [Ping timeout: 248 seconds]
invergo has joined #lisp
campy_fellow has joined #lisp
<MichaelRaskin>
For ~ it is enough to use double quotes in shell
buffergn0me has quit [Remote host closed the connection]
sciamano has quit [Remote host closed the connection]
iarebatman has quit [Remote host closed the connection]
Gnuxie[m] has quit [Remote host closed the connection]
Jachy has quit [Read error: Connection reset by peer]
LdBeth has quit [Read error: Connection reset by peer]
akanouras has quit [Remote host closed the connection]
katco has quit [Read error: Connection reset by peer]
no-defun-allowed has quit [Remote host closed the connection]
dtw has quit [Write error: Connection reset by peer]
invergo has quit [Quit: invergo]
svillemot has quit [Quit: ZNC 1.7.2+deb2 - https://znc.in]
campy_fellow has quit [Ping timeout: 255 seconds]
irdr_ has quit [Remote host closed the connection]
<_death>
there's also ~user
levitanong has joined #lisp
irdr has joined #lisp
campy_fellow has joined #lisp
libertyprime has joined #lisp
lumm has joined #lisp
svillemot has joined #lisp
wxie has joined #lisp
rozenglass has joined #lisp
andrei-n has quit [Ping timeout: 268 seconds]
rippa has joined #lisp
levitanong has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
katco has joined #lisp
dtw has joined #lisp
sciamano has joined #lisp
Jachy has joined #lisp
akanouras has joined #lisp
Gnuxie[m] has joined #lisp
no-defun-allowed has joined #lisp
iarebatman has joined #lisp
dale has quit [Quit: dale]
oni-on-ion has quit [Remote host closed the connection]
arkaitz has joined #lisp
juki has quit [Ping timeout: 255 seconds]
<p_l>
Isn't ~ just a shell convention?
<MichaelRaskin>
Well, it is now a part of shell specification
<p_l>
Part of POSIX Shell, right?
<MichaelRaskin>
Yes, POSIX shell, or Single Unix Specification Shell and Utilities (which is how the newer versions of POSIX are available online)
shifty has quit [Ping timeout: 245 seconds]
_whitelogger has joined #lisp
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 268 seconds]
selwyn has joined #lisp
wxie has quit [Quit: wxie]
libertyprime has quit [Quit: leaving]
cage_ has joined #lisp
nowhereman has quit [Ping timeout: 245 seconds]
arkaitz has quit [Quit: arkaitz]
orivej has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
scymtym has quit [Read error: Connection reset by peer]
Lord_of_Life has quit [Ping timeout: 268 seconds]
Lord_of_Life has joined #lisp
v88m has joined #lisp
campy_fellow has quit [Ping timeout: 252 seconds]
gxt has quit [Ping timeout: 258 seconds]
gxt has joined #lisp
lavaflow has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 258 seconds]
gxt has quit [Ping timeout: 252 seconds]
ecilam has joined #lisp
campy_fellow has joined #lisp
fckit has joined #lisp
nanozz has quit [Ping timeout: 268 seconds]
shka_ has joined #lisp
lucasb has joined #lisp
asdf_asdf_asdf has quit [Ping timeout: 255 seconds]
maxxcan has joined #lisp
maxxcan has quit [Client Quit]
Bike has quit [Quit: bye]
asdf_asdf_asdf has joined #lisp
igemnace has joined #lisp
svillemot has quit [Quit: ZNC 1.7.2+deb2 - https://znc.in]
juki has joined #lisp
cage_ has quit [Remote host closed the connection]
svillemot has joined #lisp
campy_fellow has quit [Ping timeout: 258 seconds]
asdf_asdf_asdf has quit [Ping timeout: 246 seconds]
campy_fellow has joined #lisp
fivo has joined #lisp
ym555 has joined #lisp
arkaitz has joined #lisp
arkaitz has quit [Client Quit]
rozenglass has quit [Ping timeout: 264 seconds]
asdf_asdf_asdf has joined #lisp
vlatkoB has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
t58 has joined #lisp
varjag has joined #lisp
Necktwi has quit [Ping timeout: 244 seconds]
Necktwi has joined #lisp
caltelt has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
Kevslinger has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
Necktwi has quit [Read error: Connection reset by peer]
Necktwi has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
orivej has joined #lisp
gxt has joined #lisp
vlatkoB has joined #lisp
easye has quit [Ping timeout: 276 seconds]
jmercouris has joined #lisp
oni-on-ion has joined #lisp
actuallybatman has joined #lisp
wxie has quit [Quit: wxie]
wxie has joined #lisp
wxie has quit [Client Quit]
wxie has joined #lisp
wxie has quit [Client Quit]
wxie has joined #lisp
Necktwi has quit [Read error: Connection reset by peer]
Necktwi has joined #lisp
orivej has quit [Ping timeout: 245 seconds]
t58 has quit [Quit: Leaving]
orivej has joined #lisp
wxie has quit [Quit: wxie]
wxie has joined #lisp
ricekrispie has joined #lisp
wxie has quit [Client Quit]
Arcaelyx has joined #lisp
ricekrispie2 has quit [Ping timeout: 248 seconds]
Josh_2 has joined #lisp
terpri has quit [Remote host closed the connection]
Necktwi has quit [Read error: Connection reset by peer]
Necktwi has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
juki has left #lisp ["ERC (IRC client for Emacs 26.1)"]
djeis[m] has joined #lisp
orivej_ has joined #lisp
campy_fellow has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 255 seconds]
campy_fellow has joined #lisp
Necktwi has quit [Read error: Connection reset by peer]
Necktwi has joined #lisp
Necktwi has quit [Ping timeout: 255 seconds]
longshi has joined #lisp
<dim>
is there a peek-byte (like peek-char) that I'm not seeing in the spec?
<dim>
(file-position stream (1- (file-position stream))) ; that seems convoluted
campy_fellow has quit [Ping timeout: 258 seconds]
Josh_2 has quit [Ping timeout: 258 seconds]
campy_fellow has joined #lisp
orivej_ has quit [Ping timeout: 245 seconds]
scymtym has joined #lisp
<nirved>
dim: maybe listen
<phoe>
dim: there is not such a thing in the spec
<dim>
yeah well, maybe it's not so bad, at least it works
<dim>
now, it seems like CCL doesn't have an external format for cp1252
<phoe>
even with babel?
<dim>
maybe
<dim>
I'm working in cl-db3 and it doesn't depend on anything at the moment... well maybe it's time anyway
<dim>
Switching to SBCL for the moment, let's decide later
ecilam has quit [Quit: bye]
khisanth_ has quit [Ping timeout: 255 seconds]
Oladon has joined #lisp
shifty has joined #lisp
easye has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
khisanth_ has joined #lisp
vms14 has joined #lisp
<vms14>
guys, a question more related about personal taste. If you are doing an http parser how would you represent it? Using one object, one assoc list, one struct...?
<vms14>
I like the idea to use setf + get
<vms14>
would be better to use a hash table?
<vms14>
what would you choose?
<vms14>
http headers are just key value lists
t58 has joined #lisp
<grewal>
Unless you're fine with only a subset of headers, I wouldn't use an object or a struct
<dim>
vms14: have a look at several existing libs for how they did it? I'm thinking of drakma client side and hunchentoot server side, and I know there are more
<beach>
grewal: It is hard not to use an object.
<vms14>
dim: nice idea
<grewal>
beach: Unless I'm misremembering, you can add arbitrary headers to a request/response. A hash-table lends itself better to dynamically adding new headers
<beach>
A hash table is an object.
FreeBirdLjj has joined #lisp
<vms14>
everything is a lisp object if you're picky
<beach>
vms14: No, not everything.
<vms14>
but for object I refer to a CLOS object
<beach>
vms14: A comment is not a Common Lisp object.
<vms14>
xd
<beach>
From the glossary: object n. 1. any Lisp datum.
<grewal>
...Yes, it is. I meant I wouldn't do (defclass http-header () ...) or something like that
<beach>
Then you should use the right terminology which is "standard object".
<vms14>
grewal: you'd choose a hash table?
<vms14>
I'm tempted to use just setf and get
<vms14>
(symbol-plist header) will give me the property list
<phoe>
I'd use either a hash table or an alist
<phoe>
a HTTP header consists of a header name and a payload
<phoe>
and a HTTP request/response head is a single request/response code and then a list of headers, and then a double newline and an optional body
<phoe>
if anything, there would be a structure or object for a whole request or response
FreeBirdLjj has quit [Remote host closed the connection]
<phoe>
but, in my opinion, headers seem too trivial to have their own designated objects
<vms14>
a struct seems to be a good option
<phoe>
well, sure then, if you want that for typing reasons
<vms14>
it really does not matter much what do you use, but I wanted to know what you would choose
scymtym has quit [Ping timeout: 245 seconds]
<phoe>
for a single HTTP header? a cons cell
<grewal>
It also depends on the rest of your application and how you're planning on using it
<vms14>
well the goal is to save all the info from the http header
<vms14>
ip, content type, time, etc
<vms14>
and be easily accessible
<Jachy>
Some headers can appear more than once in the response, you might want a multimap to work with that depending on your application. (And some headers are semantically defined so that if they appear more than once and are of a certain format, it can be treated the same as one header with the values concatenated.)
<vms14>
(symbol-plist 'http-header)
<vms14>
(TIME "Just now" CONTENT-TYPE TEXT/HTML IP |80.12312.2142.235|)
<vms14>
I guess something like that will be just fine
<phoe>
this seems weird
<phoe>
why are you using symbols to store http-header data?
<phoe>
I mean
<phoe>
why are you using symbols to represent HTTP requests?
<phoe>
this means that you need a new symbol per request
<phoe>
in order to access its symbol-plist
<vms14>
wouldn't be the same with other data representation?
<phoe>
it would, sure thing
<phoe>
it just weird for me to pick symbol-plists of all Lisp data structures
<vms14>
I like them, idk why
<vms14>
I'm weird
<vms14>
but having CLOS and structs, it has not much sense to use symbols and their property lists
<vms14>
does not*
<Jachy>
What will you do when you have multiple Accept-Language headers in the request? ;)
<phoe>
oh right, this is where a plist is going to break
<vms14>
(ACCEPT-LANGUAGE ("some-language") TIME "Just now" CONTENT-TYPE TEXT/HTML IP
<vms14>
|80.12312.2142.235|)
<phoe>
but now you have lists as some values
<phoe>
and some aren't lists
<vms14>
yeah I should be aware
<vms14>
I could just know what kind could have more than one result
<vms14>
Or just check if it's a list or atom
<phoe>
you could
campy_fellow has quit [Read error: Connection reset by peer]
<vms14>
I'm not very good designing stuff and choosing the right representation
easye has quit [Read error: No route to host]
<vms14>
this is why I tend to ask how would you do X stuff
campy_fellow has joined #lisp
sjl has quit [Ping timeout: 252 seconds]
selwyn has quit [Ping timeout: 246 seconds]
longshi has quit [Ping timeout: 252 seconds]
caltelt has quit [Ping timeout: 268 seconds]
sjl has joined #lisp
fivo has quit [Ping timeout: 252 seconds]
fivo has joined #lisp
random-nick has quit [Ping timeout: 245 seconds]
andrei-n has quit [Remote host closed the connection]
holycow has joined #lisp
longshi has joined #lisp
fckit has quit [Ping timeout: 255 seconds]
orivej has joined #lisp
rdh has quit [Ping timeout: 246 seconds]
random-nick has joined #lisp
khisanth_ has quit [Ping timeout: 246 seconds]
ggole has quit [Quit: Leaving]
makomo has joined #lisp
vlatkoB has quit [Remote host closed the connection]
dale has joined #lisp
khisanth_ has joined #lisp
Jesin has quit [Quit: Leaving]
devon has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
<devon>
lldb has Python and C++ API bindings, how about Lisp?
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
<pjb>
You can access the C++ API using Lisp FFI.
<devon>
Seems awkward, has anyone tried this?
<pjb>
dim: see com.informatimago.common-lisp.cesarum.peek-stream
<pjb>
devon: clasp is a CL implementation that can easily use C++.
devon has quit [Ping timeout: 245 seconds]
ym555_ has joined #lisp
Jesin has joined #lisp
ym555 has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ym555_ has quit [Quit: leaving...]
<jcob>
oh man clasp is cool
shifty has quit [Ping timeout: 255 seconds]
<v0|d>
whats the implementation status?
benkard has joined #lisp
mulk has quit [Ping timeout: 246 seconds]
benkard is now known as mulk
oni-on-ion has joined #lisp
<edgar-rft>
I don't know the implementation status but there's a #clasp channel where you can ask :-)
arkaitz has joined #lisp
benkard has joined #lisp
mulk has quit [Ping timeout: 258 seconds]
benkard is now known as mulk
longshi has quit [Ping timeout: 257 seconds]
selwyn has joined #lisp
<selwyn>
hi devon. because clasp is essentially a C++ application one can (and does) use lldb to debug it
<selwyn>
as far as i know no-one has tried to expose lldb itself within clasp, but it is quite feasible. clasp already exposes part of llvm to use in Lisp
arkaitz has quit [Quit: arkaitz]
makomo has quit [Ping timeout: 246 seconds]
shka_ has quit [Ping timeout: 255 seconds]
caltelt has joined #lisp
mindCrime has joined #lisp
moei has quit [Quit: Leaving...]
Kevslinger has quit [Quit: Connection closed for inactivity]
<dim>
although it's not a generic approach, it pretty specific to the MySQL protocol, which is organized in terms of "packets" of fixed size, which makes the buffer implementation quite straightforward in that case
arkaitz has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 26.1)]
* dim
is having a bug triaging session, from 114 open issues down to 73 now, most are under specified problems without even the logs or any clue how to repro
<dim>
oh, phoe, https://github.com/dimitri/pgloader/issues/782 needs attention too, it's about adding the new default MySQL authentication scheme to qmynd so that pgloader is able to connect to recent servers
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 246 seconds]
Lord_of_Life_ is now known as Lord_of_Life
arkaitz has quit [Quit: arkaitz]
fivo has quit [Quit: WeeChat 1.9.1]
lumm has quit [Read error: Connection reset by peer]