jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | offtopic --> #lispcafe
VincentVega has quit [Quit: Connection closed]
tassleoff has joined #lisp
hiroaki has quit [Ping timeout: 265 seconds]
tassleoff has quit [Ping timeout: 264 seconds]
pve has quit [Quit: leaving]
mrios22 has joined #lisp
hiroaki has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
rumbler31_ has quit [Read error: Connection reset by peer]
wildlander has joined #lisp
reb` has joined #lisp
reb` has quit [Remote host closed the connection]
jonatack has quit [K-Lined]
reb has joined #lisp
rumbler31_ has joined #lisp
<Bike> i think i found a bug in sbcl's type simplifier but i'd appreciate a sanity check: could someone else compare (let ((c (cons 2 4))) (typep c '(or (cons (integer 0 8) (integer 5 15)) (cons (integer 3 15) (integer 4 15))))) against (let ((c (cons 2 4))) (or (typep c '(cons (integer 0 8) (integer 5 15))) (typep c '(cons (integer 3 15) (integer 4 15)))))
mr-iznogud has joined #lisp
<Bike> in a new sbcl
gaqwas has quit [Remote host closed the connection]
gaqwas has joined #lisp
gaqwas has joined #lisp
rgherdt has quit [Ping timeout: 272 seconds]
gaqwas has quit [Ping timeout: 246 seconds]
<Nilby> Bike: That the second form is T seems like a bug to me. But I hardly every use such specific type checking.
luni has quit [Quit: Connection closed]
<Bike> so the first form returned false? right
<Nilby> Yes
<Bike> wait, no. that's the opposite of what i have. what?
<reb> For me first returned T and second NIL ...
<reb> SBCL 2.1.0.43-8b5f058b5
<reb>
<Nilby> oops, yes, the first one returns true, the second one returns false
<Bike> ok, right. to bugzilla it goes
<Nilby> 2.0.10.59-b60246d32-WIP :)
<Nilby> I tested it with deftypes too
theruran has joined #lisp
<Nilby> duh I meant to say "that the first one is T seems like the bug"
<Bike> yes, i'm pretty sure the correct answer is nil.
<_death> yeah.. a "simpler" case that shows it is (let ((c (cons 'a '0))) (typep c '(or (cons number symbol) (cons symbol number))))
<Nilby> and they are individually, without the or in the type
judson_ has joined #lisp
<_death> er
<_death> I guess it has to do with the integer specifier
<Bike> i think it has to do with types that overlap but aren't subtypes of one another
ikrabbe|2 has joined #lisp
ralt has quit [Quit: Connection closed for inactivity]
<Nilby> but ccl does the same ?
ikrabbe has quit [Ping timeout: 264 seconds]
<Nilby> and ecl
<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
<aeth> (* any non-negative integer)
<aeth> e.g.
<aeth> (let ((*gensym-counter* (expt 2 123))) (gensym "FOO")) => #:FOO10633823966279326983230456482242756608
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<charles`> I'm not having any issues, I just want to make sure I wont run into any in the future
<aeth> well, this seems to work in SBCL... (let ((*gensym-counter* (expt 2 999))) (gensym "FOO"))
<aeth> How many gensyms are you planning on making?
<aeth> I guess you could run out of memory...
<charles`> is there a safer way to generate unique strings?
<Alfr> Use a counter.
flatheap has joined #lisp
aeth has quit [Ping timeout: 264 seconds]
aeth has joined #lisp
<beach> Good morning everyone!
<jasom> good morning beach
Alfr_ has joined #lisp
Alfr has quit [Ping timeout: 264 seconds]
mrios22 has quit [Ping timeout: 260 seconds]
mindCrime has joined #lisp
<ebrasca> Good morning!
<beach> Hello ebrasca.
<ebrasca> beach: Are you a teacher?
<beach> I am yes.
<beach> Teacher and researcher.
__jrjsmrtn__ has joined #lisp
_jrjsmrtn has quit [Ping timeout: 272 seconds]
<beach> ebrasca: Why do you ask?
<ebrasca> beach: Because I like to know it and you are interesting person.
<beach> Oh, heh! Thanks!
jeosol has quit [Quit: Ping timeout (120 seconds)]
PuercoPop has quit [Quit: WeeChat 2.8]
* ebrasca is interested how does beach think when making big projects.
aartaka_d has joined #lisp
aartaka has quit [Ping timeout: 265 seconds]
epony has quit [Remote host closed the connection]
epony has joined #lisp
waleee-cl has quit [Quit: Connection closed for inactivity]
Lycurgus has quit [Ping timeout: 246 seconds]
lowryder has quit [Ping timeout: 272 seconds]
lowryder has joined #lisp
karlosz has quit [Quit: karlosz]
judson_ has joined #lisp
judson_ has quit [Client Quit]
judson_ has joined #lisp
judson_ has quit [Client Quit]
rumbler31 has quit [Remote host closed the connection]
Bike has quit [Quit: Lost terminal]
rumbler31 has joined #lisp
rumbler31 has quit [Remote host closed the connection]
rumbler31 has joined #lisp
akoana has left #lisp ["Leaving"]
judson_ has joined #lisp
jrm has quit [Quit: ciao]
jrm has joined #lisp
siavoshkc has quit [Quit: KVIrc 4.0.2 Insomnia http://www.kvirc.net/]
nij has joined #lisp
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?
infra_red[m] has joined #lisp
<VincentVega> * capture -> bind
<beach> clhs multiple-value-list
<VincentVega> thank you!
<beach> Anytime.
mr-iznogud has quit [Ping timeout: 265 seconds]
xanderle has quit [Ping timeout: 264 seconds]
rtypo has joined #lisp
xanderle has joined #lisp
zacts has joined #lisp
kpoeck_ has joined #lisp
<kpoeck_> phoe: cl-postgres seem to reside in postmodern, see https://github.com/marijnh/Postmodern/blob/master/cl-postgres.asd
ms[m] has joined #lisp
MrtnDk[m] has joined #lisp
even4void[m] has joined #lisp
posthuman_egrego has joined #lisp
katco has joined #lisp
santiagopim[m] has joined #lisp
christopheroei[m has joined #lisp
stargazesparkle has joined #lisp
ThaEwat has joined #lisp
etimmons has joined #lisp
dieggsy has joined #lisp
skye0[m] has joined #lisp
arichiardi[m] has joined #lisp
susam has joined #lisp
chipk[m] has joined #lisp
cairn has joined #lisp
jdormit[m] has joined #lisp
quanta[m] has joined #lisp
Gnuxie[m] has joined #lisp
malaclyps_ has joined #lisp
deselby has joined #lisp
loke[m] has joined #lisp
dmiles[m] has joined #lisp
kaisyu[m] has joined #lisp
ey[m] has joined #lisp
keizerrijk[m] has joined #lisp
solideogloria[m] has joined #lisp
jonas[m]2 has joined #lisp
anotherone9999[m has joined #lisp
Lolicon[m] has joined #lisp
ey[m]1 has joined #lisp
eymebolofscrumpe has joined #lisp
ecm has joined #lisp
ey[m]2 has joined #lisp
xanderle_ has joined #lisp
<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
jonatack has joined #lisp
<phoe> oh, wait, not exactly
<phantomics> Not meant to be mutable
<phoe> clhs short-float-epsilon
<phoe> yes, they're constants for use in user code, but nothing that affects how #'= works
<shka_> or any other lisp function as far i know
<phoe> yes
<shka_> not the standard one
<shka_> also, rebinding constants is not the best idea
<phoe> ;; mostly because it's impossible
<shka_> yes
<phantomics> I see, it wouldn't affect #'= anyhow
<shka_> i mean, it is possible
<shka_> but undefined
<shka_> phantomics: you need to write your own epsilon=
<shka_> alexandria does not have it
rtypo has quit [Read error: Connection reset by peer]
rtypo has joined #lisp
<phantomics> Got it
rtypo has quit [Read error: Connection reset by peer]
random-nick has joined #lisp
rtypo has joined #lisp
asarch has quit [Quit: Leaving]
bendersteed has joined #lisp
rtypo has quit [Ping timeout: 246 seconds]
attila_lendvai has joined #lisp
amb007 has quit [Ping timeout: 265 seconds]
amb007 has joined #lisp
rtypo has joined #lisp
bendersteed has quit [Quit: bye all]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
ggole has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
luni has joined #lisp
kpoeck_ has quit [Quit: Connection closed for inactivity]
davd33 has quit [Remote host closed the connection]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
lalitmee has joined #lisp
mrios22 has quit [Excess Flood]
mrios22 has joined #lisp
Bike has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
euandreh_ has quit [Ping timeout: 260 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
iskander has joined #lisp
iskander- has quit [Ping timeout: 246 seconds]
amb007 has quit [Read error: Connection reset by peer]
rumbler31 has quit [Remote host closed the connection]
amb007 has joined #lisp
tassleoff has joined #lisp
rumbler31 has joined #lisp
heisig has joined #lisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #lisp
tassleoff has quit [Client Quit]
euandreh_ has joined #lisp
tassleoff has joined #lisp
VincentVega has quit [Quit: Ping timeout (120 seconds)]
iskander has quit [Ping timeout: 240 seconds]
iskander- has joined #lisp
rpg has joined #lisp
lalitmee_ has joined #lisp
lalitmee has quit [Ping timeout: 264 seconds]
josrr has joined #lisp
<josrr> asarch: you need to use retrieve-one instead of execute to get the id
clintm has joined #lisp
_whitelogger has joined #lisp
mrchampion has joined #lisp
Lycurgus has joined #lisp
lalitmee_ is now known as lalitmee
perrier-jouet has quit [Quit: WeeChat 3.0]
zacts has quit [Quit: leaving]
Achylles has joined #lisp
Achylles has quit [Max SendQ exceeded]
Achylles has joined #lisp
judson_ has joined #lisp
SpaceIgor2075 has joined #lisp
gutter has joined #lisp
SpaceIgor2075 has quit [Remote host closed the connection]
SpaceIgor2075 has joined #lisp
Lycurgus has quit [Quit: Exeunt]
mrios22 has quit [Ping timeout: 240 seconds]
SpaceIgor2075 has quit [Remote host closed the connection]
luni has quit [Quit: Connection closed]
ey[m] has quit [Bad user info]
pfdietz has joined #lisp
VincentVega has joined #lisp
renzhi has joined #lisp
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lalitmee has quit [Remote host closed the connection]
lalitmee has joined #lisp
lalitmee has quit [Max SendQ exceeded]
lalitmee has joined #lisp
lalitmee has quit [Max SendQ exceeded]
lalitmee has joined #lisp
judson_ has joined #lisp
lalitmee has quit [Client Quit]
nij has joined #lisp
clintm has quit [Quit: ERC (IRC client for Emacs 27.1)]
judson_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waleee-cl has joined #lisp
judson_ has joined #lisp
hjudt has joined #lisp
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 265 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<VincentVega> Hmm can I write my own reader macro that start with #+, e.g. #+my-reader or would it conflict with #+sbcl and such?
okflo` has quit [Remote host closed the connection]
<pve> VincentVega: you can, and it would
<VincentVega> I see. Is it because # is reserved, if I understand correctly?
<VincentVega> well, not reserved, I guess
<pve> not exactly
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)"]
flatheap has joined #lisp