Differences between revisions 14 and 21 (spanning 7 versions)
Revision 14 as of 2010-03-09 02:27:42
Size: 13554
Editor: DanDrake
Comment:
Revision 21 as of 2010-03-10 19:09:59
Size: 17822
Editor: BurcinErocal
Comment: minor changes to slideshow, make some items propers headings so they show in the TOC
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
'''If you're a student''' interested in working on any of the [[#projects|projects]] described below, or if you want to suggest any other projects, please write a short message to [[http://groups.google.com/group/sage-devel|[email protected]]] introducing yourself (background, skills) and your interests.

'''If you're a Sage developer''', please take some time to organize the list below and add more ideas. The [[gsoc10#notes|notes section]] contains some guidelines from the [[http://socghop.appspot.com/document/show/gsoc_program/google/gsoc2010/faqs|GSOC FAQ]].
<<TableOfContents(4)>>

== Introduction ==

Sage is an open-source mathematical software system which combines [[http://www.sagemath.org/links-components.html|numerous packages]] under one umbrella with the goal to provide an alternative to major proprietary mathematical software systems (aka the Ma*'s). The software included in Sage use many different languages such as C, C++, Fortran. However, [[http://hg.sagemath.org/sage-main/|the Sage library]] which provides a unified interface to these components besides implementions of novel mathematical algoritms is written in [[http://python.org/|Python]] and [[http://cython.org/|Cython]]. Sage also includes a [[http://nb.sagemath.org/|web-based user interface]] where worksheets are stored for each user.

With it's friendly development community and diverse challenges including
 * linking together software systems intended to be used through a command line interface,
 * efficient implementation of novel mathematical ideas,
 * making sure all the components build without problems on a wide range of platforms, and
 * providing a web-based user interface for easy experimentation and collaboration in mathematics
Sage provides projects that might appeal to contributors with different interests and skill levels.

'''If you're a student''' interested in working on any of the [[#projects|projects]] described below, note that these are mostly rough ideas. Feel free to ask questions or suggest other projects by writing to [[http://groups.google.com/group/sage-devel|[email protected]]].

'''If you're a Sage developer''', please take some time to organize the list below and add more ideas. The [[gsoc10#notes|notes section]] contains some guidelines from the [[http://socghop.appspot.com/document/show/gsoc_program/google/gsoc2010/faqs|GSOC FAQ]]. These projects should be doable with less than 3 months of full time work. Projects should generally have (copied from the [[http://community.kde.org/GSoC/2010/Ideas|KDE list]]):
 * a brief explanation
 * the expected results
 * pre-requisites for working on the project
 * names of possible mentors, information on how to contact them
Line 16: Line 33:
== GSoC Sage Projects == == Projects Ideas ==
Line 20: Line 37:
Line 23: Line 39:
The Sage notebook is an AJAX application similar to Google Documents that provides
functionality for all mathematical software somewhat like Mathematica notebooks.
It was written from scratch (in Javascript and Python) by the Sage development team,
and has been used daily by thousands of people over the last year. A number of universities use Sage notebook servers for significant student use. It's one of the main ''killer features'' of Sage.
[[http://nb.sagemath.org|The Sage notebook]] is an AJAX application similar to Google Documents that provides
a user interface to mathematical software (not just Sage, also including [[http://www.singular.uni-kl.de|Singular]], [[http://www.gap-system.org/|GAP]], [[http://pari.math.u-bordeaux.fr/|Pari]], [[http://maxima.sourceforge.net/|Maxima]], [[http://www.r-project.org/|R]], [[http://www.math.tu-berlin.de/~kant/kash.html|KASH]] etc.) somewhat like Mathematica notebooks.
It was written from scratch (in Javascript and Python) by the Sage development team, and has been used daily by thousands of people over the last year. A number of universities have deployed Sage notebook servers for significant student use. See [[sagenb|here]] for a [[sagenb|list of Sage notebook servers]]. The notebook is one of the ''killer features'' of Sage.
Line 32: Line 47:
 * Improvements to [[interact|@interact]]
 * master-worksheet, collection of other worksheets for a script or book.
 * Permanent hyperlinks between worksheets, independent of worksheet numbering, to support multi-worksheet documents (ie books)
 * enhance history and snapshot capabilities.
 * concurrent editing of one single document: only altered cells are updated and "collision" warnings issued if more than one change happens with appropriate methods to solve it
 * read/write permission management for groups with roles (teacher is able to read notebooks, but students are not able to read each others)
 * basic datasheets (simple Google Docs-like spreadsheets) that can be shared with worksheets in read-only or read-write mode, could be editor to SQLite tables.
 * ...
Line 42: Line 49:
(ldap, kerberos? [[http://trac.sagemath.org/sage_trac/ticket/4309|#4309]])
The Sage notebook is used in [[sagenb|many universities]]. Using the already existing user database and authentication facilities of the university for signing in to the Sage notebook is an often requested feature. There have been attempts to integrate ~-LDAP-~ and ~-KERBEROS-~ ([[http://trac.sagemath.org/sage_trac/ticket/4309|#4309]]) authentication before.
Line 46: Line 54:
This project would involve improving the slideshow mode for Sage worksheets, which does not work very well right now: [[http://trac.sagemath.org/sage_trac/ticket/6342|#6342]]. Since Sage worksheets run in any modern web browser and already support nice jsmath typesetting, TinyMCE text editing, and of course computation, an attractive and usable slideshow mode would be extremely useful for anyone giving a presentation that involves some kind of computing. This project would involve adding a slideshow mode to the Sage notebook. Since Sage worksheets run in any modern web browser and already support nice jsmath typesetting, TinyMCE text editing, and of course computation, an attractive and usable slideshow mode would be extremely useful for anyone giving a presentation that involves some kind of computing.

See [[http://trac.sagemath.org/sage_trac/ticket/6342|#6342]] for a previous attempt to implement this before the notebook became a separate component.

Potential mentor: William Stein
Line 52: Line 64:
==== Community Tools ==== ==== Community tools ====
Line 60: Line 72:
 * a repository of useful examples, interacts, etc., distributed with Sage and hosted on a website, that users can query and easily use/adapt.
Line 104: Line 117:
=== Interfaces to Sage ===

 * Sage as a C library
==== Other ideas for the notebook ====

Here is a list of other possible improvements to the Sage notebook. Feel free to explore these ideas and make them into a proper project. The [[devel/SageTasks|Sage tasks list]] also contains many other similar items. You can email the [[http://groups.google.com/group/sage-notebook|Sage notebook discussion group]] if you are interested in working on these.

 * Improvements to [[interact|@interact]]
   * a 2d locator widget (there is already a separate bounty for this, around $100 USD or so, I think)
   * flexible layout of controls, and interacts within interacts
 * master-worksheet, collection of other worksheets for a script or book.
 * Permanent hyperlinks between worksheets, independent of worksheet numbering, to support multi-worksheet documents (ie books)
 * enhance history and snapshot capabilities.
 * concurrent editing of one single document: only altered cells are updated and "collision" warnings issued if more than one change happens with appropriate methods to solve it
 * read/write permission management for groups with roles (teacher is able to read notebooks, but students are not able to read each others)
 * basic datasheets (simple Google Docs-like spreadsheets) that can be shared with worksheets in read-only or read-write mode, could be editor to SQLite tables.
 * content-editable divs for the code cells, so we can support javascript widgets for inputting code (for example, we could have a slider right in the code cell, representing a numeric value, or a javascript graph editor representing a graph, or a wysiwyg formula editor, or color syntax highlighting)
 * support various types of text cells, so that, at the user's option, we could have a ReST text cell, an HTML (TinyMCE) text cell, a plain text cell, a latex text cell, etc.
 * ...



=== Interfaces to/from Sage ===

==== Sage as a C library ====
Line 109: Line 141:
 * libGAP [[http://trac.sagemath.org/sage_trac/ticket/6391|#6391]] ==== libGAP ====

 [[http://trac.sagemath.org/sage_trac/ticket/6391|#6391]]

==== Google Wave robot ====

    Support for sessions across multiple input lines, graphics, images, 3d graphics, collaborative work, authentication via a login, etc. On Sage's side there needs to be an implementation of the federation protocol to communicate with the wave server - or routed through app-engine. A similar approach is [[http://code.google.com/p/wavealpha/|wolfram alpha in google wave]].
Line 118: Line 156:
=== pynac (optimizing data structures) === Another possible thing to look at is [[http://lipforge.ens-lyon.fr/www/crlibm/index.html]].

=== pynac ===
Line 128: Line 168:
Potential mentor: Burcin Erocal

==== Optimization / better data structures ====
Line 151: Line 195:
==== Pretty printing ====
Line 156: Line 202:
 * set up a code review system like [[http://code.google.com/p/rietveld/|Rietveld]].

Google Summer of Code 2010

This is the main organization page for the Google Summer of Code efforts of the Sage project.

Introduction

Sage is an open-source mathematical software system which combines numerous packages under one umbrella with the goal to provide an alternative to major proprietary mathematical software systems (aka the Ma*'s). The software included in Sage use many different languages such as C, C++, Fortran. However, the Sage library which provides a unified interface to these components besides implementions of novel mathematical algoritms is written in Python and Cython. Sage also includes a web-based user interface where worksheets are stored for each user.

With it's friendly development community and diverse challenges including

  • linking together software systems intended to be used through a command line interface,
  • efficient implementation of novel mathematical ideas,
  • making sure all the components build without problems on a wide range of platforms, and
  • providing a web-based user interface for easy experimentation and collaboration in mathematics

Sage provides projects that might appeal to contributors with different interests and skill levels.

If you're a student interested in working on any of the projects described below, note that these are mostly rough ideas. Feel free to ask questions or suggest other projects by writing to [email protected].

If you're a Sage developer, please take some time to organize the list below and add more ideas. The notes section contains some guidelines from the GSOC FAQ. These projects should be doable with less than 3 months of full time work. Projects should generally have (copied from the KDE list):

  • a brief explanation
  • the expected results
  • pre-requisites for working on the project
  • names of possible mentors, information on how to contact them

Important Dates

Here is the original timeline. Some highlights:

  • March 8 - 12: application window

  • March 18: accepted mentoring organizations announced

  • March 29 - April 9: student application window

  • ...

Projects Ideas

All #numbers below refer to trac tickets.

Notebook

The Sage notebook is an AJAX application similar to Google Documents that provides a user interface to mathematical software (not just Sage, also including Singular, GAP, Pari, Maxima, R, KASH etc.) somewhat like Mathematica notebooks. It was written from scratch (in Javascript and Python) by the Sage development team, and has been used daily by thousands of people over the last year. A number of universities have deployed Sage notebook servers for significant student use. See here for a list of Sage notebook servers. The notebook is one of the killer features of Sage.

This project is about improving the notebook. No special mathematical knowledge is required. Knowledge of Javascript, jQuery, Python, and general AJAX techniques is needed.

Authentication backend

The Sage notebook is used in many universities. Using the already existing user database and authentication facilities of the university for signing in to the Sage notebook is an often requested feature. There have been attempts to integrate LDAP and KERBEROS (#4309) authentication before.

Slideshow mode

This project would involve adding a slideshow mode to the Sage notebook. Since Sage worksheets run in any modern web browser and already support nice jsmath typesetting, TinyMCE text editing, and of course computation, an attractive and usable slideshow mode would be extremely useful for anyone giving a presentation that involves some kind of computing.

See #6342 for a previous attempt to implement this before the notebook became a separate component.

Potential mentor: William Stein

Export to something printable

Enhance export capabilities of Sage worksheets: create methods for well designed PDF, LaTeX (with or without SageTeX) or ODF output. This would be an inverse of sorts of Rob Beezer's tex2sws work, which takes TeX files and converts them into Sage worksheets.

Community tools

Related to enhanced publishing and export abilities, we would like the Sage notebook to have better community/social tools. Projects for this could involve:

  • Enhance publishing of Notebook documents (i.e. like on http://www.sagenb.org/pub).

  • Wiki-like platform for editing notebooks for publishing mathematical, physical, statistical and other content.
  • tagging support, listings by tags
  • efficiently exchange usage examples, tips and ideas.
  • a repository of useful examples, interacts, etc., distributed with Sage and hosted on a website, that users can query and easily use/adapt.

Internationalization of the notebook

This project would involve changing the Sage notebook so that the user interface language can be translated and changed on the fly. This project will require knowledge of Python, Mercurial, and basic web coding; knowing the GNU gettext utilities, Javascript, and the Jinja web templating system will be helpful. No knowledge of (human!) languages other than English is necessary.

Currently, the user interface for the Sage notebook is all in English. Several one-off translations have been done (Korean; Russian) these translations involved going through source code and translating each string individually. The goal of the Sage project is to produce a viable alternative to Maple, Mathematica, Magma, and Matlab; having the user interface available in non-English languages would have a tremendous impact on that goal and vastly increase the number of people who can benefit from Sage.

Proper internationalization (i18n) involves wrapping each string in a function that looks up the correct translation, depending on the current language selected.

Deliverables for this project would include:

  • wrapping strings in the Python, Javascript, and templating code of the Sage notebook with appropriate translation calls;
  • updating the Sage notebook so that the language can be set to a default language (so that, say, a French site could have everything default to French) and can be changed on a per-user basis (so each user can choose a preferred language);
  • developing a workflow for adding new translations and updating existing translations when strings change.

It would also be nice to work on support for more significant localization, perhaps using the Python Babel tools; this would include more thorough localization abilities, such as proper pluralization, thousands/decimal separators, ordinals, date and time display, and so on.

This project will not involve any actual translation, just making it possible for the Sage notebook UI to be localized. This is probably a medium-difficulty project, and will not require any specialized knowledge of mathematics or mathematical programming.

Potential mentor: DanDrake

Other ideas for the notebook

Here is a list of other possible improvements to the Sage notebook. Feel free to explore these ideas and make them into a proper project. The Sage tasks list also contains many other similar items. You can email the Sage notebook discussion group if you are interested in working on these.

  • Improvements to @interact

    • a 2d locator widget (there is already a separate bounty for this, around $100 USD or so, I think)
    • flexible layout of controls, and interacts within interacts
  • master-worksheet, collection of other worksheets for a script or book.
  • Permanent hyperlinks between worksheets, independent of worksheet numbering, to support multi-worksheet documents (ie books)
  • enhance history and snapshot capabilities.
  • concurrent editing of one single document: only altered cells are updated and "collision" warnings issued if more than one change happens with appropriate methods to solve it
  • read/write permission management for groups with roles (teacher is able to read notebooks, but students are not able to read each others)
  • basic datasheets (simple Google Docs-like spreadsheets) that can be shared with worksheets in read-only or read-write mode, could be editor to SQLite tables.
  • content-editable divs for the code cells, so we can support javascript widgets for inputting code (for example, we could have a slider right in the code cell, representing a numeric value, or a javascript graph editor representing a graph, or a wysiwyg formula editor, or color syntax highlighting)
  • support various types of text cells, so that, at the user's option, we could have a ReST text cell, an HTML (TinyMCE) text cell, a plain text cell, a latex text cell, etc.
  • ...

Interfaces to/from Sage

Sage as a C library

  • Make it easier to call Sage from other applications.

libGAP

Google Wave robot

  • Support for sessions across multiple input lines, graphics, images, 3d graphics, collaborative work, authentication via a login, etc. On Sage's side there needs to be an implementation of the federation protocol to communicate with the wave server - or routed through app-engine. A similar approach is wolfram alpha in google wave.

Portable C99 libm

Sage relies on a fairly complete C99 libm. In particular, it expects the "long double" and "complex" variants of most functions to be present. Not all these functions are present on Cygwin, FreeBSD or older Solaris, causing porting problems on those platforms. The objective of this task would be to either locate and port or write a libm that is sufficient to meet Sage's requirements.

One possible option would be to use glibc and only compile the libm bits. (Thought glibc is a bit dodgy on the precision side in some areas).

Another possible thing to look at is http://lipforge.ens-lyon.fr/www/crlibm/index.html.

pynac

As the symbolics backend, Pynac is a fundamental component of Sage. With some work and optimization, it could also be used for arithmetic with other mathematical structures like generic polynomial rings. It's based on a solid library GiNaC, which has great documentation and very readable code.

Skills: C++, (the necessary Cython and Python can be picked up easily)

Potential mentor: Burcin Erocal

Optimization / better data structures

This project would have two steps, the first would be a major optimization for Pynac also a good introduction to the library, coding conventions, type hierarchy, etc. The second would involve replacing the basic datatypes (vectors with heaps), lot's of timings and experiments to improve performance.

  • allow different printing orders
    • GiNaC uses the Maple approach to printing symbolic expressions. Variable orders depend on their creation order at runtime. This is not acceptable for Sage, so we (=Burcin) added some code to do an approximation to a graded lexicographic order. This is the wrong design, and it slowed things down considerably. Doing it the right way, and allowing different orders would also let us use Pynac for other structures in Sage.
  • consider heaps instead of vectors for storage of add and mul objects

Pretty printing

Development Process

The Sage development process (detailed here) involves posting patches on our [[http://sagetrac.org, getting them reviewed, and then merged into our source code. Then the code is compiled and tested. Right now, many of these steps are done manually and could be automated and improved. Possible ideas for projects in this area would involve:

  • setting up a buildbot with trac integration for tickets with patches (list failing doctests, ...)
  • set up a code review system like Rietveld.

  • ...

Porting

Sage is mostly "native" to Linux and OS X. A port to 32-bit Solaris SPARC is mostly complete, and a Cygwin port is underway (it may be working by this summer). But porting to other systems is very useful, both to increase our potential user base, and to help eliminate bugs (see the section "Computational Technique; the Pentium Flaw" in this paper). This project would involve assisting our ports to the following platforms:

  • Cygwin
  • FreeBSD
  • Solaris 10 64-bit (the 32-bit version is basically complete).
  • Open Solaris on x64 hardware.

It could also involve improvements to the build system -- can we use the same system on different platforms, including Windows? Skills required: knowledge of porting software to new compilers and platforms.

Another idea in this vein would be setting up a Launchpad PPA for Sage. The Ubuntu packages for Sage are hopelessly out of date, and because of the large and heterogeneous nature of Sage, packaging for various Linux distributions is quite difficult. Having Ubuntu packages available would be very useful and possibly help us get Sage packaged for other distributions.

Others

Here are some other task lists:

Potential Mentors

  • DanDrake

  • Burcin Erocal
  • Peter Jeremy (FreeBSD port, possibly libm task)
  • William Stein

Notes:

We should take care to define deliverables for the items below. These should be doable with less than 3 months of work.

Here is what the FAQ says for "Ideas" lists:

  • An "Ideas" list should be a list of suggested student projects. This list is meant to introduce contributors to your project's needs and to provide inspiration to would-be student applicants. It is useful to classify each idea as specifically as possible, e.g. "must know Python" or "easier project; good for a student with more limited experience with C++." If your organization plans to provide an application template, you should include it on your Ideas list.
  • Keep in mind that your Ideas list should be a starting point for student applications; we've heard from past mentoring organization participants that some of their best student projects are those that greatly expanded on a proposed idea or were blue-sky proposals not mentioned on the Ideas list at all.

And this is from the notes on organization selection criteria:

  • 2) Do the projects on your ideas list look feasible for student developers? Is your ideas list thorough and well-organized? Your ideas list is the first place that student participants are going to look to get information on participating in GSoC, so putting a lot of effort into this list is a good thing(tm). One thing we noticed and really appreciate is how some organizations classified their ideas by easy, medium and difficult, and specifically listed the skills and background required to complete a given task. It might also be cool to expand on each idea with some places to get started research-wise (pointers to documentation or specific bugs), as well as the impact finishing a given idea will have for the organization.

GSoC/2010 (last edited 2012-03-17 19:47:15 by schilly)