yitzi has quit [Read error: Connection reset by peer]
pfd has quit [Ping timeout: 256 seconds]
decweb has joined #commonlisp
<yacin>
i have a systemd service that runs a lisp image that was started with ASDF:LOAD-SYSTEM and calling its RUN function. if i git pull some new changes and have access to swank, how can i compile any of the new behavior without having to restart the systemd service?
<yacin>
i would've assumed ASDF:COMPILE-SYSTEM, but the docs say
<yacin>
> This will make sure all the files in the system are compiled, but not necessarily load any of them in the current image; on most systems, it will not load all compiled files in the current image.
<yacin>
which doesn't suggest it'll update the newly compiled code
<yacin>
i'm sure i could just manually compile them with slime to the swank server, but i'd like to work with my current git workflow if possible
mwnaylor has joined #commonlisp
oneeyedalien has joined #commonlisp
kamafam has joined #commonlisp
lucasta has joined #commonlisp
oneeyedalien has quit [Ping timeout: 252 seconds]
awlygj has quit [Ping timeout: 248 seconds]
awlygj has joined #commonlisp
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rtypo has quit [Read error: Connection reset by peer]
<dlowe>
ciel looks like a neat bundle2
mgl has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
varjag has quit [Quit: ERC (IRC client for Emacs 27.1)]
amb007 has quit [Ping timeout: 265 seconds]
oneeyedalien has joined #commonlisp
rogersm has joined #commonlisp
NotThatRPG has joined #commonlisp
amb007 has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mgl_ has joined #commonlisp
mgl__ has joined #commonlisp
kamafam has quit [Read error: Connection reset by peer]
mgl has quit [Ping timeout: 252 seconds]
mgl_ has quit [Ping timeout: 246 seconds]
wacki has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
pranav has quit [Ping timeout: 244 seconds]
dino_tutter has quit [Remote host closed the connection]
pranav has joined #commonlisp
yitzi has joined #commonlisp
varjag has joined #commonlisp
dino_tutter has joined #commonlisp
mwnaylor has quit [Ping timeout: 276 seconds]
<jasom>
I think the idea of shipping as a standalone binary makes some sense; makes it stand out a bit from things like rutils
<ixelp>
CIEL/ciel.asd at master · ciel-lang/CIEL · GitHub
mgl__ has quit [Ping timeout: 246 seconds]
<yacin>
if i was newer or coming from clojure, i'd be happy to have arrow-macros and alexandria and friends included from the get go
lucasta has quit [Remote host closed the connection]
<yacin>
loved those arrows in clojure but when i started writing more common lisp i knew someone probably had implemented those (: but maybe newbies wouldn't think that
_cymew_ has joined #commonlisp
<jasom>
judging by the example, I'm guessing the -> is a sequential function call with optional currying?
<yacin>
it's for threading the results into other function calls, so: (->> "1,2,3" (str:split ",") (mapcar #'parse-integer)) would return (1 2 3)
<yacin>
->> threads to the last parameter, -> to the first, and there's a "wand" -<> that let's you put <> in the position you want the previous return value to thread into
<yacin>
including :PARSE-FLOAT also seems like a no brainer
mwnaylor has joined #commonlisp
chrcav has quit [Quit: Lost terminal]
<yitzi>
I'd love to see example that actually justifies arrow macros. Your example is basically just (mapcar #'parse-integer (split-sequence #\, "1,2,3"))
<jasom>
yitzi: The argument (not sure how much I agree) is that when you have enough to span multiple lines, the order of function calls is top-to-bottom rather than inside-out
<yitzi>
ASDF does the same kind of things internally and it makes it very difficult to understand the intent on first reading. It borders on defense through obfuscation.
<yacin>
eh, with enough of those i think it looks cleaner
<yacin>
but yeah, definitely a style thing more than anything
<jasom>
Object-orieted code is often naturally threaded like this, since the first argument to any method is syntactically distinct: foo.bar().baz.quux()
<jasom>
So if you cut your teeth on java &c. it also may look more natural
<yitzi>
Yeah, except CL is multiple dispatch so foo.bar.whatever isn't always the norm.
<mwnaylor>
I got spoiled (damaged) by the Clojure arrow/threading macros. They might be easier to read, but can be harder to debug.
<Shinmera>
clearly what we need is <a,b>.foo(c) syntax to handle the multiple dispatch case
jrx has joined #commonlisp
<jasom>
#< is already taken, maybe #{a,b}.foo(c)
<jasom>
And if we want the arguments applied to the end instead of the beginning then #1{a,b}.foo(c)
<Shinmera>
I feel like we don't have enough syntax yet. How about #{?,a,b}::foo(c)
<dlowe>
Maybe we use a normal macro like (channel ((a (foo)) (b (bar)) (c (baz a b))))
<dlowe>
oh wait that's let*
<Shinmera>
it has too many parens, too. are you crazy?
yitzi has quit [Remote host closed the connection]
ArtemZ has quit [Read error: Connection reset by peer]
ArtemZ has joined #commonlisp
JuanDaugherty has joined #commonlisp
yottabyte has joined #commonlisp
NotThatRPG has joined #commonlisp
mgl__ has joined #commonlisp
Akbar-Birbal has left #commonlisp [Error from remote client]
ArtemZ has quit [Read error: Connection reset by peer]
_whitelogger has quit [Ping timeout: 252 seconds]
_whitelogger has joined #commonlisp
<aeth>
To be clear, it makes it look like (multiple-value-call #'fun ...) instead of (fun ...) so it adds quite a bit.
<bike>
i don't think we're adding syntax unironically
<aeth>
Anyone can do it, reader macros exist, the Common Lisp Police can't stop you.
NotThatRPG has quit [Ping timeout: 246 seconds]
<aeth>
simplifying (multiple-value-call #'...) to #&(...) or something
Th30n has quit [Ping timeout: 265 seconds]
<dlowe>
could trim it down a bit by adding (function arg) to each arg
cmack has joined #commonlisp
amb007 has quit [Ping timeout: 276 seconds]
phantomics_ has joined #commonlisp
NotThatRPG has joined #commonlisp
<aeth>
dlowe: I assume in that case you're talking about compose/arrows, and yes, that could also get more concise if a macro and not a variadic function, good observation
<aeth>
although now you can't use local lambdas in the variable namespace
phantomics has quit [Ping timeout: 260 seconds]
netdoll has joined #commonlisp
varjag has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theBlackDragon has quit [Ping timeout: 252 seconds]
theBlackDragon has joined #commonlisp
JuanDaugherty has quit [Quit: JuanDaugherty]
troojg has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
_cymew_ has quit [Ping timeout: 248 seconds]
JuanDaugherty has joined #commonlisp
NotThatRPG has joined #commonlisp
oneeyedalien has quit [Quit: Leaving]
akoana has joined #commonlisp
attila_lendvai has joined #commonlisp
cage has quit [Remote host closed the connection]
jrx has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
yitzi has joined #commonlisp
cmack has quit [Ping timeout: 276 seconds]
yitzi has quit [Ping timeout: 248 seconds]
akoana has quit [Quit: leaving]
ArtemZ_ has quit [Read error: Connection reset by peer]
ym has quit [Ping timeout: 260 seconds]
alcor has quit [Ping timeout: 252 seconds]
szkl has quit [Quit: Connection closed for inactivity]
ArtemZ has joined #commonlisp
Guest53 has joined #commonlisp
danieli has quit [Quit: Alpine Linux, the security-oriented, lightweight Linux distribution]
ArtemZ has quit [Read error: Connection reset by peer]
ArtemZ has joined #commonlisp
ArtemZ has quit [Read error: Connection reset by peer]
ArtemZ has joined #commonlisp
ArtemZ_ has joined #commonlisp
wacki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troojg has quit [Ping timeout: 260 seconds]
ArtemZ has quit [Ping timeout: 276 seconds]
attila_lendvai has quit [Ping timeout: 246 seconds]
screwlisp has joined #commonlisp
<screwlisp>
o/
uhuh has joined #commonlisp
varjag has quit [Ping timeout: 248 seconds]
<uhuh>
I want to call disassemble on a method I defined for a generic function. How can I refer to the specialized method? I think (disassemble #'fn) only gives me the dispatch code.
<screwlisp>
I'm not sure what compiler you're using.
<screwlisp>
Ah, nm I mistyped something
shka has quit [Ping timeout: 265 seconds]
<aeth>
I know you can get to it in the SLIME inspector in Emacs if you click around enough
<aeth>
unless that's also just the dispatch code only
<screwlisp>
Did you try calling the method once before attempting to disassemble it?
<uhuh>
screwlisp: I hadn't, trying to disassemble after calling the method yields a much longer result
<uhuh>
I can't see the annotations for function calls that I normally see if I disassemble the same code as a normal function though
<pranav>
Methods cannot be called/applied directly though—only through generic function dispatch.
alternateved has quit [Remote host closed the connection]