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/>
Guest5386 has joined #commonlisp
usagi_mimi has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
decweb has joined #commonlisp
istewart has joined #commonlisp
bitmapper has joined #commonlisp
Oddity has quit [Ping timeout: 268 seconds]
malaclyps has joined #commonlisp
mala has quit [Ping timeout: 265 seconds]
Guest5386 is now known as paulo
paulo is now known as prb
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
soweli_iki has joined #commonlisp
eddof13 has joined #commonlisp
edgar-rft has joined #commonlisp
phantomics__ has joined #commonlisp
snoreboar9 has joined #commonlisp
arpunk_ has joined #commonlisp
simendsjo_ has joined #commonlisp
jtbx_ has joined #commonlisp
jonlevin_ has joined #commonlisp
greenfork_ has joined #commonlisp
artyn_ has joined #commonlisp
beach` has joined #commonlisp
AetherWind has joined #commonlisp
Demosthe1ex has joined #commonlisp
Catie` has joined #commonlisp
Luna_Rabbit has joined #commonlisp
Perflosopher0387 has joined #commonlisp
arpunk has quit [Ping timeout: 276 seconds]
awlygj has quit [Ping timeout: 276 seconds]
Demosthenex has quit [Read error: Connection reset by peer]
edgar-rft` has quit [Ping timeout: 276 seconds]
Fade has quit [Ping timeout: 276 seconds]
Perflosopher038 has quit [Ping timeout: 276 seconds]
jtbx has quit [Ping timeout: 276 seconds]
artyn has quit [Ping timeout: 276 seconds]
greenfork has quit [Ping timeout: 276 seconds]
jonlevin has quit [Ping timeout: 276 seconds]
khinsen has quit [Ping timeout: 276 seconds]
Eoco has quit [Ping timeout: 276 seconds]
artyn_ is now known as artyn
greenfork_ is now known as greenfork
jtbx_ is now known as jtbx
jonlevin_ is now known as jonlevin
snoreboar has quit [Read error: Connection reset by peer]
snoreboar9 is now known as snoreboar
Perflosopher0387 is now known as Perflosopher038
simendsjo has quit [Read error: Connection reset by peer]
simendsjo_ is now known as simendsjo
Catie has quit [Read error: Connection reset by peer]
skeemer has quit [Ping timeout: 276 seconds]
random-nick has quit [Ping timeout: 276 seconds]
Moon_Rabbit has quit [Ping timeout: 276 seconds]
phantomics_ has quit [Ping timeout: 276 seconds]
beach has quit [Ping timeout: 276 seconds]
random-nick has joined #commonlisp
skeemer has joined #commonlisp
Fade has joined #commonlisp
Eoco has joined #commonlisp
usagi_mimi has quit [Ping timeout: 252 seconds]
waleee has quit [Ping timeout: 244 seconds]
decweb has quit [Quit: Konversation terminated!]
eddof13 has quit [Quit: eddof13]
JuanDaugherty has joined #commonlisp
mgxm has joined #commonlisp
decweb has joined #commonlisp
usagi_mimi has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
veqq has joined #commonlisp
surabax has quit [Quit: Leaving]
<veqq> Is it flatout impossible to set up a macro which transforms a symbol into an incomplete s expression so you could e.g. call "cat )"?
random-nick has quit [Ping timeout: 244 seconds]
<bike> veqq: macros operate after the textual level. so there are no s expressions left, you're just dealing with lisp objects like lists.
<bike> veqq: maybe someone could suggest a workaround for whatever you want to do in particular, though, if you explain a bit?
<veqq> No use case, I was just wondering if it was possible, tried some things out with no success and then asked
<veqq> Ticl lets you do beta reductions like this, iirc
<veqq> Of course it doesn't have non-space seperators. I was curious if we can break the s-expr that much
<veqq> Naive, non-working example: (define-symbol-macro cat "(+ 1 2") ; no closing parentheses on the (+ 1 2
decweb has joined #commonlisp
<veqq> Like, using def-symb-mac, you can avoid needing to wrap the func to call it. But could you wrap only one side?
<aeth> You can have a macro that works on strings, and you can also have a macro that does things to symbols using SYMBOL-NAME to get the underlying string for the symbol
ixelp has quit [Ping timeout: 252 seconds]
<aeth> if you have two string fragments that you want to put together, like "(+ 1 2" and ")" you can do that in a macro and then EVAL "(+ 1 2)"
<aeth> it will, however, not have a local lexical environment available to it, so you wouldn't be able to (let ((x 42) (y 43)) (foo "(+ x y)")) or (let ... (foo "(+ x y" ")")) or whatever.
gorignak has quit [Quit: quit]
ixelp has joined #commonlisp
<aeth> This is just regular macro stuff, not symbol macro stuff
<aeth> This is also assuming string literals, not nonconstant variables referring to string values.
<bike> lisp macros don't work on text. you can replace a symbol with another object (symbol macro) or a list with another object (regular macro) and that's it.
<bike> of course you could do something like (defmacro cat (&rest whatever) `(+ 1 2 ,@whatever)), and then (cat 7 8) = 18, (cat) = 3. but that's about it
JuanDaugherty has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
decweb has quit [Quit: Konversation terminated!]
<aeth> bike: huh? Lisp macros _can_ work on text as long as it's in a literal string, e.g. FORMAT... This then means the macro is limited by PARSE-INTEGER, READ-FROM-STRING, etc., etc.
<veqq> Thank you!
<aeth> Or e.g. (concatenate 'string (symbol-name 'cat) " )")
<aeth> ...for treating symbols as strings... it's just... not fully powerful? Because (let ((x 42)) (eval '(list x))) isn't going to work.
<aeth> no access to the lexical environment there
<aeth> To be clear, I mean e.g. ,(defmacro foo (x) (parse-integer x)) ,(foo "42")
<ixelp> (defmacro foo (x) (parse-integer x)) => FOO, but (foo "42") => 42
usagi_mimi has quit [Quit: WeeChat 4.5.2]
<bike> aeth: they can work with text literals, but not the source code text. you know this already. and you can't do like C macros that operate in terms of tokens so you can have a macro expand to do{ or whatever, which is what veqq was describing.
<veqq> Solution: have the program read its source code, transforming the token in source (saving it to a new file, then reading that file...) :D but doesn't work in repl/image so meh
rgherdt has joined #commonlisp
gorignak has joined #commonlisp
beach` is now known as beach
<beach> PuercoPop: I was aware of that. I'll think about possibly changing it. But I can't change the names whenever someone else uses it for something else.
zwr has quit [Ping timeout: 244 seconds]
zwr has joined #commonlisp
skeemer has quit [Ping timeout: 268 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
veqq has quit [Quit: veqq]
erru has joined #commonlisp
istewart has quit [Quit: Konversation terminated!]
pve has joined #commonlisp
tjbw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbw has joined #commonlisp
Guest47 has joined #commonlisp
<beach> I extended the entry for ctype and I added an entry for Common macros in: http://metamodular.com/SICL-related-libraries/sicl-related-libraries.html
<ixelp> SICL-related libraries
<beach> There are probably less than 20 more to add. At least I hope so.
King_julian has joined #commonlisp
shka has joined #commonlisp
mgl has joined #commonlisp
mishoo has joined #commonlisp
apac has joined #commonlisp
bpanthi977 has quit [Ping timeout: 268 seconds]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 245 seconds]
apac has quit [Ping timeout: 265 seconds]
GalaxyNova has quit [Quit: :3]
GalaxyNova has joined #commonlisp
gnoo has quit [Ping timeout: 252 seconds]
gnoo has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 244 seconds]
Lord_of_Life_ is now known as Lord_of_Life
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 276 seconds]
skeemer has joined #commonlisp
skeemer has quit [Client Quit]
kevingal has joined #commonlisp
sixfourtwelve has joined #commonlisp
GalaxyNova has quit [Read error: Connection reset by peer]
kevingal has quit [Remote host closed the connection]
kevingal has joined #commonlisp
Guest47 has quit [Quit: Textual IRC Client: www.textualapp.com]
TMA has quit [Ping timeout: 244 seconds]
gnoo has quit [Ping timeout: 276 seconds]
gnoo has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
Guest47 has joined #commonlisp
gnoo has quit [Ping timeout: 248 seconds]
gnoo has joined #commonlisp
malaclyps has quit [Read error: Connection reset by peer]
mala has joined #commonlisp
wacki has joined #commonlisp
<beach> I added Tazivor, Trucler, and Clostrum to: http://metamodular.com/SICL-related-libraries/sicl-related-libraries.html
<ixelp> SICL-related libraries
random-nick has joined #commonlisp
cage has joined #commonlisp
<beach> The list of libraries is still not complete, but if anyone feels like helping out, there is still a lot of work to be done. In that case, talk to use on #sicl.
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 276 seconds]
Demosthe1ex is now known as Demosthenex
brokkoli_origin has quit [Ping timeout: 260 seconds]
<beach> s/use/us/
younder has quit [Ping timeout: 260 seconds]
brokkoli_origin has joined #commonlisp
reb has quit [Remote host closed the connection]
surabax has joined #commonlisp
surabax has quit [Changing host]
surabax has joined #commonlisp
jeffrey has joined #commonlisp
varjag has joined #commonlisp
decweb has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 252 seconds]
brokkoli_origin has joined #commonlisp
apac has joined #commonlisp
apac has quit [Ping timeout: 260 seconds]
apac has joined #commonlisp
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
shka has quit [Remote host closed the connection]
cage has quit [Remote host closed the connection]
TMA has joined #commonlisp
shka has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 248 seconds]
bpanthi977 has joined #commonlisp
<mishoo> “<nil> 'values' is probably not hard to add to most Lisps” — blessed be thy words, it only took a few hours :)
<ixelp> ECL running in a browser (PoC)
bpanthi977 has quit [Ping timeout: 260 seconds]
<mishoo> was curious to see it, if it's still available somewhere.. google didn't help much
yitzi has joined #commonlisp
ixelp has quit [Ping timeout: 252 seconds]
bpanthi977 has joined #commonlisp
ixelp has joined #commonlisp
erru has quit [Remote host closed the connection]
cage has joined #commonlisp
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
bpanthi977 has quit [Ping timeout: 276 seconds]
<beach> mishoo: How did you decide to store multiple return values for the caller to access?
<mishoo> the first one stays on the stack, so most functions would work untouched; other values are stored in a VM property (an array)
<beach> I see. No registers?
<mishoo> functions that deal with multiple values, such as multiple-value-list, would check that array
<mishoo> you could call it a register, I guess. but it's a JS array (I'm not talking to the bare metal here..)
<beach> Oh! No wonder it was "not too hard".
King_julian has quit [Ping timeout: 276 seconds]
<mishoo> yeah :)
<beach> Otherwise, performance would be a concern.
<mishoo> indeed. I rely on a lot of stuff that the underlying “hardware” provides :)
<mishoo> GC too.. I need not bother with it, JS does it
fart_cat has quit [Remote host closed the connection]
<mishoo> that's why I was curious to see how ECL compares, being compiled to webasm, I guess it should be much faster
apac has quit [Ping timeout: 272 seconds]
<ixelp> Web Embeddable Common Lisp
<jackdaniel> try (ed "wecl.lisp") and look for gl tests etc
Guest47 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jackdaniel> but performance won't be amazing for functions defined there (yet), because it uses bytecodes compiler. precompiled stuff is much faster (and optimized)
* jackdaniel is afk
TactfulCitrus has quit [Ping timeout: 244 seconds]
Guest47 has joined #commonlisp
mwnaylor has quit [Ping timeout: 248 seconds]
<mishoo> thanks
JuanDaugherty has joined #commonlisp
dlowe has joined #commonlisp
NotThatRPG has joined #commonlisp
dlowe has quit [Remote host closed the connection]
voidness has joined #commonlisp
zxcvz has joined #commonlisp
eddof13 has joined #commonlisp
mgl has quit [Ping timeout: 276 seconds]
NotThatRPG has quit [Ping timeout: 245 seconds]
bpanthi977 has joined #commonlisp
eddof13 has quit [Quit: eddof13]
Fade has quit [Changing host]
Fade has joined #commonlisp
Guest47 has quit [Quit: Textual IRC Client: www.textualapp.com]
rakka has quit [Remote host closed the connection]
rakka has joined #commonlisp
apac has joined #commonlisp
eddof13 has joined #commonlisp
treflip has joined #commonlisp
apac has quit [Remote host closed the connection]
apac has joined #commonlisp
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
apac has quit [Ping timeout: 265 seconds]
voidness has quit [Remote host closed the connection]
voidness has joined #commonlisp
voidness has left #commonlisp [#commonlisp]
NotThatRPG has joined #commonlisp
NotThatRPG has quit [Ping timeout: 252 seconds]
robin has joined #commonlisp
skin has joined #commonlisp
JuanDaugherty is now known as ColinRobinson
reb has joined #commonlisp
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 245 seconds]
voidness has joined #commonlisp
fart_cat has joined #commonlisp
Guest47 has joined #commonlisp
wacki has quit [Ping timeout: 252 seconds]
cosimone has joined #commonlisp
wacki has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
jeffrey has quit [Quit: jeffrey]
johnjaye has quit [Ping timeout: 252 seconds]
johnjaye has joined #commonlisp
fart_cat has quit [Remote host closed the connection]
jeffrey has joined #commonlisp
mala has quit [Read error: Connection reset by peer]
mala has joined #commonlisp
eddof13 has quit [Quit: eddof13]
voidness has quit [Remote host closed the connection]
younder has joined #commonlisp
cosimone has quit [Remote host closed the connection]
erru has joined #commonlisp
wbooze has quit [Read error: Connection reset by peer]
fart_cat has joined #commonlisp
wbooze has joined #commonlisp
treflip` has quit [Ping timeout: 248 seconds]
fart_cat has quit [Remote host closed the connection]
apac has joined #commonlisp
rendar has quit [Ping timeout: 276 seconds]
NotThatRPG has joined #commonlisp
fart_cat has joined #commonlisp
jeffrey has quit [Quit: jeffrey]
jeffrey has joined #commonlisp
Guest47 has quit [Quit: Textual IRC Client: www.textualapp.com]
bpanthi977 has quit [Ping timeout: 260 seconds]
deadmarshal_ has quit [Quit: IRCNow and Forever!]
skeemer has joined #commonlisp
<skeemer> is there anything in common lisp to do packet crafting like "scapy" in python ?
<skeemer> or anything to play with raw sockets
<erru> there is usocket. is that helpful? https://github.com/usocket/usocket
<ixelp> GitHub - usocket/usocket: Universal socket library for Common Lisp
<skeemer> erru: ohhh hold on... it is not well documented, i don't see any examples here
<skeemer> also does this allow to sniff/capture traffic?
<skeemer> thanks for the recommendation anyway
cage has quit [Quit: rcirc on GNU Emacs 30.1]
<erru> idk, never used it myself. yet... im just getting started learning common lisp myself
<kagevf> skeemer: checkout plokami to monitor a port
<kagevf> I used it Windows ... probably works even better on Linux
<kagevf> *on Windows
fart_cat has quit [Remote host closed the connection]
deadmarshal_ has joined #commonlisp
fart_cat has joined #commonlisp
mishoo has quit [Ping timeout: 276 seconds]
varjag has joined #commonlisp
NotThatRPG has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Client Quit]
bpanthi977 has joined #commonlisp
apac has quit [Ping timeout: 265 seconds]
veqq has joined #commonlisp
rendar has joined #commonlisp
apac has joined #commonlisp
apac has quit [Ping timeout: 252 seconds]
Alfr is now known as Guest2460
Guest2460 has quit [Killed (tungsten.libera.chat (Nickname regained by services))]
Alfr has joined #commonlisp
brokkoli_origin has quit [Remote host closed the connection]
skin has quit [Remote host closed the connection]
LainIwakura has joined #commonlisp
brokkoli_origin has joined #commonlisp
LainIwakura has quit [Ping timeout: 240 seconds]
jeffrey has quit [Quit: jeffrey]
wacki has quit [Quit: Leaving.]
istewart has joined #commonlisp
pve has quit [Quit: leaving]
jfb4 has left #commonlisp [ERC 5.6.0.30.1 (IRC client for GNU Emacs 30.1)]
LainIwakura has joined #commonlisp
Ruby has quit [Quit: ZNC - https://znc.in]
cdegroot has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cdegroot has joined #commonlisp
Ruby has joined #commonlisp
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.2)]
LainIwakura41 has joined #commonlisp
LainIwakura has quit [Ping timeout: 240 seconds]
rgherdt has quit [Quit: Leaving]
decweb has quit [Remote host closed the connection]
decweb has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
eddof13 has joined #commonlisp
brainfunnel has joined #commonlisp
eddof13 has quit [Client Quit]
reb` has joined #commonlisp
reb has quit [Read error: Connection reset by peer]
jeffrey has joined #commonlisp
jeffrey has quit [Quit: jeffrey]
decweb has quit [Ping timeout: 252 seconds]
akoana has joined #commonlisp
jeffrey has joined #commonlisp
Luna_Rabbit has quit [Quit: Do you believe in magic?]
Moon_Rabbit has joined #commonlisp
jeffrey has quit [Quit: jeffrey]
erru has quit [Remote host closed the connection]
bpanthi977 has quit [Ping timeout: 276 seconds]
bpanthi977 has joined #commonlisp