freenode/#lisp - IRC Chatlog
Search
4:24:48
ebrasca
open-network-stream: make client process failed: Connection refused, :name, sly-1, :buffer, nil, :host, 127.0.0.1, :service, 4005, :nowait, nil
4:45:08
ebrasca
I have read http://joaotavora.github.io/sly/#Connecting-to-a-remote-Lisp but I can't make sly to connect.
5:02:32
jasom
Elronnd: https://jasom.github.io/clack-tutorial/pages/getting-started-with-clack/ please tell me any questions about clack not answered there so I can improve it (it's still a draft)
5:03:16
jasom
Elronnd: and it includes a link to the official docs for what env is: http://quickdocs.org/lack/#the-environment
12:12:12
atlan
13:11 *** NAMES @fe[nl]ix __main__ _death _krator44 _Trasformatore_ _whitelogger ``Erik aaronjensen abbe add^__ adulteratedjedi AeroNotix aeth aijony akash47 akr alandipert alexmlw alms_clozure alphor amer angavrilov angular_mike antismap AntiSpamMeta antoszka aoh arbv Arcaelyx argoneus Aritheanie arrsim ArthurAGleckler[ asedeno askatasuna astronavt[m] atlan azrazalea banjiewen beach beaky benny billstclair bitch Bl
12:45:38
jackdaniel
looks like accidential paste. no need to call people (even hypothetically) dicks without a good reason
12:50:41
Younder
perhaps we should just live with it. This society has become somewhat excessively polite. Next we will all be hypocritical liars.
13:35:26
Shinmera
(defun class-subclasses (c) (let (r) (labels ((r (c) (unless (find c r) (push c r) (mapc #'r (c2mop:class-direct-subclasses c))))) (r c))))
13:51:27
Shinmera
beach: I specifically don't use pushnew because the unless also prevents re-traversing the subclasses if the class was already traversed.
15:38:25
phoe
Can I put any kind of hook that will execute whenever a class is being defined via DEFCLASS?
15:39:33
Xach
phoe: I haven't done that much, but my first instinct is via a metaclass and the standard initialize-instance stuff on it.
15:51:59
phoe
My problem is, I'm defining some protocol classes that are not meant to be instantiated. This class can be subclassed, both by other protocol classes and by concrete classes.
15:53:05
phoe
I want a programmatic way to get all concrete subclasses of a given protocol class. So, for example, if there's a protocol class A, a concrete class B that subclasses A, a protocol class C that subclasses A, and a concrete class D that subclasses C, (class-concrete-classes 'a) should return (B D).
15:54:57
phoe
I have power over how I define protocol classes, so I can just enumerate them in some sort of list or hash table or whatever. But I have no power over redefining classes, so if the user defines class A as a concrete class, then my records are no longer valid.
15:55:12
pjb
Alternatively, protocol classes or concrete classes, or both, could inherit from a protocol or concrete abstract superclass.
15:55:53
phoe
pjb: this won't work, because each concrete class would be a subclass of a protocol class which would be a subclass of that specific superclass for protocols.