root 84896546ab update | 4 yıl önce | |
---|---|---|
.. | ||
debugger | 4 yıl önce | |
dist | 4 yıl önce | |
doc | 4 yıl önce | |
example | 4 yıl önce | |
gen | 4 yıl önce | |
repl | 4 yıl önce | |
src | 4 yıl önce | |
support | 4 yıl önce | |
test | 4 yıl önce | |
.bowerrc | 4 yıl önce | |
.gitattributes | 4 yıl önce | |
.gitignore | 4 yıl önce | |
.hgignore | 4 yıl önce | |
.jscsrc | 4 yıl önce | |
.jshintignore | 4 yıl önce | |
.jshintrc | 4 yıl önce | |
.travis.yml | 4 yıl önce | |
CONTRIBUTING.md | 4 yıl önce | |
HACKING.md | 4 yıl önce | |
LICENSE | 4 yıl önce | |
README.md | 4 yıl önce | |
bower.json | 4 yıl önce | |
dist-update.sh | 4 yıl önce | |
jsdoc.json | 4 yıl önce | |
m | 4 yıl önce | |
my_test.py | 4 yıl önce | |
package.json | 4 yıl önce | |
skulpt.cmd | 4 yıl önce | |
skulpt.py | 4 yıl önce | |
stdlibstubs.py | 4 yıl önce | |
student_code.py | 4 yıl önce | |
temp.js | 4 yıl önce | |
tmp.js | 4 yıl önce |
Skulpt is a Javascript implementation of Python 2.x. Python that runs in your browser! Python that runs on your iPad! Its being used several projects including, Interactive Python Textbooks -- You can see skulpt in action there. Try out some turtle graphics examples to see Skulpt in action.
Skulpt is the brainchild of Scott Graham. See Skulpt.org for some early demos of skulpt in action.
Brad Miller has been shepherding the development since sometime in 2010/2011.
Welcome to the Skulpt developer community! Check out the ideas list below. And then some practical things for getting started after that.
We are coordinating sprints on some of the ideas below, builtins, stdlib, third party modules, and core performance here. We always welcome interested developers becoming Primarily Repsonsible Persons (PRP) for features they're working on.
Expand the skulpt standard library to include more modules from the CPython standard library. So far we have math, random, turtle, time (partial) random (partial) urllib (partial) unittest, image, DOM (partial) and re (partial). Any of the partial modules could be completed, or many other CPython modules could be added. Potential new modules from the standard library include: functools, itertools, collections, datetime, operator, and string. Many of these would be relatively easy projects for a less exeperienced student to take on.
Over time we have had numerous requests for more advanced Python modules to be included in Skulpt. These include, portions of matplotlib, tkinter, and numpy. These are much more challenging because they contain C code in their implementation, but if a reasonable subset could be implemented in Javascript this would make it much easier to directly add many more python modules that rely on these three. In addition, it would allow for skulpt to potentially be used in teaching an even broader set of topics.
Expand and clean up the foreign function API. This API is critical for implementing parts of the standard library.
Currently builtin types (list, tuple, string, etc) are not subclassable. Making the builtins subclassable would eliminate several known bugs in Skulpt.
Implement decorators. This would enable a whole bunch of pure python modules to be added to skulpt, plus allow us to add things like properties in a nice way.
Do a better job of supporting Python3 semantics, but make Python2/Python3 behavior configurable with a single flag. Sk.python3 is already there for this purpose. Another positive step in this direction would be to update our grammar to Python2.7. Updating the grammar would allow us to add set literals, dictionary comprehensions, and other features present in 2.7.x and Python 3.3.x. This would be an excellent project for a student interested in language design, parsing, and the use of abstract syntax trees.
Make fully workable, and expand support for DOM access as part of the standard library.
Expand and improve overall language coverage. Currently Skulpt does an excellent job of meeting the 80/20 rule. We cover the vast majority of the language features used by the 80% (maybe even 90%) of the code. But there are builtins that are not implemented at all, and there are builtins with only partial implementations.
Implement the hooks for a debugger. This may be a half step towards 1 or may be in a completely different direction, but allowing students to debug line by line a program they have written would have some real benefit.
Building Skulpt is straightforward:
npm install -g jscs jshint jsdoc
(you may need to use sudo
to run this command)./skulpt.py dist
skulpt.min.js
and skulpt-stdlib.js
in the dist
folderThere is plenty of work still to do in making improvements to Skulpt. If you would like to contribute
Check out the mailing list: https://groups.google.com/forum/?fromgroups#!forum/skulpt
As time goes on its getting more dangerous to try to acknowledge everyone who has contributed to the project. And, after all, this is git, so their names are all in the historical record. But there are a few to call out.