New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make maxima(<string>) output parseable #31796
Comments
comment:1
It actually looks like whitespace has been stripped right from the start from output in the maxima interface: If I recall correctly, there were problems with maxima inserting spaces at unpredictable places every now and again; even in the middle of identifiers! The original commits would have been for maxima on CLISP rather than on ECL (although I recall the whitespace problem occurring on ECL (too?)). It could be that with the different iterations of "expect" -- and almost certainly in maxima_lib -- this isn't a problem anymore, but it means you'll have to test a lot in order to make really sure that a very old problem doesn't inadvertently comes back. Also note that maxima_lib and maxima each have their own |
Branch: u/charpent/legible_maxima_output |
Commit: |
comment:3
Replying to @nbruin:
This still happens, at least for MaximaElement pieces. To be explored in a followup ticket (but I'm afraid that this one is in Maxima's territory...). I've installed a workaround for this in
This I didn't see (yet).
Advice gladly accepted for filing and solving a followup ticket, or to better test the proposed solution. For the latter : what would you think of generating random SR expressions, translate them to Maxima strings, and check back-and-forth translations ? ISTR that such a random expression generator exists somewhere in Sage but, for the life of me, I'm unable to recall where I saw this...
In different ways ==> two different fixes. No possible code sharing here without major restructuration.
Done. You're welcome to review my branch, which passes New commits:
|
comment:4
Note : Should I try and fix all these occurrences (at least as a public service) ? Or should this be a separate ticket ? |
comment:5
There seems to be a copy-paste mistake in the German |
Reviewer: Samuel Lelièvre |
comment:6
Please fill in author name so patchbots run. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Replying to @slel:
Right. Damn... Fixed. |
comment:9
Replying to @slel:
Done. Thank you ! |
Author: Emmanuel Charpentier |
This comment has been minimized.
This comment has been minimized.
comment:11
The patchbot's pyflakes plugin complains:
Not sure what to make of those, especially the first two. Someone with an expert opinion on those please chime in. |
comment:12
Replying to @slel:
Indeed : neither Residues of code past ?
This one is right, but seems harmless. Was in the original code.
This one is hard to check. After hunting all capital
Past code residues, again ?
I'm interested, too. But I can also make a new commit including the changes suggested by Advice ? |
comment:13
Let us get this in; pyflakes and relint |
comment:14
The ticket tests fine, but once you remove the
How about we just version it as |
Changed branch from u/charpent/legible_maxima_output to u/mkoeppe/legible_maxima_output |
comment:19
rebased on 9.4.rc2 New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:21
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed author from Emmanuel Charpentier to Emmanuel Charpentier, Matthias Koeppe |
comment:25
patchbot reports some trivial failing doctests in it tutorial |
Changed branch from u/mkoeppe/legible_maxima_output to public/ticket/31796 |
Changed author from Emmanuel Charpentier, Matthias Koeppe to Emmanuel Charpentier, Matthias Koeppe, Frédéric Chapoton |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:30
ok, looks good. Patchbot is morally green. I vote for positive review. Any confirmation from other reviewers or authors ? |
comment:31
Replying to @fchapoton:
What means "morally" green ???
Running |
comment:32
Replying to @EmmanuelCharpentier:
On Debian testing running on core i7 + 16 GB RAM, running ==> |
Changed branch from public/ticket/31796 to |
(See also this
sage-devel
post.)Currently, all whitespace is stripped off
maxima(x)
andmaxima_calculus(x)
wherex
is a string. The same goes for Maxima code defined via the interfaces. To illustrate :outputs :
This also deminstrates that the Maxima interpretation of the first instruction is correct ; it is its output which is ill-interpreted by Sage...
In order to maintain the
print(eval(read(x))==x
equality, it is desirable to keep spaces at least around boolean operators.CC: @fchapoton @nbruin @slel @spaghettisalat
Component: interfaces
Keywords: maxima symbolics
Author: Emmanuel Charpentier, Matthias Koeppe, Frédéric Chapoton
Branch/Commit:
05fa319
Reviewer: Samuel Lelièvre
Issue created by migration from https://trac.sagemath.org/ticket/31796
The text was updated successfully, but these errors were encountered: