Custom Query (1030 matches)
Results (244 - 246 of 1030)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #680 | fixed | ccl:send-to says it can take a string arg, but it really can't. | ||
| Description |
Welcome to Clozure Common Lisp Version 1.6-dev-r13678M (DarwinX8664)! ? (defparameter *s* (make-socket :type :datagram)) *S* ? (send-to *s* "hey" 3 :remote-host "127.0.0.1" :remote-port 12345) > Error: value "hey" is not of the expected type (OR (ARRAY CHARACTER) > (ARRAY (UNSIGNED-BYTE 8)) > (ARRAY (SIGNED-BYTE 8))). > While executing: VERIFY-SOCKET-BUFFER, in process listener(1). > Type :POP to abort, :R for a list of available restarts. > Type :? for other options. 1 > verify-socket-buffer is actually checking for an 8-bit subtag, and with this new-fangled unicode thing, that doesn't include strings. My first inclination is to say that i/o on datagram sockets is done in octects. This requires the user to use encode-string-to-octects/decode-string-from-octets explicitly. It might also be work to pay attention to the socket object's external format and encode the string on the user's behalf, but if Gilgamesh wants to send a cuneiform string "foo", then the actual buffer length in octets isn't going to be 3. |
|||
| #684 | fixed | upgrade OS on setf.clozure.com | ||
| Description |
Upgrade to Ubuntu 10.04 LTS. |
|||
| #707 | fixed | spurious floating-point exceptions | ||
| Description |
It looks like some exception flags get left on in the MXCSR somehow. /* fp.c -- compile with cc -shared fp.c -o fp.dylib */
double rme_fdiv(double x, double y)
{
return x / y;
}
double rme_nan()
{
return rme_fdiv(0.0, 0.0);
}
From lisp: ? (open-shared-library "/Users/rme/fp.dylib") #<SHLIB /Users/rme/fp.dylib #x30200053443D> ? (external-call "rme_nan" :double-float) 1D+-0 #| not-a-number |# ? (log 1 2) > Error: FLOATING-POINT-INVALID-OPERATION detected > performing LOG on (1.0) > While executing: %FP-ERROR-FROM-STATUS, in process listener(1). > Type :POP to abort, :R for a list of available restarts. > Type :? for other options. 1 > :pop ? (log 1 2) 0.0 ? |
|||
