% versus $

15 views
Skip to first unread message

Waldek Hebisch

unread,
Apr 22, 2023, 3:19:32 PM4/22/23
to fricas...@googlegroups.com
For many years internally Spad compiler and interpreter renamed
'%' to '$' and internally used '$'. I have now commited a patch
that disables this renaming so that '%' from source is internally
represented by itself, without renaming. This should slightly
simplify structure of Spad compiler and interpreter, but main
gain should be in debugging: Lisp data structures should be
more similar to Spad source, so easier to interpret.

There is also related cost: patch touches a lot of places in
interp subdirectory and potentially may introduce bugs.

--
Waldek Hebisch

Ralf Hemmecke

unread,
Apr 22, 2023, 3:22:03 PM4/22/23
to fricas...@googlegroups.com
On 22.04.23 22:02, Waldek Hebisch wrote:
> For many years internally Spad compiler and interpreter renamed
> '%' to '$' and internally used '$'. I have now commited a patch
> that disables this renaming so that '%' from source is internally
> represented by itself, without renaming.

Wonderful! Thank you.

Ralf

Grégory Vanuxem

unread,
Apr 22, 2023, 3:27:23 PM4/22/23
to fricas...@googlegroups.com
Thanks for the information. 
Good I think. Thanks again. 

--
You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/86f49869-d2a3-018a-a2dc-4cc1550ead46%40hemmecke.org.

Tim Daly

unread,
Apr 23, 2023, 12:00:23 AM4/23/23
to FriCAS - computer algebra system
Historically this change was introduced because of the Aldor compiler.
There was a clash of the use of the symbols. I had to rewrite code to
get Scratchpad (Axiom) and Asharp (Aldor) to work together.

Waldek Hebisch

unread,
Apr 23, 2023, 5:15:04 PM4/23/23
to fricas...@googlegroups.com
On Sat, Apr 22, 2023 at 09:00:23PM -0700, Tim Daly wrote:
> Historically this change was introduced because of the Aldor compiler.

Well, this was desirable change to Spad language. Aldor was a new
start, so it was easier to make change in Aldor first. But
it was good change for Spad.

> There was a clash of the use of the symbols. I had to rewrite code to
> get Scratchpad (Axiom) and Asharp (Aldor) to work together.

Yes. Around 1990 using symbol renaming was right thing to do, otherwise
change would require too much effort. But we want to move forward...

>
> On Saturday, April 22, 2023 at 3:19:32 PM UTC-4 Waldek Hebisch wrote:
>
> > For many years internally Spad compiler and interpreter renamed
> > '%' to '$' and internally used '$'. I have now commited a patch
> > that disables this renaming so that '%' from source is internally
> > represented by itself, without renaming. This should slightly
> > simplify structure of Spad compiler and interpreter, but main
> > gain should be in debugging: Lisp data structures should be
> > more similar to Spad source, so easier to interpret.
> >
> > There is also related cost: patch touches a lot of places in
> > interp subdirectory and potentially may introduce bugs.
> >
> > --
> > Waldek Hebisch
> >
>
> --
> You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/783e527c-5071-40b8-90f6-020623b4b07fn%40googlegroups.com.


--
Waldek Hebisch

Tim Daly

unread,
Apr 23, 2023, 9:16:11 PM4/23/23
to FriCAS - computer algebra system
Reasonable people can disagree, even about history.

I believe it was a mistake to implement the Aldor compiler in C.

Implementing a new compiler inside Scratchpad would have cleaned
up the Spad language, the Spad compiler, and made the
interpreter/compiler semantic difference disappear. It would
also have been a much smaller effort as most of the machinery
already existed.

Dick Jenks thought the same thing but Stephen argued that we
could re-implement the algebra in the C version (which was
eventually my PhD task). Is there any Aldor algebra in the
build process?

I taught a compiler course at Vassar and used some examples
from Aldor. It is a very pretty piece of software written by brilliant
programmers. However, there are more people that "speak boot"
than "speak Aldor" and that is already a vanishingly small number.

> it was good change for Spad.

The huge effort would have been better spent developing more algebra
or, as I argued then and now, developing specification/proof technology
inside Scratchpad. Reasonable people disagree with me :-)

The point is moot. Aldor exists.
Reply all
Reply to author
Forward
0 new messages