[sage-devel] Scalable Sage Server Code

2011-01-07 Thread Alex Leone
Hi all, https://github.com/acleone/sageserver A few days ago I sent out a proposal for a scalable sage server (see [1] for the discussion and [2] for the document in question). I did some initial work on the "Computation Node" and browser client parts over the summer. It switched the message fo

[sage-devel] Re: [sage-notebook] Scalable Sage Server Architecture Proposal v0.1

2011-01-01 Thread Alex Leone
> > In some cases it might make sense to be able to specify coordinates or > other rich data: > > {image:"foo.png", position:[3,7]} > > This argues for making the output document have a type like you > suggested above, e.g., > > {t:'image', data:'foo.png', position:[3,7]} t for 'type'. Otherwi

[sage-devel] Re: [sage-notebook] Scalable Sage Server Architecture Proposal v0.1

2011-01-01 Thread Alex Leone
> > Alex -- can you also post your document to the wiki (or a link to it)? > http://wiki.sagemath.org/Notebook%20scalability > Done. It's in the Notes section. > 1. I wouldn't do a "isAdmin" property for users. Rather, create one or > > more groups that are marked as isAdmin and then add the

Re: [sage-devel] Re: Severe slowness of singular interface on some machines partially caused by _synchronize

2010-11-22 Thread Alex Leone
Sorry, I meant that deadlock *shouldn't* be problem. The problem is the call to read(0, )... by the singular process before it writes anything to stdout (eg write(1, ")). - Alex -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an e

Re: [sage-devel] Re: Severe slowness of singular interface on some machines partially caused by _synchronize

2010-11-22 Thread Alex Leone
This should be the problem: 1. If you start singular normally, it prints version info, etc to stdout and then waits for stdin. So if we read stdout, we should get something immediately after the process is started. 2. We set stdout to nonblocking (in the python process), so read() doesn't block.

Re: [sage-devel] Re: Severe slowness of singular interface on some machines partially caused by _synchronize

2010-11-22 Thread Alex Leone
I wrote a small script (see attached) that reads ~1 second of the stdout of a command opened with subprocess.Popen(). For some reason singular doesn't like this and refuses to show any output. However gap works fine: singular output: {{{ SAGE_ROOT=/home/alex/progs/src/sage-4.6.1.alpha2 (sage su

Re: [sage-devel] Re: Severe slowness of singular interface on some machines partially caused by _synchronize

2010-11-22 Thread Alex Leone
for reference: I'm running Ubuntu 10.10 on a quad core, 2.6.35-22-generic 1. This is not an issue with select. This is an issue with the low_latency pty stuff that Simon mentioned. I tested this by modifying pexpect to use true nonblocking io (ie set the child_fd to O_NONBLOCK, and then just rea

Re: [sage-devel] Re: Slowness of www.sagenb.org

2010-11-20 Thread Alex Leone
I've been thinking about architecture for a while. I'll copy some of my ideas to that page when I get a chance. Hopefully we can nail down a general structure before the bug days in January. > I've put up a page on the wiki about this project. Any interested > parties are strongly encouraged to

Re: [sage-devel] Re: Severe slowness of singular interface on some machines partially caused by _synchronize

2010-11-18 Thread Alex Leone
select.select is a networking call - in this case (probably) to see if there is any output from the singular process.  I would try running singular directly to see if it takes ~20 seconds for the prompt to appear.  - Alex http://docs.python.org/library/select.html -- To post to this group, send

Re: [sage-devel] Line breaks in expressions in the notebook

2010-06-25 Thread Alex Leone
This should be fixed with the ast display-hook patch, #7997  - Alex -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/grou

Re: [sage-devel] Non-alphanumeric variable names

2010-04-26 Thread Alex Leone
One approach would be to store all the variables in a nested dictionary, eg n[1, 2][2, 2], and use var('n_1_2_2_2', latex_name='n_{(1,2),(2,2)}') to create the variables. Here's an example: nn = dict( [ ((i, j), {}) for i in [1..2] for j in [1..2] ] ) nn[(1, 1)] = dict( [ ((i, j), var

Re: [sage-devel] Faster matrix input

2010-03-23 Thread Alex Leone
Hi Alberto, I'm currently working on a matrix viewer for the sage notebook (using SVG).  It wouldn't be too difficult to add editing features once it's been integrated with the notebook. http://students.washington.edu/acleone/sage_matrix/  - Alex -- To post to this group, send an email to sage-

[sage-devel] Re: totallyreal_dsage()?

2010-02-13 Thread Alex Leone
Sorry, that was rather cryptic. Does sage/rings/number_field/totallyreal_dsage.py need to be removed? - Alex -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit

[sage-devel] totallyreal_dsage()?

2010-02-13 Thread Alex Leone
I thought dsage was removed? - Alex -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sa

Re: [sage-devel] syntax highlighting in the notebook

2010-02-03 Thread Alex Leone
Mozilla Bespin[1], which is an browser-based IDE with syntax highlighting etc, recently released an easy way to embed the editor in your own web pages. I'll look into how hard it would be to use in Sage. It's still pretty alpha. - Alex [1] https://bespin.mozilla.com/ -- To post to this group

Re: [sage-devel] Re: Sage Web Service / UI

2010-01-28 Thread Alex Leone
What would change between the current UI and a webkit UI? 1. When the webkit UI is closed, the Sage process closes 2. Dedicated windows for worksheets? Anything else? Instead of a stand-alone webkit UI, how about making sage installable? 1. Start menu item for sage, that when run 2. Displays a loa