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.14, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
robotoad has joined #lisp
rumbler31 has quit [Ping timeout: 250 seconds]
rumbler31 has joined #lisp
<aeth> well, writing something that switches between ~E and ~F manually probably does exactly what you want when ~G might not.
<aeth> It's also considerably more readable.
Guest44017 has quit [Ping timeout: 252 seconds]
Guest44017 has joined #lisp
random-nick has quit [Ping timeout: 250 seconds]
xrash has quit [Ping timeout: 250 seconds]
strelox_ has joined #lisp
<no-defun-allowed> yeah, it just took a while to get all the edge cases handled which i assume ~G does magically.
strelox_ has quit [Client Quit]
strelox_ has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 26.1)]
strelox_ has quit [Quit: Mutter: www.mutterirc.com]
strelox_ has joined #lisp
strelox_ has quit [Client Quit]
strelox_ has joined #lisp
strelox_ has quit [Client Quit]
SenasOzys has joined #lisp
rumbler31 has quit [Remote host closed the connection]
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #lisp
SenasOzys has quit [Client Quit]
strelox_ has joined #lisp
strelox_ has quit [Client Quit]
bendersteed has quit [Read error: Connection reset by peer]
rumbler31 has joined #lisp
rumbler31 has quit [Remote host closed the connection]
strelox_ has joined #lisp
strelox_ has quit [Client Quit]
Guest44017 has quit [Ping timeout: 252 seconds]
jcowan has left #lisp [#lisp]
Guest44017 has joined #lisp
iovec has quit [Quit: Connection closed for inactivity]
robotoad has quit [Ping timeout: 244 seconds]
rumbler31 has joined #lisp
akoana has joined #lisp
robotoad has joined #lisp
gxt has quit [Ping timeout: 244 seconds]
Guest44017 has quit [Ping timeout: 252 seconds]
Guest44017 has joined #lisp
SenasOzys has joined #lisp
SenasOzys has quit [Client Quit]
SenasOzys has joined #lisp
SenasOzys has quit [Client Quit]
SenasOzys has joined #lisp
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #lisp
SenasOzys has quit [Remote host closed the connection]
_whitelogger has joined #lisp
amerlyq has joined #lisp
space_otter has joined #lisp
Guest44017 has quit [Ping timeout: 252 seconds]
sjl has joined #lisp
robotoad has quit [Quit: robotoad]
Guest44017 has joined #lisp
Essadon has quit [Quit: Qutting]
robotoad has joined #lisp
mrcom has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 244 seconds]
sjl has quit [Ping timeout: 250 seconds]
dale has quit [Quit: dale]
ebrasca has quit [Remote host closed the connection]
Guest44017 has quit [Ping timeout: 252 seconds]
strelox_ has joined #lisp
Bike has quit [Ping timeout: 256 seconds]
Necktwi has joined #lisp
strelox_ has quit [Client Quit]
Guest44017 has joined #lisp
mrcom has joined #lisp
Necktwi has quit [Quit: leaving]
Necktwi has joined #lisp
akoana has left #lisp ["Leaving"]
wanz has joined #lisp
khisanth_ has quit [Ping timeout: 246 seconds]
Lord_of_Life has quit [Ping timeout: 250 seconds]
Lord_of_Life has joined #lisp
nowhere_man has joined #lisp
Guest44017 has quit [Read error: Connection reset by peer]
dddddd has quit [Remote host closed the connection]
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
quipa has joined #lisp
<beach> Good morning everyone!
khisanth_ has joined #lisp
wanz has quit [Quit: wanz]
quipa has quit [Read error: Connection reset by peer]
<no-defun-allowed> morning beach
_whitelogger has joined #lisp
undiscovered has joined #lisp
dale has joined #lisp
wanz has joined #lisp
aindilis has quit [Read error: Connection reset by peer]
undiscovered has quit [Ping timeout: 256 seconds]
wanz has quit [Quit: wanz]
aindilis has joined #lisp
amerlyq has quit [Quit: amerlyq]
sauvin has joined #lisp
robdog has joined #lisp
wanz has joined #lisp
wanz has quit [Quit: wanz]
Bike has joined #lisp
sword has quit [Ping timeout: 240 seconds]
wanz has joined #lisp
rippa has joined #lisp
lemoinem has quit [Killed (orwell.freenode.net (Nickname regained by services))]
lemoinem has joined #lisp
_whitelogger has joined #lisp
smokeink has joined #lisp
nirved is now known as Guest2530
nirved has joined #lisp
Guest2530 has quit [Ping timeout: 252 seconds]
sword has joined #lisp
kuber has joined #lisp
gravicappa has joined #lisp
rumbler31 has quit [Remote host closed the connection]
ggole has joined #lisp
rumbler31 has joined #lisp
mingus has quit [Read error: Connection reset by peer]
mingus has joined #lisp
_whitelogger has quit [Ping timeout: 250 seconds]
_whitelogger has joined #lisp
smokeink has quit [Quit: Leaving]
asarch has quit [Quit: Leaving]
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #lisp
smokeink has joined #lisp
leedleLoo has joined #lisp
iovec has joined #lisp
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
orivej has quit [Ping timeout: 240 seconds]
wusticality has joined #lisp
smokeink has quit [Remote host closed the connection]
dale has quit [Quit: dale]
<leedleLoo> Hi, I'm working on an app that will probably end up using a Kafka cluster some point soon and was wondering if anyone here has used a CL library for Kafka. After searching online, I only found this: https://github.com/yehohanan7/cl-kafka. It's incomplete and uses the http endpoints; I'd much rather use something based on librdkafka: https://github.com/edenhill/librdkafka.
wusticality has quit [Ping timeout: 246 seconds]
robdog has quit [Remote host closed the connection]
razzy has quit [Ping timeout: 246 seconds]
zmv has joined #lisp
<leedleLoo> The librdkafka header seems nice enough (https://github.com/edenhill/librdkafka/blob/master/src/rdkafka.h) so let's see how far I can get: https://github.com/SahilKang/cl-rdkafka
robotoad has quit [Quit: robotoad]
wusticality has joined #lisp
<splittist> morning all
<no-defun-allowed> morning splittist
robdog has joined #lisp
wusticality has quit [Ping timeout: 250 seconds]
robotoad has joined #lisp
frobos has quit [Ping timeout: 250 seconds]
<no-defun-allowed> so i wrote a small grammar using cl-bnf, but it doesn't seem to like left associative expressions: https://pastebin.com/ptDEkDu6
robdog has quit [Ping timeout: 250 seconds]
<no-defun-allowed> i traced it and it's indefinitely matching pdl-binop, which makes sense. can i break the loop though?
gravicappa has quit [Ping timeout: 250 seconds]
rumbler31 has joined #lisp
<no-defun-allowed> okay, https://en.wikipedia.org/wiki/Left_recursion#Removing_left_recursion looks like a good idea
rumbler31 has quit [Ping timeout: 250 seconds]
robdog has joined #lisp
<no-defun-allowed> though i'm not sure if i can eliminate that recursion since the left hand would be recursive in nature
xrash has joined #lisp
robdog has quit [Ping timeout: 268 seconds]
wanz has quit [Quit: wanz]
pierpal has quit [Read error: Connection reset by peer]
robdog has joined #lisp
red-dot has joined #lisp
red-dot has quit [Client Quit]
red-dot has joined #lisp
pierpal has joined #lisp
makomo has joined #lisp
robdog has quit [Ping timeout: 250 seconds]
<beach> no-defun-allowed: Some parsing techniques can't handle left recursion.
<beach> Others prefer it.
<beach> The bottom-up techniques are best with left recursion.
<beach> You can rewrite the grammar as the literature suggests, but if your AST is derived from the structure of the rules, then you destroy your AST structure. The literature does not really discuss parsers, just "recognizers" for which any modification of the rules that preserves the language being recognized is acceptable.
<makomo> good morning
wusticality has joined #lisp
<makomo> beach: which book would you recommend for learning about compilers? would you go with the dragon book or something else?
isBEKaml has joined #lisp
nirved is now known as Guest67365
<beach> It depends on what aspect of compilers you want to learn about. A lot of the literature is about parsing, which is not a very interesting topic anymore, at least not for compilers.
nirved has joined #lisp
<jackdaniel> lisp in small pieces builds a good intuition from the ground up
<beach> So if you are interested in compiler optimization, there is always Muchnick's books.
<jackdaniel> starting with naive interpreted, through bytecodes compiler to a transpiler
<jackdaniel> interpreter*
<beach> Yes LiSP is good for Lisp semantics and stuff.
wusticality has quit [Ping timeout: 240 seconds]
<jackdaniel> also working on existing compiler is a hands-on experience (i.e by solving existing issues) with an additional perk of improving things for others
<beach> Also, particularly for Lisp, there is an older book named Anatomy of Lisp.
robdog has joined #lisp
<beach> makomo: Muchnick's book is good as an overview of what has been done and what is possible to do. But his algorithmic language is absolutely awful, so I always go directly to the paper he cites in order to understand a particular technique.
Guest67365 has quit [Ping timeout: 252 seconds]
<makomo> beach: indeed, that's exactly what i've heard elsewhere and how i felt during my compilers course
<makomo> most of the course focused on parsing and really little of it was about optimization techniques, etc.
space_otter has quit [Remote host closed the connection]
<makomo> LiSP is on my todo list :-)
robdog has quit [Ping timeout: 268 seconds]
<leedleLoo> makomo: Engineering a Compiler by Cooper and Torczon is nice; it doesn't spend too much time on parsing
<beach> makomo: Yeah. When I was in charge, I divided that course in two: "Parsing techniques" and "Compilation", because parsing technique are independently useful for other things, like DSLs and data analysis.
<beach> Got to run. Sorry.
edgar-rft has quit [Read error: Connection reset by peer]
<makomo> i've heard about all the books mentioned so far, so i guess i'll just have to dig in and see how they differ. i skimmed over the dragon book to see just how much it focuses on parsing, but haven't read enough to conclude anything yet
<makomo> beach: cool. :-) bye!
<jackdaniel> it seems you have plenty of time in your hands ;-)
Bike has quit [Ping timeout: 256 seconds]
iovec has quit [Quit: Connection closed for inactivity]
<makomo> jackdaniel: eh, it was only during a bus ride so i had no choice :-)
<makomo> jackdaniel: btw, i will get to that wager soon, sorry for the long long hold up
<makomo> hopefully before the new year :D
pierpal has quit [Ping timeout: 250 seconds]
<ggole> makomo: essentials of compilation is a nice introductory text, particularly for a programmer comfortable with Lisp
<ggole> (And it's freely available.)
pierpal has joined #lisp
<ggole> Appel's book(s) are also not bad
<makomo> ggole: oh, i think i recognize one of the authors of essentials of compilation from the Boost.Graph library, neat
random-nick has joined #lisp
robdog has joined #lisp
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #lisp
wanz has joined #lisp
robdog has quit [Ping timeout: 250 seconds]
<jackdaniel> sigh, clx isn't a champion of graceful timeout handling
robdog has joined #lisp
<jackdaniel> so here comes the question: teach it to become a champion (hours) or busy-wait without touching clx's macrology (minutes)
wusticality has joined #lisp
robdog has quit [Ping timeout: 250 seconds]
wusticality has quit [Ping timeout: 268 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #lisp
gxt has joined #lisp
robdog has joined #lisp
atgreen_ has joined #lisp
makomo has quit [Ping timeout: 250 seconds]
razzy has joined #lisp
makomo has joined #lisp
robdog has quit [Ping timeout: 268 seconds]
<leedleLoo> An update from earlier this morning: https://github.com/SahilKang/cl-rdkafka (first cffi project)
<leedleLoo> I was able to load the system and that's always a good sign
dddddd has joined #lisp
robdog has joined #lisp
orivej has joined #lisp
wusticality has joined #lisp
robdog has quit [Ping timeout: 260 seconds]
wusticality has quit [Ping timeout: 250 seconds]
varjag has joined #lisp
isBEKaml has quit [Ping timeout: 240 seconds]
leedleLoo has left #lisp [#lisp]
robdog has joined #lisp
<hjudt> is c2ffi maintained or unmaintained? i have successfully build the llvm-5.0.0 branch using llvm-7, but there have been no updates for quite some time it seems...
<hjudt> s/build/built
<hjudt> also, what is the recommended way to write a new cffi project nowadays?
robdog has quit [Ping timeout: 268 seconds]
razzy has quit [Ping timeout: 250 seconds]
wanz has quit [Quit: wanz]
razzy has joined #lisp
Zaab1t has joined #lisp
<no-defun-allowed> beach: I see.
<no-defun-allowed> As far as I know, this grammar as a deriative of Smalltalk should be done using a more recursive approach anyway.
Mr-Potter has joined #lisp
wanz has joined #lisp
robdog has joined #lisp
iovec has joined #lisp
robdog has quit [Ping timeout: 250 seconds]
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
wusticality has joined #lisp
wusticality has quit [Ping timeout: 250 seconds]
smokeink has joined #lisp
red-dot has joined #lisp
Mr-Potter has quit [Read error: Connection reset by peer]
wanz has quit [Quit: wanz]
Essadon has joined #lisp
wusticality has joined #lisp
gjvc has joined #lisp
wusticality has quit [Ping timeout: 244 seconds]
Inline has quit [Quit: Leaving]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #lisp
orivej has quit [Ping timeout: 250 seconds]
Inline has joined #lisp
Mr-Potter has joined #lisp
orivej has joined #lisp
orivej has quit [Ping timeout: 268 seconds]
isBEKaml has joined #lisp
wusticality has joined #lisp
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #lisp
wusticality has quit [Ping timeout: 245 seconds]
arbv has quit [Quit: ZNC - https://znc.in]
arbv has joined #lisp
robdog has joined #lisp
smokeink has quit [Ping timeout: 244 seconds]
makomo has quit [Ping timeout: 240 seconds]
arbv has quit [Quit: ZNC - https://znc.in]
arbv has joined #lisp
beach has quit [Disconnected by services]
beach has joined #lisp
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
scymtym has joined #lisp
jinkies has joined #lisp
red-dot has joined #lisp
robdog has quit [Remote host closed the connection]
wusticality has joined #lisp
anamorphic has joined #lisp
anamorphic has quit [Client Quit]
isBEKaml has quit [Remote host closed the connection]
wusticality has quit [Ping timeout: 272 seconds]
isBEKaml has joined #lisp
edgar-rft has joined #lisp
shifty has quit [Ping timeout: 250 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
MichaelRaskin has joined #lisp
makomo has joined #lisp
frodef has joined #lisp
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
red-dot has joined #lisp
wusticality has joined #lisp
wusticality has quit [Ping timeout: 244 seconds]
strelox_ has joined #lisp
atgreen_ has quit [Read error: Connection reset by peer]
strelox_ has quit [Quit: Mutter: www.mutterirc.com]
strelox_ has joined #lisp
strelox_ has quit [Client Quit]
Zaab1t has left #lisp [#lisp]
orivej has joined #lisp
gravicappa has joined #lisp
rumbler31 has joined #lisp
wusticality has joined #lisp
MightyJoe has joined #lisp
rumbler31 has quit [Remote host closed the connection]
cyraxjoe has quit [Ping timeout: 240 seconds]
<stylewarning> hjudt: I still write my bindings manually
marvin2 has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
krwq has joined #lisp
Inline has quit [Quit: Leaving]
<pjb> metoo
Inline has joined #lisp
krwq has quit [Remote host closed the connection]
krwq has joined #lisp
powerbit has quit [Ping timeout: 250 seconds]
akoana has joined #lisp
wusticality has quit [Ping timeout: 250 seconds]
amerlyq has joined #lisp
rjid has joined #lisp
Jesin has quit [Quit: Leaving]
frodef has quit [Ping timeout: 268 seconds]
red-dot has joined #lisp
wigust- has joined #lisp
wusticality has joined #lisp
JetJej has joined #lisp
wigust has quit [Ping timeout: 240 seconds]
gravicappa has quit [Ping timeout: 246 seconds]
status402 has joined #lisp
wusticality has quit [Ping timeout: 250 seconds]
makomo has quit [Ping timeout: 272 seconds]
frodef has joined #lisp
cage_ has joined #lisp
makomo has joined #lisp
gravicappa has joined #lisp
gravicappa has quit [Remote host closed the connection]
robotoad has quit [Quit: robotoad]
robotoad has joined #lisp
isBEKaml has quit [Quit: leaving]
neirac has joined #lisp
<neirac> is there any db2 library ? I mostly need to interact with db2 on z/os
<random-nick> why aren't LOOP's keywords interned in COMMON-LISP?
<djeis[m]> They aren't interned anywhere, per-say.
<djeis[m]> Loop's "keywords" aren't particular symbols, they're any symbol with the right name.
<random-nick> yeah, but I'm wondering why aren't they interned in CL so you don't intern them in your package when you use loop
<random-nick> that is, when you're using LOOP without keywords (as in symbols in KEYWORDS)
<djeis[m]> Honestly? Design choice on the part of the original writers of the loop macro and I don't really understand.
<djeis[m]> If I were to guess it's because that'd put a lot of symbols being exported from CL that don't actually have any bindings.
<djeis[m]> Which would be a little weird.
wusticality has joined #lisp
<pjb> random-nick: note that you use loop in your source. So they're interned (if at all) when compiling, but not when loading and running.
<pjb> And you can use keywords, or uninterned symbols: (loop #:for x #:in '(1 2 3) #:collect (* x x)) #| --> (1 4 9) |#
<pjb> djeis[m]: it could seem weird, but there are other symbols in that case, eg INTERGER (well, it has a class and designates a type); but it would be nice since it would avoid problems when you define operators named with those symbols, and load packages exporting them after having used them in loops.
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<djeis[m]> Fair enough.
wusticality has quit [Ping timeout: 244 seconds]
<pjb> random-nick: that said, nothing prevents you to define a package exporting symbols with those names.
<djeis[m]> I don't feel strongly either way.
ggole has quit [Quit: ggole]
<pjb> (defpackage "CL+LOOP" (:use "CL") (:export "FOR" "WHILE" …) (:export . #.(let (n) (do-external-symbols (s "CL") (push (symbol-name s) n)) n)))
<pjb> then you can use "CL+LOOP" instead of "CL".
rjid has left #lisp [#lisp]
<random-nick> pjb: shouldn't you be using :intern instead of :export?
Jesin has joined #lisp
<pjb> random-nick: :intern doesn't export. :export does intern.
dale has joined #lisp
space_otter has joined #lisp
robotoad has quit [Ping timeout: 246 seconds]
robotoad has joined #lisp
Mr-Potter has quit [Ping timeout: 245 seconds]
wusticality has joined #lisp
SenasOzys has joined #lisp
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #lisp
aindilis has quit [Read error: Connection reset by peer]
nirved has quit [Killed (niven.freenode.net (Nickname regained by services))]
aindilis has joined #lisp
nirved has joined #lisp
wusticality has quit [Ping timeout: 246 seconds]
red-dot has joined #lisp
lonjil has quit [Ping timeout: 252 seconds]
marvin2 has joined #lisp
zmv has quit [Remote host closed the connection]
notzmv has quit [Quit: WeeChat 2.3]
random-nick has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lonjil has joined #lisp
vutral has quit [Ping timeout: 246 seconds]
hiroaki has joined #lisp
<aeth> pjb: UIOP has uiop:define-package with a use-reexport
notzmv has joined #lisp
vutral has joined #lisp
vutral has quit [Ping timeout: 246 seconds]
random-nick has joined #lisp
vutral has joined #lisp
Mr-Potter has joined #lisp
<jackdaniel> if anyone is interested how my quick fix for clx ended: it ended up with backporting some changes from cmu and fixing clx/demo examples, so if anyone feels like looking at bouncing balls - enjoy, they do work now (to some degree)
Lycurgus has joined #lisp
wusticality has joined #lisp
wusticality has quit [Ping timeout: 250 seconds]
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
red-dot has joined #lisp
rozenglass has joined #lisp
angavrilov_ has quit [Remote host closed the connection]
dale has quit [Quit: dale]
<didi> Heh. (aref (make-array 0) 0) => Invalid index 0 for (SIMPLE-VECTOR 0), should be a non-negative integer below 0.
<didi> "non-negative integer below 0"
<jackdaniel> it is technically correct
<didi> The best kind of correct.
<krwq> jackdaniel: was just gonna say that
<jackdaniel> set of valid references is empty
* didi nods
<pjb> (let ((a (make-array '()))) (setf (aref a) 42) (aref a)) #| --> 42 |#
<krwq> but the error is indeed funny
<jackdaniel> didi: technicall correctness is often severely flawed so I can't agree with that statement
<didi> jackdaniel: It's a quote from Futurama tho.
<jackdaniel> I didn't see it, but I see this quote too often
<didi> From the episode about bureaucracy if I remember correctly.
<jackdaniel> and I'm afraid some write it with seriouseness
<didi> oic
<jackdaniel> but nvm that
sjl has joined #lisp
Inline has quit [Quit: Leaving]
cage_ has quit [Remote host closed the connection]
impulse has quit [Read error: Connection reset by peer]
wusticality has joined #lisp
Inline has joined #lisp
wusticality has quit [Ping timeout: 268 seconds]
mrcom has quit [Read error: Connection reset by peer]
jmercouris has joined #lisp
SenasOzys has quit [Quit: Leaving]
Bike has joined #lisp
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sjl has quit [Ping timeout: 245 seconds]
mrcom has joined #lisp
frgo has quit []
frgo has joined #lisp
sjl has joined #lisp
rozenglass has quit [Remote host closed the connection]
psqueak has joined #lisp
vutral has quit [Ping timeout: 246 seconds]
wusticality has joined #lisp
vutral has joined #lisp
wusticality has quit [Ping timeout: 245 seconds]
fiveop has joined #lisp
Bike has quit [Ping timeout: 256 seconds]
nowhere_man has joined #lisp
powerbit has joined #lisp
zotan has quit [Ping timeout: 250 seconds]
zotan has joined #lisp
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
zmv has joined #lisp
xrash has quit [Ping timeout: 272 seconds]
notzmv has quit [Ping timeout: 250 seconds]
Lycurgus has quit [Quit: Exeunt]
MetaYan has quit [Ping timeout: 252 seconds]
zmv is now known as notzmv
wusticality has joined #lisp
random-nick has quit [Ping timeout: 246 seconds]
wusticality has quit [Ping timeout: 246 seconds]
krwq has quit [Remote host closed the connection]
jmercouris has quit [Remote host closed the connection]
akoana has left #lisp ["Leaving"]
frodef has quit [Ping timeout: 246 seconds]
sjl has quit [Quit: WeeChat 2.2-dev]
jack_rabbit_ has joined #lisp