freenode/#lisp - IRC Chatlog
Search
21:47:47
oleo
http://dpaste.com/0K969GG http://dpaste.com/3P713VV http://dpaste.com/2MK678B http://dpaste.com/1F5S302
23:55:53
aeth
I just finished moving nearly everything into with-accessors* and my custom prefixed versions (with-foo-accessors*) in my quest to reduce repetition in Lispy ways. Essentially, it's just with-accessors, but if it's a symbol instead of a list, then it assumes the binding and the accessor are the same name. No more (with-accessors ((width width) (height height)) foo ...)
23:57:21
aeth
I wonder why they didn't do that in the standard. It's a pretty trivial change and I'd assume most uses of with-accessors use the same variable name as the accessor name unless the accessor name is prefixed (and I deal with uniform-for-an-object prefix elimination my own way, with a define-accessor-macro that essentially defines a with-foo-accessors that automatically applies the prefix)
2:58:15
Xach
loke: had a power outage, now it does not react to power switch. replaced the power supply, still doesn't power on. haven't fully troubleshot.
3:00:55
skeuomorf
How do I start new common lisp projects? i.e. how to structure projects? FWIW I am going to use SBCL
3:01:09
Xach
I appreciate the offer, contributions will already more than cover replacement hardware. It's the time suck that is the main hassle.
3:01:47
Xach
skeuomorf: https://xach.livejournal.com/278047.html is something i wrote a while ago. there are other guides out there.
3:50:39
aeth
And in general, just follow the link to # instead of #p http://www.lispworks.com/documentation/HyperSpec/Body/02_dh.htm
6:38:33
skeuomorf
beach: Was gonna do a pseudo-"static site generator" to replace my current setup "Hakyll" but decided to discard the idea for the moment
6:41:53
skeuomorf
jackdaniel: Yeah, I saw that earlier but it doesn't really fit my needs, has a lot of things that I don't need (e.g. colorize, tweeting, gfycats, ..etc) and doesn't have stuff I need (I sometimes write in rst, org-mode, LaTeX)
6:44:58
jackdaniel
(ftr) https://common-lisp.net/project/ecl/ ; https://common-lisp.net/project/mcclim/ ; turtleware.eu
6:45:09
skeuomorf
jackdaniel: Yes, I am aware. I meant in regards to the codebase, I haven't looked at it yet though
6:47:12
jackdaniel
afair coleslaw is pretty extensible, so if you find rst->html converter adding a plugin should be straightforward
6:47:25
jackdaniel
I've added cl-who plugin at some point of time because I needed control over tables
6:48:03
skeuomorf
The main reason I'm moving away from Hakyll is that it's the embodiment of the Turing Tarpit
6:48:28
skeuomorf
jackdaniel: Yeah, I've used similar EDSLs in Haskell and more closely to CL in Clojure e.g. Hiccup
6:55:34
skeuomorf
jackdaniel: It seems it already has support for rst https://github.com/kingcons/coleslaw/blob/master/docs/plugin-use.md#restructuredtext
6:57:49
jackdaniel
(just to be clear – I'm not affiliated with the project, I just happen to use this software)
8:32:28
nowhere_man
two times in a row, I managed to corrupt somehow a FASL file in my SBCL, while doing something that nothing to do with it
8:33:24
nowhere_man
killed SBCL, started it again, loaded the system I'm working on, then I get "The variable BULK/CORE::+CORE+ is unbound."
8:36:49
xificurC
nowhere_man: which first list? (list x :y :z) == '(:x :y :z) in this case. I'm asking how can I inject a symbol's value into trivia's pattern matcher
8:38:48
xificurC
imagine you're trying to rewrite this into trivia::match (let ((x :x) (to-match '(:x :y :z))) (cond ((eq x (car to-match)) (cdr to-match))))
8:39:14
scymtym
xificurC: not directly afaik, but you can do (let ((x :x)) (optima:match '(:x :y :z) ((list* (optima:guard first (eq first x)) rest) (list :first first :rest rest)))) (which should work in trivia as well)
8:40:16
jackdaniel
I had problems with trivia not evaluating first match argument (so not being really compatible with optima)
8:44:37
xificurC
I looked over the pattern matching libraries on cliki, which is always fun to do after ~2 years. I also really liked cl-unification (except for find-variable-value) and screamer. Is anyone here using any of these? Would love some feedback from first hand experience
8:44:39
jackdaniel
I remember having optima match expression used in trivia what lead to compilation error
8:50:29
xificurC
loli: ok, now rewrite this to trivia::match (let ((x :x) (to-match '(:x :y :z))) (cond ((eq x (car to-match)) (cdr to-match))))
8:58:17
scymtym
xificurC: optima has a shortcut for the guard thing: (let ((x :x)) (optima:match '(:x :y :z) ((list* (eq x) rest) (list :rest rest))))
9:09:30
loli
I would suggest consulting the wiki, as it has information on special-patterns and what not
9:09:49
loli
also I would recommend looking into let-match if you only have 1 form inside of a match