From pjb at informatimago.com Tue Aug 3 12:59:49 2010 From: pjb at informatimago.com (Pascal J. Bourguignon) Date: Tue, 03 Aug 2010 14:59:49 +0200 Subject: [iolib-devel] defgeneric/defmethod lambda list mismatch. Message-ID: <87k4o7ua0q.fsf@kuiper.lan.informatimago.com> In gray-stream-mixin.lisp, there are inconsistencies in the lambda lists of generic functions and the corresponding methods: (defgeneric stream-read-sequence (stream sequence start end &key &allow-other-keys)) (defgeneric stream-write-sequence (stream sequence start end &key &allow-other-keys)) #+clisp (progn (defmethod gray:stream-read-sequence ((s trivial-gray-stream-mixin) seq &optional start end) (stream-read-sequence s seq (or start 0) (or end (length seq)))) (defmethod gray:stream-write-sequence ((s trivial-gray-stream-mixin) seq &optional start end) (stream-write-sequence s seq (or start 0) (or end (length seq)))) (defmethod gray:stream-position ((stream trivial-gray-stream-mixin) position) (if position (setf (stream-file-position stream) position) (stream-file-position stream)))) -- __Pascal Bourguignon__ http://www.informatimago.com/ From sionescu at cddr.org Tue Aug 3 13:11:57 2010 From: sionescu at cddr.org (Stelian Ionescu) Date: Tue, 03 Aug 2010 21:11:57 +0800 Subject: [iolib-devel] defgeneric/defmethod lambda list mismatch. In-Reply-To: <87k4o7ua0q.fsf@kuiper.lan.informatimago.com> References: <87k4o7ua0q.fsf@kuiper.lan.informatimago.com> Message-ID: <1280841117.7479.3.camel@blackhole.cddr.org> On Tue, 2010-08-03 at 14:59 +0200, Pascal J. Bourguignon wrote: > In gray-stream-mixin.lisp, there are inconsistencies in the lambda > lists of generic functions and the corresponding methods: > > > (defgeneric stream-read-sequence > (stream sequence start end &key &allow-other-keys)) > > (defgeneric stream-write-sequence > (stream sequence start end &key &allow-other-keys)) > > > > #+clisp > (progn > (defmethod gray:stream-read-sequence > ((s trivial-gray-stream-mixin) seq &optional start end) > (stream-read-sequence s seq (or start 0) (or end (length seq)))) > > (defmethod gray:stream-write-sequence > ((s trivial-gray-stream-mixin) seq &optional start end) > (stream-write-sequence s seq (or start 0) (or end (length seq)))) > > (defmethod gray:stream-position ((stream trivial-gray-stream-mixin) position) > (if position > (setf (stream-file-position stream) position) > (stream-file-position stream)))) There's no inconsistency here: iolib.base:stream-read-sequence and gray:stream-read-sequence are different generic functions -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur. http://common-lisp.net/project/iolib -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From sionescu at cddr.org Tue Aug 3 19:06:58 2010 From: sionescu at cddr.org (Stelian Ionescu) Date: Wed, 04 Aug 2010 03:06:58 +0800 Subject: [iolib-devel] IOLib release 0.7.0 Message-ID: <1280862419.7479.14.camel@blackhole.cddr.org> After 18 months, there's a new IOLib release. Get it while it's hot :) Tarball available @ http://common-lisp.net/project/iolib/download.shtml -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur. http://common-lisp.net/project/iolib -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From sionescu at common-lisp.net Wed Aug 4 09:00:06 2010 From: sionescu at common-lisp.net (Stelian Ionescu) Date: Wed, 04 Aug 2010 05:00:06 -0400 Subject: [iolib-devel] New patches: 3-Aug-2010 Message-ID: commit 097f7bdff047ca21df0fae1aa0df161c8fc75b41 Author: Stelian Ionescu Date: Wed Aug 4 02:54:13 2010 +0800 Update CHANGES CHANGES | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) commit c449735495632bed4be98de2cc69d209cdcd3cf0 Author: Stelian Ionescu Date: Wed Aug 4 02:51:22 2010 +0800 Update version.lisp-expr version.lisp-expr | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit ea173212ef33253fd1344beaae5e9f6a672aff0d Author: Stelian Ionescu Date: Wed Aug 4 02:15:08 2010 +0800 Version 0.7.0 CHANGES | 6 ++++-- version.lisp-expr | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) commit 2688688ef2a41ff3aff481580faaf4224e4969d4 Author: Stelian Ionescu Date: Wed Aug 4 02:10:11 2010 +0800 Move version string to an external file examples/iolib.examples.asd | 4 ++++ src/iolib.asd | 5 ++++- src/iolib.base.asd | 4 ++++ src/iolib.multiplex.asd | 4 ++++ src/iolib.os.asd | 4 ++++ src/iolib.pathnames.asd | 4 ++++ src/iolib.sockets.asd | 4 ++++ src/iolib.streams.asd | 4 ++++ src/iolib.syscalls.asd | 4 ++++ src/iolib.trivial-sockets.asd | 4 ++++ tests/iolib-tests.asd | 4 ++++ version.lisp-expr | 2 ++ 12 files changed, 46 insertions(+), 1 deletions(-) commit d12470e02042fada687a40a03a1e77c52cbcf072 Author: Stelian Ionescu Date: Wed Aug 4 01:41:47 2010 +0800 Fix stream tests tests/streams.lisp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit 62d5c2dce3adbd01227d50cdefc6e1c5c3a8051c Author: Stelian Ionescu Date: Tue Aug 3 22:16:17 2010 +0800 Fix Gray streams on CLISP. Thanks to Pascal Bourguignon. src/base/gray-stream-mixin.lisp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) An updated tarball of IOLib's source can be downloaded here: http://common-lisp.net/project/iolib/files/snapshots/iolib-20100803.tar.gz Main repository: http://gitorious.org/iolib/iolib Backup 1: http://common-lisp.net/gitweb?p=projects/iolib/iolib.git Backup 2: http://repo.or.cz/w/iolib.git From zena.treep at gmail.com Sat Aug 7 21:27:48 2010 From: zena.treep at gmail.com (Heka Treep) Date: Sun, 8 Aug 2010 01:27:48 +0400 Subject: [iolib-devel] Need FFI for some new syscalls Message-ID: Hello, Is it possible to add in IOLIB several new syscalls? Namely: 1) Syslog staff (part of the POSIX standrd), 2) Sendfile (is not standardized, but still good thing), 3) And aio_* syscalls (is also part of the POSIX). All of these calls are often used when writing web servers and if someone wants to write one in CL - they may come in handy :) I added 1 & 2 to iolib-clean repo on gitorios.org. 3 is more complicated (especially the representation of structures in Linux). -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjb at informatimago.com Mon Aug 9 01:33:19 2010 From: pjb at informatimago.com (Pascal J. Bourguignon) Date: Mon, 09 Aug 2010 03:33:19 +0200 Subject: [iolib-devel] error with :soname in clisp Message-ID: <87aaow4lk0.fsf@kuiper.lan.informatimago.com> asdf loading the latest iolib (git pull ten minutes ago), in clisp 2.48 on Linux, I get the following error: Illegal keyword/value pair :SONAME, "libiolib-syscalls" in argument list. The allowed keywords are #1=(:CC-FLAGS :NAME :VERSION :IN-ORDER-TO :DO-FIRST :PARENT :PATHNAME :PROPERTIES) [Condition of type SYSTEM::SIMPLE-KEYWORD-ERROR] CL-USER> (print-bug-report-info) LISP-IMPLEMENTATION-TYPE "CLISP" LISP-IMPLEMENTATION-VERSION "2.48 (2009-07-28) (built 3487176824) (memory 3487176954)" SOFTWARE-TYPE "gcc -O2 -pipe -march=native -mno-tls-direct-seg-refs -Wa,--noexecstack -I/usr/include/db4.7 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -pthread -DUNICODE -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI -I. -Wl,-O1 /usr/lib64/libreadline.so -lncurses -ldl /usr/lib64/libavcall.so /usr/lib64/libcallback.so -L/usr/lib64 -lsigsegv -L/usr/lib64 -lc SAFETY=0 TYPECODES WIDE_HARD GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY libsigsegv 2.8 libreadline 6.1" SOFTWARE-VERSION "GNU C 4.3.5" MACHINE-INSTANCE "kuiper.lan.informatimago.com [192.168.7.2]" MACHINE-TYPE "X86_64" MACHINE-VERSION "X86_64" *FEATURES* (CFFI-FEATURES:X86-64 CFFI-FEATURES:UNIX :CFFI :X86-64 :LITTLE-ENDIAN :LINUX :TESTING-SCRIPT :COM.INFORMATIMAGO.PJB :ASDF-INSTALL :SPLIT-SEQUENCE :ASDF :ZLIB :PCRE :GDBM :DBUS :BERKELEY-DB :CLX-MIT-R5 :CLX-MIT-R4 :XLIB :CLX :CLX-LITTLE-ENDIAN :RAWSOCK :WILDCARD :READLINE :REGEXP :SYSCALLS :I18N :LOOP :COMPILER :CLOS :MOP :CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :MT :SOCKETS :GENERIC-STREAMS :LOGICAL-PATHNAMES :SCREEN :FFI :GETTEXT :UNICODE :BASE-CHAR=CHARACTER :WORD-SIZE=64 :PC386 :UNIX) ;;; uname -a Linux kuiper 2.6.35-gentoo-c5-kvm-nvidia #1 SMP Wed Aug 4 21:11:58 CEST 2010 x86_64 Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux ;;; (EXT:ARGV) #("/usr/lib64/clisp-2.48/full/lisp.run" "-B" "/usr/lib64/clisp-2.48" "-M" "/usr/lib64/clisp-2.48/full/lispinit.mem" "-N" "/usr/share/locale" "-ansi" "-q" "-K" "full" "-m" "32M" "-I" "-E" "UTF-8" "-Epathname" "ISO-8859-1" "-Eforeign" "ISO-8859-1") ;;; /usr/bin/clisp --version GNU CLISP 2.48 (2009-07-28) (built 3487176824) (memory 3487176952) Software: GNU C 4.3.5 gcc -O2 -pipe -march=native -mno-tls-direct-seg-refs -Wa,--noexecstack -I/usr/include/db4.7 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -pthread -DUNICODE -DMULTITHREAD -DPOSIX_THREADS -DDYNAMIC_FFI -I. -Wl,-O1 /usr/lib64/libreadline.so -lncurses -ldl /usr/lib64/libavcall.so /usr/lib64/libcallback.so -L/usr/lib64 -lsigsegv -L/usr/lib64 -lc SAFETY=0 TYPECODES WIDE_HARD GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY libsigsegv 2.8 libreadline 6.1 Features: (READLINE REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL INTERPRETER MT SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT UNICODE BASE-CHAR=CHARACTER WORD-SIZE=64 PC386 UNIX) C Modules: (clisp i18n syscalls regexp readline) Installation directory: /usr/lib64/clisp-2.48/ User language: ENGLISH Machine: X86_64 (X86_64) kuiper.lan.informatimago.com [192.168.7.2] ; No value CL-USER> -- __Pascal Bourguignon__ http://www.informatimago.com/ From sionescu at cddr.org Mon Aug 9 08:03:26 2010 From: sionescu at cddr.org (Stelian Ionescu) Date: Mon, 09 Aug 2010 09:03:26 +0100 Subject: [iolib-devel] error with :soname in clisp In-Reply-To: <87aaow4lk0.fsf@kuiper.lan.informatimago.com> References: <87aaow4lk0.fsf@kuiper.lan.informatimago.com> Message-ID: <1281341006.18188.0.camel@blackhole.cddr.org> On Mon, 2010-08-09 at 03:33 +0200, Pascal J. Bourguignon wrote: > asdf loading the latest iolib (git pull ten minutes ago), in clisp > 2.48 on Linux, I get the following error: > > > Illegal keyword/value pair :SONAME, "libiolib-syscalls" in argument list. > The allowed keywords are #1=(:CC-FLAGS > :NAME :VERSION :IN-ORDER-TO :DO-FIRST :PARENT :PATHNAME > :PROPERTIES) > [Condition of type SYSTEM::SIMPLE-KEYWORD-ERROR] You must use CFFI HEAD for the moment -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur. http://common-lisp.net/project/iolib -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From pjb at informatimago.com Sat Aug 14 02:47:20 2010 From: pjb at informatimago.com (Pascal J. Bourguignon) Date: Sat, 14 Aug 2010 04:47:20 +0200 Subject: [iolib-devel] remote-host on a closed socket. Message-ID: <87bp959ah3.fsf@kuiper.lan.informatimago.com> When calling remote-host on a closed socket, we get an unrelated type error (on ECL, about NIL not being a FIXNUM). By analogy to CL:CLOSE, I think it would be better if it returned the remote-host of the last connection, or either return NIL or a specific condition (which would be guaranted to be the same on all implementations). (let ((s (open "/etc/passwd"))) (close s) (pathname s)) --> #P"/etc/passwd" -- __Pascal Bourguignon__ http://www.informatimago.com/ From steve at cs.clemson.edu Wed Aug 18 20:25:02 2010 From: steve at cs.clemson.edu (Dennis Stevenson) Date: Wed, 18 Aug 2010 16:25:02 -0400 Subject: [iolib-devel] Problem compiling iolib on CentOS 5/x86_64 Message-ID: <201008182025.o7IKP2tT002177@cs.clemson.edu> I just downloaded from the website as the tar, not the git. Is there a simple fix? * (asdf:compile-system :iolib) ; loading system definition from ; /home/steve/.sbcl/site/iolib-0.7.0/src/iolib.asd into # ; loading system definition from ; /home/steve/.sbcl/site/iolib-0.7.0/src/iolib.base.asd into # ; registering # as IOLIB.BASE ; loading system definition from /home/steve/.sbcl/systems/alexandria.asd into ; # ; registering # as ALEXANDRIA ; registering # as IOLIB ; loading system definition from ; /home/steve/.sbcl/site/iolib-0.7.0/src/iolib.sockets.asd into ; # ; loading system definition from /home/steve/.sbcl/systems/cffi-grovel.asd into ; # ; registering # as CFFI-GROVEL ; loading system definition from /home/steve/.sbcl/systems/cffi.asd into ; # ; registering # as CFFI ; loading system definition from /home/steve/.sbcl/systems/babel.asd into ; # ; registering # as BABEL ; loading system definition from /home/steve/.sbcl/systems/trivial-features.asd ; into # ; registering # as TRIVIAL-FEATURES ; registering # as IOLIB.SOCKETS ; loading system definition from /home/steve/.sbcl/systems/bordeaux-threads.asd ; into # ; registering # as BORDEAUX-THREADS ; loading system definition from ; /home/steve/.sbcl/site/iolib-0.7.0/src/iolib.streams.asd into ; # ; registering # as IOLIB.STREAMS ; loading system definition from /home/steve/.sbcl/systems/trivial-garbage.asd ; into # ; registering # as TRIVIAL-GARBAGE ; registering # as TRIVIAL-GARBAGE-TESTS ; loading system definition from ; /home/steve/.sbcl/site/iolib-0.7.0/src/iolib.multiplex.asd into ; # ; registering # as IOLIB.MULTIPLEX ; loading system definition from ; /home/steve/.sbcl/site/iolib-0.7.0/src/iolib.syscalls.asd into ; # ; registering # as IOLIB.SYSCALLS debugger invoked on a SB-PCL::INITARG-ERROR in thread #: Invalid initialization argument: :SONAME in call for class #. See also: The ANSI Standard, Section 7.1.2 Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level. (SB-PCL::CHECK-RI-INITARGS # (:NAME "ffi-wrappers" :PATHNAME "ffi-wrappers-unix" :PARENT # :SONAME "libiolib-syscalls")) From fahree at gmail.com Wed Aug 18 20:44:39 2010 From: fahree at gmail.com (=?ISO-8859-1?Q?Far=E9?=) Date: Wed, 18 Aug 2010 16:44:39 -0400 Subject: [iolib-devel] Problem compiling iolib on CentOS 5/x86_64 In-Reply-To: <201008182025.o7IKP2tT002177@cs.clemson.edu> References: <201008182025.o7IKP2tT002177@cs.clemson.edu> Message-ID: On 18 August 2010 16:25, Dennis Stevenson wrote: > I just downloaded from the website as the tar, not the git. > > Is there a simple fix? > > ?Invalid initialization argument: > ? ?:SONAME > ?in call for class #. You need the latest CFFI. [ Fran?ois-Ren? ?VB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] There is no such thing as a "necessary evil". If it's necessary, then it cannot be evil, neither can it be good: it's a datum. ? Far? From sionescu at cddr.org Wed Aug 18 22:42:17 2010 From: sionescu at cddr.org (Stelian Ionescu) Date: Thu, 19 Aug 2010 00:42:17 +0200 Subject: [iolib-devel] Problem compiling iolib on CentOS 5/x86_64 In-Reply-To: <201008182025.o7IKP2tT002177@cs.clemson.edu> References: <201008182025.o7IKP2tT002177@cs.clemson.edu> Message-ID: <1282171337.27911.3.camel@blackhole.cddr.org> On Wed, 2010-08-18 at 16:25 -0400, Dennis Stevenson wrote: [...] > debugger invoked on a SB-PCL::INITARG-ERROR in thread # "initial thread" RUNNING > {AA03961}>: > Invalid initialization argument: > :SONAME > in call for class #. > See also: > The ANSI Standard, Section 7.1.2 > > Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. > > restarts (invokable by number or by possibly-abbreviated name): > 0: [ABORT] Exit debugger, returning to top level. As Far? said, you need to use cffi HEAD -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur. http://common-lisp.net/project/iolib -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: