Live data from Hacker News

Python, client side: Skulpt

skulpt.org

21–30 of 43 posts

Re: Python, client side: Skulpt

#21
Anybody else on Mac OS X unable to type a colon in the interactive prompt?

I tried it in both Firefox 3.5 and Safari 4, and neither works.

Apparently it's not just this site, though. According to http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f... it's only sending a shift (KeyCode 16) when I try typing a colon...

On my Ubuntu system, the colon works just fine. Is this a known bug?

Re: Python, client side: Skulpt

#22

Anybody else on Mac OS X unable to type a colon in the interactive prompt? I tried it in both Firefox 3.5 and Safari 4, and neither works. Apparently it's not just this site, though. According to http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f... it's only sending a shift (KeyCode 16) when I try typing a colon... On my Ubuntu system, the colon works just fine. Is this a known bug?

I wasn't able to type a colon either. I also wasn't able to type '+', '_', '', '|', '?', and '~'. These all have the common pattern of being shifted on a normal US keyboard, so I'm going to assume it's related to that.

Re: Python, client side: Skulpt

#25
http://www.trypython.org/

Requires Silverlight, but is far more complete as it wraps IronPython. I think its quite neat what you can do with silverlight even if its EEEEVIL MS tech.

Another cool SL trick: http://www.mix09.org/labs/gestalt/samples/canvas.2d.drawing/...

Using Python inline in your html via Silverlight and a helper JavaScript called "Gestalt". It also supports Ruby.

http://www.mix09.org/labs/gestalt/

Re: Python, client side: Skulpt

#26
post #4
post #2

I just can't get myself to love JS the way I do other languages... so, this is my current little weekend project. It's a source-to-source translator so it interops reasonably with JS and should perform similarly also. The parser is derived from CPython's so that part is relatively complete, but the "backend" isn't done yet. For example, there's not even support for "class" yet.

Very impressive work. But you'll need to implement "import this" for it to be considered a serious Python implementation.

Any support at all for modules is really a requirement to be considered a serious Python implementation.

  >>> import sys
  don't have handler for: import_stmt
But otherwise, neato.

Re: Python, client side: Skulpt

#29
post #7

Earlier quoted context omitted.

Link? I don't see it at http://codespeak.net/pypy/dist/pypy/doc/docindex.html#pypy-d... (a js interpreter, but no translator). If I were to guess, not having seen PyPy's: I'd like something about 100x smaller than PyPy seems to be, and I don't want a mandatory up-front translation "build" step.

Apparently they removed it: http://www.mail-archive.com/pypy-dev@codespeak.net/msg03946.... That post also mentions Pyjamas, a port of Google Web Toolkit which compiles Python instead of Java: http://pyjs.org/

Well this is very annoying as I had started to use PyPy's Javascript backend in metapaw-dip:

http://www.metapaw.co.uk/projects/metapaw-dip/

I really, really want to do Python client-side (or rather compile Python to Javascript). Javascript is just so painful for me. Being able to test Python code as Python would be the major reason.

Post reply on HN