jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
donleo has quit [Ping timeout: 252 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
certainty has joined #commonlisp
CO2 has quit [Quit: WeeChat 4.1.1]
certainty has quit [Ping timeout: 264 seconds]
rogersm has joined #commonlisp
pfdietz has quit [Quit: Client closed]
dnhester26 has joined #commonlisp
rogersm has quit [Ping timeout: 255 seconds]
pfdietz has joined #commonlisp
dcb has quit [Ping timeout: 260 seconds]
dcb has joined #commonlisp
dnhester26 has quit [Ping timeout: 255 seconds]
rendar has joined #commonlisp
rendar has quit [Changing host]
rendar has joined #commonlisp
lucasta has quit [Quit: Leaving]
certainty has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
certainty has quit [Ping timeout: 264 seconds]
Lord_of_Life has quit [Ping timeout: 264 seconds]
danza has quit [Read error: Connection reset by peer]
Lord_of_Life_ is now known as Lord_of_Life
danza has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
certainty has joined #commonlisp
rogersm has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
certainty has quit [Ping timeout: 255 seconds]
Ellenor is now known as MelanieMalik
rogersm has quit [Ping timeout: 252 seconds]
rtypo has quit [Ping timeout: 255 seconds]
Oladon has quit [Quit: Leaving.]
certainty has joined #commonlisp
sjl has joined #commonlisp
certainty has quit [Ping timeout: 260 seconds]
Krystof has quit [Ping timeout: 240 seconds]
certainty has joined #commonlisp
habamax has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 245 seconds]
pfdietz has quit [Quit: Client closed]
edr has quit [Quit: Leaving]
pfdietz has joined #commonlisp
habamax has joined #commonlisp
larix1 has joined #commonlisp
sjl has quit [Quit: leaving]
tyson2 has quit [Remote host closed the connection]
Meritamen has joined #commonlisp
dnhester26 has joined #commonlisp
dnhester26 has quit [Ping timeout: 240 seconds]
certainty has joined #commonlisp
certainty has quit [Ping timeout: 264 seconds]
rogersm has joined #commonlisp
Meritamen has quit [Remote host closed the connection]
rogersm has quit [Ping timeout: 264 seconds]
kira__ has joined #commonlisp
waleee has quit [Ping timeout: 255 seconds]
dim has quit [Server closed connection]
dim has joined #commonlisp
Lycurgus has joined #commonlisp
bh34e5 has quit [Ping timeout: 252 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
certainty has joined #commonlisp
hineios28 has joined #commonlisp
pfdietz has quit [Quit: Client closed]
hineios2 has quit [Ping timeout: 260 seconds]
hineios28 is now known as hineios2
certainty has quit [Ping timeout: 264 seconds]
certainty has joined #commonlisp
danza has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 255 seconds]
certainty has joined #commonlisp
danza has joined #commonlisp
certainty has quit [Ping timeout: 252 seconds]
kaskal- has quit [Ping timeout: 260 seconds]
kaskal has joined #commonlisp
certainty has joined #commonlisp
certainty has quit [Ping timeout: 258 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
certainty has joined #commonlisp
kira__ has quit [Ping timeout: 255 seconds]
ec_ has quit [Ping timeout: 256 seconds]
certainty has quit [Ping timeout: 252 seconds]
ec_ has joined #commonlisp
certainty has joined #commonlisp
rogersm has joined #commonlisp
dcb has quit [Quit: MSN Messenger 4.1.1]
certainty has quit [Ping timeout: 264 seconds]
certainty has joined #commonlisp
certainty has quit [Ping timeout: 264 seconds]
shka has joined #commonlisp
Gleefre has quit [*.net *.split]
certainty has joined #commonlisp
rogersm has quit [Remote host closed the connection]
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 258 seconds]
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
igemnace has joined #commonlisp
amb007 has joined #commonlisp
rgherdt has joined #commonlisp
khrbtxyz has quit [Server closed connection]
khrbtxyz has joined #commonlisp
ec_ has quit [*.net *.split]
chiselfuse has quit [*.net *.split]
gxt has quit [*.net *.split]
anticomputer_ has quit [*.net *.split]
anticomputer has joined #commonlisp
gxt has joined #commonlisp
ec_ has joined #commonlisp
chiselfuse has joined #commonlisp
dnhester26 has joined #commonlisp
pve has joined #commonlisp
dnhester26 has quit [Ping timeout: 255 seconds]
zetef has joined #commonlisp
LW has joined #commonlisp
rogersm has joined #commonlisp
rogersm has quit [Remote host closed the connection]
rogersm has joined #commonlisp
amb007 has quit [Ping timeout: 255 seconds]
amb007 has joined #commonlisp
Lycurgus has quit [Quit: leaving]
bendersteed has joined #commonlisp
rogersm has quit [Remote host closed the connection]
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 255 seconds]
szkl has joined #commonlisp
notzmv has quit [Ping timeout: 264 seconds]
zetef has quit [Ping timeout: 245 seconds]
dajole has quit [Quit: Connection closed for inactivity]
mgl has joined #commonlisp
dnhester26 has joined #commonlisp
tibfulv has joined #commonlisp
anticrisis has quit [Read error: Connection reset by peer]
xlymian has quit [Ping timeout: 240 seconds]
dino_tutter has joined #commonlisp
Meritamen has joined #commonlisp
Devon has joined #commonlisp
Meritamen has quit [Remote host closed the connection]
xlymian has joined #commonlisp
Meritamen has joined #commonlisp
danza has quit [Ping timeout: 240 seconds]
<dnhester26> Does anyone here use `if*`? https://github.com/mmontone/mutils/blob/master/docs/if-star.md Do you recommend using this, or is it better to stick to regular `cond` to make the code less dependent on yet another library?
<beach> Most people here would recommend against it.
<dnhester26> beach thanks for the answer. Could you please explain why?
<aeth> fancy, core macros lose readers because people may be unfamiliar with it
<aeth> and this is coming from someone who replaced DEFUN (yes, it loses readers)
rogersm has joined #commonlisp
mgl_ has joined #commonlisp
mgl has quit [Ping timeout: 245 seconds]
<dnhester26> aeth thanks
rogersm has quit [Ping timeout: 255 seconds]
varjag has joined #commonlisp
danse-nr3 has joined #commonlisp
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 258 seconds]
igemnace has quit [Read error: Connection reset by peer]
xlymian has quit [Ping timeout: 240 seconds]
tibfulv has quit [Remote host closed the connection]
xlymian has joined #commonlisp
tibfulv has joined #commonlisp
igemnace has joined #commonlisp
xlymian has quit [Ping timeout: 240 seconds]
xlymian has joined #commonlisp
msavoritias has joined #commonlisp
Meritamen has quit [Remote host closed the connection]
rogersm has joined #commonlisp
xlymian has quit [Ping timeout: 240 seconds]
xlymian has joined #commonlisp
yitzi has joined #commonlisp
notzmv has joined #commonlisp
rtypo has joined #commonlisp
<larix1> Does anyone know how to send a case-sensitive HTTP response header with a Lack server?
zetef has joined #commonlisp
mrvdb has quit [Server closed connection]
mrvdb has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
rogersm has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
donleo has joined #commonlisp
Inline has quit [Ping timeout: 252 seconds]
xlymian has quit [Ping timeout: 240 seconds]
rogersm has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
pfdietz has joined #commonlisp
dnhester26 has quit [Ping timeout: 258 seconds]
yitzi has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
rogersm has quit [Ping timeout: 255 seconds]
xlymian has joined #commonlisp
aliosablack has joined #commonlisp
zetef has quit [Ping timeout: 240 seconds]
xlymian has quit [Ping timeout: 255 seconds]
alejandrozf has left #commonlisp [ERC (IRC client for Emacs 27.1)]
notzmv has quit [Ping timeout: 258 seconds]
rogersm has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
rogersm has quit [Ping timeout: 252 seconds]
xlymian has joined #commonlisp
doyougnu has joined #commonlisp
dnhester26 has joined #commonlisp
xlymian has quit [Ping timeout: 240 seconds]
bjorkint0sh has joined #commonlisp
bjorkintosh has quit [Ping timeout: 272 seconds]
kevingal has joined #commonlisp
yitzi has joined #commonlisp
aliosablack has quit [Ping timeout: 240 seconds]
xlymian has joined #commonlisp
edr has joined #commonlisp
xlymian has quit [Ping timeout: 240 seconds]
liminality has joined #commonlisp
Gleefre has joined #commonlisp
<liminality> hey all. is there any way in SBCL to grab the name of a clos instance? eg i make an instance of 'square, it returns the instance #<SQUARE {some-identifier}>. is there a way to grab the {some-identifier} when i have the actual instance itself?
xlymian has joined #commonlisp
pfdietz has quit [Quit: Client closed]
<yitzi> class-of
<yitzi> or type-of, depending on your needs.
rogersm has joined #commonlisp
xlymian has quit [Ping timeout: 240 seconds]
chomwitt has joined #commonlisp
jrm has quit [Quit: ciao]
<green_> liminality: I hope there's a better way that this: https://paste.centos.org/view/16786e3e
<ixelp> UNTITLED - Pastebin Service
<liminality> yitzi: i'm not trying to get the name or type of the class, i'm trying to get the name of the instance itself
jrm has joined #commonlisp
<liminality> green_: thanks! i also ended up writing my own func to parse it as a string... still though, it'd be nice if there were a more direct way
rogersm has quit [Ping timeout: 260 seconds]
<yitzi> So for sbcl it is sb-kernel:get-lisp-obj-address
bjorkint0sh has quit [Quit: Leaving]
<Shinmera> liminality: instances have no names
<Shinmera> and that ID sbcl includes can change over time
<liminality> aaah okay. thanks everyone! also, big fan of your work, Shinmera.
<Shinmera> Thanks
<Shinmera> If you want a unique name you could do something like a global counter that gets increased for every instance and put into a slot
danse-nr3 has quit [Ping timeout: 240 seconds]
<Shinmera> If you just want a "unique for right now" ID, you can use sxhash
<liminality> well. i'm trying to serialise functions, and i figured i could grab the names of any functions i come across and save those function-names, then on load just return #'func-name. for lambdas, i just made a macro to save the lambda form itself in a hashtable that i'll use to save and reconstruct the lambda forms from.
<Shinmera> oh dear
<Shinmera> what got you to wanting to save functions?
<liminality> boss wants our program to be able to save/load state, though a lot of the objects have slots filled with functions
<Shinmera> fill the slots with symbols, instead
liminality has quit [Read error: Connection reset by peer]
liminality has joined #commonlisp
<liminality> d/c'd for a minute there, whoops
Inline has joined #commonlisp
xlymian has joined #commonlisp
notzmv has joined #commonlisp
jmdaemon has quit [Ping timeout: 240 seconds]
xlymian has quit [Remote host closed the connection]
xlymian has joined #commonlisp
rogersm has joined #commonlisp
<Shinmera> you cannot serialise state, in general. you can't serialise an open file stream, for instance. or a thread. or many, many other things
<Shinmera> so serialising functions is also impossible, because they can contain references to other impossible to serialise things
<Shinmera> just force the slots to contain function names rather than function objects
<Shinmera> that'll let you serialise the objects, and avoid all the issues associated with trying to serialise arbitrary function objects
xlymian has quit [Remote host closed the connection]
<liminality> ah that... yes! that should work!
xlymian has joined #commonlisp
nyx_land has quit [Server closed connection]
xlymian has quit [Remote host closed the connection]
nyx_land has joined #commonlisp
xlymian has joined #commonlisp
light has quit [Quit: Lost terminal]
Lycurgus has joined #commonlisp
chomwitt has quit [Ping timeout: 258 seconds]
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
random-nick has joined #commonlisp
rogersm has quit [Quit: Leaving...]
bjorkintosh has joined #commonlisp
danse-nr3 has joined #commonlisp
chomwitt has joined #commonlisp
danse-nr3 has quit [Ping timeout: 240 seconds]
danse-nr3 has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
notzmv has quit [Ping timeout: 258 seconds]
cmack has quit [Ping timeout: 255 seconds]
dnhester26 has quit [Remote host closed the connection]
chomwitt has quit [Ping timeout: 255 seconds]
kevingal has quit [Read error: Connection reset by peer]
cage has joined #commonlisp
notzmv has joined #commonlisp
hineios2 has quit [Read error: Connection reset by peer]
hineios2 has joined #commonlisp
Lycurgus has quit [Quit: leaving]
doyougnu has quit [Ping timeout: 264 seconds]
doyougnu has joined #commonlisp
Gleefre has joined #commonlisp
lagash has quit [Ping timeout: 260 seconds]
dlowe has joined #commonlisp
kevingal has joined #commonlisp
dino_tutter has quit [Ping timeout: 260 seconds]
dnhester26 has joined #commonlisp
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
doyougnu has quit [Quit: ZNC 1.8.2 - https://znc.in]
doyougnu has joined #commonlisp
doyougnu has quit [Client Quit]
doyougnu has joined #commonlisp
bendersteed has quit [Quit: bendersteed]
waleee has joined #commonlisp
doyougnu has quit [Quit: ZNC 1.8.2 - https://znc.in]
<dnhester26> in asdf if I have some files src/dir/a.lisp, src/dir/b.lisp, and src/c.lisp. I want to first load a.lisp, then c.lisp, then b.lisp which depends on both a.lisp and c.lisp, How can I do this? Declaring a (:module ) twice I think fails
doyougnu has joined #commonlisp
<beach> dnhester26: Did you try :DEPENDS-ON in the :FILE entry?
<dnhester26> beach nope, that will skip the serial dependency?
Lycurgus has joined #commonlisp
<beach> Well, :SERIAL T is like putting a :DEPENDS-ON on each :FILE where it depends on the previous one, so I don't think you want to use both.
<beach> But I don't structure my ASDF files this way, so I am not sure what you are doing.
<dnhester26> I'm using seria t, then wanted to try loading from the same folder twice, is that possible? Is that declaring (:module "dir" :components (:file))?
yitzi has quit [Remote host closed the connection]
<beach> I don't know. Sorry. Maybe someone else does.
<dnhester26> (:module "dir" :components (:file "a")) (:file "c") (:module "dir" :components (:file "b"))
<dnhester26> That's what I'm trying to do
doyougnu has quit [Quit: ZNC 1.8.2 - https://znc.in]
<dnhester26> Error while defining system: multiple components are given
<dnhester26> (:file "controller-utils") | same name "utils"
<dnhester26> I get this error
<dnhester26> Sorry, messed up emacs copy/paste
<dnhester26> Here is the error "Error while defining system: multiple components are given same name "utils""
<dnhester26> (:module "dir" :components (:file "a")) (:file "c") (:module "dir" :components (:file "b"))
doyougnu has joined #commonlisp
<dnhester26> Oh, solved the problem, didn't realize I can just declare (:file "dir/b.lisp") without having to declare it inside of a (:module)
<larix1> ah yeah i recently had a similar naming issue, having a (:file "thing") and (:module "thing" ...)
<larix1> weirdly you cant have both thing.lisp and thing/
doyougnu- has joined #commonlisp
doyougnu has quit [Ping timeout: 252 seconds]
dino_tutter has joined #commonlisp
dcb has joined #commonlisp
Lycurgus has quit [Quit: leaving]
chomwitt has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
attila_lendvai has joined #commonlisp
Gleefre has joined #commonlisp
dnhester26 has quit [Ping timeout: 240 seconds]
doyougnu has joined #commonlisp
varjag has joined #commonlisp
doyougnu- has quit [Ping timeout: 240 seconds]
danse-nr3 has quit [Ping timeout: 255 seconds]
danse-nr3 has joined #commonlisp
<jcowan> I have always considered this a copout, and especially in Lisp of all languages
<mfiano> :SERIAL T is not transitive, FYI
<jcowan> because you can never serialize a function does not mean that you should be forbidden from serializing every function.
<jcowan> you can serialize lists, but you can't serialize every list, by the same token
<mfiano> The maintainers turned down my request to change the misleading/inconsistent behavior because it's so old, a couple years ago. You must re-specifical :SERIAL for each hierarchical level.
<mfiano> re-specify maybe
danse-nr3 has quit [Ping timeout: 240 seconds]
kira__ has joined #commonlisp
lagash has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
dnhester26 has joined #commonlisp
Equill has joined #commonlisp
<larix1> i wish i could marry common lisp
chomwitt has quit [Ping timeout: 264 seconds]
<bjorkintosh> larix1, you can. just pick a person to marry and secretly call them common lisp in your head.
<bjorkintosh> instead of using their wrestling name, for instance.
yitzi has joined #commonlisp
djuber has joined #commonlisp
<Equill> I now have questions, for which I probably don't want answers.
tyson2 has quit [Remote host closed the connection]
dcb has quit [Ping timeout: 240 seconds]
<beach> Hmm.
waleee has quit [Ping timeout: 252 seconds]
<edgar-rft> hidden markov model?
liminality has quit [Quit: Leaving]
dcb has joined #commonlisp
* edgar-rft wants tax benefits for all his MAKE-INSTANCE children
zxcvz has joined #commonlisp
dino_tutter has quit [Ping timeout: 272 seconds]
<jcowan> Equill: Well, give us your questions. Good questions often spawn interesting discussions (can't tax benefits on them either, but they are fun)
<larix1> hard to find women willing to change their legal name to "common lisp larix"
<Equill> jcowan: They're about bjorkintosh and their spouse's wrestling name.
<Equill> larix1: You could lower the challenge level, and just seek out somebody whose initials are CL.
<jcowan> larix1: Change your surname to "Common-Lisp" first, and it may be easier.
Gleefre has quit [Remote host closed the connection]
<jcowan> When I got married several of our friends were shocked that Gale was going to change her name to Cowan. She had kept her previous married name because at the time she didn't have the extra $50 to resume her maiden name, and her view was that it would be dumb to be named for one man and married to another.
<Equill> I can't fault her reasoning.
mgl_ has quit [Ping timeout: 264 seconds]
<jcowan> Nor could I
Gleefre has joined #commonlisp
<jcowan> Most of us are named for some man or other, most of the time
<bjorkintosh> familial namespacing to ensure support
<bjorkintosh> One man historically did change his last name to his daughter's first name.
<bjorkintosh> Jellinek-Mercedes.
danza has joined #commonlisp
larix1 has quit [Ping timeout: 240 seconds]
<Equill> Interesting. I've known of a few men taking their wife's name, and of a Lisper and his wife who (IIRC) both changed their surnames to a third name.
<bjorkintosh> it's the only case I've heard of. the little car brand named after his daughter that he sponsored became too famous to ignore.
<jcowan> Roman women didn't have real names at all, just their clan name with a feminine ending, or sometimes an ordinal number (Tertia, Quarta, etc.)
<bjorkintosh> interesting. but they had first names, surely?
<edgar-rft> I'm quite sure that there's a country somewhere with laws weird enough so that one could legally marry Common Lisp.
<Equill> Well, Japan did allow that one guy to marry a hologram.
<Alfr> edgar-rft, do they prepend their surnames?
<Equill> Or is it a sorted merge?
<BrokenCog> declare CL anti-Gay and I'm sure Nigeria and Alabama will allow it.
<Alfr> Equill, how should I know? But I'm wondering whether they would be named Common or Lisp.
<Equill> Solution: one changes their surname to Common, and the other to Lisp. On marrying, they both take the hyphenated version.
sco1 has left #commonlisp [Igloo IRC: https://iglooirc.com]
<Pixel_Outlaw> Would it be a Common Law marriage?
justThanks is now known as justTesting
danza has quit [Ping timeout: 252 seconds]
varjag has quit [Quit: ERC 5.4.1 (IRC client for GNU Emacs 29.0.50)]
<jcowan> bjorkintosh: No, they really didn't. A daughter of the Julii would be Julilla until another daughter wsa born, and then she'd become Julia and the new girl would be Julilla
<jcowan> For the same reason that in the U.S. the names of slaves didn't appear in the census: they weren't *names*, just nicknames with no official standing.
<bjorkintosh> hmm. variable names
djuber has quit [Remote host closed the connection]
dnhester26 has quit [Remote host closed the connection]
<Equill> Technically, all names are variable. The marriage-related changes discussed earlier are examples of assigning a new value.
<Equill> Are the mods asleep? Normally we'd have been told to move this to the cafe by now.
<Shinmera> I considered doing so a while back but was too tired to get into the inevitable back and forth about 'but mom why can't we be off topic here :('
<Shinmera> anyway pack it up kids
<Equill> Packing it up. Time to be AFK for the evening anyway.
<edgar-rft> I'd say that marrying a Common Lisp is not really common.
zxcvz has quit [Quit: zxcvz]
zetef has joined #commonlisp
sjl has joined #commonlisp
waleee has joined #commonlisp
kira__ has quit [Quit: WeeChat 3.0]
jmdaemon has joined #commonlisp
zetef has quit [Ping timeout: 255 seconds]
shoggouth has joined #commonlisp
<BrokenCog> I'm late to the party ... but in LQuery how do I use $ functoin to get at input forms? I can get LI elemetns, etc
<Shinmera> ($ "input") or what do you mkean
<Shinmera> *mean
<BrokenCog> hmmm that;s what I did, but don't get any results. I know the page has an input field with id="username", but ($) isn't returning it.
dnhester26 has joined #commonlisp
<BrokenCog> (lquery:$ "input")
<BrokenCog> #()
tertek has quit [Server closed connection]
tertek has joined #commonlisp
<BrokenCog> ack. ouch. (lquery:$ *parsed-content* "input")
<BrokenCog> thankis.
danza has joined #commonlisp
<BrokenCog> it's the extracting element by ID which doesn't return the list: (lquery:$ *parsed-content* "#username input") returns ()
dnhester26 has quit [Ping timeout: 258 seconds]
<Shinmera> that doesn't mean what you think
<Shinmera> that means "get all sub-elements with tag input under the element with id username"
<Shinmera> you probably meant "input#username"
<BrokenCog> okay, it should return one at least since the input id="usernane" is wrapped in a div id="username"
<BrokenCog> I'll try that.
<Shinmera> that's some pretty bad html then
<BrokenCog> thanks. that found a singleton.
<BrokenCog> where in the lquery docs did you grok that??
<Shinmera> an ID attribute should be unique across the document.
<BrokenCog> agreed.
<Shinmera> maybe "[id=username] input" works, I don't remember if CLSS does a short-circuit on the first matching id.
<BrokenCog> no, /\ doesn't find the match.
<Shinmera> are you sure your html is being parsed correctly, then?
<BrokenCog> it is. I was wrong when I read it ... it's "div for='username' ...
<Shinmera> there you go, then.
<BrokenCog> but, it is <input id="username" ...
danza has quit [Ping timeout: 240 seconds]
<Shinmera> anyway, lquery just uses CSS3 selectors
<Shinmera> so learn how those work
<BrokenCog> input#username is CSS?
<Shinmera> yea sure
<BrokenCog> okay.
<ixelp> CSS selectors - Learn web development | MDN
<BrokenCog> thanks again. I have to go ... lunch.
mgl_ has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
justTesting is now known as justThanks
ec_ has quit [Ping timeout: 264 seconds]
ec_ has joined #commonlisp
Inline has quit [Ping timeout: 245 seconds]
dnhester26 has joined #commonlisp
dnhester26 has quit [Ping timeout: 264 seconds]
tibfulv has quit [Remote host closed the connection]
cage has quit [Quit: rcirc on GNU Emacs 29.1]
tibfulv has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
jmdaemon has quit [Ping timeout: 264 seconds]
certainty has quit [Ping timeout: 240 seconds]
LW has quit [Quit: WeeChat 4.0.4]
krj has quit [Server closed connection]
krj has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
santiagopim has joined #commonlisp
msavoritias has quit [Ping timeout: 255 seconds]
certainty has joined #commonlisp
Irvise_ has quit [Server closed connection]
Irvise_ has joined #commonlisp
certainty has quit [Ping timeout: 272 seconds]
chomwitt has joined #commonlisp
mgl_ has quit [Ping timeout: 255 seconds]
zetef has joined #commonlisp
jmdaemon has joined #commonlisp
certainty has joined #commonlisp
amb007 has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 255 seconds]
zetef has quit [Remote host closed the connection]
zetef has joined #commonlisp
amb007 has joined #commonlisp
dlowe has quit [Ping timeout: 258 seconds]
attila_lendvai has quit [Ping timeout: 252 seconds]
Inline has joined #commonlisp
chiselfuse has quit [Ping timeout: 264 seconds]
attila_lendvai has joined #commonlisp
xlymian has quit [Ping timeout: 240 seconds]
mgl_ has joined #commonlisp
chiselfuse has joined #commonlisp
Lycurgus has joined #commonlisp
Lycurgus has joined #commonlisp
Lycurgus has quit [Changing host]
zetef has quit [Remote host closed the connection]
zetef has joined #commonlisp
notzmv has quit [Ping timeout: 252 seconds]
habamax has joined #commonlisp
certainty has joined #commonlisp
yitzi has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 264 seconds]
Oladon has joined #commonlisp
xlymian has joined #commonlisp
Lycurgus has quit [Quit: leaving]
masinter has joined #commonlisp
Gleefre has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Ping timeout: 240 seconds]
anticrisis has joined #commonlisp
attila_lendvai has quit [Ping timeout: 258 seconds]
lucasta has joined #commonlisp
CO2 has joined #commonlisp
contrapunctus has quit [Server closed connection]
contrapunctus has joined #commonlisp
chomwitt has quit [Ping timeout: 264 seconds]
random-nick has quit [Ping timeout: 255 seconds]
certainty has joined #commonlisp
certainty has quit [Ping timeout: 258 seconds]
shka has quit [Ping timeout: 258 seconds]
Devon has quit [Ping timeout: 258 seconds]
rtypo has quit [Quit: WeeChat 4.1.1]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #commonlisp
dom2 has joined #commonlisp
igemnace has quit [Ping timeout: 264 seconds]
zetef has quit [Remote host closed the connection]
certainty has joined #commonlisp
mgl_ has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 258 seconds]
<BrokenCog> anyone care to school me on what is being returned, and how to use it: (lquery:$ *parsed-content* "input#username")
<BrokenCog> #(#<PLUMP-DOM:ELEMENT input {1004C8B373}>)
<BrokenCog> https://shinmera.github.io/lquery/ ... claims it's an Array ... but, aref doesn't seem to get anything.
<ixelp> Lquery
<bike> that's an array of one element. the one element is a PLUMP-DOM:ELEMENT object.
<bike> doesn't get anything?
<BrokenCog> okay, the array is the object ... how do I get the DOM element?
<aeth> (aref foo 0)
<aeth> and then the return value is the object
<aeth> (whatever (aref foo 0))
<aeth> whatever being an operation that's valid on it
<BrokenCog> (aref (lquery:$ parsed-content "input#username") 0) ?
<bike> yep.
<BrokenCog> gives #<PLUMP-DOM:ELEMENT input {1004C8B373}>
<Inline> (loop across....
<bike> yep, now you have a whatever that is.
<BrokenCog> hm. okay.
<bike> the lquery manual hopefully explains about it.
<Inline> then (describe (aref....
<aeth> the only thing we know you can do to it is print it, because we know its not-very-useful printable representation
<aeth> but you can probably do more things to it
<BrokenCog> it must have a 'value' ... but I can't figure out to display/set it.
<bike> A value?
<Inline> objects
<aeth> well, it displays as #<PLUMP-DOM:ELEMENT input {1004C8B373}>
<Inline> describe object, (setf object slot) (getf object slot).....
bjorkintosh has quit [Remote host closed the connection]
<Inline> try a (describe on that #<.....
bjorkintosh has joined #commonlisp
<Inline> it maybe will list more slots
<Inline> if it has some
<Inline> and to get the values you use the accessor methods
<BrokenCog> slots Parent, Children, Tag-Name, Attributes
<aeth> I'm guessing its tag-name is input and is the only part printed in its printable representation
<BrokenCog> yes.
<BrokenCog> Attribute: = #<HASH-TABLE :TEST EQUALP :COUNT 5 {1004C84063}>
<aeth> either the library gives you a way to see the long-form (all four contents) or you'd have to manually call the four accessor methods to see what's going on
<bike> it looks like $ is the main thing here
<bike> but you can do like, (serialize the-thing) maybe
<Inline> maybe you have a dohash around....
<aeth> as for the hash table, you can iterate through it.
<Inline> to iter throu hashtables....
<Inline> if not you can find some on the internet even
<aeth> it wouldn't be hard to write a long-form print that prints the hash-table of the attributes iteratively, but the library may already provide something like that now that you know what to look for
<bike> i mean, what do you actually want to do with the object.
<aeth> bike: presumably at this point BrokenCog wants to inspect it at the REPL
<aeth> which means printing a hash table, mostly
<BrokenCog> I'm trying to set the input form to post back to the server.
Gleefre has joined #commonlisp
<bike> sounds like you'll need to understand the lquery docs
<BrokenCog> yeah.
<BrokenCog> lots of little mini examples without much explanation.
<BrokenCog> I'm sure it's adequate for someone knows DOM.
<bike> or jquery
<Inline> is that sqlite database ?
jmdaemon has quit [Read error: Connection reset by peer]
<aeth> DOM is HTML
<ixelp> DOM (Document Object Model) - MDN Web Docs Glossary: Definitions of Web-related terms | MDN
<aeth> although I suppose it could also be XML according to that definition
jmdaemon has joined #commonlisp
<bike> maybe you want replace-all or replace-with or something. looks like lquery-funcs is where to look
<BrokenCog> thanks. have to go ... be back later.