Pascal J.Bourguignon | 4 Feb 21:55 2004
X-Face

SIN on Darwin


I've just  compiled sbcl  0.8.7 on Darwin  naiad.informatimago.com 6.8
Darwin   Kernel  Version   6.8:  Wed   Sep  10   15:20:55   PDT  2003;
root:xnu/xnu-344.49.obj~2/RELEASE_PPC  Power Macintosh  powerpc, which
went well.

In irrat.pure.lisp, the tests fail on (SIN (* 8 (/ PI 2)))
which returns: -4.898425415289509d-16  on Linux/ix86
  but returns: -4.898587196588413d-16  on Darwin/ppc750.

which is wrong in both cases: sin(8pi/2)=sin(4pi)=sin(2*2pi)=sin(0)=0.

So I guess it does not matter that the eleventh significant digit
differ if the first is wrong!

Instead  of testing against  a string  representation of  the computed
value, it  would be much  better to test  sanely for a  floating point
number:

    (assert (and (< (abs (sin (* 8 (/ pi 2)))) 1d15)  
                 (equal (print1-to-string -4.898425415289509d-16)
                        "-4.898425415289509d-16")))

instead of:

    (assert (equal (print1-to-string (sin (* 8 (/pi 2)))) "-4.89whateverD-16"))

And similarly for some other tests involving floating point or complex
floating point numbers...

(Continue reading)

Eric Merritt | 5 Feb 00:18 2004
Picon

non-blocking sb-bsd-sockets and select (from the contrib dir)

I need non-blocking sockets for a project I am working
on, sb-bsd-sockets seems to provide this but I can't
seem to find any select call. Does anyone have any
ideas?

Thanks for your time,
Eric

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Dave Roberts | 17 Feb 09:57 2004

Docs on CMUCL vs. SBCL differences?

I'm trying to use SBCL and finding that I want to use some of the
various extensions that are defined. I have found the sb-ext: package
and been able to invoke some functions there (sb-ext:run-program, in
particular). I have been trying to use the CMUCL manual and then making
some translation of the package name, but some things don't translate. I
have tried using APROPOS to search for function names and discover the
SBCL package names. This works up to a point, but there are some
differences to the CMUCL manual (like the UNIX: and SB-UNIX: packages).
Is there some documentation somewhere that documents SBCL in a manner
similar to CMUCL's manual, or is reading the CMUCL manual and using
APROPOS about the best available right now? If so, what are the major
differences between the CMUCL interfaces and current SBCL (I'm using
0.8.6 from sf.net as it had RPMs available for it).

Thanks,

-- Dave

--

-- 
Dave Roberts <ldave <at> droberts.com>

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Tony Martinez | 17 Feb 23:14 2004
Picon

Re: non-blocking sb-bsd-sockets and select (from the contrib dir)

> I need non-blocking sockets for a project I am working on,
> sb-bsd-sockets seems to provide this but I can't seem to find any
> select call. Does anyone have any ideas?

(People with clues don't seem to have chimed in overtly, so I'll break
cover...)

