freenode/#lisp - IRC Chatlog
Search
21:00:47
chream_
Hi, I am having some troubles with emacs and ecl. When trying to load some systems it unexpectedly disconnects me from ecl and the server stops. The only info I get is from the swank server: Illegal instruction: 4. I seem to have traced the problem to cffi. Has anyone had this before? Also, one clue might be that I recently installed many native GNU command line tools on my mac. Has anyone had any troubles with this before?
21:02:00
chream_
Lastly, the systems apparently install fine when I tried outside emacs and slime. Might be a emacs problem then?
21:02:59
chream_
Also, everything works on other implementations. (works on sbcl, got an unrelated heap error for allegro)
21:09:54
Shinmera
Well if you use CFFI or other stuff that directly manipulates memory, you might corrupt the implementation badly, leading to a crash.
21:10:36
Shinmera
Might also be a bug in ECL, or the library not being adapted to certain ECL specific things.
21:12:07
jackdaniel
recent changes to slime (didn't find time to narrow them yet) shown some ECL problems. probably my last pull request to slime repository
21:27:13
asarch
Common Lisp has CLOS, Emacs has "Enhanced Implementation of Emacs Interpreted Objects"
21:47:57
aeth
I can't say this: (defstruct foo (bar (make-array +foo+ :element-type 'fixnum) :type (simple-array fixnum (+foo+))))
21:48:54
aeth
I can e.g. say this: (defstruct foo (bar (make-array (list +foo+ 4) :element-type 'fixnum) :type (simple-array fixnum (42 4))))
21:49:30
aeth
So I can get around the problem of make-array for 2D arrays where '(+foo+ 4) will obviously not work, but I can't get around the problem of type in a defstruct for any dimension arrays if there's a constant instead of a number for the size
21:50:14
aeth
The problem is that defstruct doesn't quote the type in :type so I can't e.g. `(,+foo+) or (list +foo+)
22:11:10
aeth
The best alternative if there's no workaround would probably be to define (gensym) types with the struct