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.
<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>
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…]
<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.