<josrr>
Kingsy: I think the readers convert the postgresql dates and timestamps to some lisp object.
<Kingsy>
probablyh worth adding in then. I'll get the basic functionality working with this then come back. I'll add a comment
<Kingsy>
josrr: thankyou!
kevingal_ has quit [Ping timeout: 264 seconds]
kevingal has quit [Ping timeout: 264 seconds]
<josrr>
also there is a method to convert a local-time:tiemestamp to a sql-string, so, i think you don't need to call local-time:format-timestring; but I'am not sure of this
zaymington has joined #commonlisp
jmdaemon has joined #commonlisp
akoana has joined #commonlisp
random-nick has quit [Ping timeout: 256 seconds]
akoana has quit [Client Quit]
akoana has joined #commonlisp
tisanae has quit [Ping timeout: 252 seconds]
varjag has quit [Ping timeout: 252 seconds]
dra has quit [Ping timeout: 256 seconds]
NotThatRPG_ has joined #commonlisp
zaemington has joined #commonlisp
ns12 has quit [Read error: Connection reset by peer]
zaymington has quit [Read error: Connection reset by peer]
NotThatRPG has quit [Write error: Connection reset by peer]
jon_atack has joined #commonlisp
ns12 has joined #commonlisp
jonatack has quit [Ping timeout: 264 seconds]
decweb has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
akoana has quit [Quit: leaving]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
piglet has joined #commonlisp
piglet is now known as vyrsh
vyrsh has quit [Client Quit]
vyrsh has joined #commonlisp
grawlinson has quit [Quit: SIGTERM]
decweb has quit [Ping timeout: 256 seconds]
grawlinson has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 276 seconds]
pfdietz has quit [Quit: Client closed]
Lord_of_Life has joined #commonlisp
zaemington has quit [Remote host closed the connection]
jmdaemon has quit [Ping timeout: 264 seconds]
pfdietz has joined #commonlisp
tisanae has joined #commonlisp
jmdaemon has joined #commonlisp
lewisje has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 264 seconds]
lewisje has joined #commonlisp
ymir has quit [Ping timeout: 268 seconds]
ymir has joined #commonlisp
ymir has quit [Read error: Connection reset by peer]
tisanae has quit [Quit: Leaving]
waleee has quit [Ping timeout: 260 seconds]
bubblegum has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
josrr has quit [Remote host closed the connection]
jmdaemon has joined #commonlisp
piglet has joined #commonlisp
vyrsh has quit [Ping timeout: 264 seconds]
ymir has joined #commonlisp
ymir has quit [Ping timeout: 264 seconds]
szkl has quit [Quit: Connection closed for inactivity]
ymir has joined #commonlisp
<BrokenCog>
what is wrong with this form: (defpackage :myp2 (use :cl))
<BrokenCog>
I get:
<BrokenCog>
bogus DEFPACKAGE option: (USE :CL)
<BrokenCog>
ah snap
jmdaemon has quit [Ping timeout: 252 seconds]
ymir has quit [Ping timeout: 264 seconds]
bubblegum has quit [Remote host closed the connection]
bubblegum has joined #commonlisp
jmdaemon has joined #commonlisp
<aeth>
,(defpackage :myp2 (use :cl))
<ixelp>
(defpackage :myp2 (use :cl)) ERROR: The value USE is not of the expected type (MEMBER :SIZE :EXTERNAL-SIZE :NICKNAMES :SHADOW :SHADOWING-IMPORT-FROM :USE :IMPORT-FROM :INTERN :EXPORT :DOCUMENTATION).
<aeth>
looks like CCL that ixelp uses has a better error message
<aeth>
it's :use
<BrokenCog>
yeah, I didn't get anythnig help like that
<BrokenCog>
"bogus". thanks sbcl.
<aeth>
usually SBCL has good error messages
<aeth>
personally I use a style like this: ,(defpackage #:myp2 (:use #:cl))
<BrokenCog>
usually I can figure them out, but, that was obtuse.
<aeth>
the #: part makes it stand out and doesn't pollute the keyword namespace
<BrokenCog>
oh, I did have the #:cl, but thought it wasn't correct.
<aeth>
,'#:cl
<ixelp>
'#:cl => #:CL
<aeth>
,(symbol-package '#:cl)
<ixelp>
(symbol-package '#:cl) => NIL
<aeth>
that's the symbol CL in no package
<aeth>
why is # the symbol for no? who knows.
<aeth>
but it accepts it there, unquoted too.
<aeth>
(there in defpackage, I mean)
<BrokenCog>
right.
<BrokenCog>
I can easily do a setq within the function, but, I'm wondering if there is some simple construct which modifies an &optional argument? ,(defun func (&optional (s nil)) (setq s (concatenate "prefix" s)))
<ixelp>
(defun func (&optional (s nil)) (setq s (concatenate "prefix" s))) => FUNC
<BrokenCog>
such that I don't need the setq
decweb has joined #commonlisp
rakka has quit [Remote host closed the connection]
rakka has joined #commonlisp
<aeth>
I think &aux would work. ,(defun foo (&optional (s nil) &aux (s (concatenate 'string "prefix" s))) s) ,(foo "hello")
<ixelp>
(defun foo (&optional (s nil) &aux (s (concatenate 'string "prefix" s))) s) => FOO, also (foo "hello") => "prefixhello"
<aeth>
usually used to remove a starting LET or LET*, but SETQ wouldn't really be different
<BrokenCog>
ah, okay. that seems straightforward ... if &aux is understood :)
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
<aeth>
it is rare
<aeth>
you can go years without seeing it
ymir has joined #commonlisp
<BrokenCog>
seems kind of useful, to modify a parameter when you know it must be given some sort of massaging.
<BrokenCog>
but, doesn't save actual code, just the location of it changes.
<aeth>
right, it's basically redundant with LET*, but removes an indentation and a layer of ()s
<aeth>
or I suppose SETQ, but it's more normal to think in terms of new scopes
rtypo has quit [Ping timeout: 256 seconds]
<BrokenCog>
should I go to #emacs to ask about interacting with slime?
piglet has quit [Ping timeout: 255 seconds]
mrcom has quit [Remote host closed the connection]
villageidiot has quit [Ping timeout: 250 seconds]
ymir has quit [Ping timeout: 264 seconds]
ns12 has quit [Quit: bye]
ns12 has joined #commonlisp
ymir has joined #commonlisp
hayley has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
msavoritias has joined #commonlisp
ymir has quit [Ping timeout: 264 seconds]
ymir has joined #commonlisp
ymir has quit [Read error: Connection reset by peer]
msavoritias has quit [Ping timeout: 264 seconds]
wacki has joined #commonlisp
decweb has quit [Ping timeout: 252 seconds]
zetef has joined #commonlisp
villageidiot has joined #commonlisp
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tyson2 has quit [Remote host closed the connection]
<younder>
I have a problem with a function (declaim (ftype (function (fixnum) T) primep)). When optimizing the code I want to return true, or false but in generalized Boolean I have to say it can return anything. This makes the optimizer complain. Any idiomatic way of dealing with this?
Pixel_Outlaw has quit [Quit: Leaving]
<beach>
What kind of optimization do you contemplate that will make a difference between the object T and any object not NIL?
pranavats has joined #commonlisp
<beach>
I can't think of a single Common Lisp operator that makes this distinction, other than perhaps FORMAT for which T means a stream, but then that's not a Boolean value.
epony has quit [Remote host closed the connection]
Inline has quit [Remote host closed the connection]
mrcom has joined #commonlisp
rgherdt has joined #commonlisp
mrcom has quit [Quit: Leaving]
mrcom has joined #commonlisp
mrcom has quit [Client Quit]
mrcom has joined #commonlisp
Inline has joined #commonlisp
amb007 has quit [Ping timeout: 256 seconds]
azimut has joined #commonlisp
amb007 has joined #commonlisp
notzmv has quit [Ping timeout: 260 seconds]
amb007 has quit [Ping timeout: 256 seconds]
amb007 has joined #commonlisp
bendersteed has joined #commonlisp
zetef has quit [Ping timeout: 256 seconds]
crumbles has joined #commonlisp
zetef has joined #commonlisp
zetef has quit [Quit: No Ping reply in 180 seconds.]
zetef has joined #commonlisp
shka has joined #commonlisp
mgl has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
zetef_ has joined #commonlisp
zetef has quit [Ping timeout: 260 seconds]
bendersteed has quit [Quit: bendersteed]
dino_tutter has joined #commonlisp
zetef_ has quit [Ping timeout: 256 seconds]
zetef has joined #commonlisp
amb007 has quit [Ping timeout: 256 seconds]
amb007 has joined #commonlisp
danse-nr3 has joined #commonlisp
son0p has joined #commonlisp
varjag has joined #commonlisp
anticomputer_ has joined #commonlisp
anticomputer has quit [Ping timeout: 255 seconds]
bilegeek has joined #commonlisp
luis has quit [Ping timeout: 260 seconds]
villageidiot has quit [Quit: Client closed]
green_ has quit [Ping timeout: 256 seconds]
green_ has joined #commonlisp
danse-nr3 has quit [Ping timeout: 252 seconds]
<beach>
In the implementation of package-local nicknames, what is the purpose of PACKAGE-LOCALLY-NICKNAMED-BY-LIST?
lagash has quit [Ping timeout: 256 seconds]
danse-nr3 has joined #commonlisp
notzmv has joined #commonlisp
Josh_2 has joined #commonlisp
zetef has quit [Ping timeout: 268 seconds]
Gleefre has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
Gleefre has quit [Remote host closed the connection]
dnhester` has joined #commonlisp
<Josh_2>
Hi :wave:
<dnhester`>
Does anyone know how /what to use for preventing sql injections when dealing with user supplied input?
Gleefre has joined #commonlisp
Josh_2 has quit [Remote host closed the connection]
<Lycurgus>
common sense?
<Lycurgus>
or by its full name common sense with strings?
<dnhester`>
Lycurgus: ha! is there a lisp common sense guide? haha I thought you would offer some sql escaping function from some library or something
dnhester26 has joined #commonlisp
<Lycurgus>
i considered other replies like not using embedded sql
dnhester26 has quit [Client Quit]
<Lycurgus>
which is what most ppl mean by sql these days
<Lycurgus>
depending on the depth of their understanding
<dnhester`>
I'm generating some relatively complex queries with joins and I need a user supplied text to filter the joins
rendar has joined #commonlisp
rendar has quit [Changing host]
rendar has joined #commonlisp
Josh_2 has joined #commonlisp
<Lycurgus>
at some level of professionalism there's a general understanding of the distinction between embedded and prepared SQL
<dnhester`>
in java there were prepared sql statements that I can just pass in variables, and it takes care of injections
<Lycurgus>
which sits with said common sense obviated the issue
<Lycurgus>
*obviating
<dnhester`>
but I just don't know how to do that with common lisp
<Lycurgus>
ur lazy, mentally
<Lycurgus>
it presages the normal attrition from the field or movement into mgt
<Lycurgus>
outta doing
<Lycurgus>
laziness can be a virtue
<Lycurgus>
with the intangibles mentioned you can kinda be lazy about sql injections as an issue
<Lycurgus>
and that general understanding has a much smaller subset that has actually used anything other than embedded igess
<dnhester`>
I'm not really understanding what you are writing
<Lycurgus>
well carryon there's definitely gonna be a cl lib that handles if for you
<Lycurgus>
*handles it
<dnhester`>
ok, figured it out, thanks
dnhester` has quit [Ping timeout: 268 seconds]
Josh_2 has quit [Remote host closed the connection]
pfdietz has quit [Quit: Client closed]
traidare has joined #commonlisp
msavoritias has quit [Ping timeout: 260 seconds]
<Shinmera>
whatever sql lib you're using should have a prepared statement thingy
<Shinmera>
postmodern and cl-sqlite certainly do
<Shinmera>
just search for it
dnhester has joined #commonlisp
dnhester` has joined #commonlisp
attila_lendvai has joined #commonlisp
donleo has joined #commonlisp
random-nick has joined #commonlisp
attila_lendvai_ has joined #commonlisp
attila_lendvai has quit [Ping timeout: 256 seconds]
Oladon1 has joined #commonlisp
Oladon has quit [Ping timeout: 260 seconds]
green_ has quit [Ping timeout: 260 seconds]
Josh_2 has joined #commonlisp
lagash has joined #commonlisp
danse-nr3 has quit [Ping timeout: 256 seconds]
bilegeek has quit [Quit: Leaving]
ixelp has quit [Ping timeout: 268 seconds]
gilberth has quit [Ping timeout: 256 seconds]
<dnhester`>
Shinmera: thanks, I looked for it in mito and sxql and didn't find it, but now that you mentioned postmodern I realized I was looking in the wrong place, cl-dbi has it
waleee has joined #commonlisp
kathe has joined #commonlisp
yitzi has joined #commonlisp
kathe has quit [Client Quit]
josrr has joined #commonlisp
epony has joined #commonlisp
decweb has joined #commonlisp
waleee has quit [Ping timeout: 264 seconds]
danse-nr3 has joined #commonlisp
josrr has quit [Remote host closed the connection]
waleee has joined #commonlisp
danse-nr3 has quit [Ping timeout: 252 seconds]
danse-nr3 has joined #commonlisp
green_ has joined #commonlisp
taichi has quit [Ping timeout: 256 seconds]
dajole has quit [Quit: Connection closed for inactivity]
thuna` has quit [Read error: Connection reset by peer]
green_ has quit [Ping timeout: 252 seconds]
scymtym has quit [Ping timeout: 252 seconds]
scymtym has joined #commonlisp
josrr has joined #commonlisp
mariari has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
<Josh_2>
:sunglasses:
rtypo has joined #commonlisp
dcb has joined #commonlisp
villageidiot has joined #commonlisp
green_ has joined #commonlisp
cage has joined #commonlisp
igemnace has quit [Read error: Connection reset by peer]
_whitelogger has joined #commonlisp
igemnace has joined #commonlisp
thuna` has joined #commonlisp
lucasta has joined #commonlisp
gilberth has joined #commonlisp
ixelp has joined #commonlisp
ixelp has quit [Remote host closed the connection]
gilberth has quit [Remote host closed the connection]
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
msavoritias has joined #commonlisp
danse-nr3 has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
bendersteed has quit [Quit: bendersteed]
Gleefre has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
msavoritias has quit [Ping timeout: 252 seconds]
prokhor has quit [Remote host closed the connection]
prokhor has joined #commonlisp
yitzi has quit [Remote host closed the connection]
meritamen has joined #commonlisp
meritamen has quit [Client Quit]
meritamen has joined #commonlisp
ymir has joined #commonlisp
meritamen has quit [Remote host closed the connection]
Cymew has quit [Ping timeout: 256 seconds]
meritamen has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
zxcvz has joined #commonlisp
meritamen has quit [Remote host closed the connection]
zxcvz has quit [Client Quit]
meritamen has joined #commonlisp
tyson2 has joined #commonlisp
varjag has joined #commonlisp
dnhester` has quit [Ping timeout: 256 seconds]
dnhester has quit [Ping timeout: 256 seconds]
ymir has quit [Read error: Connection reset by peer]
jon_atack has quit [Ping timeout: 252 seconds]
waleee has quit [Ping timeout: 276 seconds]
zetef has joined #commonlisp
jonatack has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
Josh_2 has quit [Ping timeout: 256 seconds]
randm has quit [Remote host closed the connection]
randm has joined #commonlisp
dnhester has joined #commonlisp
dnhester` has joined #commonlisp
piglet has joined #commonlisp
lucasta has quit [Quit: Leaving]
NotThatRPG_ is now known as NotThatRPG_away
mathrick has quit [Ping timeout: 256 seconds]
jonatack has quit [Ping timeout: 260 seconds]
NotThatRPG_away has quit [Ping timeout: 268 seconds]
varjag has quit [Ping timeout: 256 seconds]
zetef has quit [Remote host closed the connection]
ello has quit [Ping timeout: 252 seconds]
ello has joined #commonlisp
tyson2 has joined #commonlisp
ymir has joined #commonlisp
meritamen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meritamen has joined #commonlisp
meritamen has quit [Client Quit]
Gleefre has quit [Remote host closed the connection]
wacki has joined #commonlisp
Gleefre has joined #commonlisp
bubblegum has quit [Remote host closed the connection]
piglet has quit [Ping timeout: 264 seconds]
bubblegum has joined #commonlisp
X-Scale has joined #commonlisp
jack_rabbit has quit [Read error: Connection reset by peer]
jack_rabbit has joined #commonlisp
zxcvz has joined #commonlisp
igemnace has quit [Quit: WeeChat 4.2.1]
ymir has quit [Ping timeout: 276 seconds]
Josh_2 has joined #commonlisp
ymir has joined #commonlisp
mathrick has joined #commonlisp
amb007 has joined #commonlisp
pfdietz has joined #commonlisp
NotThatRPG has joined #commonlisp
zetef has joined #commonlisp
notzmv has quit [Ping timeout: 268 seconds]
rgherdt has quit [Ping timeout: 240 seconds]
Gleefre has quit [Ping timeout: 250 seconds]
danse-nr3 has quit [Ping timeout: 255 seconds]
chomwitt has joined #commonlisp
ymir has quit [Ping timeout: 240 seconds]
ymir has joined #commonlisp
msavoritias has joined #commonlisp
msavoritias has quit [Remote host closed the connection]
cstml has joined #commonlisp
rgherdt has joined #commonlisp
villageidiot has quit [Quit: Client closed]
zetef has quit [Remote host closed the connection]
zxcvz has quit [Quit: zxcvz]
mgl has quit [Ping timeout: 255 seconds]
dnhester` has quit [Ping timeout: 256 seconds]
dnhester has quit [Ping timeout: 256 seconds]
jack_rabbit has quit [Read error: Connection reset by peer]
jack_rabbit has joined #commonlisp
zxcvz has joined #commonlisp
szkl has joined #commonlisp
zxcvz has quit [Client Quit]
bubblegum has quit [Ping timeout: 246 seconds]
bubblegum has joined #commonlisp
pfdietz has quit [Quit: Client closed]
Gleefre has joined #commonlisp
Josh_2 has quit [Quit: Gotta go fast!]
MajorBiscuit has joined #commonlisp
MajorBiscuit has quit [Client Quit]
dnhester` has joined #commonlisp
dnhester has joined #commonlisp
bubblegum has quit [Remote host closed the connection]
bubblegum has joined #commonlisp
waleee has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
cstml has quit [Ping timeout: 264 seconds]
varjag has joined #commonlisp
goode_bye is now known as heyyyyyyy
heyyyyyyy is now known as goode_bye
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
X-Scale has quit [Quit: Client closed]
waleee has quit [Quit: updating stuff]
waleee has joined #commonlisp
notzmv has joined #commonlisp
ymir has quit [Ping timeout: 268 seconds]
azimut has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
ymir has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 29.1]
thuna`` has joined #commonlisp
wacki_ has joined #commonlisp
mgl has joined #commonlisp
rgherdt has quit [Quit: Leaving]
wacki has quit [Ping timeout: 264 seconds]
thuna`` has quit [Read error: Connection reset by peer]
thuna`` has joined #commonlisp
thuna`` has quit [Client Quit]
ymir has quit [Ping timeout: 256 seconds]
clothespin has joined #commonlisp
josrr has quit [Remote host closed the connection]
<clothespin>
anybody know how to get SICL to run?
<clothespin>
I'm missing an "env" package
josrr has joined #commonlisp
reb has joined #commonlisp
<edgar-rft>
as far as I know SICL is not finished yet, but beach knows SICL details better than me
<clothespin>
that's not a dad joke
<edgar-rft>
clothespin: there's a #sicl channel but beach will probably still be sleeping for the next 6 hours
<clothespin>
at which time i'll be going to bed
<clothespin>
it can wait
<edgar-rft>
I only know that he usually appears at 5 o'clock in the morning (French timezone)
chomwitt has quit [Ping timeout: 255 seconds]
wacki_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Inline has quit [Quit: Leaving]
ymir has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 255 seconds]
Alfr has quit [Quit: Leaving]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rendar has quit [Ping timeout: 240 seconds]
dtman34 has quit [Ping timeout: 255 seconds]
tyson2 has quit [Remote host closed the connection]
X-Scale has joined #commonlisp
waleee has quit [Ping timeout: 268 seconds]
akoana has joined #commonlisp
<bike>
clothespin: i don't think it's finished enough to run currently. beach has been working on the bootstrap procedure pretty continuously and hasn't kept the instructions updated.
<bike>
env is probably trucler, though.
Gleefre has quit [Remote host closed the connection]
Pixel_Outlaw has joined #commonlisp
Gleefre has joined #commonlisp
waleee has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
Alfr has joined #commonlisp
traidare has quit [Ping timeout: 256 seconds]
goode_bye has quit [Ping timeout: 268 seconds]
shka has quit [Ping timeout: 260 seconds]
jack_rabbit has quit [Remote host closed the connection]
jack_rabbit has joined #commonlisp
Inline has joined #commonlisp
amb007 has quit [Remote host closed the connection]
amb007 has joined #commonlisp
dtman34 has joined #commonlisp
Pixel_Outlaw has quit [Remote host closed the connection]