freenode/#lisp - IRC Chatlog
Search
9:25:29
heisig
What does #lisp think about having an extensible defclass macro? Or is there already such a thing?
9:26:07
heisig
The idea would be that the metaclass can decide what clauses are allowed and how they are handled.
9:27:46
heisig
For example, one could define default methods for (:metaclass structure-class) that expand the entire thing into a defstruct definition.
10:02:58
heisig
shka_: I know. But how do I pass additional arguments to my custom metaclass? By not using defclass?
10:06:48
shka_
ok, so you want to pass extra options to make instance called on your metaclass, right?
10:09:19
heisig
But I am not sure whether that is a sane thing to do. The spec doesn't allow it, so I guess there must be a reason.
10:09:35
shka_
well, i think that passing additional options in usual place in defclass may be portable enough
10:16:43
shka_
maybe you can simply add your own initialize generic function and simply call it manually
11:08:05
heisig
jackdaniel: Yes, shadowing CL symbols is not a wise move. I will either call it define-class or defclass*.
11:29:05
akater
Does SBCL do “translation to C” at any point to produce native code for ANSI CL? (I believe it's not but I'd like to make sure.)
12:28:01
akater
TMA shka_: I'm aware of basics when it comes to SBCL and ECL, I just happened to encounter someone spreading claims that Lisp is hopelessly dependent on C.
12:28:06
akater
As far as I understand, once you have something like SB-SYS:*LINKAGE-INFO* and corresponding infrastructure, and have your system bootstrapped, there is no need to rely on C at all.
12:32:46
heisig
akater: The SICL project has also made a lot of progress towards bootstrapping Common Lisp from Common Lisp. It does not contain a single line of C code.
13:45:51
jcowan
There are very few language implementations that are completely independent of C, unless (e.g.) they compile I/O operations into system calls rather than libc function calls.
13:47:28
jcowan
Also, C with libgc is rather a nice language, although I've only used it once so far (I was modifying a buggy C program that had its own very limited gc).
13:49:42
jackdaniel
is that person making an argument, that CL is a crappy language because C is a crappy language? :-)
14:02:08
pjb
being dependent on libc is not being dependent on C. libc can be implemented in any programming language. Including CL.
14:37:30
Posterdati
pjb: I have the manual too, seems that it accepts f(x1, x2, ..., xn), but not f(X) with X = [ x1, x2, ..., xn ]