[Scilab-users] Accidentally displaying huge matrices

Antoine Monmayrant amonmayr at laas.fr
Tue May 26 23:25:39 CEST 2015


 
Le Mardi 26 Mai 2015 19:03 CEST, Tim Wescott <tim at wescottdesign.com> a écrit: 
 
> On Mon, 2015-05-25 at 15:29 +0200, Antoine Monmayrant wrote:
> >  Le Samedi 23 Mai 2015 00:05 CEST, Samuel Gougeon <sgougeon at free.fr> a écrit: 
> >  
> > > Hello Tim,
> > > 
> > > Le 21/05/2015 17:48, Tim Wescott a écrit :
> > > > .../...
> > > > First, is there a way to get it to stop?  ctrl-C does not do the job.
> > > In your startup file .scilab or scilab.ini, you may add the instruction
> > > lines(1000)
> > > in order to turn on the pager and make it prompting the user to continue 
> > > listing lines after each block of 1000 lines (or whatever you want).
> > > At the prompt, CTRL+C + abort works.
> > 
> > OK, but this also interrupts the execution of any script that display more than 1000 lines on the command line!
> > This can be particularly annoying when using scripts that process big data and  output some progression infos on the command line.
> > It's never nice to find out the next morning that your script stopped at 10% to ask whether it should keep on displaying text.
> > For me, this is more a workaround (with one big caveat) than a real solution.
> > The Julia way of displaying big matrices seems interesting.
> > Would it be hard to implement?
> > (honest question, I have no idea what work it implies)
> > As someone filled a bug/feature request?
> 
> Argh.  I just did the lines(1000) thing, and now I think I'm going to
> take it out, because I do NOT want this to happen!
> 
> Is it all that hard to interrupt the display of a large matrix with
> ctrl-C?
> 
> (I vote for the Julia way of displaying things, even though I have no
> clue what Julia is, BTW).

It's a fairly new language that aims at solvaing the two language problem, ie reducing the gap between interactive, easy to use and prototype in but also slow languages (scilab, matlab, python, ...) and more efficient and less friendly languages (C, Fortran, ...).
It's new and still evolving a lot but quite interesting (more info at julialang.org).

But back to the discussion, I also think that the julia way of displaying is a good solution.

> 
> -- 
> 
> Tim Wescott
> www.wescottdesign.com
> Control & Communications systems, circuit & software design.
> Phone: 503.631.7815
> Cell:  503.349.8432
> 
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
> 
 
 
 
 





More information about the users mailing list