Replies: 2 comments 1 reply
-
Assignment rule... I guess that much of the time spent here is related to the flakiness of Mathics dealing with these convolved assignments ... |
Beta Was this translation helpful? Give feedback.
1 reply
-
Looked at this with the Mathics3 debugger a little. We have a lot of calls in Patching With[]...
C-c C-c
interrupt: ReplaceAll[DownValues[Int], dvFixWith]
(/tmpMathics3/mathics-core/mathics/core/expression.py:448 @188): _rebuild_cache
448 sym = set((self.get_head_name(),))
(Mathics3 Debug) backtrace -e
E>0 (0) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(Times[2, n],
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 448
E:1 (1) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(Plus[Times[2, n], Times[-1, q]],
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:2 (2) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(EqQ[j, Plus[Times[2, n], Times[-1, q]]],
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:3 (3) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(And[FreeQ[{a, b, c, A, B}, x], EqQ[r, Plus[n, Times[-1, q]]], EqQ[j, Plus[Times[2, n], Times[-1, q]]...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:4 (4) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(Condition[Int[Times[Plus[A:_, Times[Optional[B:_], Power[x:_, Optional[r:_]]]], Power[x:_, Optional[...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:5 (5) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(HoldPattern[Condition[Int[Times[Plus[A:_, Times[Optional[B:_], Power[x:_, Optional[r:_]]]], Power[x:...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:6 (6) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(HoldPattern[HoldPattern[Condition[Int[Times[Plus[A:_, Times[Optional[B:_], Power[x:_, Optional[r:_]]...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:7 (7) Expression._rebuild_cache <class 'mathics.core.expression.Expression'>
_rebuild_cache(HoldPattern[HoldPattern[Condition[Int[Times[Plus[A:_, Times[Optional[B:_], Power[x:_, Optional[r:_]]...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:8 (8) Expression._rebuild_cache <class 'mathics.core.list.ListExpression'>
_rebuild_cache({HoldPattern[HoldPattern[Int[Times[-1, u:_], x:_ Symbol]]] :> Simp[Times[Identity[-1], Int[u, x]], x...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 453
E:9 (9) Expression.sequences <class 'mathics.core.list.ListExpression'>
sequences({HoldPattern[HoldPattern[Int[Times[-1, u:_], x:_ Symbol]]] :> Simp[Times[Identity[-1], Int[u, x]], x...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 1511
E:10 (10) Expression._flatten_sequence <class 'mathics.core.list.ListExpression'>
_flatten_sequence({HoldPattern[HoldPattern[Int[Times[-1, u:_], x:_ Symbol]]] :> Simp[Times[Identity[-1], Int[u, x]], x...),
sequence=<function Expression.flatten_pattern_sequence.<locals>.sequence at 0x757b3b5d3d80>)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 403
E:11 (11) Expression.flatten_pattern_sequence <class 'mathics.core.list.ListExpression'>
flatten_pattern_sequence({HoldPattern[HoldPattern[Int[Times[-1, u:_], x:_ Symbol]]] :> Simp[Times[Identity[-1], Int[u, x]], x...),
)
called from file '/tmpMathics3/mathics-core/mathics/core/expression.py' at line 646
E:12 (35) Expression.rewrite_apply_eval_step <class 'mathics.core.expression.Expression'>
rewrite_apply_eval_step(ReplaceAll[DownValues[Int], dvFixWith],
)
called from file '/tmp/Mathics3/mathics-core/mathics/core/expression.py' at line 1427
(Mathics3 Debug)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, on the Mathics3 core side, I have been working on code to mimic WolframScript's interrupt handler
When there is a long pause in a computation in
mathics
you can run C-C and it will show you what it is currently working on.Here is what I see...
and after that:
which probably comes from line 217 of
Rubi.m
:I don't have any ideas here as to what to do or how to fix. So I am just reporting what I see, in case others have thoughts or ideas.
Beta Was this translation helpful? Give feedback.
All reactions