Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

sbcl Log


Commit Date  
[81eddb] by Nikodemus Siivola Nikodemus Siivola

rename STYLE to HACKING

Also update a bit for the brave new Git-only world.

2011-06-14 17:47:32 Tree
[d27eb1] by Nikodemus Siivola Nikodemus Siivola

whitespace in tests

2011-06-14 10:24:41 Tree
[d013d0] by Nikodemus Siivola Nikodemus Siivola

add &KEY SILENT to PARSE-LAMBDA-LIST

Passed through to PARSE-LAMBDA-LIST-LIKE, used by %SPLIT-ARGLIST in PCL.

Prior to this GENERIC-FUNCTION-PRETTY-ARGLIST on functions with both
&OPTIONAL and &KEY arguments caused a style-warning -- and inquiring about
the lambda-list isn't the right time for that.

2011-06-14 09:17:15 Tree
[88d80e] by Jim Wise Jim Wise

Convert remaining tests in debug.impure.lisp to use with-test.

2011-06-13 20:27:59 Tree
[bea522] by Nikodemus Siivola Nikodemus Siivola

tests and NEWS for lp#308961

Also add a random FP read/print consistency tester.

For now it skips denormalized double-floats due to bug 793774.

2011-06-11 18:43:52 Tree
[dafa18] by David Vázquez David Vázquez , pushed by Nikodemus Siivola Nikodemus Siivola

FORMAT-AUX-EXP: adjust scale if scale-exponent return 1.0

lp#308961, part 2.

FORMAT-EXP-AUX scales a number such that it will have K digits before of the
decimal point. This relies on scale-exponent.

(format nil "~E" 0.1) ; => "1.e-1"

