libera/#commonlisp - IRC Chatlog
Search
7:22:54
boeg
Anyone have experience with caveman and mito? I'm not quite sure how to connect the two properly. Is all that needs to be edited found in the db.lisp file, or is there other places where I need to do something so caveman2 is configured properly with mito?
8:21:20
Cymew
It's Fukamachiware, which usually means it's not that well documented, and I get the impression you need to have done web development in ruby to understand what the code is trying to achieve.
8:21:56
Cymew
I don't even understand what mito is used for. There seems to be some kind of db support in caveman these days, but maybe you're interested in doing something more complex.
8:40:49
aeth
jmercouris: https://stackoverflow.com/questions/3870088/a-monad-is-just-a-monoid-in-the-category-of-endofunctors-whats-the-problem
8:40:51
phoe
Lisp is a poor language to use monads in because Lisp has mutable state - see https://marijnhaverbeke.nl/monad.html
8:42:21
TMA
jmercouris: generally, in order to understand monads you need to understand monads first. people who understand monads lose the ability to explain them to people that dont
8:43:20
phoe
I'll allow myself to post https://en.wikibooks.org/wiki/Haskell/Understanding_monads and route the discussion to #lispcafe since it clearly isn't about Lisp (since Lisp doesn't force you to understand monads in order to use the language in a sensible way)
8:46:41
jmercouris
I left lispcafe sometime ago, because the discussion was not so friendly at times :-(
8:51:49
jmercouris
yet it is fully suitable for academic research as well due to some wonderful properties
9:07:29
pjb
jmercouris: if you need more links about monads: http://haskell.readscheme.org/monads.html http://dorophone.blogspot.com/2011/04/deep-emacs-part-1.html http://dorophone.blogspot.com/2011/05/hyperturtle-monad-makes-pretty-pictures.html
9:07:55
pjb
jmercouris: notably the deep-emacs page explains monad to emacs lisp programmers, so it might be particularly understandable.
10:40:21
phoe
or the police might come knocking at your door with questions about all the yaks you have shaved
10:47:47
jackdaniel
and what exactly are you angry at? perceived inconsistence between handler-case and handler-bind?
10:54:14
phoe
I was originally angry at the fact that there's no "good" tutorial to the Lisp condition system that shows how to construct it from scratch
11:11:40
_death
not sure I want to go into it right now.. maybe it's better to ignore and hope for the best
11:13:13
phoe
the only hopes that are valid for alexandria are hopes that it'll become as ossified as ANSI CL
12:40:03
MichaelRaskin
Hm, looks like some of the disappeared packages are now reuploaded by other people (or at least clx-truetype is…)
12:42:25
Bike
beach: I didn't see anyone mention it - in a lexical environment with flet bindings for "f", the global setf expander for "f" doesn't apply
12:47:00
Bike
also, if it does end up being a macro form, you have to use macroexpand-1 rather than macroexpand, so that if the thing immediately expanded into has a setf expander, you use that instead of macroexpanding
12:47:16
pjb
(defun (setf f) (nv x) (print (list '(setf f) nv x)) x) (flet ((f (x) (print (list 'f x)) x)) (incf (f 2))) #|
12:48:28
pjb
(defun (setf f) (nv x) (print (list '(setf f) nv x)) x) (flet ((f (x) (print (list 'f x)) x) ((setf f) (nv x) (print (list '(new setf f) nv x)) x)) (incf (f 2))) #|
14:44:15
Bike
Shinmera: by the way, you could define a default single-float-bits and double-float-bits using integer-decode-float, assuming they're supposed to return the IEEE754 formats... it'll work, though it'll be slower than what the implementation can do, and I don't think you can do it the other way precisely
14:46:12
Shinmera
Not sure that's a good idea, since you said /assuming/ they return the IEEE formats.
14:51:07
Bike
well, i meant, assuming that's what you want returned. you shoudl be able to tell from standard functions whether a single-float will fit.
14:51:35
Bike
like, check float-radix is 2, float-digits is 24 or less for a single, and the exponent is in range.
18:03:13
anlsh
Turns out I wasn't actually authenticating correctly, which prevented me from being able to see others' messages
18:40:01
anlsh
I started a small generics implementation, any comments? https://gist.github.com/anlsh/653cb92552063e9d209b6415b1bc01b1