Re: Optimizing sort-algorithm



Interesting. On sbcl the code doesn't even get executed correctly:

* (main)

debugger invoked on a TYPE-ERROR:
The value #(26 13 75 70 24 76 63 11 66 0 94 91 ...)
is not of type
(SIMPLE-ARRAY FIXNUM).

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.

(NIL #(26 13 75 70 24 76 63 11 66 0 94 91 ...) 10000)


And cmucl refuses cooperation when not adding ":fill-pointer 0" to the
make-array call:

* (main)


#(0 0 ... 0) is not an array with a fill-pointer.
[Condition of type SIMPLE-TYPE-ERROR]

Restarts:
0: [ABORT] Return to Top-Level.

Debug (type H for help)

(VECTOR-PUSH 95 #(0 0 0 0 0 ...))
Source: Error finding source:
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no
longer exists: target:code/array.lisp.

I am a bit confused :)

.



Relevant Pages

  • Re: How Common Lisp sucks
    ... compare any of those to the effort required to write a web server ... This is SBCL 0.9.7, an implementation of ANSI Common Lisp. ... Type HELP for debugger help, or to exit from SBCL. ...
    (comp.lang.lisp)
  • asdf-install sbcl windows
    ... Type HELP for debugger help, or to exit from SBCL. ... Exit debugger, returning to top level. ... Can anybody deduce from the output above where actually it fails? ...
    (comp.lang.lisp)
  • Using CLX with cl-cairo
    ... I'm using SBCL with GNU/Linux and want to use cl-cairo with an Xlib ... Type HELP for debugger help, or to exit from SBCL. ... Exit debugger, returning to top level. ...
    (comp.lang.lisp)
  • Re: asdf-install sbcl windows
    ... Type HELP for debugger help, or to exit from SBCL. ... Exit debugger, returning to top level. ...
    (comp.lang.lisp)
  • Re: N00b question on let
    ... Type HELP for debugger help, or to exit from SBCL. ... Exit debugger, returning to top level. ...
    (comp.lang.lisp)