On 2012-06-13, Dmitry Shkirmanov <piminusmeson at bk.ru> wrote:
> Hello. I am trying to learn to compile maxima files to get the maximal speed of execution.
Bear in mind that you are likely to encounter other bugs in the
Maxima->Lisp translator. Sorry about that.
> ; SB-INT:SIMPLE-READER-ERROR at 1343 (line 48, column 59) on #<SB-SYS:FD-STREAM
> ; for "file /home/ya/Downloads/maple_V_N_test.LISP"
> ; {1005927D21}>:
> ; illegal sharp macro character: #\
I can't tell for sure without looking at the .LISP file, but I suspect
the code generated in the .LISP file is not readable: the printing
parameters have been set so that code is not too messy for humans
looking at it. In particular, deeply nested expressions are represented
by # in the output.
The attached patch disables such measures in the translation code. I'll
push it out for the next Maxima release (August 2012).
Thanks for bringing it to our attention.
Robert Dodier
PS.
diff --git a/src/transs.lisp b/src/transs.lisp
index 036c36f..d192f42 100644
--- a/src/transs.lisp
+++ b/src/transs.lisp
@@ -169,6 +169,7 @@
;; we want the thing to start with a newline..
(newline in-stream)
(let ((*readtable* (copy-readtable nil))
+ (*print-circle* nil) (*print-level* nil) (*print-length* nil)
#-gcl (*print-pprint-dispatch* (copy-pprint-dispatch)))
#-gcl
(progn