Yes, SB-BSD-SOCKETS provides non-blocking sockets and doesn't provide
a SELECT-a-like.  The CLHS defines LISTEN, which might do what you
want.  It works on streams, not only socket streams:

    (progn
      (require "ASDF")
      (require "sb-bsd-sockets")
      (use-package "SB-BSD-SOCKETS"))

    (defparameter *string-stream*
      (make-string-input-stream "foo bar baz"))

    (defparameter *socket-stream*
      (let ((socket (make-instance 'inet-socket :type :stream :protocol :tcp)))
        (socket-connect socket #(127 0 0 1) 1975)
        (socket-make-stream socket)))

    (defun simple-select (streams)
      (dolist (stream streams)
        (when (listen stream)
          (return-from simple-select stream))))

    ;; Starts netcat: "nc -l localhost -p 1975" in another window, types "foo
(Continue reading)

William Harold Newman | 17 Feb 17:25 2004
Picon

Re: Docs on CMUCL vs. SBCL differences?

On Tue, Feb 17, 2004 at 12:57:51AM -0800, Dave Roberts wrote:
> I'm trying to use SBCL and finding that I want to use some of the
> various extensions that are defined. I have found the sb-ext: package
> and been able to invoke some functions there (sb-ext:run-program, in
> particular). I have been trying to use the CMUCL manual and then making
> some translation of the package name, but some things don't translate. I
> have tried using APROPOS to search for function names and discover the
> SBCL package names. This works up to a point, but there are some
> differences to the CMUCL manual (like the UNIX: and SB-UNIX: packages).
> Is there some documentation somewhere that documents SBCL in a manner
> similar to CMUCL's manual, or is reading the CMUCL manual and using
> APROPOS about the best available right now? If so, what are the major
> differences between the CMUCL interfaces and current SBCL (I'm using
> 0.8.6 from sf.net as it had RPMs available for it).

No, there's nothing as comprehensive as the old CMU CL manual. There
is an SBCL user manual (in the distribution and online at
<http://sbcl.sourceforge.net/manual/>) but even though it started life
as the CMU CL manual, it's not complete, and in particular it doesn't
cover many extensions, so in many cases the doc strings are all you
get.

--

-- 
William Harold Newman <william.newman <at> airmail.net>
software that Eventually Just Works
PGP key fingerprint 85 CE 1C BA 79 8D 51 8C  B9 25 FB EE E0 C3 E5 7C

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
(Continue reading)

Chris Wright | 25 Feb 00:15 2004
Picon
Picon

install from source on osx

Hi,

I've d/l sbcl-0.8.7 source, and I'm using openmcl as the 
cross-compilation host.

sh make.sh goes well, but when I then sh install.sh I get:

cp: output/sbcl.core: No such file or directory

and indeed that's true:

<10:13>/Users/caw/dl/sbcl-0.8.7 #: ls output/
build-id.tmp                            genesis-2
cold-sbcl.core                          
object-filenames-for-genesis.lisp-expr
cold-sbcl.map                           stuff-groveled-from-headers.lisp

the last few lines of the output from sh make.sh are:

(sb-int:/show "done with warm.lisp, about to GC :FULL T")
(gc :full t)

         ;; resetting compilation policy to neutral values in
         ;; preparation for SAVE-LISP-AND-DIE as final SBCL core (not
         ;; in warm.lisp because SB-C::*POLICY* has file scope)
         (sb-int:/show "setting compilation policy to neutral values")
         (proclaim '(optimize (compilation-speed 1)
              (debug 1)
              (inhibit-warnings 1)
              (safety 1)
(Continue reading)

Brian Mastenbrook | 25 Feb 00:34 2004
Picon
Picon

Re: install from source on osx

On Feb 24, 2004, at 6:15 PM, Chris Wright wrote:

> Hi,
>
> I've d/l sbcl-0.8.7 source, and I'm using openmcl as the  
> cross-compilation host.

The third hit on google for sbcl "os x" is the following page:

http://www.cs.indiana.edu/~bmastenb/software/SBCL/sbcl-g5-or- 
panther.html

Which would have provided the relevant information; however, as of  
today, SBCL 0.8.8 is released, which should build out of the box for  
you.
--
Brian Mastenbrook
bmastenb <at> cs.indiana.edu
http://cs.indiana.edu/~bmastenb/

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
Lars Rosengreen | 26 Feb 09:03 2004

macosx binary release: "no rule to make target 'asdf-install-install' "

I'm running into the following problem when installing the binary 
release of sbcl 0.8.8 on OS X:

When I run install.sh, I am getting the following error:

kinkajou:~/sbcl-0.8.8-ppc-darwin lars$ sudo sh install.sh
Password:
cp: doc/sbcl-asdf-install.1: No such file or directory
//GNUMAKE="gnumake"
cp asdf.fasl /usr/local/lib/sbcl/asdf
gnumake: *** No rule to make target `asdf-install', needed by 
`asdf-install-install'.  Stop.

When I start sbcl and evaluate (require 'asdf-install), I see this:

* (require 'asdf-install)

debugger invoked on a SIMPLE-ERROR in thread 29934:
   Don't know how to load ASDF-INSTALL

You can type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
   0: [ABORT   ] Reduce debugger level (leaving debugger, returning to 
toplevel).
   1: [TOPLEVEL] Restart at toplevel READ/EVAL/PRINT loop.
("hairy arg processor for top level local call REQUIRE" ASDF-INSTALL 
NIL)
0] 0

(Continue reading)

Chris Wright | 26 Feb 23:40 2004
Picon
Picon

Re: macosx binary release: "no rule to make target 'asdf-install-install' "

On 26/02/2004, at 7:03 PM, Lars Rosengreen wrote:

> I'm running into the following problem when installing the binary 
> release of sbcl 0.8.8 on OS X:
>
> When I run install.sh, I am getting the following error:
>
>
> kinkajou:~/sbcl-0.8.8-ppc-darwin lars$ sudo sh install.sh
> Password:
> cp: doc/sbcl-asdf-install.1: No such file or directory
> //GNUMAKE="gnumake"
> cp asdf.fasl /usr/local/lib/sbcl/asdf
> gnumake: *** No rule to make target `asdf-install', needed by 
> `asdf-install-install'.  Stop.
>
>

I had success building sbcl from source. I've already got openmcl 
installed (as a binary) and used that as the cross compiler.
Brian Mastenbrook was very patient with me, and I quote from his web 
page:

http://www.advogato.org/person/bmastenbrook/
"
One thing that has come to my attention is that setting LD_PREBIND to 
YES on OS X interferes with SBCL buildability. You will have to unset 
this before building SBCL.
"

(Continue reading)

Lars Rosengreen | 27 Feb 06:00 2004

Re: macosx binary release: "no rule to make target 'asdf-install-install' "

Thanks for the advice.  The source distribution builds and installs 
without issue on my system, including contrib/asdf-install.  The binary 
dist installs without issue, except for contrib/asdf-install, and I 
can't figure out what the problem is.  I wrote an ".info" file for 
installing the sbcl 0.8.8 binary dist through fink, which is why I'm 
interested in making sure everything works.

All the best,
Lars.

On Feb 26, 2004, at 2:40 PM, Chris Wright wrote:

> On 26/02/2004, at 7:03 PM, Lars Rosengreen wrote:
>
>> I'm running into the following problem when installing the binary 
>> release of sbcl 0.8.8 on OS X:
>>
>> When I run install.sh, I am getting the following error:
>>
>>
>> kinkajou:~/sbcl-0.8.8-ppc-darwin lars$ sudo sh install.sh
>> Password:
>> cp: doc/sbcl-asdf-install.1: No such file or directory
>> //GNUMAKE="gnumake"
>> cp asdf.fasl /usr/local/lib/sbcl/asdf
>> gnumake: *** No rule to make target `asdf-install', needed by 
>> `asdf-install-install'.  Stop.
>>
>>
>
(Continue reading)


Gmane