Iterate over a struct slots1427 (11/22/2011 3:25:36 PM) comp.lang.lisp (defstruct foo (slot1) (slot2) (slot3)) (defvar i0 (make-foo ...)) (defvar i1 (make-foo ...)) Now Suppose I want to merge i1 into i0 using the following rule: for each slot of i0 do if slot is null... Nicolas
Network APIs1033 (2/17/2011 7:29:46 PM) comp.lang.lisp Hi group, I always wondered why Common Lisp still suffers from a standard network API. Of course, some abstraction layers are available to abstract compilers implementations, but nothing really useable beyond ... Nicolas
binary stream with vector of '(unsigned-byte 8)245 (11/9/2009 8:00:01 PM) comp.lang.lisp Hello, I am using vectors of '(unsigned-byte 8) to read/write data from/to sockets. The software interface I have to use implies the use of such vectors, and I don't have access to underground binary stream no... Nicolas
macros for generating lambda functions at runtime2430 (11/2/2009 4:06:46 PM) comp.lang.lisp Dear group I'd like to make some closures to speed up operations that are specified at run time, as it is done for regex compilation. So let's take a *very* simple exmaple: CL-USER> (defun foo (value) ... Nicolas
How to inspect a local variable in the debugger137 (11/26/2008 12:06:14 PM) comp.lang.lisp (crossposting with sbcl help mailing list) Hi, Suppose I define a class foo (defclass foo () .....) Now, when in the (sbcl) debugger, I am asking for the local variables of frame #3, eg: 3] L SB-DEBUG::ARG-0... Nicolas
macro arguments type329 (11/8/2008 5:27:15 PM) comp.lang.lisp Hi, consider the following: CL-USER> (defmacro bar (x) (print (type-of x)) `(type-of ,x)) BAR CL-USER> (bar 'a) CONS SYMBOL I don't understand why the type-of operator returns CONS whi... Nicolas
asdf and dependencies245 (10/8/2008 8:48:15 PM) comp.lang.lisp Let's suppose the following files tree: foo -+- foo.lisp |- dir - bar.lisp I want to make a foo.asd file and make it useable through asdf. (defsystem foo :name foo :components ((:file "foo") ... Nicolas
exporting a symbol and name conflicts130 (6/30/2008 12:43:44 PM) comp.lang.lisp hello, I want to export symbols from the default package. CL-USER> (defvar *foo* nil) *FOO* CL-USER> (export '*foo* :cl-user) T CL-USER> (defpackage :bar (:use :cl :cl-user)) # CL-USER> (in-package :bar) # BA... nicolas
Socket, InputStream and close526 (6/25/2008 2:25:00 PM) comp.lang.java.programmer I am wondering why the hell the SocketInputStream.close() implementation uses socket.close () instead of socket.shutdownInput() . I just want to close the input, not the output either ! (I'm using sun java 1.5.... nicolas
compiling/running a lisp project232 (6/18/2008 1:55:54 PM) comp.lang.lisp Suppose I have a project organized this way: +- file1.lisp +- file2.lisp (..) | +- + f1-file1.lisp | + f1-file2.lisp | (..) | +- + f2-file1.lisp | + f2-file2.lis... nicolas
Iterate over a struct slots1427 (11/22/2011 3:25:36 PM) comp.lang.lisp (defstruct foo (slot1) (slot2) (slot3)) (defvar i0 (make-foo ...)) (defvar i1 (make-foo ...)) Now Suppose I want to merge i1 into i0 using the following rule: for each slot of i0 do if slot is null... nicolas.edel(71)
binary stream with vector of '(unsigned-byte 8)245 (11/9/2009 8:00:01 PM) comp.lang.lisp Hello, I am using vectors of '(unsigned-byte 8) to read/write data from/to sockets. The software interface I have to use implies the use of such vectors, and I don't have access to underground binary stream no... nicolas.edel(71)
macros for generating lambda functions at runtime2430 (11/2/2009 4:06:46 PM) comp.lang.lisp Dear group I'd like to make some closures to speed up operations that are specified at run time, as it is done for regex compilation. So let's take a *very* simple exmaple: CL-USER> (defun foo (value) ... nicolas.edel(71)
Extracting class slot names1130 (12/15/2008 11:10:11 PM) comp.lang.lisp Is there a portable way to get a list of the names of all the slots in a class? I know about class-slots (and class-direct-slots) but these return (apparently) opaque slot-definition objects from which the n... rNOSPAMon(1856)
How to inspect a local variable in the debugger137 (11/26/2008 12:06:14 PM) comp.lang.lisp (crossposting with sbcl help mailing list) Hi, Suppose I define a class foo (defclass foo () .....) Now, when in the (sbcl) debugger, I am asking for the local variables of frame #3, eg: 3] L SB-DEBUG::ARG-0... nicolas.edel(71)
macro arguments type329 (11/8/2008 5:27:15 PM) comp.lang.lisp Hi, consider the following: CL-USER> (defmacro bar (x) (print (type-of x)) `(type-of ,x)) BAR CL-USER> (bar 'a) CONS SYMBOL I don't understand why the type-of operator returns CONS whi... nicolas.edel(71)
I want to create my own language2126 (10/20/2008 7:28:02 PM) comp.lang.lisp As the title says, I want to create my own language. I want it to have a similar syntax to Python (but I don't want it to be Python, I have some ideas about it which are surely going to make it incompatible). I... javuchi(458)
#! /usr/local/bin/lisp ?1034 (10/10/2008 12:35:41 PM) comp.lang.lisp This is a kind of a follow up to my previous post about executable form of a Lisp program. When I write a Perl script and include "#! /usr/bin/perl" as the first line, I can chmod it to 755 and run it like "pe... cartercc(421)
asdf and dependencies245 (10/8/2008 8:48:15 PM) comp.lang.lisp Let's suppose the following files tree: foo -+- foo.lisp |- dir - bar.lisp I want to make a foo.asd file and make it useable through asdf. (defsystem foo :name foo :components ((:file "foo") ... nicolas.edel(71)
Socket, InputStream and close526 (6/25/2008 2:25:00 PM) comp.lang.java.programmer I am wondering why the hell the SocketInputStream.close() implementation uses socket.close () instead of socket.shutdownInput() . I just want to close the input, not the output either ! (I'm using sun java 1.5.... nicolas.edel(71)