Replies: 4 comments 3 replies
-
Great! As there are several points here, I will split my comments on each section. In the Short TermCompletely agree. I tested most of the Pymathics modules and they are now compatible with the current master branch of mathics-core. The front ends still need some small adjustments. Also, I looked over the current PRs in mathics-core and I didn´t find anything critical that must be included in the 7.0 release, so freezing master in the current state is OK for me. |
Beta Was this translation helpful? Give feedback.
-
From 2023 Roadmap
Regarding this, to make Mathics compatible with how WMA handles format, we should invert how Format and Makeboxes rules are applied, meaning modifying
To have this completed would be great. Also, I would like to improve the interface for the Pymathics modules, in a way that more specialized built-in sections be moved outside the core. In particular, the part of Image handling (which depends on special libraries) be moved outside Mathics core, making the setup and the CI faster.
This would be also great.
Something that at some point could help to make the evaluation faster would be to improve the pattern-matching mechanism. WMA has a kind of pattern compiler that makes the pattern-matching loop faster. See https://reference.wolfram.com/language/ref/Dispatch.html |
Beta Was this translation helpful? Give feedback.
-
In my opinion, this should be implemented as an external module. Here https://github.com/Mathics3/pymathics-sparse I started a module that overwrites the basic one contained in Mathics-core. If the idea is to use Scipy for the low-level implementation, it is better to do it outside Mathics-core to avoid requiring a large library dependency.
A previous step to implement
I can help with this.
Agree. Also,
I could also help with this. |
Beta Was this translation helpful? Give feedback.
-
Great - thanks! I have updated the top-level entry. (This will be copied into FUTURE.rst with a link back to this discussion page.) |
Beta Was this translation helpful? Give feedback.
-
Last year, in response to suggestions from @Li-Xiang-Ideal and @mmatera I said I would start a discussion on the 2024 Roadmap.
It is 2024, so let us begin!
When the discussion settles, this will go into FUTURE.rst and can be updated and can go in the next Mathics3 release.
In the Short Term
First, some very short-term backlogged and smaller goals before the broader and bigger picture. I am hopeful that the short-term goals can be achieved in a relatively short period.
We have not had a major general release since the 6.0.0 release at the end of February 2023. Minor releases since that have been small bug fixes to assist downstream packager of OS distributions.
While I had hoped more would occur in 2023 in the way of the necessary breaking API changes, and minimizing future API-breaking changes, nevertheless a lot has happened in 2023 year.
So unless there are objections, I think we should declare a feature freeze and focus on releasing what we have in place now. This is not trivial because we need to go over not just the Mathics core, but all the other Mathics3 modules and front ends, e.g. Mathics Django and mathicsscript. They are all are impacted by the API change. After that is done, I imagine there will be yet another major release because there are more API changes that are in the works. Namely, API changes in how may Mathics3 modules work in the future to make these more seamless.
In advance of a release, my practice is to get out a new interim docker image. This allows me to experiment with building the documentation and trying to update the package while also allowing people to try things and give us feedback without having to build everything.
From 2023 Roadmap
For more details on the items, see the links in this section header. Here, I am going to just list the items with some small notes.
Forms, Boxing, and Formatting
It feels like this should be doable, or at least we start on this path. I believe we should be able to prototype in Mathics3, but I am open to making small changes in the code. I think something like a change to the implementation of
MakeBoxes
was requested where we need to be looking at "upvalues" instead of "ourvalues" or maybe it is the other way around. I do however believe there is a way where we can prototype this before committing to a full implementation.Performance
This is a more nebulous overall and needs to be broken down more. There are some shorter-term and more measurable steps you will below and elsewhere.
Initial Startup Time
With the work done in 2023 to allow
mathics.builtin
modules to be loaded deterministically through a "load" function, we can probably reduce startup time by as much as 2 seconds or so. And at the same time, addresses problems that would be caused by scaling the number of built-in functions up many times.More Custom kinds of (compound) Expressions and Fewer Conversions
Python/Numpy literal expressions fall into this category and this is especially useful in data crunching and rendering graphics.
Compilation
With the work done in 2023 towards providing access to instruction-like procedure calls, we probably are in a better position to handle smarter compilation, i.e. something other than turning it into Cython, and hope that Cython and figure out how to speed up what we don't have a handle on.
Further Code Reorganization in Core and Eval
Core object like
BaseElement
and possiblySymbol
, (andprobably others) are still too "fat": they have too many custom methods that
are not applicable for most of the subclasses support. It is likely
another pass will be made over this.
We have started moving "eval" code out of the "eval" methods and into its own module.
Deferred
I hope Pattern Matching and rewrite rules will be started sometime in 2024. Otherwise, not much to say here.
Jupyter integration depends on getting Boxing under control.
Migration of the documentation system to Sphinx
This is important but probably less important than performance, boxing & formatting, and pattern matching.
And in the interim, we will probably be making more smaller fixes. Sigh. I am optimistic that the smaller fixes can work in the direction of making moving out easier. Modularity here.
New Work
Sparse Array Implementation
Li-Xiang-Ideal mentioned this. Perhaps he can elaborate.
Debugger
I, Rocky, Plan on starting to write a debugger for Mathics3. I need something like this to help understand code written in WMA and Mathics3.
TracePrint[]
may help, but if the past is prologue, something better than that would be nice and not that difficult. This will also be the first time since I joined the project 3 years ago, that I'll be able to do something I have wanted as opposed to tracking existing technical debt (which which we still have a bit of).I believe this can be done largely outside of Mathics-core (although it heavily relies on Mathics-Core internals.
Operator Precedence Tables
This pulls out of Mathics Core any knowledge of Operator Precedence and instead uses tables found in mathics-scanner.
This would be based on Robert Jacobson's work.
Miscellaneous Small Things
Individual Leads or Responsibilities
Rocky
mmatera
Li-Xiang-Ideal
Beta Was this translation helpful? Give feedback.
All reactions