freenode/#lisp - IRC Chatlog
Search
18:02:42
mfiano
Xach: No. I mentioned I only have write access to lispgames repositories. I sent a PR to failproofshark
18:23:10
Shinmera
I have an implementation of destructuring-bind that you could adapt to do so I guess.
18:29:18
scymtym
optima/trivia support it out-of-the-box (and much more): (optima:match #(1 2 3 4) ((optima:vector* 1 b c) (list b c))) => (2 #(3 4))
18:31:00
phoe
but then I realized my case is so trivial that I'd rather write three LET clauses than complicate my code with external dependencies
18:32:23
pjb
(let ((v (vector 1 2 3))) (symbol-macrolet ((a (aref v 0)) (b (aref v 1)) (c (aref v 2))) (+ a b c))) #| --> 6 |#
18:33:27
pjb
(let ((v (vector 1 2 3))) (symbol-macrolet ((a (aref v 0)) (b (aref v 1)) (c (aref v 2))) (values (+ (incf a) (incf b) (incf c)) v))) #| --> 9 ; #(2 3 4) |#
19:05:12
whartung
so, for server programs, is it pretty common to have a high level handler-case on condition to catch any rogue conditions that wraps a handler-bind on condition to dump a stack trace?
19:46:11
no-defun-allowed
"Write your own domain specific language to parse XML, draw charts, rate stocks or balance weasels on a rake."
19:47:42
no-defun-allowed
I'll tell you what's not cooler: when the book doesn't actually have an XML parser or weasel balancer
19:50:39
Shinmera
S-expressions existed well before the 90s and are not structurally equivalent to the absolute mess that is XML
19:52:02
makomo
no-defun-allowed was talking of the reverse, no? -- that xml is just a shitty "90s variant" of sexps
19:54:01
makomo
no-defun-allowed: maybe you can look into Ethereum. last time i checked Barski was involved in Clojure and Ethereum
19:55:19
Bike
sml is based on sgml, which was apparently based on something called gml, which is for some intel word processor ish thingamajig from 1969. learning things today...
19:58:25
no-defun-allowed
That sounds quite complicated for the task but I guess that's how people do programs now
19:59:51
makomo
i suppose most of you have already seen this, but it discusses xml and sexps http://www.defmacro.org/ramblings/lisp.html
20:00:15
makomo
oh and also, naggum's xml rant :^) https://www.schnada.de/grapt/eriknaggum-xmlrant.html
20:02:14
makomo
i found that rant pretty tough to read. i had to concentrate quite a bit more than when reading something else
22:10:29
Xach
rename-package provides an escape hatch for dealing with potential package-name conflicts between independently created projects.
22:11:47
Xach
If you had asked "does anyone do this?" I suspect the answer is "Very few". But I do feel some comfort in there being an option.
0:11:30
AeroNotix
I just had a whacky idea of layering a description similar to what PAT uses, to both create the model and the executable CSP code
4:09:01
asarch
If I already have installed some packages with QuickLisp and SBCL, is it ok to load other packages with CLISP? I mean, both actually save the package information in $HOME/.cache/common-lisp