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/>
rgherdt has joined #commonlisp
marsia has joined #commonlisp
pve has quit [Quit: leaving]
rgherdt has quit [Remote host closed the connection]
jsnewby has quit [Ping timeout: 260 seconds]
random-nick has quit [Ping timeout: 272 seconds]
jfb4 has quit [Ping timeout: 260 seconds]
jfb4 has joined #commonlisp
jeosol has joined #commonlisp
X-Scale has joined #commonlisp
lonjil has quit [Quit: Quit.]
lonjil has joined #commonlisp
lonjil has quit [Client Quit]
lonjil has joined #commonlisp
occ has joined #commonlisp
jfb4 has quit [Ping timeout: 252 seconds]
haku has quit [Ping timeout: 260 seconds]
selwynning has quit [Ping timeout: 268 seconds]
Madsy has quit [Quit: Leaving]
jfb4 has joined #commonlisp
selwynning has joined #commonlisp
morganw has quit [Remote host closed the connection]
haku has joined #commonlisp
akoana has joined #commonlisp
tasty has quit [Quit: rebooting for kernel updates]
Fare has quit [Ping timeout: 260 seconds]
tasty has joined #commonlisp
tasty has quit [Changing host]
tasty has joined #commonlisp
Oladon has joined #commonlisp
megeve has joined #commonlisp
epony has joined #commonlisp
eddof13 has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
X-Scale has quit [Quit: Client closed]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #commonlisp
mrcom_ has quit [Read error: Connection reset by peer]
chrcav has joined #commonlisp
micro has quit [Quit: Lost terminal]
micro has joined #commonlisp
waleee has quit [Ping timeout: 246 seconds]
mingus has joined #commonlisp
gxt has quit [Remote host closed the connection]
gxt has joined #commonlisp
<beach> NotThatRPG_away: I think it is best to talk to scymtym about Eclector. He is really the one who created it. I supplied mostly the idea. But I am sure there is documentation that explains everything in detail. I have definitely read it.
Oladon has quit [Quit: Leaving.]
gxt has quit [Remote host closed the connection]
gxt has joined #commonlisp
mrcom has joined #commonlisp
akoana has quit [Quit: leaving]
azimut_ has quit [Ping timeout: 255 seconds]
masinter has quit [Ping timeout: 260 seconds]
masinter has joined #commonlisp
masinter has quit [Remote host closed the connection]
mingus has quit [Ping timeout: 260 seconds]
igemnace has joined #commonlisp
Inline has quit [Ping timeout: 252 seconds]
rgherdt has joined #commonlisp
pranavats has left #commonlisp [Disconnected: Hibernating too long]
pve has joined #commonlisp
pranavats has joined #commonlisp
occ has quit [Ping timeout: 268 seconds]
igemnace has quit [Remote host closed the connection]
ttree has quit [Ping timeout: 265 seconds]
_cymew_ has joined #commonlisp
_cymew_ has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
Fare has joined #commonlisp
ym has joined #commonlisp
cage has joined #commonlisp
Fare has quit [Ping timeout: 252 seconds]
Fare has joined #commonlisp
karlosz has joined #commonlisp
karlosz has quit [Remote host closed the connection]
karlosz has joined #commonlisp
epony has quit [Ping timeout: 268 seconds]
igemnace has joined #commonlisp
igemnace has quit [Remote host closed the connection]
karlosz has quit [Ping timeout: 252 seconds]
karlosz has joined #commonlisp
igemnace has joined #commonlisp
igemnace has quit [Remote host closed the connection]
occ has joined #commonlisp
pranavats has left #commonlisp [Disconnected: Hibernating too long]
pranavats has joined #commonlisp
karlosz has quit [Quit: karlosz]
karlosz has joined #commonlisp
ym has quit [Ping timeout: 255 seconds]
chrcav has quit [Quit: leaving]
chrcav has joined #commonlisp
X-Scale has joined #commonlisp
ym has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.8]
avocadoist has quit [Read error: Connection reset by peer]
avocadoist has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
random-nick has joined #commonlisp
Inline has joined #commonlisp
perrierjouet has joined #commonlisp
ym has quit [Quit: WeeChat 3.8]
hrberg has joined #commonlisp
Inline has quit [Ping timeout: 256 seconds]
epony has joined #commonlisp
Inline has joined #commonlisp
Inline is now known as Guest4047
Guest4047 has quit [Remote host closed the connection]
Inline has joined #commonlisp
Inline is now known as Guest9116
Guest9116 has quit [Remote host closed the connection]
Inline has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.8]
Inline has quit [Quit: Leaving]
perrierjouet has joined #commonlisp
Inline has joined #commonlisp
tevo has joined #commonlisp
azimut has joined #commonlisp
waleee has joined #commonlisp
X-Scale has quit [Quit: Client closed]
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #commonlisp
McParen has joined #commonlisp
McParen has quit [Remote host closed the connection]
McParen has joined #commonlisp
<McParen> hello, does anybody know if there is a function that works like pairlis but produces a plist instead of an alist?
<McParen> pairlis intertwines (a b c) and (1 2 3) to ((a . 1)(b . 2)(c . 3)) but I'd like to get (a 1 b 2 c 3).
<beach> You can do that easily yourself: (loop for e1 in l1 for e2 in l2 collect e1 collect e2)
<McParen> beach, thanks, I've already found out how to do this myself, I am wondering if that is available somewhere as a "standard" function i cant seem to find.
<yitzi> McParen: Also, `(mapcan #'list '(:a :b :c) '(1 2 3))`
<beach> Nice!
<yitzi> hehe. Thanks.
<McParen> i was wondering how it was "forgotten" in the standard to provide an alist version but not a plist version.
<McParen> an how not even alexandria thought about including the "missing" piece.
<yitzi> I doubt it was forgotten. PAIRLIS is kind of extraneous in my opinion. If you aren't concatenating an existing alist then it is just MAPCAN with CONS.
<phoe> yitzi: more like MAPCAR with CONS
<phoe> (mapcan #'cons (list (cons 1 2) (cons 3 4)) (list (cons 5 6) (cons 7 8))) produces weird results, as expected of something that forcibly alters CDRs
<yitzi> phoe: Yeah, Sorry.
<phoe> no worries, I actually had to stop for a moment and think of what would MAPCAN do with improper lists
morganw has joined #commonlisp
<yitzi> I am generally of the impression that alists are older and that plists were added later. Initially associated with symbol plists first then disconnected in CL. Anybody attest to that?
<_death> both were present in lisp 1.5
tyson2 has joined #commonlisp
<yitzi> Looks like plists were added then http://www-formal.stanford.edu/jmc/history/lisp/node4.html
<ixelp> From LISP 1 to LISP 1.5
<_death> but yeah, it seems lisp 1 used association lists for symbol properties
<McParen> I grew to like plists more than alists since I realized that you can do (apply #'make-instance 'my-object plist).
<_death> well, lisp 1 had a GET function that was something like (cadr (member ...))
<_death> it also had a PROP function like (cdr (member ...)) and a REMPROP that assumed a plist structure
<_death> lisp 1 also has a simplifier and a differentiator for algebraic expressions.. where did those go? :)
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #commonlisp
repeter` has joined #commonlisp
occ has quit [Read error: Connection timed out]
repeter has quit [Ping timeout: 272 seconds]
rgherdt has joined #commonlisp
<jcowan> _death: probably lost in the general decay of magtape.
Oladon has joined #commonlisp
Alfr has quit [Killed (lithium.libera.chat (Nickname regained by services))]
Alfr has joined #commonlisp
Alfr has quit [Read error: Connection reset by peer]
Alfr has joined #commonlisp
Alfr has quit [Killed (iridium.libera.chat (Nickname regained by services))]
Alfr has joined #commonlisp
Alfr has quit [Remote host closed the connection]
Alfr has joined #commonlisp
McParen has left #commonlisp [#commonlisp]
tyson2 has quit [Remote host closed the connection]
occ has joined #commonlisp
mingus has joined #commonlisp
varjag has joined #commonlisp
Gleefre has joined #commonlisp
cosimone has joined #commonlisp
random-jellyfish has joined #commonlisp
akoana has joined #commonlisp
<pjb> _death: you can still run lisp 1.5 code in CL. http://informatimago.free.fr./i/develop/lisp/com/informatimago/small-cl-pgms/wang.html
<ixelp> Old LISP programs still run in Common Lisp
<pjb> _death: so those old programs are not lost.
<pjb> _death: but mind trying maxima and acl2!
genpaku has quit [Remote host closed the connection]
genpaku has joined #commonlisp
<random-jellyfish> is there some open source parser that can translate C++ code to lisp s-expressions e.g. (int main () (printf "Hello World") (return 0)) ?
<an_origamian[m]> Doubtful.
Inline has quit [Ping timeout: 255 seconds]
<an_origamian[m]> And there would be more than one way to represent the C++ code.
<random-jellyfish> any way would do
<an_origamian[m]> Any particular reason you need this?
<an_origamian[m]> You can call C++ code if you use Clasp.
<random-jellyfish> to write a linter
<an_origamian[m]> Dale is an improved C with S-expressions.
<random-jellyfish> common lisp has powerful pattern matching libs that could be useful for linting
<an_origamian[m]> I think your best bet might be to get Clang to parse the code for you.
eddof13 has joined #commonlisp
avocadoist has quit [Quit: Konversation terminated!]
<an_origamian[m]> (Here's someone who actually knows what he's talking about vvv)
Gleefre has quit [Remote host closed the connection]
avocadoist has joined #commonlisp
Gleefre has joined #commonlisp
<random-jellyfish> yeah, I probably have to add some extra code to generate sexpressions
<yitzi> I doubt that a CL based linter will be able to determine more info about C++ code than clang ASTs.
<random-jellyfish> I'd probably have to rewrite the entire semantic model in lisp
Lycurgus has joined #commonlisp
Lycurgus has quit [Changing host]
Lycurgus has joined #commonlisp
<an_origamian[m]> Is the goal to write this in Lisp?
Lycurgus has quit [Client Quit]
cage has quit [Quit: rcirc on GNU Emacs 28.2]
<random-jellyfish> I'm assuming it would be easier to work with sexpressions in lisp than with some AST structs in C++
<random-jellyfish> not sure if it's a good assumption
<an_origamian[m]> I'm unsure too since I'm kind of noob.
<an_origamian[m]> Clang is one of the few libraries that can properly parse C++ though. From what I've heard, it's really hard to parse yourself.
<an_origamian[m]> And theoretically, you can call Clang from Lisp. Yitzi would know more about that though.
<random-jellyfish> yeah, it would be unrealistic and impractical to even try to write a c++ parser from scratch, the standard is thicker than the bible lol
<random-jellyfish> I'll have a look at clang
<random-jellyfish> there is also ANTLR with an example grammar for cpp
<random-jellyfish> but it's just a proof of concept
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyson2 has joined #commonlisp
<pjb> random-jellyfish: There is the opposite https://cliki.net/s-exp%20syntax
<ixelp> CLiki: s-exp syntax
<pjb> random-jellyfish: I started a C11 implementation in CL, but I only have cpp, the parser is not done yet. On the other hand, it seems that gilberth in #lispcafe is also working on a C or C++ parser, and he's more advanced.
occ has quit [Ping timeout: 246 seconds]
<pjb> But if you want to process C++ sources, yes, libclang is the simpliest way to do it.
<ixelp> GitHub - y2q-actionman/with-c-syntax: C language syntax in Common Lisp
<pjb> an_origamian[m]: it's not listed in https://cliki.net/s-exp%20syntax
<ixelp> CLiki: s-exp syntax
<an_origamian[m]> I'm guessing that's because it says it's probably not for practical coding.
occ has joined #commonlisp
<random-jellyfish> wow interesting
<Gleefre> You could be probably interested in this page https://www.cliki.net/c ?
<ixelp> CLiki: C
eddof13 has joined #commonlisp
avocadoist has quit [Remote host closed the connection]
masinter has joined #commonlisp
random-jellyfish has quit [Quit: Client closed]
avocadoist has joined #commonlisp
random-jellyfish has joined #commonlisp
<masinter> join sicl
avocadoist has quit [Ping timeout: 252 seconds]
avocadoist has joined #commonlisp
triffid has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life_ is now known as Lord_of_Life
random-jellyfish has quit [Quit: Client closed]
random-jellyfish has joined #commonlisp
ttree has joined #commonlisp
random-jellyfish has quit [Client Quit]
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
karlosz has quit [Ping timeout: 255 seconds]
mingus1 has joined #commonlisp
mingus has quit [Ping timeout: 246 seconds]
mingus1 is now known as mingus
shka has quit [Ping timeout: 256 seconds]
remexre2 has joined #commonlisp
marsia` has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marsia has quit [Ping timeout: 256 seconds]
tyson2 has quit [Remote host closed the connection]
remexre has quit [Remote host closed the connection]
remexre2 has quit [Remote host closed the connection]
remexre has joined #commonlisp
cosimone has quit [Ping timeout: 260 seconds]
mingus has quit [Ping timeout: 272 seconds]
Gleefre has quit [Ping timeout: 260 seconds]
Posterdati has quit [Read error: Connection reset by peer]
eddof13 has joined #commonlisp
Posterdati has joined #commonlisp
eddof13 has quit [Client Quit]
masinter has quit [Remote host closed the connection]
masinter has joined #commonlisp
tyson2 has joined #commonlisp
varjag has quit [Ping timeout: 256 seconds]
rgherdt has quit [Remote host closed the connection]
occ has quit [Read error: Connection timed out]
epony has quit [Read error: Connection reset by peer]
akoana has quit [Quit: leaving]
edgar-rft has quit [Quit: Leaving]
edgar-rft has joined #commonlisp
varjag has joined #commonlisp
morganw has quit [Remote host closed the connection]