freenode/#lisp - IRC Chatlog
Search
1:40:32
skami
pjb: Thanks for the clarification ! That would indeed be a fun projet to add such a read-only feature
1:50:31
stylewarning
APPEND, like most lisp functions, prefers to get the job done with the fewest copies
1:51:29
no-defun-allowed
APPEND could get confused if it tried to copy something that isn't a list, e.g. in (append '(1 2 3) 'a)
2:22:07
stylewarning
no-defun-allowed https://usercontent.irccloud-cdn.com/file/oVbhetyu/1620094917.JPG
10:08:23
luis
madrik: well, you can go back if the upgrade broke your software, or you can have different software on different versions of the quicklisp distribution
11:57:08
drmeister
Xach: We've been running a "quickclasp" server to distribute stuff specific to clasp - it's been working well.
12:30:59
nij
Anyone knows how to use this library? In particular, how to use #'digit? to parse a digit? https://github.com/Ramarren/cl-parser-combinators/blob/9c7569a4f6af5e60c0d3a51d9c15c16d1714c845/token-parsers.lisp
12:59:31
splittist
nij: you mean beyond (parse-string* (seq-list? (digit?) (digit?) (digit?)) "123") ?
13:05:57
nij
Cool. It works. Next is to try to learn how it's implemented.. I feel like it's more advanced than my level.
13:16:02
splittist
Built in? I don't know. As a general parsing lib it must be able to if set up. I guess you'd define atom? (or whatever your language requires) then match on an open paren, any number of sexps and a close paren. Not quite like this: (parse-string* (bracket? #\( (sepby? (int?) #\Space) #\)) "(1 2 3)")
13:21:11
nij
Many articles I read about lisp only says that macro helps you create DSLs a lot easier.
13:25:21
beach
nij: Macros are useful for introducing "syntactic abstractions", i.e., new syntax. You don't need macros if you can express your DSL as a collection of functions with normal function-call semantics. And in cases like that, you can write your DSL in any language you like.
13:27:24
nij
I see. That's my impression yeah. I don't see why macros and DSLs are tided together so much.. at least in many introductory articles.
13:29:55
lotuseater
yes, they can take anything and transform it :) or when you just not want having to type in so much quotes