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/>
SAL9000 has joined #commonlisp
chomwitt has quit [Ping timeout: 265 seconds]
yitzi has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 265 seconds]
sjl has quit [Ping timeout: 255 seconds]
rkazak has joined #commonlisp
Lord_of_Life has joined #commonlisp
Opus has quit [Quit: .-.]
yitzi has quit [Ping timeout: 245 seconds]
Everything has quit [Quit: leaving]
Opus has joined #commonlisp
attila_lendvai has quit [Ping timeout: 252 seconds]
aeth has quit [Quit: Reconnecting]
aeth_ has joined #commonlisp
aeth_ is now known as aeht
aeht is now known as aeth
edgar-rft` has joined #commonlisp
rkazak has quit [Ping timeout: 272 seconds]
edgar-rft_ has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
rkazak has joined #commonlisp
amb007 has quit [Ping timeout: 276 seconds]
rkazak has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
kevingal has quit [Ping timeout: 252 seconds]
spdegabrielle has quit [Quit: Connection closed for inactivity]
rkazak has quit [Ping timeout: 248 seconds]
zenmov has joined #commonlisp
random-nick has quit [Ping timeout: 252 seconds]
shawnw has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 272 seconds]
rkazak has joined #commonlisp
shawnw has quit [Ping timeout: 260 seconds]
shawnw has joined #commonlisp
akoana has joined #commonlisp
Gleefre has quit [Ping timeout: 256 seconds]
rkazak has quit [Ping timeout: 248 seconds]
chum-cha has joined #commonlisp
akoana has quit [Quit: leaving]
chum-cha has quit [Changing host]
chum-cha has joined #commonlisp
chum-cha` has joined #commonlisp
chum-cha has quit [Remote host closed the connection]
chum-cha` has quit [Remote host closed the connection]
chum-cha has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
mala has joined #commonlisp
troojg has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
chum-cha has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 252 seconds]
<beach> NotThatRPG: The plan is to use Second Climacs for stuff like that. It already uses Eclector to read the buffer contents. And then we plan to include the first pass of a compiler so that we can determine the role of each symbol.
amb007 has joined #commonlisp
mwnaylor has quit [Ping timeout: 276 seconds]
jonatack has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 272 seconds]
jonatack has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
jonatack has quit [Ping timeout: 245 seconds]
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 265 seconds]
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
Catie` is now known as Catie
Catie has quit [Changing host]
Catie has joined #commonlisp
rkazak has joined #commonlisp
treflip has joined #commonlisp
JuanDaugherty has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
rkazak has joined #commonlisp
JuanDaugherty has quit [Quit: JuanDaugherty]
zwr has quit [Ping timeout: 264 seconds]
rkazak has quit [Ping timeout: 246 seconds]
Demosthe1ex has joined #commonlisp
Demosthenex has quit [Ping timeout: 248 seconds]
mala has quit [Read error: Connection reset by peer]
mala has joined #commonlisp
AetherWind has joined #commonlisp
zwr has joined #commonlisp
Demosthenex has joined #commonlisp
shka has joined #commonlisp
jonatack has joined #commonlisp
Demosthe1ex has quit [Ping timeout: 260 seconds]
mishoo has joined #commonlisp
treflip has quit [Ping timeout: 272 seconds]
jonatack has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
rkazak has quit [Ping timeout: 248 seconds]
markb1 has quit [Read error: Connection reset by peer]
amb007 has quit [Ping timeout: 248 seconds]
pve has joined #commonlisp
amb007 has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
pkal has quit [Read error: Connection reset by peer]
pkal has joined #commonlisp
markb1 has joined #commonlisp
wacki has joined #commonlisp
hineios23 has quit [Quit: The Lounge - https://thelounge.chat]
rkazak has joined #commonlisp
hineios23 has joined #commonlisp
AetherWi1d has joined #commonlisp
AetherWind has quit [Ping timeout: 252 seconds]
AetherWind has joined #commonlisp
markb1 has quit [Read error: Connection reset by peer]
AetherWind has quit [Quit: Lost terminal]
shka has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 244 seconds]
hineios23 has quit [Quit: The Lounge - https://thelounge.chat]
hineios23 has joined #commonlisp
Guest7416 has joined #commonlisp
markb1 has joined #commonlisp
Guest7416 has quit [Client Quit]
Guest5005 has joined #commonlisp
Guest5005 has quit [Client Quit]
user5 has joined #commonlisp
user5 has quit [Client Quit]
Guest1182 has joined #commonlisp
Guest1182 has quit [Quit: WeeChat 4.4.3]
Guest2711 has joined #commonlisp
rkazak has joined #commonlisp
jonatack has joined #commonlisp
mishoo has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 252 seconds]
dino_tutter has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
amb007 has joined #commonlisp
random-nick has joined #commonlisp
rkazak has joined #commonlisp
random-nick has quit [Ping timeout: 252 seconds]
AetherWi1d has quit [Quit: leaving]
rkazak has quit [Ping timeout: 248 seconds]
jonatack has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
AetherWind has joined #commonlisp
dilaver_ has quit [Quit: The Lounge - https://thelounge.chat]
rkazak has quit [Ping timeout: 252 seconds]
Guest2711 has quit [Quit: WeeChat 4.4.3]
Guest3230 has joined #commonlisp
vardhan has joined #commonlisp
Guest3230 has quit [Client Quit]
Guest9190 has joined #commonlisp
Guest9190 has quit [Client Quit]
Guest3483 has joined #commonlisp
Guest3483 has quit [Client Quit]
Guest2690 has joined #commonlisp
rkazak has joined #commonlisp
chomwitt has joined #commonlisp
chomwitt has quit [Ping timeout: 245 seconds]
Guest2690 has quit [Quit: WeeChat 4.4.3]
Guest2068 has joined #commonlisp
Guest2068 has quit [Client Quit]
Guest9691 has joined #commonlisp
Guest9691 has quit [Quit: WeeChat 4.4.3]
rkazak has quit [Ping timeout: 245 seconds]
mwnaylor has joined #commonlisp
yitzi has joined #commonlisp
random-nick has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
chum-cha has joined #commonlisp
cryptk has quit [Ping timeout: 265 seconds]
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chum-cha has quit [Changing host]
chum-cha has joined #commonlisp
rkazak has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
amb007 has joined #commonlisp
jonatack has joined #commonlisp
wacki has joined #commonlisp
Guest7236 has joined #commonlisp
mishoo has joined #commonlisp
Guest7236 has quit [Quit: WeeChat 4.4.3]
Guest3881 has joined #commonlisp
Guest3881 has quit [Client Quit]
rkazak has quit [Ping timeout: 265 seconds]
yitzi has quit [Ping timeout: 246 seconds]
<ixelp> Revised Splatmaps - YouTube
rodrigo-` has quit [Remote host closed the connection]
rodrigo-morales has joined #commonlisp
mgl_ has quit [Ping timeout: 244 seconds]
shawnw has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
Guest7173 has joined #commonlisp
Guest7173 has quit [Client Quit]
user_ has joined #commonlisp
user_ has quit [Client Quit]
Guest311 has joined #commonlisp
Guest311 has quit [Client Quit]
Guest8420 has joined #commonlisp
amb007 has quit [Remote host closed the connection]
alcor has joined #commonlisp
chum-cha has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
<beach> Impressive!
rkazak has quit [Ping timeout: 244 seconds]
cage has joined #commonlisp
cage has quit [Excess Flood]
cage has joined #commonlisp
kevingal has joined #commonlisp
kpg has joined #commonlisp
lovesan has joined #commonlisp
lovesan has quit [Client Quit]
rkazak has joined #commonlisp
akoana has joined #commonlisp
yitzi has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 245 seconds]
markb1 has joined #commonlisp
rkazak has joined #commonlisp
shawnw has joined #commonlisp
vardhan has quit [Ping timeout: 244 seconds]
brokkoli_origin has quit [Ping timeout: 248 seconds]
gooba has quit [Remote host closed the connection]
gooba has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
brokkoli_origin has joined #commonlisp
akoana has quit [Quit: leaving]
shawnw has quit [Ping timeout: 248 seconds]
Alfr has quit [Quit: Leaving]
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #commonlisp
Alfr has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
wacki has joined #commonlisp
yitzi has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
troojg has joined #commonlisp
troojg has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 265 seconds]
AetherWind has quit [Quit: leaving]
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
yitzi has joined #commonlisp
<NotThatRPG> beach: Conjecture: the flexibility of lisp syntax means that it's harder to capture the patterns of refactoring syntactically, which is what most existing IDEs do.
LispTyro has joined #commonlisp
rkazak has joined #commonlisp
<NotThatRPG> beach: Similarly the fact that lisp ingests s-expressions that are in a sense "pre-parsed" means that we have structures in which metadata such as comments are extra-syntactic in a way they are not in conventional programming languages.
<pranav> NotThatRPG: The reader probably can access the comments written using the #|...|# reader macro.
<NotThatRPG> pranav: True. Good point. I should look deeper into the structure of the reader as specified. I don't actually understand fully where comments are "lost."
yitzi has quit [Ping timeout: 252 seconds]
<jackdaniel> a character macro for ; just ignores the rest of the line and proceeds from the next one
<jackdaniel> (as in - nothing really magical is going on)
<NotThatRPG> AFAIK there is no way to recover comments from the ANSI specified reader API. I suppose one could wrap read in something that extracts the unread, but that would be at the least messy.
<jackdaniel> I don't think that custom reader macros are worth handling specially by the editor; you can model your reader to read xml or to compute fibbonaci numbers if you really want to, so fancy stuff goes beyond the program representation
<pranav> I'm curious why the semicolon syntax is listed under the section on Standard Macro Characters in CLHS.
<pranav> Is semicolon (without sharpsign) a macro character?
<jackdaniel> yes
<jackdaniel> ( is also a macro character
<jackdaniel> sharpsign reader macros are verbose to signify that they are reader macros while normal syntax is deemphasized to avoid clutter
<pranav> Oh, right, Yes.
<pranav> Thanks
<jackdaniel> NotThatRPG: if the implementation allows you to replace the character macro #\; then you may simply register commented lines in some structure
<jackdaniel> and then proceed to do nothing :)
<jackdaniel> what I'm trying to say is that the reader is /means/ to implement common lisp syntax, not something that defines common lisp syntax
<jackdaniel> (and that's an opinion, there's nothing technical that would make the opposite stance invalid)
<NotThatRPG> Looking at the ANSI spec, I'm not finding a clear statement about whether the macro for semicolon may be replaceable, must be replaceable or must not be replaceable. Probably I am not looking in the right place.
<gilberth> There are no restrictions. You can install your own reader macro on any character you wish.
random-nick has quit [Remote host closed the connection]
random-nick has joined #commonlisp
<bike> you can always restore a standard readtable with copy-readtable anyway
<gilberth> ,(progn (set-macro-character #\; (lambda (s c) :semicolon)) (read-from-string "(foo ;bar)"))
<ixelp> ;Compiler warnings : ↩ ; In an anonymous lambda form: Unused lexical variable C ↩ ↩ ; In an anonymous lambda form: Unused lexical variable S ↩ => (FOO :SEMICOLON BAR); 10
<bike> 2.1.1.3: The initial readtable is the readtable that is the current readtable at the time when the Lisp image starts. At that time, it conforms to standard syntax. The initial readtable is distinct from the standard readtable. It is permissible for a conforming program to modify the initial readtable.
random-nick has quit [Quit: quit]
random-nick has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
yitzi has joined #commonlisp
<beach> NotThatRPG: This is why we want to include a compiler, so that we can determine the role of each symbol.
<beach> NotThatRPG: And Eclector can indeed read and preserve things like comments.
<NotThatRPG> gilberth: Thanks!
amb007 has quit [Ping timeout: 276 seconds]
amb007 has joined #commonlisp
mi6x3m has joined #commonlisp
<mi6x3m> hey, is it possible to get a plist string keyed value with getf?
<bike> no, getf always uses eq.
<mi6x3m> damn
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rkazak has joined #commonlisp
<aeth> mi6x3m: you can try alexandria:doplist with early exit
<aeth> (alexandria:doplist (key val '(:foo 42 :bar 43 :baz 44)) (when (eql key :bar) (return val))) => 43
<aeth> it's NIL if the early return is never used
<jackdaniel> or (second (member string list :test #'string=))
<jackdaniel> (defun gets (string list) ,*)
<aeth> (alexandria:doplist (key val plist) (when (string= key string) (return val)))
<mi6x3m> thanks aeth !
<mi6x3m> looks good
<jackdaniel> well, member does not distinguish between keys and values, so forget what I've said :)
<aeth> easiest way to do it with built-ins might be to convert plists to alists and then test the car
<aeth> but this will cons
<jackdaniel> (loop for (key val) on list by #'cddr when (equal key string) do (return val))
brokkoli_origin has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 248 seconds]
attila_lendvai has joined #commonlisp
<aeth> the difference between LOOP and DOPLIST is that LOOP tolerates malformed plists
<aeth> although the early return may make doplist do so if a match is found
<aeth> depends on its implementation
<aeth> in particular, the danger is with ,(loop :for (key val) :on (list :not-a-match-key 42 :your-match-key) :by #'cddr :do (format t "~A ~A~%" key val))
<ixelp> (loop :for (key val) :on (list :not-a-match-key 42 :your-match-key) :by #'cddr :do (format t "~A ~A~%" key val)) NOT-A-MATCH-KEY 42 ↩ YOUR-MATCH-KEY NIL ↩ => NIL
<aeth> LOOP destructuring isn't like DESTRUCTURING-BIND and will insert NILs instead of erroring.
<aeth> Random insertion of NILs is the most frustrating part of a relatively large (> 10,000 line) program because it could've come from anywhere.
<aeth> And my doplist as specified will return NIL if there's no match, but you can make it return whatever you want by default.
brokkoli_origin has joined #commonlisp
wacki has quit [Read error: Connection reset by peer]
attila_lendvai has quit [Ping timeout: 248 seconds]
mgl_ has joined #commonlisp
wacki has joined #commonlisp
mishoo has quit [Ping timeout: 248 seconds]
attila_lendvai has joined #commonlisp
rkazak has joined #commonlisp
simendsjo has joined #commonlisp
cage has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 265 seconds]
attila_lendvai_ has joined #commonlisp
attila_lendvai has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 248 seconds]
notzmv has quit [Ping timeout: 265 seconds]
attila_lendvai_ has quit [Read error: Connection reset by peer]
attila_lendvai_ has joined #commonlisp
attila_lendvai_ has quit [Read error: Connection reset by peer]
Gleefre has joined #commonlisp
amb007 has quit [Ping timeout: 276 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
aciep` has joined #commonlisp
aciep` has quit [Client Quit]
c-clop has joined #commonlisp
c-clop has left #commonlisp [#commonlisp]
c-clop has joined #commonlisp
mi6x3m has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
c-clop has quit [Changing host]
c-clop has joined #commonlisp
amb007 has joined #commonlisp
Guest8420 has quit [Ping timeout: 255 seconds]
mgl_ has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 246 seconds]
mwnaylor has quit [Ping timeout: 260 seconds]
Everything has joined #commonlisp
amb007 has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
mwnaylor has joined #commonlisp
simendsjo has quit [Ping timeout: 265 seconds]
chomwitt has joined #commonlisp
rkazak has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
alcor has quit [Remote host closed the connection]
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has quit [Ping timeout: 244 seconds]
notzmv has joined #commonlisp
pve has quit [Quit: leaving]
amb007 has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
c-clop has quit [Ping timeout: 252 seconds]
kevingal has quit [Ping timeout: 252 seconds]
terrorjack4 has quit [Quit: The Lounge - https://thelounge.chat]
Everything has quit [Ping timeout: 265 seconds]
terrorjack4 has joined #commonlisp
Everything has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]