libera/#commonlisp - IRC Chatlog
Search
20:55:49
Guest82
@pve Is there a way to see all the variables in the current script? I tried (inspect *readtable*) but didn't understand the output so much
20:56:49
Guest82
I feel like there's a bit of a jump between starting to program in lisp and understanding how to deal with all these things...
20:57:01
pve
Guest82: Sorry I'm not familiar with caveman2, but you could at least print to a file if you can't see standard-output
20:58:54
pve
Guest82: (with-open-file (*out* "debug.log" :direction :output :if-exists :append) (print *out* "Hello!"))
21:02:31
lisp123_
Guest82: "I feel like there's a bit of a jump between starting to program in lisp and understanding how to deal with all these things..." --> I won't lie, it will take a bit of time, but the benefits will be great down the track
21:04:45
pve
Guest82: it may be that running the thing from within sublime is complicating things too much if you are unable to see any output
21:05:14
Guest82
lisp123_ I find macros are the solution to my problems fighting languages to be able to abstract things, but I feel like there should be a smaller barrier to entry than learning lisp and emacs at the same time
21:05:44
pve
Guest82: You could try starting it manually from the shell instead. Then you should see the debugging output at least.
21:05:56
Guest82
pve I hear, I understand everything is easier with emacs, but I don't know how to use emacs and I feel it's too much to learn both in one shot
21:07:11
pve
Guest82: remember to familiarize yourself with the various command line parameters like --eval and --load to get maximum convenience
21:07:29
lisp123_
Guest82: Try Portacle. I don't disagree with you, the combo of learning lisp and emacs makes it a bit harder, but both tools have a lot of benefits too - so you will get a lot of success down the track :)
21:08:07
lisp123_
Guest82: Sorry to beat a daed horse, but I _highly_ recommend emacs for any sort of lisp programming
21:08:22
Guest82
lisp123_ yeah, from what've I've read it seems it's a great combination. I tried portacle but they didn't support latest mac os
21:08:54
pve
Guest82: and if working from the shell, do define convenience functions or symbol-macros to reload your project quickly
21:11:35
pve
Guest82: silly example: (define-symbol-macro rr (asdf:load-system "myapp")) will make "rr" reload your stuff after you've edited it in sublime
21:24:25
Guest82
lisp123_ what's the easiest tutorial about dealing with lisp on emacs? I feel like the tutrial here is just text editting, and then to do lisp modes and other things is another huge jump
21:25:35
pjb
Guest82: Bug for CL, it's http://cliki.net/Getting+Started and http://cliki.net/Online+Tutorial
21:43:21
pve
Guest82: I like Marco Baringer's SLIME video (https://www.youtube.com/watch?v=NUpAvqa5hQw), you can skip to around the 10:00 mark.
21:46:24
Guest82
Warning (initialization): An error occurred while loading ‘/Users/danielnussenbaum/.emacs.d/init.el’:
21:46:25
Guest82
File is missing: Opening input file, No such file or directory, /Users/danielnussenbaum/zsh:1: command not found: rosconfig
21:50:04
pve
Guest82: I'm rewatching the slime video now, and it's incredible how useful it still is, despite being a little old
22:03:27
kakuhen
the nice part about quicklisp is not only that it's widely used nowadays, but also lets you quickly test your projects on other cl implementations, assuming you added it to your implementation's init file (i.e. your .sbclrc, .eclrc, and so on)
4:39:49
hayley
So, The Art of the Metaobject Protocol turns 30...today or perhaps yesterday depending on time zone.
8:36:42
lisp123_
Can I redefine standard functions within this package and they will shadow the standard ones (but where I don't specify them, they will fall back to the standard ones)?
8:39:45
lisp123_
I am getting an error "Lock on package COmmon-Lisp violated) - is there a way to suppress this?
8:45:59
pjb
(defpackage "YOUR-CL" (:use "CL") (:export . #.(let (clsyms) (do-external-symbols (s "CL" clsyms) (push (string s) clsyms)))) (:shadow "DEFUN"))
8:47:14
pjb
(in-package "YOUR-CL") (defmacro defun (name lambda-list &body body) `(CL:defun ,name (,@lambda-list &aux (,(gensym) (print '(entering ,name)))) ,@body))
8:47:40
pjb
mind using the qualified name when you want to refer to the CL symbol, instead of yours.