0: (FORMAT-EXP-AUX #<SB-IMPL::STRING-OUTPUT-STREAM {AFE5DE9}> 0.1 NIL NIL
NIL 1 NIL #\ NIL NIL)
1: (SB-IMPL::SCALE-EXPONENT 0.1)
1: SB-IMPL::SCALE-EXPONENT returned 0.1 0
0: FORMAT-EXP-AUX returned "1"

0.1 is 0.1 * 10^0 according to scale-exponent. Then, it is multiplied by 10^K
before printing. Everything works out fine.

However!

(format nil "~E" 0.01) ; => "10.e-3" ... oops

0: (FORMAT-EXP-AUX #<SB-IMPL::STRING-OUTPUT-STREAM {AA744C1}> 0.01 NIL NIL
NIL 1 NIL #\ NIL NIL)
1: (SB-IMPL::SCALE-EXPONENT 0.01)
1: SB-IMPL::SCALE-EXPONENT returned 1.0 -2
0: FORMAT-EXP-AUX returned "2"

In this example, scale-exponent returns 1.0 and -2, meaning 0.01 = 1.0 *
10^-2. Again, format-aux-exp multiply it by 10^K. But as 1.0 has a digit
before of the decimal point, the result will have K+1 digits.

This is due to format-exp-aux assumed the returned value will be lesser to
1.0. In order to fix this, we decrement K when scale-exponent return 1.0 as
primary value.

2011-06-11 18:43:52 Tree
[58187b] by David Vázquez David Vázquez , pushed by Nikodemus Siivola Nikodemus Siivola

FLONUM-TO-DIGITS handles non-negative input properly

lp#308961, part 1.

SBCL has an extended version of the Burger & Dybwig fp printer, which
supports rounding.

It did not however support zero -- but in eg.

(format nil "~,1F" 0.001)

0.001 is rounded to zero, which leads FLONUM-TO-DIGITS giving us one zero too
many. Ie. it should be

=> "0.0"

but prior to this we got "0.00" instead.

This patch removes the special casing for 0, and instead tests that the lower
limit of the interval (- r m-) is positive in order not to generate extra
zeros.

2011-06-11 18:43:52 Tree
[25692c] by Paul Khuong Paul Khuong

Specialised constant MAKE-{SINGLE,DOUBLE}-FLOAT VOPs on x86 as well

These only trigger when the float to construct is a NaN, so very
marginal, and it doesn't seem worth the trouble on all the other
platforms (that don't support inline constants yet).

2011-06-11 15:28:46 Tree
2011-06-11 14:54:29 Tree
[1fe4bc] by Nikodemus Siivola Nikodemus Siivola

robustify DIRECTORY on logical pathnames

PATHNAME-INTERSECTIONS used to return pathnames with name or type
NIL if there was a mismatch -- but it should not return any
pathnames at all for a mismatch.

2011-06-11 13:56:41 Tree
[30a766] by Paul Khuong Paul Khuong

Fix #!- vs #- confusion in number's singleton-p type method

2011-06-11 05:45:55 Tree
[9e37bf] by Paul Khuong Paul Khuong

Avoid constant folding NaNs from MAKE-{SINGLE,DOUBLE}-FLOAT

Perform it in a specialised transform that checks for NaNs, and
add VOPs for constant arguments to avoid any slowdown.

Fixes lp#486812.

2011-06-11 05:41:27 Tree
[9f5c04] by Paul Khuong Paul Khuong

Improve SINGLE-FLOAT-BITS on x86-64

Avoid narrow-store-to-wide-load hazards, and generally emit sane
MOVSXD for sign extension.

Fixes lp#555201.

2011-06-11 04:09:11 Tree
[edd4f6] by Paul Khuong Paul Khuong

Fix a corner case in RUN-PROGRAM with very long argument strings

Argument string of length on the order of MOST-POSITIVE-FIXNUM
could lead to severe crashes.

I don't know why we bothered declaring FIXNUMs in RUN-PROGRAM.

Also, play with the null termination code a bit, but, really,
such long strings will only end up failing in the OS.

Fixes lp#787237

2011-06-11 03:33:04 Tree
[0a3d79] by Paul Khuong Paul Khuong

MAKE-THREAD accepts :ARGUMENTS to pass to the thread function

The additional keyword argument should be a lsit designator

Based on a patch by Roman Marynchak.

Fixes lp#727384.

2011-06-11 01:52:52 Tree
[39c9c1] by Nikodemus Siivola Nikodemus Siivola

FMAKUNBOUND removes the MACRO-FUNCTION as well

Fixes lp#795705.

2011-06-10 20:32:29 Tree
[37fbb0] by Nikodemus Siivola Nikodemus Siivola

&optional and &key supplied-p arguments in boa-constuctors

...can be used to initialize structure slots.

2011-06-10 20:18:41 Tree
[e0bc74] by Jim Wise Jim Wise

Reorder description of info file installs to work around limited SunOS echo

Scratches a long-standing itch, but not really necessary (result is purely
aesthetic).

2011-06-10 18:35:20 Tree
[0a563d] by Nikodemus Siivola Nikodemus Siivola

mention SB-INTROSPECT's improved handling of structure copiers in NEWS

2011-06-10 17:21:18 Tree
[92e62a] by Nikodemus Siivola Nikodemus Siivola

export *USERINIT-PATHNAME-FUNCTION* and *SYSINIT-PATHNAME-FUNCTION*

I have no idea why I didn't do that in the first place.

2011-06-10 17:19:37 Tree
[27d1f9] by Nikodemus Siivola Nikodemus Siivola

git: that terminal output? make it mention the correct revision

*sigh*

2011-06-10 10:55:03 Tree
[cf1edb] by Nikodemus Siivola Nikodemus Siivola

git: more terminal output from post-receive-email script

2011-06-10 10:47:47 Tree
[b0f344] by Nikodemus Siivola Nikodemus Siivola

git: revered merge detection logic in post-receive-email script

How hard can this be?

2011-06-10 10:46:04 Tree
[c5fb0e] by Nikodemus Siivola Nikodemus Siivola

sb-introspect: test-cases for defstruct copier, predicate, and accessor sources

Feh. There were tests for even the cases that have worked for quite a while
now.

2011-06-10 10:26:02 Tree
[a27839] by Didier Verna Didier Verna , pushed by Nikodemus Siivola Nikodemus Siivola

sb-introspect: source locations for structure copiers

Closely paralleling the existing hacks for structure accessors
and copiers.

2011-06-10 10:10:27 Tree
Older >