<Bike>
I mean, if nothing else, the two forms should return the same result, right?
<Nilby>
hmmmm
<Nilby>
I think I encountered this before and figured I didn't understand cons types.
<_death>
ecl gives nil for both cases here
<_death>
ccl gives T and NIL
<_death>
clisp both nil
<Bike>
also i wouldn't be surprised if ccl cribbed logic from sbcl. and the sbcl logic has a comment saying "UGH." so i don't have the greatest confidence in it
nij has joined #lisp
<Bike>
sbcl simplifies the type to (cons (unsigned-byte 4) (integer 4 15)) but i think (or (cons (unsigned-byte 4) (integer 5 15)) (cons (integer 3 15) (integer 4 4))) would be more correct
<nij>
I have quickloaded a package into SLY. How to I jump to the source code at point?
<_death>
maybe M-.?
<nij>
it has been rebound :(
<nij>
I've fuzzily searched "sly look up" and "sly go to" without luck
<_death>
to what?
<nij>
evil-normal-state-map M-.
<nij>
I'm using doom.
<_death>
maybe there's a sly-edit-definition.. assuming s/slime/sly/
<nij>
OH YES!
<nij>
Thanks T_T
rumbler31_ has quit [Ping timeout: 265 seconds]
nij has quit [Ping timeout: 260 seconds]
Nilby has quit [Read error: Connection reset by peer]
random-nick has quit [Ping timeout: 264 seconds]
frodef has quit [Ping timeout: 272 seconds]
charles` has quit [Ping timeout: 264 seconds]
imode has joined #lisp
imode has quit [Client Quit]
imode has joined #lisp
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lycurgus has joined #lisp
kapil_ has quit [Ping timeout: 256 seconds]
judson_ has joined #lisp
judson_ has quit [Client Quit]
judson_ has joined #lisp
judson_ has quit [Client Quit]
cer0 has quit [Quit: leaving]
akoana has joined #lisp
charles` has joined #lisp
mrios22 has quit [Quit: mrios22]
judson_ has joined #lisp
judson_ has quit [Client Quit]
<charles`>
is it possible to use GENSYM too much?
<Bike>
like, morally?
<pranavats>
You mean so much that it becomes hard to debug?
rumbler31 has joined #lisp
logand` has joined #lisp
judson_ has joined #lisp
orivej has quit [Ping timeout: 265 seconds]
judson_ has quit [Client Quit]
logand has quit [Ping timeout: 244 seconds]
judson_ has joined #lisp
rtypo has quit [Ping timeout: 246 seconds]
skapata has quit [Remote host closed the connection]
<charles`>
I mean that the counter gets too big.
<charles`>
is is morally wrong to use it from something other than macros?
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
judson_ has joined #lisp
judson_ has quit [Client Quit]
judson_ has joined #lisp
judson_ has quit [Client Quit]
mrios22 has joined #lisp
wildlander has quit [Quit: Konversation terminated!]
judson_ has joined #lisp
judson_ has quit [Client Quit]
judson_ has joined #lisp
judson_ has quit [Client Quit]
<aeth>
charles`: I mean, it's possible that gensym's a nonnegative (or positive? does it start at 0?) fixnum
<aeth>
well, the gensym counter
<aeth>
Well, no, I don't think that would be conforming for an implementation to do that because you can rebind *gensym-counter* to any integer
mrchampion has quit [Remote host closed the connection]
jeosol has joined #lisp
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wxie has joined #lisp
Sauvin has joined #lisp
mindCrime has quit [Excess Flood]
mindCrime has joined #lisp
_whitelogger has joined #lisp
Jesin has quit [Quit: Leaving]
Nilby has joined #lisp
cyraxjoe has quit [Ping timeout: 256 seconds]
Jesin has joined #lisp
kapil_ has joined #lisp
mindCrime has quit [Ping timeout: 260 seconds]
patience_ has quit [Quit: Leaving]
wxie has quit [Ping timeout: 264 seconds]
imode has quit [Quit: Sleep.]
nij has quit [Ping timeout: 264 seconds]
aartaka has joined #lisp
aartaka_d has quit [Ping timeout: 272 seconds]
saganman has joined #lisp
saganman is now known as blackadder
asarch has joined #lisp
Posterdati has joined #lisp
hiroaki has quit [Ping timeout: 265 seconds]
aartaka has quit [Ping timeout: 256 seconds]
asarch has quit [Ping timeout: 272 seconds]
rfn has joined #lisp
aartaka has joined #lisp
aartaka has quit [Read error: Connection reset by peer]
aartaka has joined #lisp
hiroaki has joined #lisp
shka_ has joined #lisp
Lycurgus has joined #lisp
gutter has quit [Remote host closed the connection]
hylisper has joined #lisp
andreyorst has joined #lisp
anticrisis has quit [Read error: Connection reset by peer]
hylisper has left #lisp [#lisp]
asarch has joined #lisp
<asarch>
With Datafly I prepare the SQL statement: (insert-into :students (set= :last_name "Uzumaki" :first_name "Naruto" :address "Ever green st #598, Konoha" (returning :id))
<asarch>
And then I execute it: (execute (insert-into :students ...
<asarch>
With the database connection: (with-connection (db :school) (execute (insert-into :students (set= ...
<asarch>
However, neither of those expression actually returns the id of the newly record created
<asarch>
Reading the issues about the Datafly project, https://github.com/fukamachi/datafly/issues/7, a fellow says there is an expression to get the id using SQLite3: sqlite3:last-insert-rowid
<asarch>
Do you know anything similar but for PostgreSQL?
<asarch>
I think Datafly actually uses cl-postgres for its backend
<asarch>
Which cl-postgres is actually Postmodern, right?
deltab has quit [Ping timeout: 240 seconds]
tessier has quit [Ping timeout: 240 seconds]
tessier has joined #lisp
tessier has quit [Changing host]
tessier has joined #lisp
deltab has joined #lisp
gaqwas has joined #lisp
gaqwas has joined #lisp
ex_nihilo has joined #lisp
eymebolofscrumpe has quit [*.net *.split]
ecm has quit [*.net *.split]
santiagopim[m] has quit [*.net *.split]
jonathan| has quit [*.net *.split]
phadthai has quit [*.net *.split]
XachX has quit [*.net *.split]
jdz has quit [*.net *.split]
ecm has joined #lisp
jdz has joined #lisp
eymebolofscrumpe has joined #lisp
jonathan| has joined #lisp
santiagopim[m] has joined #lisp
phadthai has joined #lisp
XachX has joined #lisp
hendursa1 has joined #lisp
nckx has quit [Ping timeout: 264 seconds]
nckx has joined #lisp
hendursaga has quit [Ping timeout: 268 seconds]
kaisyu[m] has quit [Ping timeout: 244 seconds]
anotherone9999[m has quit [Ping timeout: 244 seconds]
jdormit[m] has quit [Ping timeout: 244 seconds]
dmiles[m] has quit [Ping timeout: 244 seconds]
malaclyps_ has quit [Ping timeout: 244 seconds]
jonas[m]2 has quit [Ping timeout: 240 seconds]
ey[m]1 has quit [Ping timeout: 240 seconds]
arichiardi[m] has quit [Ping timeout: 240 seconds]
katco has quit [Ping timeout: 240 seconds]
stargazesparkle has quit [Ping timeout: 240 seconds]
ms[m] has quit [Ping timeout: 240 seconds]
deselby has quit [Ping timeout: 240 seconds]
chipk[m] has quit [Ping timeout: 243 seconds]
ey[m] has quit [Ping timeout: 243 seconds]
christopheroei[m has quit [Ping timeout: 243 seconds]
Gnuxie[m] has quit [Ping timeout: 243 seconds]
even4void[m] has quit [Ping timeout: 260 seconds]
infra_red[m] has quit [Ping timeout: 260 seconds]
ThaEwat has quit [Ping timeout: 260 seconds]
MrtnDk[m] has quit [Ping timeout: 246 seconds]
eymebolofscrumpe has quit [Ping timeout: 258 seconds]
ecm has quit [Ping timeout: 258 seconds]
santiagopim[m] has quit [Ping timeout: 258 seconds]
keizerrijk[m] has quit [Ping timeout: 265 seconds]
Lolicon[m] has quit [Ping timeout: 265 seconds]
loke[m] has quit [Ping timeout: 265 seconds]
posthuman_egrego has quit [Ping timeout: 265 seconds]
susam has quit [Ping timeout: 265 seconds]
etimmons has quit [Ping timeout: 265 seconds]
cairn has quit [Ping timeout: 265 seconds]
solideogloria[m] has quit [Ping timeout: 260 seconds]
quanta[m] has quit [Ping timeout: 268 seconds]
orivej has joined #lisp
dieggsy has quit [Ping timeout: 240 seconds]
skye0[m] has quit [Ping timeout: 240 seconds]
Lycurgus has quit [Quit: Exeunt]
pve has joined #lisp
rgherdt has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 256 seconds]
X-Scale` is now known as X-Scale
sveit has quit [Quit: Bye]
sveit has joined #lisp
stargazesparkle has joined #lisp
jonas[m]2 has joined #lisp
ey[m]1 has joined #lisp
infra_red[m] has joined #lisp
solideogloria[m] has joined #lisp
even4void[m] has joined #lisp
santiagopim[m] has joined #lisp
ecm has joined #lisp
eymebolofscrumpe has joined #lisp
etimmons has joined #lisp
malaclyps_ has joined #lisp
loke[m] has joined #lisp
posthuman_egrego has joined #lisp
Gnuxie[m] has joined #lisp
asarch has quit [Quit: Leaving]
christopheroei[m has joined #lisp
dmiles[m] has joined #lisp
skapata has joined #lisp
MrtnDk[m] has joined #lisp
ms[m] has joined #lisp
jdormit[m] has joined #lisp
deselby has joined #lisp
<phoe>
huh? actually, what do you mean?
<phoe>
postmodern is a separate library from cl-postgres
quanta[m] has joined #lisp
cairn has joined #lisp
jdormit[m] has quit [Ping timeout: 244 seconds]
christopheroei[m has quit [Ping timeout: 244 seconds]
stargazesparkle has quit [Ping timeout: 244 seconds]
Gnuxie[m] has quit [Ping timeout: 241 seconds]
dmiles[m] has quit [Ping timeout: 258 seconds]
jonas[m]2 has quit [Ping timeout: 258 seconds]
ms[m] has quit [Ping timeout: 268 seconds]
posthuman_egrego has quit [Ping timeout: 268 seconds]
eymebolofscrumpe has quit [Ping timeout: 240 seconds]
even4void[m] has quit [Ping timeout: 240 seconds]
infra_red[m] has quit [Ping timeout: 240 seconds]
loke[m] has quit [Ping timeout: 240 seconds]
deselby has quit [Ping timeout: 246 seconds]
ecm has quit [Ping timeout: 246 seconds]
santiagopim[m] has quit [Ping timeout: 246 seconds]
solideogloria[m] has quit [Ping timeout: 258 seconds]
etimmons has quit [Ping timeout: 265 seconds]
quanta[m] has quit [Ping timeout: 260 seconds]
cairn has quit [Ping timeout: 260 seconds]
MrtnDk[m] has quit [Ping timeout: 244 seconds]
malaclyps_ has quit [Ping timeout: 244 seconds]
ey[m]1 has quit [Ping timeout: 244 seconds]
mrios22 has joined #lisp
aartaka has quit [Ping timeout: 240 seconds]
sveit has quit [Quit: Bye]
sveit has joined #lisp
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
VincentVega has joined #lisp
cage_ has joined #lisp
<VincentVega>
Is there a way to capture all values that a function returns without specifying the values one by one with multiple-value-bind? Maybe put them in a list or something?
<phoe>
kpoeck_: yes, though technically one can use cl-postgres without postmodern, since the latter builds on top of the former
xanderle has quit [Ping timeout: 244 seconds]
surabax has joined #lisp
davd33 has joined #lisp
sword865 has quit [Quit: Connection closed for inactivity]
frodef has joined #lisp
amb007 has quit [Ping timeout: 240 seconds]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
asarch has joined #lisp
galex-713 has quit [Ping timeout: 265 seconds]
galex-713 has joined #lisp
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
<phantomics>
Is there a way to change the epsilon used when comparing floats? If I do for example (let ((single-float-epsilon ...)) (= num1 num2)) it fails because single-float-epsilon is a constant
<phoe>
yes, you can't rebind that
<phoe>
if anything, I'd (< (abs (- num1 num2)) epsilon)
<phoe>
so the old-fashioned way
<phantomics>
Thanks, makes sense
liberliver has joined #lisp
<phoe>
AFAIR epsilons in Lisp are defined to be the smallest nonzero floats
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<VincentVega>
thanks, I think this clears things up a bit for me
<pve>
VincentVega: and you want to use set-dispatch-macro-character for those
<phoe>
VincentVega: basically: create your own readtable and adjust it in the way you want
<phoe>
named-readtables help a lot
<VincentVega>
Alright. Also, are read-tables file-scope only? Can I enable them projectwide?
<phoe>
named-readtables provides an in-readtable macro that you can use similarly to in-package at the top of the file
lowryder has quit [Ping timeout: 256 seconds]
<VincentVega>
I see, OK.
<VincentVega>
Thanks for the explanations!
ebrasca has quit [Read error: Connection reset by peer]
ebrasca has joined #lisp
lowryder has joined #lisp
perrier-jouet has joined #lisp
nij has quit [Quit: ERC (IRC client for Emacs 27.1)]
v_m_v has joined #lisp
v_m_v has quit [Remote host closed the connection]
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
flatheap has quit [Ping timeout: 246 seconds]
rfn` has joined #lisp
rfn has quit [Ping timeout: 240 seconds]
rfn` has quit [Client Quit]
hjudt has quit [Ping timeout: 246 seconds]
ralt has joined #lisp
zacts has joined #lisp
rgherdt has quit [Read error: Connection reset by peer]
rgherdt has joined #lisp
judson_ has joined #lisp
anticrisis has joined #lisp
Achylles has quit [Quit: Leaving]
hvxgr has quit [Ping timeout: 264 seconds]
amb007 has quit [Ping timeout: 240 seconds]
zacts has quit [Quit: leaving]
amb007 has joined #lisp
renzhi has quit [Ping timeout: 265 seconds]
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #lisp
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #lisp
<pfdietz>
I definitely suggest using named-readtables. Also, use readtable changes sparingly.
<aeth>
reader macros are good if (0) they're dispatch reader macros starting with # like #z; (1) the thing they work on is contained within parentheses like #z() such as #z(42) not #z42; and (2) they expand into a macro that does all of the actual processing
akoana has joined #lisp
<aeth>
That is, if you wanted to have literal hash table syntax as #h(...) like some libraries do, have that turn into (hash ...) which actually does the logic. So #h(:foo 42 :bar 43) would just become (hash :foo 42 :bar 43) which in turn does MAKE-HASH-TABLE with the two PSETFs
<aeth>
But I never write reader macros because virtually all of the time when I start with the first step (writing the regular macro first) that's all I wind up wanting to use.
<aeth>
Also note that the example macro uses plists. Always use plists. They're so easy to process in macros because you can just use destructuring-bind to treat them as &key arguments, or you can iterate over the plists two at a time (key and value), depending on what you're doing.
mindCrime has joined #lisp
<aeth>
(This is in addition to named-readtables)
zacts has joined #lisp
<flip214>
aeth: even better, just use alexandria's (plist-hash-table ...) --- but you might need to specify the test to be used...
attila_lendvai has quit [Ping timeout: 272 seconds]
amb007 has quit [Ping timeout: 265 seconds]
maier has joined #lisp
amb007 has joined #lisp
hnOsmium0001 has joined #lisp
andreyorst has quit [Ping timeout: 265 seconds]
<charles`>
Where can I find out more about how quicklisp updates packages?
nckx[2] has joined #lisp
<aeth>
flip214: The way to specify settings (e.g. hash table test) in a macro like that is probably to have an optional options list at the front. So if the CAR of the body is a list, then it's options and the CDR is a plist tail, otherwise it's a key and the entire body is the plist
nckx has quit [Ping timeout: 256 seconds]
nckx[2] is now known as nckx
dilated_dinosaur has quit [Ping timeout: 260 seconds]
abhixec has joined #lisp
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucasb has joined #lisp
ralt has quit [Quit: Connection closed for inactivity]
maier has quit [Ping timeout: 265 seconds]
lucasb has left #lisp [#lisp]
judson_ has joined #lisp
andreyorst has joined #lisp
<VincentVega>
pfdietz: alright : )
<VincentVega>
aeth: Thanks for these extra bits of wisdom!
hjudt has joined #lisp
Walex is now known as bcachefs-newbie
dilated_dinosaur has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
frodef has quit [Remote host closed the connection]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
josrr has quit [Ping timeout: 246 seconds]
Inline has joined #lisp
liberliver has quit [Quit: liberliver]
frodef has joined #lisp
frodef has quit [Read error: Connection reset by peer]
Nilby has quit [Read error: Connection reset by peer]
shka_ has quit [Ping timeout: 264 seconds]
frodef has joined #lisp
ljavorsk has joined #lisp
zacts has quit [Quit: leaving]
zacts has joined #lisp
zacts has quit [Client Quit]
ggole has quit [Remote host closed the connection]
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
zacts has joined #lisp
mmmattyx has joined #lisp
zacts has quit [Client Quit]
mindCrime has quit [Ping timeout: 260 seconds]
mindCrime has joined #lisp
Blukunfando has quit [Read error: Connection reset by peer]
gutter has quit [Remote host closed the connection]
gutter has joined #lisp
reb has quit [Ping timeout: 264 seconds]
gutter has quit [Remote host closed the connection]
mathrick has quit [Ping timeout: 246 seconds]
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
mathrick has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
asarch has joined #lisp
amb007 has joined #lisp
mathrick_ has joined #lisp
mathrick has quit [Read error: Connection reset by peer]
luckless has quit [Ping timeout: 268 seconds]
kenu has joined #lisp
ljavorsk has quit [Ping timeout: 240 seconds]
kenu has quit [Remote host closed the connection]
frodef has quit [Read error: Connection reset by peer]
heisig has quit [Quit: Leaving]
frodef has joined #lisp
frodef has quit [Remote host closed the connection]
Codaraxis__ has joined #lisp
Codaraxis_ has quit [Ping timeout: 246 seconds]
cage_ has quit [Quit: Leaving]
Codaraxis_ has joined #lisp
Codaraxis__ has quit [Ping timeout: 260 seconds]
reb has joined #lisp
reb has quit [Remote host closed the connection]
tyson2 has joined #lisp
ex_nihilo has quit [Quit: Leaving]
hjudt has quit [Ping timeout: 265 seconds]
pve has quit [Quit: leaving]
euandreh_ has quit [Ping timeout: 260 seconds]
surabax has quit [Quit: Leaving]
mathrick_ is now known as mathrick
tassleoff has quit [Remote host closed the connection]
Lycurgus has joined #lisp
aartaka has joined #lisp
mrios22 has joined #lisp
torbo has joined #lisp
hendursaga has quit [Ping timeout: 268 seconds]
aindilis has quit [Ping timeout: 256 seconds]
hendursaga has joined #lisp
VincentVega has quit [Quit: Ping timeout (120 seconds)]
pfdietz has quit [Quit: Ping timeout (120 seconds)]
jeosol has quit [Quit: Ping timeout (120 seconds)]
pfdietz has joined #lisp
galex-713 has quit [Ping timeout: 272 seconds]
andreyorst has quit [Remote host closed the connection]
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
galex-713 has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
mrios22 has quit [Ping timeout: 264 seconds]
rgherdt has quit [Ping timeout: 272 seconds]
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
notzmv has joined #lisp
aartaka has quit [Ping timeout: 264 seconds]
mmmattyx has quit [Quit: Connection closed for inactivity]
tyson2 has left #lisp ["ERC (IRC client for Emacs 27.1)"]