In[1] A=Range[10^4];?A
Out[1] (* definition of A*)
It works for 10^4. But if I increase the number to 10^6
In[1] A=Range[10^6];?A (* Do not try this *)
makes my PC freezed. It is even impossible to abort. The only way out is quitting mathematica without saving documents.
While I was writing this article, I recalled the command Definition
.
Definition[A]
doesn't make such problem.
Then my question was changed. What is advantage/disadvantage of ?
and Definition
?
Short
version of the range and it takes roughly a minute on my machine. $\endgroup$Do[Print[i],{i,10000}]
orTracePrint
something not trivial). I personally experimented with substituting$Output
stream with something limiting the amount of the output. WRI seem to be surely aware of the problem and is moving towards multithreaded FE (which will at least give you a chance to abort) but we're not there yet. $\endgroup$