New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notebook: move preparsing to the worksheet process and out of the server (was: weird pointless line) #7483
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
I think I meant
and to get rid of preparsing input at all done by the server. In fact, I know for a fact I implemented things that way so that this wouldn't be broken:
But now it seems to be broken again. I can only conclude that a serious mismerge or mangling has occurred to the code I originally wrote, since I definitely had the above working in an earlier version of sagenb. Hence, this ticket. |
This comment has been minimized.
This comment has been minimized.
apply to the sagenb spkg |
Attachment: sagenb_7483.patch.gz apply to the core sage library |
comment:5
Attachment: sagelib-7483.patch.gz |
comment:6
So the attached patch moves all the preparsing from the notebook server to the worksheet process. I had thought I had made this change long ago, but I definitely hadn't. It's extremely important from a security/robustness/speed/flexibility point of view. Why? Because it means the possibly time consuming and definitely This patch also makes it so the following are now fully supported in the notebook. Note that they both used to not work at all:
|
comment:7
I've put a new sagenb spkg with just this patch (and the one from 7483) here: http://wstein.org/home/wstein/patches/sagenb/sagenb-0.4.3.p1.spkg |
comment:8
The Selenium test results are unchanged in FF3.5.5 on Linux.
|
Reviewer: Mitesh Patel |
Author: William Stein |
comment:9
It seems that Were |
comment:10
No, this broke them. I'll fix the problem now. |
comment:11
Clarification: load and save still work on .sage files, but don't work on .py. This is related to #4474. But I'll fix it here now, hopefully. |
comment:12
OK, I went a bit crazy and spent 8 hours completely rewriting and unifying and refactoring all the load/save/attach code. This is at #7514. With that, the above mentioned issued is gone. |
comment:13
Positive review, once #7514 passes. Should we also move "docbrowser" generation to a worksheet process? |
comment:14
Definitely! The more that is done by worksheet processes, the better -- for scalability, security, etc. Every spec of work done by the server is a potential speed and security problem. The more that can be offloaded to worksheets, the better. |
comment:16
I've merged the sagelib patch in 4.3.1.alpha0 |
comment:17
I've merged this into sagenb-0.4.8. |
Merged: sage-4.3.1.alpha0 |
In worksheet.py (at the end of
start_next_comp(self)
) in sagenb we have these lines:That 'exec ' line in the middle is just sitting there making a string that is just discarded?
The issue is that I thought I had fully implemented moving all preparsing to the worksheet process (out of the server). Unfortunately, I didn't -- in fact, I only figured out how to do it, but didn't finish.
Component: notebook
Author: William Stein
Reviewer: Mitesh Patel
Merged: sage-4.3.1.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/7483
The text was updated successfully, but these errors were encountered: