phoe changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <http://cliki.net/> <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.4.16, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
kajo has quit [Quit: From my rotting body, flowers shall grow and I am in them and that is eternity. -- E. M.]
abarbosa has joined #lisp
iovec has quit [Quit: Connection closed for inactivity]
Arcaelyx has quit [Read error: Connection reset by peer]
Kaisyu7 has quit [Quit: ERC (IRC client for Emacs 26.2)]
caltelt has joined #lisp
Kaisyu7 has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
<Josh_2> Okay I got ((lambda (x) (lambda (y) y) (* x x)) 6) how do I now add x and y :O
<no-defun-allowed> (funcall (funcall (lambda (x) (lambda (y) (+ x y))) 2) 3)
<Josh_2> I don't think am allowed to use funcall
<pjb> ((lambda (x) ((lambda (y) (+ x y)) (* x x))) 6) #| --> 42 |#
<pjb> Josh_2: write a macro!
<Josh_2> It's a question from PAIP
joast has quit [Quit: Leaving.]
<pjb> Josh_2: so what? You know lisp, use it to solve your questions!
keep_learning_M has joined #lisp
<Josh_2> The question isn't write Let*, although that is kewl, It's to convert a let* form into lambdas
<pjb> Yes. So you use macroexpand-1!
<pjb> (macroexpand-1 '(let* ((x 6)(y (* x x))) (+ x y))) -> ((lambda (y) (let* ((x 6)) (+ x y))) (* x x)) ; t
<pjb> (macroexpand-1 '(let* ((x 6)) (+ x y))) #| --> ((lambda (x) (let* nil (+ x y))) 6) ; t |#
<Josh_2> That's cheating xD
<pjb> (macroexpand-1 '(let* nil (+ x y))) #| --> ((lambda nil (+ x y))) ; t |#
<pjb> No, it's being smart.
<pjb> It's 2019, we have computers.
<Josh_2> xD
_leb has joined #lisp
<moldybits> y should be bound to (* x x)
<moldybits> Josh_2: x should be bound to 6. y should be bound to (* x x), where x is visible. (+ x y) should be evaluated where x and y are visible
Necktwi has quit [Ping timeout: 272 seconds]
<aeth> insert a bunch of prints (well, FORMATs) in the middle of your code so you can see where everything is at each step
gabbiel has joined #lisp
<gabbiel> does anyone know if I can get "Common Lisp the Language" in .info form?
orivej has joined #lisp
Necktwi has joined #lisp
Lycurgus has quit [Quit: Exeunt]
<gabbiel> hmm, what does lock free, thread safe queue mean?
<aeth> bt:with-lock-held isn't used, but you can still read/write from multiple threads (I'm guessing)
libre-man has quit [Ping timeout: 245 seconds]
<gabbiel> oh I see. I made my own queue implementation, but I never considered threading as I've never really played with that
sjl has joined #lisp
Arcaelyx has joined #lisp
Folkol has quit [Read error: Connection reset by peer]
Folkol has joined #lisp
moldybits has quit [Quit: WeeChat 2.4]
moldybits has joined #lisp
<drmeister> Hello lispers
<pjb> gabbiel: you need some atomic operation to implement a mutex-free queue…
<pjb> There's a :atomics system in quicklisp.
libre-man has joined #lisp
<pjb> My advice: rewrite it from scratch! (or send a big patch!)
<abarbosa> drmeister: o/
igemnace has joined #lisp
shifty has joined #lisp
<aeth> gabbiel: Generally, you don't have to think about it, you just pair it with a lock and expect the user to use bt:with-lock-held around it.
<drmeister> Hello abarbosa
<drmeister> Does anyone use 'fork' in their day jobs? I'm trying to figure out how to definitively tell if a forked child has crashed. In clasp we are building using 'fork' to compile-file source files and I need to figure out if a child has crashed in C++.
<drmeister> It's off topic - so we could take the discussion elsewhere.
<pjb> drmeister: you would establish a pipe between the monitored process and the monitoring process, you exchange 1-byte sized messages, and when you get a SIGPIPE, you know the remote process is dead.
lnostdal has quit [Ping timeout: 244 seconds]
<pjb> drmeister: if you need less precise monitoring, between a parent and a children, you can use wait/wait3/wait4/waitpid.
<drmeister> What do I exchange the 1-byte sized messages for?
<pjb> (and anyways, a parent should use one of those wait functions to reap the children so they don't become zombies).
<drmeister> I am using wait.
<pjb> drmeister: to detect whether you can send something on the pipe.
<pjb> The pipe let you monitor between sibbling or stranger processes.
<drmeister> I am using wait and monitoring what signals the children get. But I'm still seeing crashes where the child processes just sit there crashed.
<drmeister> So the pipe is for a heartbeat?
<pjb> Yes, and to monitor non-children.
<drmeister> Ok, I'll think on that. I was using select/read to try and read all of the output that the children were generating into the parent - but that turned into a disaster.
<drmeister> select said fds were ready to read and the read still blocked.
<saturn2> what do you mean by "sit there crashed"?
<saturn2> deadlocked?
<pjb> with wait you just need to be careful with the retur values and errors. Normally you will call wait once per children, but if a call fails or is interrupted for signals (to the parent), you will have to call wait more times.
<pjb> Perhaps you're not repeating wait when you should.
<drmeister> Then we figured out that gnu make uses a different strategy with -j<value> - they write into unlinked files and the parent keeps a copy of the fd for the unlinked file.
<pjb> drmeister: yes, this is why when monitoring, we use 1-byte messages. reading longuer messages will block.
<drmeister> saturn2: A forked clasp child crashes in the llvm code and it sits there using about 50% cpu and as far as I can tell does nothing useful.
<saturn2> maybe set a cpu time ulimit
<drmeister> I want to vacuum up all of the child's output (stdout and stderr - which it looks like I'm doing well now with the unlink'd files) into the parent AND I need to know when a child crashes in llvm (still a problem).
lnostdal has joined #lisp
paul0 has joined #lisp
<drmeister> pjb: I'll think on that.
<drmeister> But it's "pidgin Common Lisp" - I don't have much of Common Lisp up at this point so I rely on a lot of C++ code.
<drmeister> wait-for-child-to-exit checks return values and statuseses
X-Scale has quit [Ping timeout: 248 seconds]
<gabbiel> pjb: I'll probably just let the user rely on bt for exclusive access to the queue
<drmeister> I thought it would catch every problem a child could have but on macOS I could still see children crash and the parent wasn't aware.
X-Scale` has joined #lisp
<drmeister> We have made a lot of progress with Clasp - it is now failing less than 1% of ANSI tests.
X-Scale` is now known as X-Scale
<drmeister> I'm in the process of exposing debugging information using DWARF. So you will be able to debug compiled Clasp code using DWARF.
<aeth> any progress on issue #162 (CFFI Support)?
<drmeister> aeth: Is that a question for me?
<aeth> yes
<drmeister> Checking...
<drmeister> No - nobody has done anything with CFFI in a little while AFAIK.
<drmeister> We've been bringing a new compiler online that gives us much, much better source location information. It should help debug everything.
<aeth> In particular, there might be some interest in using Clasp or ECL with Godot via https://github.com/GodotNativeTools/godot_headers for the next Lisp game jams. I might do my own wrapper of the API. There already is one. https://github.com/borodust/bodge-godot
<drmeister> But we've been doing work to keep defcallback happy - so I'll run the tests once my build finishes.
<gabbiel> this discussion is relevant to me because I'm going to write a C interpreter and was wondering what would happen when the C program crashes
anewuser has joined #lisp
<drmeister> Godot is C++?
X-Scale` has joined #lisp
dddddd has quit [Remote host closed the connection]
X-Scale has quit [Ping timeout: 272 seconds]
X-Scale` is now known as X-Scale
<pjb> drmeister: you will need asynchronous I/O or threads to read both stdout and stderr otherwise you risk blocking in the parent.
zotan has quit [Ping timeout: 259 seconds]
zotan has joined #lisp
_whitelogger has joined #lisp
meepdeew has joined #lisp
joast has joined #lisp
meepdeew has quit [Ping timeout: 246 seconds]
milanj has quit [Quit: This computer has gone to sleep]
<drmeister> pjb: We switched to using unlink'd files - that's the approach gnu make uses when you specify -j<#>.
<drmeister> So we let the children finish writing into the files and then the parent reads the results out.
<drmeister> aeth: Thank you.
X-Scale` has joined #lisp
<ck_> hopefully that name is not an omen :)
<ck_> or, actually, I've never read the play. doesn't godot never arrive?
X-Scale has quit [Ping timeout: 244 seconds]
X-Scale` is now known as X-Scale
<beach> Good morning everyone!
<ck_> good morning
<ck_> I haven't been here in a long while. What has changed? Has Clasp been finished, can I compute a supermolecule a la carte with it already?
<beach> ck_: For Clasp-specific questions, there is now the #clasp channel too.
<ck_> noted, thank you
<drmeister> Software is never finished. :-)
<mfiano> If it ever seems as such, just incf your users
igemnace has quit [Ping timeout: 268 seconds]
igemnace has joined #lisp
<drmeister> I'm putting time into improving the debugging capabilities right now.
<ck_> Common Lisp seems pretty finished. Especially compared to newer languages. I could tell you some stories about clojure meetups...
<ck_> I see. From which side are you doing that? lldb or slime?
<aeth> Common Lisp is far from finished, they just added package local nicknames.
<beach> ck_: Common Lisp is not software. It is a specification.
<ck_> beach: realized in software. but I see your point.
<beach> ck_: But the realizations of it are not finished.
<beach> They evolve all the time.
<aeth> What happens is one implementation does an extension and if it's popular it slowly trickles everywhere else, either directly or with a portability library over it. And this slow process just recently has gotten the "package local nicknames" extension in most implementations (at least by users)
<aeth> So even the language itself isn't static. Most notably stuff like MOP, CFFI, bordeaux-threads, etc.
<drmeister> ck_: Both lldb/gdb and slime. I'm using the standard C++ approach of DWARF metadata and exposing that to slime.
<drmeister> We get better lldb/gdb debugging for free.
<ck_> I already yielded. What I meant with that line is: compared to newer, even lisp-like languages, I very often want my common lisp job back because, comparatively, it is at a much higher level of maturity
<aeth> (And I'm still waiting to see Unicode. There's sb-unicode, and that's about it.)
meepdeew has joined #lisp
meepdeew has quit [Ping timeout: 244 seconds]
gravicappa has joined #lisp
meepdeew has joined #lisp
meepdeew has quit [Remote host closed the connection]
caltelt_ has joined #lisp
shidima has joined #lisp
X-Scale` has joined #lisp
shifty has quit [Ping timeout: 246 seconds]
shifty has joined #lisp
Arcaelyx has quit [Ping timeout: 248 seconds]
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` is now known as X-Scale
Necktwi has quit [Ping timeout: 258 seconds]
Necktwi has joined #lisp
vlatkoB has joined #lisp
caltelt has quit [Ping timeout: 248 seconds]
shidima has quit [Ping timeout: 248 seconds]
nowhere_man has joined #lisp
nowhereman has quit [Ping timeout: 248 seconds]
igemnace has quit [Ping timeout: 248 seconds]
meepdeew has joined #lisp
nanozz has joined #lisp
nanoz has quit [Ping timeout: 248 seconds]
igemnace has joined #lisp
anewuser has quit [Ping timeout: 258 seconds]
caltelt_ has quit [Ping timeout: 258 seconds]
terpri has joined #lisp
Bike has quit [Quit: Lost terminal]
nanozz has quit [Ping timeout: 248 seconds]
meepdeew has quit [Remote host closed the connection]
Necktwi has quit [Ping timeout: 268 seconds]
SaganMan has joined #lisp
sjl has quit [Quit: WeeChat 2.2-dev]
libertyprime has quit [Quit: leaving]
libertyprime has joined #lisp
libertyprime has quit [Client Quit]
libertyprime has joined #lisp
gabbiel has quit [Remote host closed the connection]
dale has quit [Quit: dale]
dddddd has joined #lisp
crystalball has joined #lisp
longshi has joined #lisp
sr5h has joined #lisp
JohnMS_WORK has joined #lisp
donotturnoff has joined #lisp
igemnace has quit [Read error: Connection reset by peer]
igemnace has joined #lisp
libre-man has quit [Ping timeout: 248 seconds]
libre-man has joined #lisp
vlatkoB has quit [Remote host closed the connection]
JohnMS has joined #lisp
longshi has quit [Ping timeout: 252 seconds]
JohnMS_WORK has quit [Ping timeout: 272 seconds]
gravicappa has quit [Ping timeout: 245 seconds]
gravicappa has joined #lisp
amerlyq has joined #lisp
orivej has quit [Ping timeout: 248 seconds]
vlatkoB has joined #lisp
shrdlu68 has joined #lisp
<shrdlu68> Good morning #lisp!
<White_Flame> Place the green block in the good morning area
igemnace has quit [Ping timeout: 248 seconds]
_leb has quit []
ggole has joined #lisp
scymtym has joined #lisp
<phoe> morning
<shka_> phoe: hi!
<shka_> i need to precisly measure time spent in the callback
<shka_> what profiler can do that reasonably well?
<shka_> or should i simply make my own funcall?
<shka_> with unique name so standard profiler can track it
igemnace has joined #lisp
varjag has joined #lisp
amerlyq has quit [Quit: amerlyq]
manualcrank has quit [Quit: WeeChat 1.9.1]
iovec has joined #lisp
hhdave has joined #lisp
rdh has quit [Read error: Connection reset by peer]
makomo has joined #lisp
amerlyq has joined #lisp
nowhere_man has quit [Ping timeout: 268 seconds]
terpri has quit [Ping timeout: 248 seconds]
heisig has joined #lisp
pankajgodbole has joined #lisp
SaganMan has quit [Ping timeout: 268 seconds]
mulk has quit [Ping timeout: 246 seconds]
mulk has joined #lisp
crystalball has quit []
gareppa has joined #lisp
gareppa has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
orivej has joined #lisp
v88m has joined #lisp
m00natic has joined #lisp
igemnace has quit [Ping timeout: 258 seconds]
abarbosa has quit [Remote host closed the connection]
mulk has quit [Ping timeout: 248 seconds]
<LdBeth> If a language is very terse (TECO), where almost every token is one character, is there any possibility benefiting from using a parser generator?
glv has joined #lisp
<beach> That is unrelated. The grammar for combining the tokens can still be complex.
<beach> You might avoid the lexer, though.
mulk has joined #lisp
benkard has joined #lisp
mulk has quit [Ping timeout: 244 seconds]
benkard is now known as mulk
<LdBeth> beach: it is mean to be executed when typed
<LdBeth> It is no more complex than prefixing argument in a emacs key strokes
<beach> Then it has nothing to do with the tokens themselves, but with the fact that the grammar is very simple too.
t58 has joined #lisp
<beach> Implementing a typical language often consists of defining two separate things, namely a lexer and a parser. The lexer turns sequences of characters into tokens, and the parser turns the sequence of tokens into a parse tree (usually). If the tokens are simple, the lexer is simple. If the grammar for combining tokens into parse trees is simple, then the parser is simple. The two are orthogonal.
igemnace has joined #lisp
<LdBeth> Haven’t aware the lexer before XD
<aeth> I wonder where optimizations fit. These are especially key when you have a minimal command language where you're supposed to compose things. One case would be +++++ which in a hypothetical simple language taken literally would mean (progn (incf x 1) (incf x 1) (incf x 1) (incf x 1) (incf x 1)) but can be optimized to (incf x 5)
<aeth> It seems like this kind of thing could be done at either the lexer or the parser, and would complicate even a seemingly simple language.
<beach> The role of the lexer and that of the parser are often blurred. In most real languages, a lexer is in fact not possible as a first step. It has to know the context as defined by the grammar. Also, there are parsing techniques that do not need a lexer at all.
* beach vanishes in order to have lunch.
shka_ has quit [Quit: WeeChat 1.9.1]
sr5h has quit [Ping timeout: 258 seconds]
SaganMan has joined #lisp
dmiles has quit [Ping timeout: 246 seconds]
Lord_of_Life has quit [Ping timeout: 244 seconds]
Lord_of_Life has joined #lisp
milanj has joined #lisp
dmiles has joined #lisp
mulk has quit [Ping timeout: 245 seconds]
zaquest has joined #lisp
mulk has joined #lisp
<White_Flame> aeth: generally the parser does not optimize. Once you have the parse tree or AST or whatever, then you perform that sort of analysis in the compiler
shidima has joined #lisp
jessup has joined #lisp
Folkol has quit [Read error: Connection reset by peer]
Folkol has joined #lisp
nowhere_man has joined #lisp
crystalball has joined #lisp
hhdave has quit [Ping timeout: 258 seconds]
hhdave has joined #lisp
nowhere_man has quit [Ping timeout: 272 seconds]
zooey has quit [Remote host closed the connection]
zooey has joined #lisp
SaganMan has quit [Ping timeout: 248 seconds]
hhdave has quit [Ping timeout: 248 seconds]
<aeth> White_Flame: but is +++++ add 1 5 times (optimize after the parser) or add 5?
glv has quit [Remote host closed the connection]
hhdave has joined #lisp
<White_Flame> I guess that depends on if that concatenation is a lexical construct, a parser construct, or neither
t58 has quit [Quit: Leaving]
<White_Flame> obviously your language definition could demand that at any level, or leave it optional for the compiler to optimize. It would be fairly transparent to the actual source code, but not to implementers
<White_Flame> or metaprogrammers dealing with AST-ish structures
v88m has quit [Ping timeout: 268 seconds]
xantoz has quit [Quit: WeeChat 2.4]
xantoz has joined #lisp
bendersteed has joined #lisp
notzmv has joined #lisp
Bike has joined #lisp
bendersteed has quit [Read error: Connection reset by peer]
bendersteed has joined #lisp
djeis[m] has joined #lisp
bendersteed has quit [Remote host closed the connection]
random-nick has joined #lisp
techquila has quit [Remote host closed the connection]
techquila has joined #lisp
rme has quit [Ping timeout: 264 seconds]
billstclair has quit [Ping timeout: 264 seconds]
rme has joined #lisp
grobe0ba_ has joined #lisp
jerme__ has joined #lisp
gendl_ has joined #lisp
Duns_Scrotus_ has joined #lisp
kqr has quit [Ping timeout: 252 seconds]
housel has quit [Ping timeout: 252 seconds]
micro has quit [Ping timeout: 246 seconds]
trn has quit [Ping timeout: 244 seconds]
CEnnis91_ has joined #lisp
pchrist has quit [Ping timeout: 258 seconds]
v0|d has quit [Ping timeout: 248 seconds]
jasom has quit [Ping timeout: 252 seconds]
|3b| has quit [Ping timeout: 257 seconds]
pyc has quit [Ping timeout: 257 seconds]
nyingen_ has quit [Ping timeout: 244 seconds]
ecraven has quit [Ping timeout: 268 seconds]
kbtr has quit [Remote host closed the connection]
z3t0 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jerme_ has quit [Ping timeout: 252 seconds]
CEnnis91 has quit [Ping timeout: 252 seconds]
gendl has quit [Ping timeout: 252 seconds]
PuercoPop has quit [Ping timeout: 252 seconds]
grobe0ba has quit [Ping timeout: 252 seconds]
Duns_Scrotus has quit [Ping timeout: 252 seconds]
loke has quit [Ping timeout: 252 seconds]
mrSpec has quit [Ping timeout: 252 seconds]
micro has joined #lisp
gendl_ is now known as gendl
jerme__ is now known as jerme_
kbtr has joined #lisp
Duns_Scrotus_ is now known as Duns_Scrotus
grobe0ba_ is now known as grobe0ba
akanouras has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
ecraven has joined #lisp
PuercoPop has joined #lisp
pchrist has joined #lisp
<ck_> White_Flame: re: Green Block, were you talking about ETAOIN SHRDLU?
<White_Flame> the software is just called SRHDLU, but yeah
Mon_Ouie has joined #lisp
<White_Flame> as in the other user's nick
<White_Flame> s/SRHDLU/SHRDLU/
akanouras has joined #lisp
Guest96938 has joined #lisp
kqr has joined #lisp
femi has quit [Ping timeout: 248 seconds]
<ck_> oh, I didn't know that, thanks
Guest96938 has left #lisp [#lisp]
<ck_> it reminded me to see whether the source is available, or somebody ported it to today's CL
Guest96938 has joined #lisp
femi has joined #lisp
steiner has joined #lisp
jasom has joined #lisp
trn has joined #lisp
linli has joined #lisp
leb has joined #lisp
crystalball has quit []
hhdave has quit [Ping timeout: 258 seconds]
linli has quit [Remote host closed the connection]
|3b| has joined #lisp
jmercouris has joined #lisp
flip214 has quit [Read error: Connection reset by peer]
Zaab1t has joined #lisp
Zaab1t has quit [Client Quit]
flip214 has joined #lisp
gxt has joined #lisp
iovec has quit [Quit: Connection closed for inactivity]
ricekrispie2 has quit [Ping timeout: 248 seconds]
random-nickname has joined #lisp
random-nick has quit [Ping timeout: 248 seconds]
Arcaelyx has joined #lisp
libertyprime has quit [Quit: leaving]
mathrick has quit [Ping timeout: 252 seconds]
mathrick has joined #lisp
Guest96938 is now known as mrSpec
montxero has joined #lisp
jmercouris has quit [Ping timeout: 258 seconds]
JohnMS has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
longshi has joined #lisp
wigust- has joined #lisp
wigust has quit [Ping timeout: 246 seconds]
dale_ has joined #lisp
dale_ is now known as dale
longshi has quit [Quit: WeeChat 2.4]
longshi has joined #lisp
paul0 has quit [Read error: Connection reset by peer]
rippa has joined #lisp
notzmv has quit [Ping timeout: 248 seconds]
ikki has joined #lisp
sjl_ has joined #lisp
sjl_ has quit [Client Quit]
sjl has joined #lisp
heisig has quit [Quit: Leaving]
xantoz has quit [Read error: Connection reset by peer]
montxero has quit [Ping timeout: 258 seconds]
lonjil has quit [Ping timeout: 258 seconds]
abarbosa has joined #lisp
lonjil has joined #lisp
abarbosa has quit [Remote host closed the connection]
ikki has quit [Quit: Leaving]
leb has quit []
warweasle has joined #lisp
orivej has quit [Ping timeout: 258 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
_leb has joined #lisp
hhdave has joined #lisp
shidima has quit [Ping timeout: 245 seconds]
q9929t has joined #lisp
dddddd has quit [Ping timeout: 245 seconds]
milanj has quit [Read error: Connection reset by peer]
milanj has joined #lisp
dddddd has joined #lisp
abarbosa has joined #lisp
CEnnis91_ is now known as CEnnis91
oni-on-ion has quit [Remote host closed the connection]
shrdlu68 has quit [Ping timeout: 245 seconds]
moei has joined #lisp
drewc has joined #lisp
jonh has joined #lisp
donotturnoff has quit [Ping timeout: 246 seconds]
xantoz has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
q9929t has quit [Quit: q9929t]
cgore has joined #lisp
cgore has quit [Remote host closed the connection]
asarch has joined #lisp
cgore has joined #lisp
meepdeew has joined #lisp
xantoz has quit [Read error: Connection reset by peer]
cgore has quit [Remote host closed the connection]
cgore has joined #lisp
xantoz has joined #lisp
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 252 seconds]
abarbosa has quit [Remote host closed the connection]
varjag has joined #lisp
pankajgodbole has quit [Ping timeout: 258 seconds]
pankajgodbole has joined #lisp
pankajgodbole has quit [Client Quit]
pankajgodbole has joined #lisp
random-nickname is now known as random-nick
hhdave_ has joined #lisp
hhdave has quit [Ping timeout: 245 seconds]
hhdave_ has quit [Ping timeout: 272 seconds]
meepdeew has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
meepdeew has joined #lisp
Lycurgus has joined #lisp
rumbler31 has joined #lisp
Kundry_Wag has quit [Ping timeout: 245 seconds]
pankajgodbole has left #lisp ["ERC (IRC client for Emacs 25.1.1)"]
meepdeew has quit [Ping timeout: 246 seconds]
m00natic has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
meepdeew has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
steiner has quit [Remote host closed the connection]
rozenglass has joined #lisp
meepdeew has quit [Ping timeout: 258 seconds]
xantoz has quit [Read error: Connection reset by peer]
meepdeew has joined #lisp
terpri has joined #lisp
xantoz has joined #lisp
keep_learning_M has quit [Quit: This computer has gone to sleep]
rozenglass has quit [Remote host closed the connection]
meepdeew has quit [Ping timeout: 245 seconds]
rumbler31 has quit [Remote host closed the connection]
shifty has quit [Ping timeout: 272 seconds]
Kundry_Wag has quit [Remote host closed the connection]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Read error: No route to host]
nanoz has joined #lisp
asarch has quit [Quit: Leaving]
xantoz has quit [Read error: Connection reset by peer]
meepdeew has joined #lisp
meepdeew has quit [Remote host closed the connection]
meepdeew has joined #lisp
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
ricekrispie has joined #lisp
meepdeew has quit [Remote host closed the connection]
xantoz has joined #lisp
orivej has joined #lisp
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
cosimone has joined #lisp
ravenous_ has joined #lisp
buffergn0me has joined #lisp
<pfdietz_> For radix > 10, is there a way to get the printer to print the alphabetic digits in lower case?
<shangul> pfdietz_, Are you sure you are in the right place?
<pfdietz_> Yes...
<Bike> clhs print-radix
<specbot> Couldn't find anything for print-radix.
<specbot> Couldn't find anything for print-base.
<Bike> clhs print-base
<Bike> clhs *print-base*
<pfdietz_> *print-base*
<Bike> i am smart.
<pfdietz_> But.
<Bike> anyway, not that i know of.
<pfdietz_> That, and ~x in format, print the digits in upper case.
sauvin has quit [Ping timeout: 272 seconds]
<pfdietz_> (anyway. base, not radix)
<Bike> (format nil "~(~x~)" 10) => "a"
<Bike> stupid, i admit
<pfdietz_> Heh
<Bike> i think that first prints to an internal string and then string downcases it
<Bike> dunno if that matters
<sjl> (format nil "~(~vr~)" 16 255)
<ck_> does your lisp implementation offer anything, pfdietz_? Allegro CL has something called Case Mode, but I don't have one and can't check whether it applies to numbers
<Bike> i don't think there's a flag you can use, if you're worried about doing this in the middle of some structure
_leb has quit []
random-nick has quit [Read error: Connection reset by peer]
<sjl> if you're pretty printing you might be able to hack something together with http://clhs.lisp.se/Body/v_pr_ppr.htm
cosimone has quit [Quit: WeeChat 2.3]
meepdeew has joined #lisp
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Ping timeout: 246 seconds]
donotturnoff has joined #lisp
<aeth> Weird, I would have thought *print-case* would do it, but it doesn't.
<sjl> *print-case* is just for symbols
longshi has quit [Ping timeout: 252 seconds]
keep_learning has quit [Quit: Ping timeout (120 seconds)]
Lycurgus has quit [Quit: Exeunt]
meepdeew has quit [Remote host closed the connection]
warweasle has quit [Quit: rcirc on GNU Emacs 24.4.1]
random-nick has joined #lisp
amerlyq has quit [Quit: amerlyq]
gravicappa has quit [Ping timeout: 272 seconds]
<pjb> (format nil "~(~vr~) ~2:* ~:@(~VR~) ~2:* ~@(~VR~) ~2:* ~:(~VR~)" 16 255) #| --> "ff FF Ff Ff" |#
Kundry_Wag has joined #lisp
v88m has joined #lisp
nanoz has quit [Ping timeout: 272 seconds]
Kundry_Wag has quit [Ping timeout: 244 seconds]
cosimone has joined #lisp
MichaelRaskin has joined #lisp
scymtym has quit [Ping timeout: 250 seconds]
Bike has quit []
Kundry_Wag has joined #lisp
leb has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
ggole has quit [Quit: Leaving]
varjag has quit [Remote host closed the connection]
varjag has joined #lisp
cosimone has quit [Quit: WeeChat 2.3]
<aeth> This ~( really simplifies doing this: `(progn ,(loop :for i :from 0 :to 100 :collect `(defconstant ,(intern (format nil "+~:@(~r~)+" i)) ,i)))
<aeth> Works until |+ONE HUNDRED+| which seems to be the first space, at least on SBCL.
<aeth> my bad, it's progn ,@
semz has joined #lisp
rdh has joined #lisp
donotturnoff has quit [Remote host closed the connection]
<semz> Is there a standard way to get a nicely behaved nested REPL? (loop (print (eval (read)))) doesn't integrate well with SLIME and while I could of course mess with SLIME directly, it would be nice if it worked in a normal Lisp shell as well.
<pjb> (list `(progn ,@(loop :for i :from 100 :to 105 :collect `(defconstant ,(intern (substitute #\- #\space (format nil "+~:@(~r~)+" i))) ,i)))) #| --> ((progn (defconstant +one-hundred+ 100) (defconstant +one-hundred-one+ 101) (defconstant +one-hundred-two+ 102) (defconstant +one-hundred-three+ 103) (defconstant +one-hundred-four+ 104) (defconstant +one-hundred-five+ 105))) |#
<pjb> semz: (com.informatimago.common-lisp.interactive.interactive:repl)
<pjb> semz: as for slime integration, this is another problem.
<pjb> semz: you would have to modify com.informatimago.common-lisp.cesarum.utility:handling-errors to hook into the debugger.
<pjb> Just calling (invoke-debugger) is enough. You might want to add some restarts to be able to come back to your repl.
vlatkoB has quit [Remote host closed the connection]
Bike has joined #lisp
_whitelogger has joined #lisp
<semz> pjb: thanks, that looks pretty nice to work with
svetlyak40wt has joined #lisp
<svetlyak40wt> minion: registration, please?
<minion> The URL https://gitlab.common-lisp.net/users/sign_in?secret=01667cd9 will be valid until 20:30 UTC.
svetlyak40wt has quit [Client Quit]
<pjb> What is this registration service?
<pjb> Perhaps it would have been smarter to use /msg minion for this command…
xantoz has quit [Read error: Connection reset by peer]
ravenous_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #lisp
nowhere_man has joined #lisp
leb has quit [Ping timeout: 252 seconds]
edgar-rft is now known as nobody
nobody is now known as edgar-rft
rumbler31 has joined #lisp
pierpal has quit [Ping timeout: 248 seconds]
rumbler31 has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 258 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Read error: No route to host]
Kundry_Wag has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 252 seconds]
ricekrispie has quit [Quit: YEET]
lonjil has quit [Ping timeout: 257 seconds]
meepdeew has joined #lisp
lonjil has joined #lisp
random-nick has quit [Read error: Connection reset by peer]
anamorphic has joined #lisp
Lord_of_Life has quit [Ping timeout: 248 seconds]
Lord_of_Life has joined #lisp
meepdeew has quit [Remote host closed the connection]
hr0m has quit [Ping timeout: 258 seconds]
semz has quit [Quit: Leaving]
sjl has quit [Quit: WeeChat 2.3-dev]
anewuser has joined #lisp
anewuser has quit [Read error: Connection reset by peer]
torbo has joined #lisp
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
sjl has joined #lisp
rozenglass has joined #lisp
shifty has joined #lisp
spacedbat has joined #lisp
varjag has quit [Ping timeout: 245 seconds]
keep_learning_M has joined #lisp
keep_learning_M has quit [Client Quit]