freenode/#lisp - IRC Chatlog
Search
14:49:18
selwyn
dlowe: a python fanatic tells me that Python lacks adequate symbolic computation libraries (sympy is not good enough apparently)
14:50:23
heisig
dlowe: Python is not well suited for anything that needs to run fast (or reliable). Python C extensions are ... ugly. So cl4py certainly has its use.
14:50:58
heisig
dlowe: Funny example - you can call cl.compile from Python to have JIT compilation and cl.disassemble to inspect it.
15:56:20
fivo
Is it possible in CLOS to instantiate an instance of subclass B from an instance of superclass A.
16:05:08
shka_
fivo: not really, you can add defgeneric cloning-information to make it less annoying
16:08:55
Bike
which, what, you'd provide multiple superclass instances and get a copy combining all of them?
16:10:20
Bike
you'd have to specify some stuff, like what to do if the superclasses share a slot but have different values in it.
16:16:12
scymtym
this sounds like a prototype-based object system. maybe https://github.com/sbcl/specializable/blob/master/examples/prototype-specializer.lisp is relevant
16:16:44
jackdaniel
can anyone suggest some resource which provides some background knowledge about writing benchmarks?
16:20:00
selwyn
on that note, can someone suggest a resource that provides background knowledge about writing unit tests
16:21:43
Fade
richard gabriel wrote an article some time ago about implementing his benchmarks, but I"m having trouble finding it.
16:24:12
housel
Namely https://stefan-marr.de/downloads/dls16-marr-et-al-cross-language-compiler-benchmarking-are-we-fast-yet.pdf
18:21:59
moldybits
does this function have a name, and does it exist? (f '(1 2 3)) => ((1 2) (2 3) (3 1))
18:30:31
Bike
(let ((c nil)) (alexandria:map-combinations (lambda (x) (push x c)) '(1 2 3) :length 2) c)
18:32:34
pjb
Perhaps he's collecting successive pairs cycling back. (defun f (list) (loop for (a b) on list collect (list a (or b (first list))))) (f '(1 2 3)) #| --> ((1 2) (2 3) (3 1)) |#
19:14:50
sjl_
(defun f (list) (loop for (a . b) on list collect (list a (if b (car b) (first list)))))
19:29:07
flip214
warweasle: as long as you have some termination condition that triggers before the compiler stack is full...
19:33:14
warweasle
I'll be happy to share when I'm done. It's for the lisp jam...It take a dialogue tree and executes it.
22:03:49
gjvc
does anyone have any suggestions on getting SLIME working on Fedora 30 ? it can't find swank-loader.lisp