freenode/#lisp - IRC Chatlog
Search
18:58:50
pjb
(cl:list-length '(a b . #1=(c d e))) #| --> 5 |# (com.informatimago.common-lisp.cesarum.list:list-lengths '(a b . #1=(c d e))) #| --> 5 ; 0 |#
18:59:33
pjb
(cl:list-length '(a b . #1=(c d e . #1#))) #| --> nil |# (com.informatimago.common-lisp.cesarum.list:list-lengths '(a b . #1=(c d e . #1#))) #| --> 2 ; 3 |#
18:59:54
pjb
so you may prefer list-lengths, if you need to know where the cycle begins, and how long it is.
19:00:50
pjb
phoe: it will depend on whether you want to find the cycles, or just to know if there are some.
19:04:21
slyrus_
man, reading PEP 572 I'm glad I use a language that doesn't distinguish between expressions and statements.
19:04:58
pjb
(defun has-cycles-p (nodes lessp) (/= (length (topological-sort nodes lessp)) (length nodes)))
19:06:51
pjb
slyrus: keep reading and try: (if (let ((match (match-re …))) (report-match match) (setf match (find-next match)) match) (do-it)) ;-)
19:13:26
jeosol
is anyone here running a cl-web application with multiple users (requiring management of user permissions, control access, etc)? there is a preference for django but I will prefer CL is possible. This is will be production use.
19:35:00
sukaeto
since it's easy to use different backends with clack, it makes development convenient
19:35:24
sukaeto
you can just start a background thread using hunchentoot in your REPL, but set up workers using fcgi in prod
20:19:39
aeth
White_Flame: Not human involvement at runtime, human involvement at programmer time. I meant the user of the library, not the user of the program.
23:07:33
jasom
Josh_2: Parenscript macros are common lisp, and it is a DSL for generating javascript.
1:59:08
blep-on-external
ACTION uploaded an image: lukd.png (106KB) < https://matrix.org/_matrix/media/v1/download/ponies.im/7b926b5e35069d2e9bca6fa0e6fe5605 >
4:51:34
beach
A new version of the specification of the SICL memory allocator is now available in case someone feels like reviewing it: http://metamodular.com/allocator.pdf
6:43:53
beach
shrdlu68: I think that book has some very deep insight. It is quite hard to read though, so I am taking my time. But it has already given me some interesting understanding of some parts of society that concern me.
6:47:07
beach
shrdlu68: I don't know whether the author is going to mention it, but it occurred to me right away that commercial software development is an inadequate equilibrium, which is why free software is often able to do "better" in terms of some quality metric.
6:51:07
shrdlu68
beach: Indeed, the book made me appreciate how powerful behavioral economics is at creating useful models of complex systems.