freenode/lisp - IRC Chatlog
Search
5:41:53
gabbiel
Hey guys, I'm trying to create this 2 macros called "synonymize-macro" and "synonymize-function"
5:43:03
gabbiel
I'm trying to really make it a synonym, i.e. have the new synonyms inherit documentation and arglists
5:44:20
gabbiel
I thought of using trivial-args, and then processing the return value of the arglist function in the trivial-args package
5:44:25
no-defun-allowed
eg (setf (fdefinition 'bar) (fdefinition 'foo)) worked here, copied function and documentation
5:55:25
gabbiel
on a similar note, I also have a macro called funmacro, which turns a function into a macro
5:59:29
gabbiel
sounds dumb, but I have this function I use for my hobby which uses only lists and its annoying to have to quote a bunch of lists
6:01:37
gabbiel
I also wrote a macro "nq" which doesn't define anything, but calls a function with args quoted, maybe I should use that, but idk, funmacro is useful because it also allows for defining with anonymous functions
6:09:58
gabbiel
no-defun-allowed: is there a function akin to fdefinition/macro-function for special operators?
6:15:03
pillton
I am skeptical about your synonym anyhow. You are only considering the function namespace.
6:22:31
gabbiel
quick question, I learned I have to do (eval-when (compile load execute) ...) when I need to use macros within the same file. if I macro that away, will it eval-when, or wont it do anything as its a macro?
8:40:46
pjb
afidegnum: you cannot install quicklisp in emacs. emacs implements emacs lisp. quicklisp is written in Common Lisp.
8:41:42
pjb
afidegnum: there was a (partial) Common Lisp implemented in emacs lisp, but it bit rot since introduction of lexical bindings in emacs lisp. You might want to work on it, it's emacs-cl. Then a port of quicklisp to emacs-cl would be envisageable.
8:44:36
pjb
afidegnum: slime is a kind if IDE letting you develop CL programs using emacs as an editor and user interface for the CL debugger, the CL repl, the CL inspector, etc. So indeed, you could install quicklisp using the CL you access thru slime. But it would be simplier to start at the terminal with quicklisp, since quicklisp also has tools to install slime.
8:48:47
pjb
Ah,sorry, I don't know anything about portacle. Shouldn't everything be already installed and available with it?
8:52:51
pjb
Is quicklisp already installed in your home director? Is there a file ~/quicklisp/setup.lisp ?
8:53:54
pjb
(load #P"~/quicklisp/setup.lisp") is all that is required to load quicklisp if it's already installed. You could add this form to your rc file.
9:33:26
Nilby
Just set the pixels, e.g: (loop for i from 0 below (length (zpng:image-data image)) do (setf (aref (zpng:image-data image) i) #xff))
9:38:10
flip214
but array allocation is likely to write some "sane" value into all pixels anyway, so why write twice?
10:01:25
flip214
still, it looks like a very common use-case to me, so IMO the library should support that.
10:02:05
Nilby
I like the simplicity of the library. Also transparent black is my favorite "sane" value.
10:23:39
pjb
oni-on-ion: I'm sorry, but I always assume people mean what they say. Not my fault if they're not able to say what they mean.
10:24:31
pjb
(If they were able to say what they mean, they wouldn't have to say it in the first place anyways).
10:31:22
dim
pjb: being able to say what you mean is a very rare gift, or only happens to people who never ever try to say anything complex, or open themselves to talking about their emotions and perceptions, so maybe try to be more a human than an english compiler?
10:32:35
dim
anyway that's off-context, my backlog doesn't show me the relevant conversation, but I still though it's important to say that