jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
<NotThatRPG> I think it's one of the few that doesn't bundle ASDF -- or possibly it bundles an ancient version, I forget.
<pjb> sweatshirt: Fun with Lisp: Programming the NES <https://ahefner.livejournal.com/20528.html>
<ixelp> Fun with Lisp: Programming the NES - Informal Methods — LiveJournal
BytesAndCoffee has left #commonlisp [#commonlisp]
NotThatRPG is now known as NotThatRPG_away
attila_lendvai_ has quit [Ping timeout: 255 seconds]
avocadoist has quit [Remote host closed the connection]
eddof13 has joined #commonlisp
avocadoist has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
masinter has joined #commonlisp
occ has joined #commonlisp
<sweatshirt> nteresting pjb
<sweatshirt> is lisp low level?
<hayley> In what sense?
<sweatshirt> "Low-level programming is good for the programmer's soul." -John Carmack was used in relation to the above link Fun with lisp
<sweatshirt> so it made me wonder
<hayley> That doesn't really suggest any definition.
<Bike> the quote presumably comes up there because it's about 6502 programming, more than the lisp part
<sweatshirt> i guess level of abstraction? thats what makes a language low or high level right?
<sweatshirt> oh i see
lambdart has quit [Remote host closed the connection]
<hayley> There are rather concrete things like TAGBODY/GO, and higher level control flow structures too. But it's preferred to use the higher level stuff when you can.
<nytpu> assuming your definition of "low-level" means "suitable for programming for a non-hosted environment with direct access to hardware" there are Lisps that are low-level but i wouldn't necessarily say Common Lisp is low-level
<nytpu> if your definition of low-level means "minimal abstraction" that's still sorta possible with Lisp but the dialect tends to be more nontraditional (e.g. https://en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp)
* hayley yawns
hayley has left #commonlisp [#commonlisp]
<nytpu> bored hayley to sleep
eddof13 has joined #commonlisp
qhong_ is now known as qhong
<pjb> sweatshirt: you can write low-level stuff in lisp indeed. See for example https://www.cliki.net/Movitz or https://github.com/froggey/Mezzano
<ixelp> CLiki: Movitz
<pjb> sweatshirt: note for example, how lisp has 3 different ways to perform boolean and bit field operations, while C only has one, with very inconvenient operators.
<pjb> bit-* operators, log-* operators, and bitvector operators.
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
brettgilio has joined #commonlisp
eddof13 has joined #commonlisp
random-nick has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeosol has quit [Quit: Client closed]
Lord_of_Life has quit [Ping timeout: 246 seconds]
Lord_of_Life has joined #commonlisp
occ has quit [Read error: Connection reset by peer]
occ has joined #commonlisp
bitmapper has quit [Quit: Connection closed for inactivity]
kevingal has joined #commonlisp
masinter has quit [Ping timeout: 255 seconds]
<mfiano> pjb knows his bit manipulation stuff. I'll never forget years ago when I had a simple question with how to do things in CL, he drew up a diagram to visualize exactly what I needed to know. Everything clicked at that moment for me, anyway.
bilegeek has joined #commonlisp
markb1 has quit [Quit: Leaving]
masinter has joined #commonlisp
gxt_ has quit [Remote host closed the connection]
occ has quit [Ping timeout: 255 seconds]
waleee has quit [Ping timeout: 246 seconds]
azimut has quit [Ping timeout: 255 seconds]
gxt_ has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
occ has joined #commonlisp
paul0 has joined #commonlisp
occ has quit [Ping timeout: 255 seconds]
kevingal has quit [Ping timeout: 260 seconds]
occ has joined #commonlisp
bilegeek has quit [Quit: Leaving]
jeosol has joined #commonlisp
aartaka has joined #commonlisp
occ has quit [Ping timeout: 246 seconds]
shka has joined #commonlisp
occ has joined #commonlisp
igemnace has joined #commonlisp
silasfox has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
son0p has quit [Ping timeout: 260 seconds]
masinter has quit [Ping timeout: 248 seconds]
Doctorquack has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
_cymew_ has joined #commonlisp
aartaka has joined #commonlisp
rgherdt has joined #commonlisp
Guest21 has joined #commonlisp
_cymew_ has quit [Ping timeout: 248 seconds]
pve has joined #commonlisp
rogersm has joined #commonlisp
Cymew has joined #commonlisp
Inline has quit [Quit: Leaving]
karlosz has quit [Quit: karlosz]
Doctorquack has quit [Quit: Quit]
gxt__ has joined #commonlisp
gxt_ has quit [Ping timeout: 255 seconds]
aartaka has quit [Ping timeout: 248 seconds]
son0p has joined #commonlisp
occ has quit [Ping timeout: 255 seconds]
aartaka has joined #commonlisp
glaucon has joined #commonlisp
aartaka has quit [Ping timeout: 256 seconds]
LW has joined #commonlisp
attila_lendvai_ has joined #commonlisp
aartaka has joined #commonlisp
kenran has joined #commonlisp
aartaka has quit [Ping timeout: 246 seconds]
aartaka has joined #commonlisp
aartaka has quit [Ping timeout: 255 seconds]
attila_lendvai_ is now known as attila_lendvai
pranavats has joined #commonlisp
aartaka has joined #commonlisp
MajorBiscuit has joined #commonlisp
jmdaemon has quit [Ping timeout: 246 seconds]
quoosp has joined #commonlisp
szkl has joined #commonlisp
random-nick has joined #commonlisp
_cymew_ has joined #commonlisp
karlosz has joined #commonlisp
scymtym has joined #commonlisp
Guest21 has quit [Quit: Client closed]
aartaka has quit [Ping timeout: 255 seconds]
kenran has quit [Remote host closed the connection]
aartaka has joined #commonlisp
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
azimut has joined #commonlisp
karlosz has quit [Remote host closed the connection]
markb1 has joined #commonlisp
pawa2 has quit [Ping timeout: 255 seconds]
karlosz has joined #commonlisp
glaucon has quit [Quit: Leaving.]
karlosz has quit [Quit: karlosz]
karlosz has joined #commonlisp
MajorBiscuit has quit [Ping timeout: 255 seconds]
eddof13 has joined #commonlisp
aartaka has quit [Ping timeout: 255 seconds]
tyson2 has joined #commonlisp
aartaka has joined #commonlisp
zxcvz has joined #commonlisp
karlosz has quit [Read error: Connection reset by peer]
karlosz has joined #commonlisp
zxcvz has quit [Client Quit]
karlosz has quit [Ping timeout: 255 seconds]
glaucon has joined #commonlisp
jeosol has quit [Quit: Client closed]
mingus has quit [Ping timeout: 252 seconds]
silasfox has quit [Remote host closed the connection]
ldb has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
scymtym has quit [Ping timeout: 255 seconds]
silasfox has joined #commonlisp
silasfox has quit [Client Quit]
karlosz has joined #commonlisp
Brucio-61 has joined #commonlisp
scymtym has joined #commonlisp
Guest63 has joined #commonlisp
<Guest63> Hello there, Do you exchange code snippets here?
<beach> On a paste site, sure.
<beach> For example the one mentioned in the topic: plaster.tymoon.eu
<beach> In the channel, one-liners are common.
<Guest63> Paste site is quite nice a thing, now
<Guest63> One-liners in LISP, may you show some example, please.
<Bike> just, like, a single line of code
<Bike> (print 4)
<beach> Oh, like when people want some advice about stuff like keyword arguments.
<Guest63> Ah, now, got it.
karlosz has quit [Quit: karlosz]
<beach> So are you planning to show us something?
karlosz has joined #commonlisp
cage has joined #commonlisp
morganw has joined #commonlisp
<Guest63> Yes, I do.
pranavats has left #commonlisp [Error from remote client]
Guest63 has quit [Quit: Ping timeout (120 seconds)]
pranavats has joined #commonlisp
<pve> Hi! If I do (setf (macro-function 'foo) (lambda (form &optional env) ...)), then slime will show the argument list "(foo form &optional env)" down in echo area. Is there a way make it show the actual argument list of the macro?
<beach> How would it know that?
<pve> beach: I'd like to tell it.
<Bike> i think that depends on your implementation. swank calls an 'arglist' hook that asks the implementation for the lambda list.
<beach> Oh, I see. I bet that's some implementation-specific mechanism.
igemnace has quit [Remote host closed the connection]
<pjb> possibly the implementation stores the macro lambda list somewhere, perhaps in the symbol-plist?
<pjb> Try macroexpand defmacro.
<beach> Oh, that's a good idea.
<pve> ok, so is (eval `(defmacro foo ...)) an option here?
<Bike> could be, although i usually try pretty hard to avoid eval
<Bike> how are you constructing the macro definition?
<beach> I see a (declare sb-c::lambda-list ...) but I don't know in which context it is legal.
karlosz has quit [Quit: karlosz]
<pve> Bike: I have something like a generic function called "create-macros"
<pve> specialized on a class
tyson2 has quit [Remote host closed the connection]
Guest63 has joined #commonlisp
<Guest63> My pain is here.  https://plaster.tymoon.eu/view/3668#3668
<beach> pve: You can use sb-c::%defmacro. Then you can use that declaration.
<pve> beach: Thanks, that works, since I happen to use SBCL. Seems there is no solution that works for all implementations.
<pve> except perhaps the eval thing
<beach> pve: Right, the mechanism for declaring the lambda list is implementation specific anyway.
<beach> Sure, EVAL works.
<beach> Guest63: That's a very general question. You can use any class as a specialzier, including CAPI classes. Also, lines 3 and 7 should be indented.
<beach> Sorry, 4 and 7.
<ldb> the first question be, is the "class" you want to specialize the real class
<ldb> it would be easy to verify using #'FIND-CLASS
<Guest63> (defmacro 'push-button)
<Guest63> Error: syntax error in (DEFMACRO (QUOTE PUSH-BUTTON)):
<Guest63> ((QUOTE PUSH-BUTTON)) does not match (DSPEC::NAME LAMBDA-LIST &BODY DSPEC::BODY).
<jackdaniel> minion: tell Guest63 about pcl
<minion> Guest63: look at pcl: pcl-book: "Practical Common Lisp", an introduction to Common Lisp by Peter Seibel, available at http://www.gigamonkeys.com/book/ and in dead-tree form from Apress (as of 11 April 2005).
<ixelp> Practical Common Lisp
<jackdaniel> I think that you lack some knowledge about common lisp basics, so I'd rather recommend to you starting from the book mentioned above
<jackdaniel> otherwise you'll get only more confused with how people will try to guide it (because they will assume that you understand some concepts)
<beach> Guest63: I agree with jackdaniel. If you are trying to define a macro using that DEFMACRO syntax, it looks like you need some more basic knowledge first.
<beach> Guest63: Plus, your question in the paste does not seem to match this new error you are showing. So it is hard to know what kind of help you want.
aartaka has quit [Ping timeout: 246 seconds]
aartaka has joined #commonlisp
Guest63 has quit [Ping timeout: 260 seconds]
marsia has quit [Quit: ZNC 1.8.2 - https://znc.in]
marsia has joined #commonlisp
ldb has left #commonlisp [ERC 5.4 (IRC client for GNU Emacs 28.1)]
Cymew has quit [Ping timeout: 255 seconds]
kevingal has joined #commonlisp
Lycurgus has joined #commonlisp
tyson2 has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
masinter has joined #commonlisp
<NotThatRPG_away> Guest63: I'd suggest treating defmacro as an advanced topic and get your footing in normal DEFUNs first. DEFMACRO is quite unlike most programming language macro facilities.
NotThatRPG_away is now known as NotThatRPG
<beach> I think Guest63 left.
tyson2 has quit [Remote host closed the connection]
occ has joined #commonlisp
quoosp has quit [Ping timeout: 248 seconds]
Guest63 has joined #commonlisp
<NotThatRPG> beach: Overawed by our fine personalities and good looks!
<beach> That must be it, yeah.
marsia has quit [Ping timeout: 246 seconds]
akoana has joined #commonlisp
marsia has joined #commonlisp
waleee has joined #commonlisp
karlosz has joined #commonlisp
frgo has joined #commonlisp
jon_atack has quit [Ping timeout: 255 seconds]
pranavats has joined #commonlisp
emanuele6 has quit [Ping timeout: 252 seconds]
Lycurgus has quit [Quit: Exeunt: personae.ai-integration.biz]
karlosz has quit [Quit: karlosz]
karlosz has joined #commonlisp
<splittist> Am I missing some fabulous quicklisp (or other) system for extracting text from PDFs? Or, rather: I would like to search the text of (pre-OCRed) PDFs and report (at least) the file and page that the searched-for text (or regex, or whatever) appears. Does anyone know how I could do that in lisp? cl-pdf-parser gets some of the way...
<_death> by pre-OCRed do you mean that the pdf contains images? anyway, for extracting text (I need a few lines) I just call out to pdftotext
aartaka has quit [Ping timeout: 264 seconds]
<sweatshirt> anyone know how to grab html form data? I'm using hunchentoot
aartaka has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
jeosol has joined #commonlisp
<splittist> _death: I meant 'already OCRed', i.e. that the text has already been added to the PDFs (often as invisible text aligned with the images). I don't want to get the text out, so much as tell people where in the document to find some particular text.
Guest63 has quit [Quit: Ping timeout (120 seconds)]
pranavats has joined #commonlisp
jon_atack has joined #commonlisp
<jackdaniel> sweatshirt: form data is usually send as post and get parameters - hunchentoot provides access to them in the request parameter
<jackdaniel> also I think that the 'easy handler' allows to simply name them as symbols and some clever macro binds them to variables
amoroso has joined #commonlisp
bilegeek has joined #commonlisp
jon_atack has quit [Ping timeout: 248 seconds]
luis has quit [Ping timeout: 265 seconds]
jon_atack has joined #commonlisp
zyni-moe has joined #commonlisp
zyni-moe has quit [Client Quit]
<NotThatRPG> Does CL have a class of output stream that just ignores what is written to it?
<NotThatRPG> ah, Edi Weitz has me covered! A broadcast-stream with no components.
mariari has quit [Ping timeout: 252 seconds]
glaucon has quit [Read error: Connection reset by peer]
<jackdaniel> (make-broadcast-stream), yes
karlosz has quit [Quit: karlosz]
mariari has joined #commonlisp
jon_atack has quit [Ping timeout: 248 seconds]
pranavats has left #commonlisp [Disconnected: Hibernating too long]
jon_atack has joined #commonlisp
aartaka has quit [Ping timeout: 268 seconds]
pranavats has joined #commonlisp
aartaka has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
verisimilitude has joined #commonlisp
verisimilitude has left #commonlisp [ERC (IRC client for Emacs 27.2)]
tyson2 has joined #commonlisp
aartaka has quit [Ping timeout: 248 seconds]
aartaka has joined #commonlisp
akoana has quit [Ping timeout: 255 seconds]
jon_atack has quit [Ping timeout: 246 seconds]
jon_atack has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
yottabyte has joined #commonlisp
attila_lendvai has quit [Ping timeout: 255 seconds]
attila_lendvai has joined #commonlisp
_cymew_ has quit [Ping timeout: 268 seconds]
cage has quit [Quit: rcirc on GNU Emacs 28.2]
amoroso has quit [Quit: Client closed]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
son0p has quit [Ping timeout: 252 seconds]
emanuele6 has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
scymtym has quit [Ping timeout: 248 seconds]
aartaka has quit [Ping timeout: 255 seconds]
Brucio-61 has joined #commonlisp
scymtym has joined #commonlisp
masinter has quit [Ping timeout: 252 seconds]
sweatshirt has quit [Remote host closed the connection]
pve has quit [Quit: leaving]
robin_ has joined #commonlisp
waleee has quit [Ping timeout: 255 seconds]
waleee has joined #commonlisp
robin has quit [Ping timeout: 252 seconds]
shka has quit [Ping timeout: 268 seconds]
Oladon has joined #commonlisp
sweatshirt has joined #commonlisp
earl-ducaine has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
attila_lendvai has quit [Ping timeout: 255 seconds]
jmdaemon has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgherdt has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 252 seconds]
pranavats has left #commonlisp [Disconnected: Hibernating too long]
bilegeek_ has joined #commonlisp
bilegeek has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
pranavats has joined #commonlisp
LW has quit [Quit: WeeChat 3.6]
pawa2 has joined #commonlisp