libera/#commonlisp - IRC Chatlog
Search
14:56:40
beach
Right, but as scymtym's presentation for the online Lisp meeting showed, bugs were introduced in the translation process.
14:59:17
nij-
GASP.. "SBCL is a mostly-conforming implementation of the ANSI Common Lisp standard." Ok I guess that's life.
15:04:26
beach
nij-: It can be argued that 1. It is impossible to be entirely conforming because of (minor) bugs in the standard, and 2. It is not desirable to be entirely conforming because of some (silly) bugs in the standard.
15:19:10
phoe
3. it might be preferable to have e.g. unicode behavior rather than strict CL conformance with regard to lowercase-uppercase character mappings
15:41:02
semz
Afaik all deviations of CLHS from the standard are also pretty obvious. prog1 and prog2 are clearly not intended to do the exact same thing.
16:03:52
semz
There is also https://groups.google.com/g/comp.lang.lisp/c/LNWHPFfnCRA/m/hj0Cv9POmg4J for differences between CLTL2 and the standard.
16:46:50
nij-
After this form (https://bpa.st/ENAQ), is it correct to say that USER is a class, but USER is also an instance of a (meta)class MITO:DAO-TABLE-CLASS?
17:09:54
beach
Yes, but this was about finding metaclasses, not superclasses. So if you continue the CLASS-OF application, you will end up with STANDARD-CLASS.
17:10:50
rotateq
but I didn't see yet the :col-type slot keyword, maybe they changed the DEFCLASS macro
17:11:44
specbot
standard-direct-slot-definition: http://metamodular.com/CLOS-MOP/class-standard-direct-slot-definition.html
21:44:29
asarch
I have: (defclass foo () ((beer :initform 3))) and then (defclass bar (foo) ()) and I would like to have 6 as the default value of beer in bar. How can I do this?
21:47:05
asarch
Should I (defclass bar (foo) ((beer :initform 6))) or should I (defmethod initialize-instance :after ((instance foo)) (setf (slot-value instance 'beer) 6))?
22:31:45
asarch
How is better (in terms of efficiency)? (setf buffer (concatenate 'string buffer "…")) or just (setf buffer (format nil "~s …" buffer))?
22:34:13
hayley
Many Lisp implementations generate formatter functions at runtime, if the format string is constant.
22:39:17
sm2n
even if you pass a value to make-instance it will be overriden by your method in that case
22:40:50
sm2n
initialize-instance is more for doing things on new objects in general, for example putting them in a pool etc
23:03:21
asarch
You have (let ((food '(beer taco pizza))) …) and then (loop for element in food do …). Is there a way to know what element (n-th) you are currently in every loop?
23:15:06
dre_
if I'm going to be stuck without internet for a while, what's the best way to have a reference to common lisp ?
23:16:05
dre_
I suppose I have PCL and LOL and I could just flick through that to find something I want to do, but if I could have a thing like 'how do I do x' -- offline, while I'm away, that would be helpful
23:21:41
dre_
yeah I was thinking slime might have something worthwhile for me, but I (as a lowly vim user) will keep clutching at my pearls
23:43:31
asarch
How can you make Emacs to "unlearn" a word for word suggestions? E.g. when you type 'indxe' instead of 'index'?
0:32:55
Xach
asarch: it uses a hash table to store them, so i suppose it is limited by available memory.
0:45:29
hayley
Probably a fair few, assuming they use approximately too many languages, which probably is the case.
0:58:08
rotateq
maybe also Clojure (which states it's good for concurrency) or Elixir. the second maybe used in twitch too (I don't know), but surely amazon just bought it in 2014
0:58:54
rotateq
hayley: it's easier to list the few powerful things they and others manage to go around :P