Karma.png

Karma is a yet-to-be-created framework for creating very simple Sugar activities using javascript and html5. It is not intended to create powerful animations, simulations, or reusable artifacts. PyGTK and pygame are much better tools for those purposes. Check out the Karma Project blog for updates.

Team

Felipe Lopez Toledo "SubZero" is creating a prototype for Karma as a Google Summer of Code project. Bryan Berry is serving as his mentor.

Project Requirements

  • Create a single prototype activity which could be used as a template for sugarizing AJAX activities. The GSoC participant should not create her own activity but recreate an existing activity such as one of OLE Nepal's flash activities.
  • This prototype should have the following features:
    • Simple interactive animation and audio using html5 tags like <canvas> and <audio>
    • An assessment section that stores results of student's progress and gives them suggestions on improvement. Assessment info should be persistent.
    • Has embedded pdf or pdf like document reader for activity lesson plan and teacher notes.
    • Integrates with the Journal
    • Navigation and Help elements, ideally reusing widgets from popular javascript libraries like Jquery, Prototype, or Mootools
    • Some element of collaboration using Telepathy (This could be really hard, depending on the state of javascript bindings to dbus)

Technical Architecture

  • ToDo* need to update this

It is preferable to use a minimalist html rendering engine, javascript compiler, and filesystem access API rather than extending full-blown browser such as Mozilla.

Preferred Underlying Components:

  • Webkit for html rendering engine rather than gecko
  • Google Chrome's v8 javascript engine -- Note: Mozilla's tracemonkey offers comparable performance -- Note: Sorry, but TM doesn't even compare to SquirrelFish
  • Google Gear's Filesystem API because it seems to have the most traction in the linux world
  • Some mechanism to support dbus events

At this time, 23 March 2009, Titanium seems to offer all of the above but warrants testing. On the XO. Other options are to use regular firefox, Epiphany, or another browser. Titanium's developers have expressed enthusiasm for extending their platform to better support Sugar.


Conventions

  • Anatomy of a Karma Lesson
  • Source Code stored here ? somewhere on git.sugarlabs.org
  • Project Documentation kept in the SugarLabs wiki
  • Code naming conventions ?
  • file naming conventions ?


Meetings

  1. Regular meeting between Felpe and Bryan every Tuesday 0200 UTC at #sugar on irc.freenode.net
  2. General GSOC meeting for participants from Sugar every Tuesday 1500 UTC #sugar-meeting

Project Plan

There are roughly 4 parts to this project plan: first get titanium running on the XO, second create a very simple learning activity with javascript and html5, third get that activity running on the XO in a roughly sugarized version of titanium, fourth extend the activity to take advantage of Sugar-specific features such as the Journal and Collaboration.

Before GSoc - May 22:

  • get familiar with Sugar
  • get familiar with html5
  • Felipe to acquire XO
  • learn more about java script
  • select the appropriate js framework

May 23 - June 5: “Karming” some simple OLE nepal activity w/out fs access, dbus, i8n

June 6: Publish a blog post with the karmified activity. The report must include the problems I found, the ideas on how to solve those problems and timeline for rest of project. This post may elicit responses w/ solutions to important problems.

June 7 - June 12:

  • Developing the first Karma widget (easy animation tool, boost animation tool from the selected js framework)
  • Getting familiar with Sugar/Browse code

June 13 - July 12:

  • Providing Karma + audio
  • Providing Karma + client-side i18n
  • Developing an activity template for Karma
  • Changing the original activity to include above features

July 13: Publish blog post that showcases updated activity. Explain problems encountered, what works, what still doesn’t.

July 15 - July 25:

  • Fixing bugs
  • Work on gears+karma support

July 26 - July 31:

  • Documenting examples
  • Improving documentation

August 1 - August 9: time for any eventual emergencies

Project Risks

  1. Creating interactive animations with html5 and javascript is very new technology as html5 is a new standard. It could be much harder to create animations than we expect. Risk Level: High
  2. Javascript animations could be very slow on the XO. Risk Level: Low, we don't need very complex animations
  3. It could be very difficult to interface titanium with telepathy. Risk Level: High