p_l changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | ASDF 3.3.4
cyraxjoe has joined #lisp
JohnTalent has joined #lisp
rumbler31_ has joined #lisp
cyraxjoe has quit [Quit: I'm out!]
cyraxjoe has joined #lisp
cyraxjoe has quit [Quit: I'm out!]
quazimodo has joined #lisp
whiteline has quit [Ping timeout: 264 seconds]
cyraxjoe has joined #lisp
igemnace has joined #lisp
kinope has joined #lisp
notzmv has quit [Ping timeout: 240 seconds]
edgar-rft has joined #lisp
cyraxjoe has quit [Quit: I'm out!]
julio_ has joined #lisp
cyraxjoe has joined #lisp
julio_ has quit [Ping timeout: 260 seconds]
cyraxjoe has quit [Ping timeout: 240 seconds]
cyraxjoe has joined #lisp
isBEKaml has joined #lisp
gekkou has joined #lisp
gekkou has quit [Client Quit]
gekkou has joined #lisp
gekkou has quit [Client Quit]
cyraxjoe has quit [Quit: I'm out!]
dominic34 has joined #lisp
JohnTalent has quit [Ping timeout: 256 seconds]
cyraxjoe has joined #lisp
isBEKaml has quit [Ping timeout: 264 seconds]
pycapsule has joined #lisp
isBEKaml has joined #lisp
beach` has joined #lisp
dale has quit [Read error: Connection reset by peer]
cyraxjoe has quit [Quit: I'm out!]
rumbler31_ has quit [Ping timeout: 265 seconds]
dale has joined #lisp
beach has quit [Ping timeout: 272 seconds]
cyraxjoe has joined #lisp
bitmapper has quit [Ping timeout: 246 seconds]
rumbler31_ has joined #lisp
julio_ has joined #lisp
Christ0pher has joined #lisp
cyraxjoe has quit [Quit: I'm out!]
Kaisyu7 has quit [Quit: ERC (IRC client for Emacs 26.3)]
cyraxjoe has joined #lisp
isBEKaml has quit [Quit: leaving]
Kaisyu7 has joined #lisp
thmprover has joined #lisp
cyraxjoe has quit [Quit: I'm out!]
cyraxjoe has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
orivej has joined #lisp
Bike has quit [Quit: leaving]
dominic34 has quit [Ping timeout: 264 seconds]
jesse1010 has quit [Ping timeout: 260 seconds]
Oladon has joined #lisp
cyraxjoe has quit [Ping timeout: 256 seconds]
cyraxjoe has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #lisp
Christ0pher has joined #lisp
oxum_ has joined #lisp
oxum has quit [Ping timeout: 240 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
Krystof has quit [Ping timeout: 256 seconds]
_paul0 has joined #lisp
paul0 has quit [Ping timeout: 272 seconds]
kinope has quit [Quit: Connection closed for inactivity]
beach` is now known as beach
<beach> Good morning everyone!
MightyJoe has joined #lisp
cyraxjoe has quit [Ping timeout: 264 seconds]
pycapsule has quit [Quit: WeeChat 2.9-dev]
Lycurgus has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
JohnTalent has joined #lisp
notzmv has joined #lisp
JohnTalent has quit [Quit: leaving]
<Oladon> Morning, beach!
heisig has joined #lisp
Lycurgus has quit [Remote host closed the connection]
shangul has joined #lisp
paul0 has joined #lisp
dominic34 has joined #lisp
_paul0 has quit [Ping timeout: 246 seconds]
julio_ has quit [Ping timeout: 260 seconds]
gravicappa has joined #lisp
dominic34 has quit [Ping timeout: 246 seconds]
gravicappa has quit [Ping timeout: 265 seconds]
gravicappa has joined #lisp
knuckles has quit [Ping timeout: 260 seconds]
knuckles has joined #lisp
asarch has quit [Quit: Leaving]
KaiLikesLinux has joined #lisp
gravicappa has quit [Ping timeout: 256 seconds]
gravicappa has joined #lisp
mrcom has quit [Read error: Connection reset by peer]
contrapunctus has left #lisp [#lisp]
freshpassport has joined #lisp
mrcom has joined #lisp
Oladon has quit [Read error: Connection reset by peer]
Oladon has joined #lisp
OpenZen has quit [Read error: Connection reset by peer]
OpenZen has joined #lisp
<KaiLikesLinux> Lots of joins and leaves today
OpenZen has quit [Ping timeout: 260 seconds]
gravicappa has quit [Ping timeout: 246 seconds]
<beach> KaiLikesLinux: I am guessing that is because there are a lot of participants. Statistically, that would imply more joins and leaves.
<beach> KaiLikesLinux: Are you new here? I don't recognize your nick.
<KaiLikesLinux> beach: It makes sense, but still, and yes I am brand new
<beach> Great! Welcome! What brings you to #lisp?
bhartrihari has left #lisp ["Disconnected: closed"]
bhartrihari has joined #lisp
<KaiLikesLinux> I am a fan of lisp languages (Clojure and Common Lisp are my favorites), and am currently developing a Lisp inspired Markup language that translates into HTML
<beach> I see.
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
<KaiLikesLinux> Yeah, I need to learn Common again, lost that knowledge out of just not practicing, but I will get back on it
<beach> Sounds good. Do you develop this thing in order to practice, or is it meant to be useful? I am asking because I believe there are already some markup systems based on Common Lisp out there.
<KaiLikesLinux> It is meant to be useful. This one is directly for websites, because I got sick of HTML. It is also supposed to make sense, and maybe add things like variables on HTML. I also want to make a scripting language for it, plus a CSS framework for it. A lot of it is inspired by PugJS too
bhartrihari has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
<beach> The web is not one of my domains of expertise, but it does sound very fancy.
thmprover has quit [Quit: For Here, I Hope, Begins Our Lasting Joy]
<KaiLikesLinux> it isn't. It is so easy I made my MEML project (lisp markup for web) a transpiler, not even a compiler to HTML code
julio_ has joined #lisp
bsd4me has quit [Remote host closed the connection]
bhartrihari has joined #lisp
bocaneri has joined #lisp
dale is now known as dale_
nicktick has joined #lisp
marusich has joined #lisp
dale_ has quit [Quit: dale_]
dale has joined #lisp
julio_ has quit [Ping timeout: 260 seconds]
PuercoPop has joined #lisp
Oladon has quit [Quit: Leaving.]
julio_ has joined #lisp
mankaev has joined #lisp
<phoe> KaiLikesLinux: hey hi
<phoe> AFAIK there already are such projects, CL-WHO and others - you can take a look at them for inspiration
julio_ has quit [Ping timeout: 260 seconds]
<KaiLikesLinux> phoe: Thank you, and will go
<KaiLikesLinux> will do*
marusich has quit [Ping timeout: 260 seconds]
marusich has joined #lisp
rgherdt has joined #lisp
stoneglass has joined #lisp
jonatack has quit [Quit: jonatack]
orivej has joined #lisp
MidHotaru has joined #lisp
marusich has quit [Quit: Leaving]
contrapunctus has joined #lisp
shka_ has joined #lisp
contrapunctus has left #lisp ["Disconnected: closed"]
zaquest has quit [Quit: Leaving]
joels has joined #lisp
pve has joined #lisp
<KaiLikesLinux> Welcome Joels and PVE
zaquest has joined #lisp
<KaiLikesLinux> hello zaquest
<zaquest> hello
<beach> KaiLikesLinux: It is not going to be useful to greet anyone that joins. It will just create a lot of noise.
<KaiLikesLinux> beach: ah, sorry
<KaiLikesLinux> I am still too used to the flow of discord and telegram
<beach> I usually greet people who announce their arrival. That way, I know they are not just lurkers.
<KaiLikesLinux> fair
slyrus has joined #lisp
contrapunctus has joined #lisp
<contrapunctus> Does anyone know of an s-expression alternative to MusicXML?
shangul has quit [Ping timeout: 246 seconds]
<joels> Good morning
<KaiLikesLinux> Good mornin!
<phoe> KaiLikesLinux: I personally mute joins and parts, since they're tons of noise
<phoe> if someone is offline and I want to leave them a message, there's a bot over here that provides memo functionality
<phoe> minion: memo for KaiLikesLinux: like that, for instance
<minion> Remembered. I'll tell KaiLikesLinux when he/she/it next speaks.
<phoe> otherwise, typing e.g. "Good morning everyone!" is a good way to let everyone know that you greet and would like to be greeted
DataLinkDroid has joined #lisp
<phoe> at least around here, I think that greeting random people would most likely mean that you require something from them - at least that's how I'd feel if I got a random "hello" from a person I don't recognize
<contrapunctus> minion: I find it so much more elegant to just write "they"
<minion> I find it so much more elegant to just write "they": An error was encountered in lookup: Parse error:URI "https://www.cliki.net/I%20find%20it%20so%20much%20more%20elegant%20to%20just%20write%20\"they\"?source" contains illegal character #\" at position 87..
<joels> I just ordered "practical common lisp" as per recommendation ;)
<phoe> contrapunctus: minion is a bot
<joels> oh cool. I do like having the physical copy though
<phoe> I know the feeling
<beach> contrapunctus: Are you working on music software?
<joels> But a digital version is also cool to dip into while programming
Krystof has joined #lisp
<adlai> minion: english
<minion> Sorry, I couldn't find anything in the database for ``english''.
<adlai> minion: cliki
<minion> cliki: index: https://www.cliki.net/index
<contrapunctus> beach: thinking of it.
<adlai> minion: minion
orivej has quit [Ping timeout: 258 seconds]
<contrapunctus> phoe: thanks, I sent that deliberately 😀
<phoe> contrapunctus: might want to send a PR too
<contrapunctus> (Although I didn't expect the error.)
orivej has joined #lisp
gxt has quit [Remote host closed the connection]
<contrapunctus> Ah, so that's what you meant. Thanks, I'll consider it 🙂
<beach> contrapunctus: Great! For your information, I am planning version 2 of Gsharp, called Clovetree. It will use McCLIM for displaying the result and it will use essentially the same layout algorithm, but the presentation will use new font technology.
karlosz has quit [Quit: karlosz]
gxt has joined #lisp
<adlai> my guess, contrapunctus, is that the author of the fragment "when he/she/it next speaks" probably anticipated that IRC conversations might plausibly involve more than one bot.
<beach> contrapunctus: jackdaniel has a task to work on the GUI, which is something I am not very good at.
srji has quit [Ping timeout: 246 seconds]
srji has joined #lisp
nicktick has quit [Ping timeout: 240 seconds]
<contrapunctus> beach: Sounds fancy 🙂 I'm thinking of making a performance-oriented viewer for music, which will read MusicXML. I was also hoping for some s-exp format too, so I set about to look if one already exists.
<beach> contrapunctus: That sounds quite useful.
<phoe> XML in general can be expressed neatly using s-expressions
<contrapunctus> beach: PDF/images irk me as a music format, so I'd like to make something reflowable, which adapts to the screen (no blank spaces), whose display is customizable (font, weight, color, etc), which never cuts off musical information midway (e.g. half a note displayed, or half a staff displayed, etc - as can happen with images), and can scroll in a music-aware manner (e.g. scrolling by musical units - bea
<contrapunctus> ts, bars, displayed lines)
<phoe> so perhaps a simple means of converting XML into sexprs would be a good starting point
<phoe> you're going to do it anyway if you want to parse XML in Lisp (though most likely that'll get parsed into some sort of objects and not into literal list structure)
<beach> contrapunctus: I see. Like I said, sounds quite useful.
nicktick has joined #lisp
bhartrihari has left #lisp ["Disconnected: closed"]
<contrapunctus> Thanks 😁 I hope it also draws more attention to Lisp.
<beach> Yeah.
<adlai> contrapunctus: what do you do about legato markings that span measures?
momozor has joined #lisp
<contrapunctus> adlai: thanks, I hadn't thought about that. I've seen typesetters break them, so that's an option. Or we could be smarter and try to fit them onto one line if we can, adjusting the display of the adjoining lines 🤔 Or something else?
* adlai has invariably experienced rage when e.g. G.Henle arranges measures as though people are buying the scores for their value as fishwrap, rather than considering the phrases as poetry that should actually be arranged in a semantically-aware manner
<contrapunctus> phoe: I was hoping to know of any such representations which are already implemented, which would help me handle the issues they've found...but if there aren't any, then I'll make my own, as you suggest. Say, why would I want them to be 'objects' rather than a list? 🤔
<phoe> contrapunctus: check out plump
<phoe> it's a XML parser that parses into a set of standard objects
<adlai> you might find algorithms worth stealing in and around emacs's fill-paragraph code
<phoe> you should be able to inspect the result of plump parsing and see how the parse result is structured internally
joels has quit [Ping timeout: 264 seconds]
<contrapunctus> .o(lmao, DDG results for 'lisp plump' after the GitHub result 😂)
<momozor> Hi. How do I actually pass a `spliced values from a list` for (defun f (&rest spliced-values))? My attempt is something like this -
<momozor> (f (values-list '(1 2 3))
<phoe> you don't want that
<phoe> (apply #'f '(1 2 3))
<adlai> to answer my own question, since you pointed it back at me, contrapunctus, I think that a legato marking is not always there to denote phrasing; splitting a phrase should be avoided, when possible, although splitting a short non-phrasing legato that links a few notes between measures should be avoided much more thoroughly. that is as bad as this kind of hyp-henation.
<phoe> VALUES-LIST doesn't do what you think it does
<momozor> oh thanks
<phoe> it is related to multiple values, which are a different concept than function application
<phoe> (f (values-list '(1 2 3)) === (f 1)
<phoe> since only the primary value is taken into account here.
quazimodo has quit [Ping timeout: 260 seconds]
<momozor> ah I see
<momozor> anyway, using apply works. Thanks!
<phoe> multiple values are most useful at function boundaries, in order to avoid returning tuples
<contrapunctus> adlai: I already see this veering into Lilypond/LaTeX levels of typesetting complexity 😁 Well, I'll certainly look into that (since it's primarily made for musicians to read) once I've got a MVP going. Thanks for sharing that concern.
<phoe> momozor: <3
<adlai> contrapunctus: regrettably, musicians often have opinions about two-dimensional arrangements, along with all the opinions about decibular timeseries.
<contrapunctus> adlai: "decibular timeseries"? 🤔
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
<adlai> signal, noise, and everything in between
hineios730393479 has quit [Ping timeout: 246 seconds]
epony has quit [Quit: reconfigure]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
nikkal has joined #lisp
gaqwas has joined #lisp
rogersm has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
ljavorsk has joined #lisp
momozor has quit [Quit: Leaving]
whiteline has joined #lisp
pve has quit [Ping timeout: 246 seconds]
nikkal has quit [Ping timeout: 260 seconds]
rogersm has quit [Quit: Leaving...]
cosimone has joined #lisp
nikkal has joined #lisp
bhartrihari has joined #lisp
<_roman_> Hi. Maybe someone can help me understand locked packages in sbcl. I'm trying to get GBBopen to compile but keep getting a package-locked-error
<beach> What is the error message?
<beach> Usually, when a package lock is tripped, that means you are trying to define something that uses a standard Common Lisp symbol.
<phoe> _roman_: why are you redefining SBCL internal stuff?
<_roman_> what i find confusing is that it is wrapped in a sb-ext::without-package-locks
<phoe> oh, wait, you're not, one second...
<phoe> lemme see what is gbbopen
MidHotaru has quit [Quit: Connection closed for inactivity]
<phoe> what is the code inside "initiate.lisp"?
<_roman_> just loads the system. ie a manual load file
<phoe> this code is ugly and should be fixed
<phoe> patching SBCL at runtime like that is a no-no I guess
epony has joined #lisp
<phoe> I guess you should make an issue about that, gbbopen seems to have some recent commits.
<_roman_> yet if I manually put a sb-ext::without-package-locks around the form starting the module loading & the compilation, it goes thru fine
<_roman_> i'm just curious about why sb-ext::without-package-locks works sometimes and not others
nikkal has quit [Ping timeout: 246 seconds]
<phoe> because sb-impl::output-float-infinity doesn't seem to exist
<phoe> and so the lock is violated at read-time
<phoe> this is dead code
<phoe> which shows the exact point why patching stuff like that is harmful
<_roman_> but wouldn't that be also the case when I explicitly introduce the sb-ext::without-package-locks?
gravicappa has joined #lisp
<phoe> what is your sbcl version?
<phoe> that's confusing to me, yes; it should also be like that in the repl
<_roman_> This is SBCL 2.0.4
<phoe> also works in the REPL
<phoe> uh, works - errors I mean
<_roman_> yes
<phoe> if you do (without-package-locks ...) in the repl though, then the package is already unlocked by the time the file is read
<phoe> so no error happens
<phoe> I suggest to file an issue to have that dead code removed.
<_roman_> ok. seems to be quiet since 2016 though
<phoe> https://github.com/lisp-mirror/GBBopen has a relatively fresh commit
<phoe> but, yes, that code seems unmaintained
<_roman_> Thanks. I'm still not clear in my own head about the locks given that the #+sbcl conditionalization ought to activate the no locking before the defun (no?)
<phoe> not really
<phoe> #+sbcl causes the form to appear there only for SBCL
<phoe> but then it tries to read "sb-impl::something"
<phoe> the symbol does not exist there, so it must be interned
<phoe> the act of interning trips the package lock
<phoe> an error is signaled
<phoe> all of this before sb-ext:without-package-locks is even compiled in
<phoe> and before it has a chance to execute
<_roman_> I see
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #lisp
<_roman_> a matter of timing so to speak
<phoe> yesssss
<phoe> does anyone have code for printing arbitrary hex grids as ASCII-art to console?
cg505 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
cg505 has joined #lisp
<_roman_> While looking at this, I came across "12.1.2 Implementation Packages" in the sbcl manual. Never heard of them nor could find any other documentation on them. Are they just a convention for code separation or something more? Any pointers where I might find more info?
<beach> The former.
<phoe> that's a SBCL thing
<beach> It is just a way to divide the code into modules.
<_roman_> ok
<_roman_> thanks
<beach> Sure.
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
jesse1010 has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 260 seconds]
X-Scale` is now known as X-Scale
freshpassport has quit [Quit: Textual IRC Client: www.textualapp.com]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #lisp
DataLinkDroid has quit [Ping timeout: 276 seconds]
hhdave has quit [Ping timeout: 264 seconds]
gaqwas has quit [Remote host closed the connection]
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #lisp
hhdave has joined #lisp
shangul has joined #lisp
nicktick has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
Lycurgus has joined #lisp
epony has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #lisp
X-Scale has quit [Ping timeout: 246 seconds]
X-Scale` has joined #lisp
Lord_of_Life_ has joined #lisp
X-Scale` is now known as X-Scale
Lord_of_Life has quit [Ping timeout: 260 seconds]
Lord_of_Life_ is now known as Lord_of_Life
igemnace has quit [Remote host closed the connection]
EvW has joined #lisp
EvW2 has joined #lisp
EvW has quit [Read error: Connection reset by peer]
EvW2 is now known as EvW
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
edgar-rft has quit [Quit: Leaving]
random-nick has joined #lisp
orivej has quit [Ping timeout: 265 seconds]
heisig has quit [Quit: Leaving]
orivej has joined #lisp
stepnem has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #lisp
stepnem has joined #lisp
Bike has joined #lisp
cosimone has quit [Remote host closed the connection]
jonatack has joined #lisp
EvW has quit [Ping timeout: 240 seconds]
xrash has joined #lisp
xrash has quit [Excess Flood]
Lycurgus has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
xrash has joined #lisp
pve has joined #lisp
EvW has joined #lisp
EvW has quit [Ping timeout: 246 seconds]
EvW1 has joined #lisp
shangul has quit [Ping timeout: 246 seconds]
Christ0pher has quit [Ping timeout: 264 seconds]
Christ0pher has joined #lisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
Christ0pher has quit [Ping timeout: 260 seconds]
orivej has joined #lisp
Christ0pher has joined #lisp
cosimone has joined #lisp
shangul has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
wsinatra has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
ljavorsk has quit [Ping timeout: 260 seconds]
orivej_ has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
stoneglass has quit [Quit: stoneglass]
EvW1 has quit [Read error: Connection reset by peer]
wxie has joined #lisp
wxie has quit [Remote host closed the connection]
wxie has joined #lisp
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
midre has quit [Ping timeout: 258 seconds]
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #lisp
midre has joined #lisp
simendsjo has joined #lisp
midre has quit [Ping timeout: 246 seconds]
<adlai> lonjil: continuing from #lispcafe - you may find this project can save you some time, and perhaps also has ideas worth stealing, should you work on implementing a replacement: https://quickref.common-lisp.net/cl-collider.html
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
midre has joined #lisp
orivej has joined #lisp
EvW has joined #lisp
bsd4me has joined #lisp
EvW has quit [Ping timeout: 246 seconds]
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
renzhi has joined #lisp
bhartrihari has joined #lisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
dominic34 has joined #lisp
<dlowe> CLX question - If I received a window ID from xlib:get-property, how can I convert that to a window so I can get its property?
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
<dlowe> also wow, CLX is copyright 1987 by Texas Instruments
wxie has quit [Ping timeout: 264 seconds]
<beach> dlowe: If I were you, I would ask the nice people in #clim. They work a lot with CLX.
<beach> dlowe: And, yes, I would very much like to see a new version of CLX, or perhaps something entirely different that uses the xrender extension exclusively. Either way, something way more CLOS-y.
<dlowe> yeah, I just think it's interesting that TI did it. I never would have guessed.
<beach> Oh, I see.
<dlowe> also that's it's old :)
<beach> Yeah, and the reason it does not use generic functions and standard classes is that it predates the ANSI Common Lisp standard.
<dlowe> ah, that makes sense.
<dlowe> it would be quite the job to translate between models
orivej has quit [Ping timeout: 256 seconds]
tich has joined #lisp
orivej has joined #lisp
<beach> "models"? xrender and X core?
<dlowe> clx-classes and clos
<beach> Ah, I see. Yes, a bit.
<dlowe> the clx model adheres pretty closely to its xlib roots
<tich> I would like to loop through a list collecting say the first 3 elements how do i do that
efm has joined #lisp
<phoe> tich: (subseq list 0 3)
wxie has joined #lisp
<dlowe> tich: you might be interested in #clschool
<phoe> (subseq '(a b c d e f g h) 0 3) ;=> (A B C)
freshpassport has joined #lisp
<_death> the ANSI committee had graphics/windowing groups and there were discussions about CLOSifying CLX, and about CLUE as well
<tich> My question was not clear enough I would like to go through a list in 3s (for-each-tripple (i j k) in '(a b c d e f g) collect (list i j k) ) => ((a b c) (d e f) g)
v3ga has quit [Ping timeout: 256 seconds]
<phoe> tich: collecting the G at the end will be tricky
<jackdaniel> one thing to keep in mind is that xlib has the implementation which defines CLOS classes too
<jackdaniel> define-clx-class defines either structures or standard classes depending on a build-time flag
<beach> Oh, I had no idea.
<beach> Interesting.
grewal has quit [Ping timeout: 240 seconds]
<phoe> you can (loop for (x y z) on list by #'cdddr collect (list x y z))
grewal has joined #lisp
<phoe> but that will return ((A B C) (D E F) (G NIL NIL))
<phoe> so there needs to be a little bit of conditionalization to avoid these last NILs
<tich> phoe:thank you
<tich> phoe:so the by clause has to be a function and not an integer?
<phoe> tich: if you are performing list iteration, it must be a list function
<phoe> a numeric BY is there if you do numeric iteration
<phoe> e.g. (loop for x from 0 by 5 ...)
<_death> you can use nthcdr
wxie has quit [Ping timeout: 246 seconds]
freshpassport has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_death> though it would be prettier to (loop ... for sublist = list then (nthcdr n sublist) ...)
theseb has joined #lisp
<tich> _death:thank you for the code snippet
<pve> Hi, are there any in-depth tutorials or other resources that cover designing an interface specifically with clos features in mind?
orivej has quit [Ping timeout: 240 seconds]
<pve> uh, module interfaces that is, not user interfaces
orivej has joined #lisp
<phoe> plus a shameless plug: https://github.com/phoe/protest/
<_death> the AMOP book and the CLIM spec are good examples
<pve> ok, lots of good stuff, thanks
grewal has quit [Ping timeout: 265 seconds]
grewal has joined #lisp
bhartrihari has joined #lisp
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
jw4 has quit [Read error: Connection reset by peer]
orivej has joined #lisp
simendsjo has quit [Remote host closed the connection]
jw4 has joined #lisp
wsinatra has quit [Ping timeout: 256 seconds]
wsinatra has joined #lisp
<pve> Do you guys start by carefully defining your interfaces, or do you just hack away and later flesh out the interfaces?
<phoe> I do both at the same time
<phoe> it's okay to have a rough sketch of the interface, but most of the time it changes anyway during the implementation
<phoe> unless you already have an interface that you build against, at which point the question is moot
<pve> sure
<beach> Also, I often find myself wanting a completely new version of some library I wrote in the past. And then I have a much better idea of the protocol I want to implement.
<beach> But yeah, the first time around, it is incremental.
<pve> ok, makes sense
<beach> pve: Feel free to expose your ideas for protocols here.
<pve> beach: thanks, will do.. don't really have anything concrete at this point though
<beach> pve: As _death pointed out, the CLIM specification is an excellent example of how to design protocols.
MidHotaru has joined #lisp
<beach> pve: I understand. But I assume you are working with some project in mind?
simendsjo has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
<pve> I'm working on my toy language, and while the compiler works (from the language to CL, right now), the internals are kind of hacky and probably wrong from a textbook perspective
<beach> I see.
<pve> I'd like to clean it up, but need to get a better idea of how I could go about it
<beach> This is probably way too complex, but perhaps you want to have a quick glance at what we do in Cleavir. We read CSTs using Eclector, then translate them to ASTs, then to HIR.
<pve> and I feel better-defined interfaces would be a good start
<pve> hmm can't hurt to have a look
<beach> Check SICL/Code/Cleavir2/...
<beach> There is even documentation. :)
knuckles has quit [Ping timeout: 246 seconds]
knuckles has joined #lisp
<pve> right now I piggy-back on the lisp reader to get a list of tokens which are then parsed into an AST, the AST is then used to emit CL code
<beach> OK.
<pve> I wanted to be able to mix CL with my language and that felt like the easiest way to get started
<beach> I vividly recommend you use Eclector if you are reading something that looks a bit like Lisp.
<beach> It is highly configurable.
<pve> I've been eying it from a distance
sjl has joined #lisp
<pve> waiting to make the leap
<beach> Eclector also comes with great documentation.
bhartrihari has joined #lisp
<pve> it looks like lisp in the sense that almost everything is a lisp form, besides that, it looks like smalltalk
Christ0pher has quit [Ping timeout: 260 seconds]
<beach> So, Eclector will let you intercept things like symbol creation, so that you don't need to have the right packages already defined in your Common Lisp system.
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
Christ0pher has joined #lisp
<pve> not sure if "form" is the right term, I mean symbols, numbers, strings etc just as they are written in lisp
<beach> I see.
alfonsox has joined #lisp
<pve> I will definitely see if I could make use of Eclector
<beach> In fact, it is high time we stamp out implementation-specific readers. :)
cosimone has quit [Quit: Quit.]
<beach> pve: Speaking of which, Eclector is another excellent example of how to design CLOS protocols.
mankaev__ has joined #lisp
mankaev has quit [Remote host closed the connection]
<pve> ok, that's good to know
shangul has quit [Ping timeout: 256 seconds]
<splittist> I should look again, but what led me not to use Eclector in a particular case was the vast array of (quite illuminating, but not so helpful for that case) errors that could be signalled.
<splittist> Of course, at the time I hadn't read the book on CL's condition system...
q-u-a-n2 has quit [Read error: Connection reset by peer]
q-u-a-n21 has joined #lisp
tich has quit [Remote host closed the connection]
user__ has joined #lisp
spacebat2 has joined #lisp
q-u-a-n22 has joined #lisp
aap_ has joined #lisp
jesse1010 has quit [Read error: Connection reset by peer]
q-u-a-n21 has quit [Remote host closed the connection]
bhartrihari has joined #lisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
rgherdt_ has joined #lisp
johnweldon has joined #lisp
adeht has joined #lisp
mgr_ has joined #lisp
whiteline_ has joined #lisp
spacebat1 has quit [Ping timeout: 264 seconds]
<pve> currently I'm only at about 5k lines of CL and maybe another 5k of the new language, so things are still quite manageable, but it would be good to get a little discipline into it sooner rather than later
<pve> I imagine it will only become harder
aap has quit [Read error: Connection reset by peer]
aindilis has quit [Ping timeout: 264 seconds]
penguwin has joined #lisp
cybercafe has joined #lisp
Xach has quit [Ping timeout: 246 seconds]
jw4 has quit [Ping timeout: 246 seconds]
xlei has quit [Ping timeout: 246 seconds]
OMGOMG has quit [Ping timeout: 246 seconds]
mgr- has quit [Ping timeout: 246 seconds]
shymega has quit [Ping timeout: 246 seconds]
_death has quit [Ping timeout: 246 seconds]
mathrick has quit [Ping timeout: 246 seconds]
rgherdt has quit [Ping timeout: 246 seconds]
Ekho has quit [Remote host closed the connection]
penguwin has quit [Read error: Connection reset by peer]
cybercaf1 has quit [Ping timeout: 246 seconds]
HDurer has quit [Ping timeout: 246 seconds]
sjl has quit [Ping timeout: 264 seconds]
grewal has quit [Ping timeout: 264 seconds]
Posterdati has quit [Ping timeout: 264 seconds]
Lycurgus has joined #lisp
__shymega__ has joined #lisp
rumbler31_ has quit [Ping timeout: 264 seconds]
v88m has quit [Ping timeout: 264 seconds]
holycow has quit [Ping timeout: 264 seconds]
HDurer has joined #lisp
ult has quit [Ping timeout: 264 seconds]
OMGOMG has joined #lisp
dilated_dinosaur has quit [Ping timeout: 254 seconds]
xlei has joined #lisp
holycow has joined #lisp
aindilis` has joined #lisp
rogersm has joined #lisp
whiteline has quit [Ping timeout: 264 seconds]
nydel has quit [Ping timeout: 264 seconds]
holycow is now known as Guest86686
sjl has joined #lisp
nydel has joined #lisp
ult has joined #lisp
mathrick has joined #lisp
Posterdati has joined #lisp
rumbler31_ has joined #lisp
v88m has joined #lisp
Xach has joined #lisp
adeht is now known as _death
Lycurgus has quit [Remote host closed the connection]
grewal has joined #lisp
aindilis` has quit [Remote host closed the connection]
__shymega__ is now known as shymega
aindilis has joined #lisp
Ekho has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
shangul has joined #lisp
_whitelogger has joined #lisp
ggole has joined #lisp
bhartrihari has joined #lisp
Frobozz_ has quit [Ping timeout: 265 seconds]
rippa has joined #lisp
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
papachan has joined #lisp
spikemaster has joined #lisp
bhartrihari has joined #lisp
spikemaster has left #lisp [#lisp]
julio_ has left #lisp ["Leaving"]
julio_ has joined #lisp
mankaev__ has quit [Remote host closed the connection]
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
mankaev__ has joined #lisp
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #lisp
johnweldon has quit [Quit: tot siens]
alfonsox has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Cymew has quit [Ping timeout: 256 seconds]
jw4 has joined #lisp
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
efm has quit [Quit: Konversation terminated!]
mankaev__ has quit [Ping timeout: 272 seconds]
EvW has joined #lisp
shangul has quit [Ping timeout: 260 seconds]
orivej_ has quit [Ping timeout: 244 seconds]
orivej has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
jonatack has quit [Ping timeout: 260 seconds]
cosimone has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
<rumbler31_> this probably belongs on #ccl but I'm trying to use ccl to parse command line arguments. Seems like when I dump from an image I've already dumped, the command line arguments globals are blank, or at least, frozen as of whenever the first image was made
<sjl> rumbler31_: possibly relevant https://github.com/Clozure/ccl/issues/177
rogersm has quit [Ping timeout: 244 seconds]
<rumbler31_> not quite the same, in my case, unprocessed command line arguments variable is blank, but the full list is available
rogersm has joined #lisp
karlosz has joined #lisp
jonatack has joined #lisp
Bourne has quit [Ping timeout: 260 seconds]
<Kabriel_> Is there a reason that sb-posix:chdir and uiop:chdir do not modify *default-pathname-defaults*?
mason has joined #lisp
gaqwas has joined #lisp
gaqwas has joined #lisp
gaqwas has quit [Changing host]
DGASAU has quit [Ping timeout: 256 seconds]
<_death> why would they? there is no expectation that *d-p-d* and posix working directory be kept in sync..
jonatack has quit [Ping timeout: 244 seconds]
Blukunfando has joined #lisp
<papachan> how i can rewrite this using composing ? http://sprunge.us/qDTt9z
jonatack has joined #lisp
MidHotaru has quit [Quit: Connection closed for inactivity]
dominic34 has quit [Ping timeout: 256 seconds]
theseb has quit [Quit: Leaving]
orivej has quit [Quit: No Ping reply in 210 seconds.]
bhartrihari has joined #lisp
orivej has joined #lisp
rumbler31_ has quit [Ping timeout: 246 seconds]
Dzener has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 256 seconds]
msk has joined #lisp
rumbler31_ has joined #lisp
orivej has joined #lisp
Frobozz_ has joined #lisp
<Kabriel_> I assume that uiop:chdir is built on top of implementation specific methods like sb-posix:chdir.
<Kabriel_> It seems odd to me that uiop:run-program uses the "directory" that uiop:chdir modifies too, but methods like load or (truename #P"./") use *d-p-d*.
<Kabriel_> I would expect these to be linked, or at least an easy way to link them such that when you "changed" directories, it would be consistent in both cases.
DGASAU has joined #lisp
liberliver has quit [Quit: liberliver]
bocaneri has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
msk has quit [Quit: Leaving]
msk has joined #lisp
msk has quit [Quit: Leaving]
msk has joined #lisp
even4void has joined #lisp
cosimone has quit [Quit: Quit.]
msk has quit [Client Quit]
msk has joined #lisp
msk has quit [Client Quit]
msk has joined #lisp
epony has joined #lisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
rogersm has quit [Ping timeout: 244 seconds]
EvW has quit [Ping timeout: 256 seconds]
random-nick has quit [Ping timeout: 258 seconds]
rogersm has joined #lisp
zooey_ has quit [Remote host closed the connection]
zooey has joined #lisp
_paul0 has joined #lisp
nikkal has joined #lisp
roze has joined #lisp
rogersm has quit [Quit: Leaving...]
paul0 has quit [Ping timeout: 260 seconds]
jibanes has quit [Ping timeout: 256 seconds]
jibanes has joined #lisp
even4void has quit [Quit: WeeChat 2.8]
random-nick has joined #lisp
stoneglass has joined #lisp
enrio has joined #lisp
vaporatorius has quit [Read error: Connection reset by peer]
vaporatorius__ has joined #lisp
ggole has quit [Quit: Leaving]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #lisp
gravicappa has quit [Ping timeout: 260 seconds]
roze has quit [Quit: Leaving]
EvW has joined #lisp
julio_ has quit [Ping timeout: 256 seconds]
nikkal has quit [Ping timeout: 264 seconds]
Christ0pher has quit [Ping timeout: 264 seconds]
midre has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
cosimone has joined #lisp
gareppa has joined #lisp
whiteline_ has quit [Remote host closed the connection]
whiteline_ has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
midre has joined #lisp
gareppa has quit [Remote host closed the connection]
orivej has joined #lisp
midre has quit [Ping timeout: 272 seconds]
midre has joined #lisp
nullman has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
FennecCode has joined #lisp
enrio has quit [Quit: Leaving]
izh_ has joined #lisp
wsinatra has quit [Quit: WeeChat 2.8]
terpri__ has joined #lisp
seok has joined #lisp
terpri_ has quit [Ping timeout: 260 seconds]
Lycurgus has joined #lisp
msk has quit [Ping timeout: 256 seconds]
julio_ has joined #lisp
msk has joined #lisp
nullman has joined #lisp
msk__ has joined #lisp
msk has quit [Ping timeout: 256 seconds]
xrash_ has joined #lisp
terpri_ has joined #lisp
cgay has quit [Quit: leaving]
efm has joined #lisp
terpri__ has quit [Ping timeout: 244 seconds]
Christ0pher has quit [Ping timeout: 244 seconds]
Christ0pher has joined #lisp
xrash_ has quit [Read error: Connection reset by peer]
xrash_ has joined #lisp
pve has quit [Quit: leaving]
xrash has quit [Disconnected by services]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
dominic34 has joined #lisp
whiteline_ has quit [Remote host closed the connection]
whiteline_ has joined #lisp
leb has joined #lisp
edgar-rft has joined #lisp
davsebamse has quit [Ping timeout: 260 seconds]
hvxgr has quit [Quit: leaving]
hvxgr has joined #lisp
dominic34 has quit [Ping timeout: 240 seconds]
EvW has quit [Ping timeout: 244 seconds]
_roman_ has quit [Quit: WeeChat 1.9.1]
izh_ has quit [Quit: Leaving]
whiteline_ has quit [Quit: Leaving]
whiteline has joined #lisp
borodust has quit [Ping timeout: 272 seconds]
Bourne has joined #lisp
terpri__ has joined #lisp
seok has quit [Remote host closed the connection]
terpri_ has quit [Ping timeout: 256 seconds]
leb has quit []
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #lisp
axion has quit [Ping timeout: 256 seconds]
xrash_ has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
FennecCode has quit [Quit: ERC (IRC client for Emacs 26.3)]
Lycurgus has quit [Remote host closed the connection]
rumbler31_ has quit [Ping timeout: 256 seconds]
rumbler31_ has joined #lisp
whiteline has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 210 seconds.]
orivej has joined #lisp
emacsomancer has quit [Read error: Connection reset by peer]
emacsomancer has joined #lisp
Guest86686 is now known as holycow
EvW has joined #lisp
holycow has quit [Changing host]
holycow has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #lisp
papachan has quit [Quit: Leaving]
sjl has quit [Ping timeout: 265 seconds]
simendsj` has joined #lisp
simendsjo has quit [Ping timeout: 256 seconds]
rgherdt_ has quit [Quit: Leaving]
hiroaki has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
Lord_of_Life_ has joined #lisp
stoneglass has quit [Remote host closed the connection]
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life_ is now known as Lord_of_Life
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
akoana has joined #lisp
axion has joined #lisp
axion has quit [Client Quit]
axion has joined #lisp
orivej has quit [Ping timeout: 244 seconds]
orivej has joined #lisp
simendsj` has quit [Ping timeout: 244 seconds]
shka_ has quit [Ping timeout: 260 seconds]
clothespin_ has joined #lisp
cosimone_ has joined #lisp
cosimone has quit [Ping timeout: 256 seconds]
terpri__ is now known as terpri
gaqwas has quit [Remote host closed the connection]
ArthurStrong has joined #lisp
random-nick has quit [Ping timeout: 244 seconds]
axion has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 244 seconds]
orivej has joined #lisp
vidak` has joined #lisp
quazimodo has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #lisp
efm has quit [Read error: Connection reset by peer]
efm has joined #lisp
quazimodo has quit [Ping timeout: 264 seconds]
quazimodo has joined #lisp
Christ0pher has quit [Ping timeout: 264 seconds]
Christ0pher has joined #lisp
efm_ has joined #lisp
efm has quit [Ping timeout: 246 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]