Live data from Hacker News

Python, client side: Skulpt

skulpt.org

31–40 of 43 posts

Re: Python, client side: Skulpt

#31

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?

spanish qwerty keyboard layout here, works fine in safari 4 (osx), but I also use 'shift' to type colons, etc... maybe a fixed bug?

Re: Python, client side: Skulpt

#32
post #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/

On the topic of Silverlight: is there a reason beyond Microsoft's economic whims that Silverlight couldn't be implemented for non-IE browsers? And if it were implemented across browsers, would it easily work across different OS's?

Or is Silverlight not really a browser plugin like Flash?

(As is probably obvious, I'm totally ignorant of how browser plugins, Flash, Silverlight, and most other things work.)

Re: Python, client side: Skulpt

#33
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.

I was just looking at the source, and I want to compliment you on how good it looks. Very well done -- really organized and thought out with much less hackery than expected (which JS seems to have a tendency to bring out...)

Re: Python, client side: Skulpt

#34
post #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/

On the topic of Silverlight: is there a reason beyond Microsoft's economic whims that Silverlight couldn't be implemented for non-IE browsers? And if it were implemented across browsers, would it easily work across different OS's? Or is Silverlight not really a browser plugin like Flash? (As is probably obvious, I'm totally ignorant of how browser plugins, Flash, Silverlight, and most other things work.)

I believe Silverlight works in Firefox actually.

I don't use it, but the trypython.org page has a statement:

"Target browsers are Firefox 2 & 3, Safari and IE 7 & 8. (It won't work in other browsers until there is a version of Silverlight that works with them.)"

Re: Python, client side: Skulpt

#36
post #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/

On the topic of Silverlight: is there a reason beyond Microsoft's economic whims that Silverlight couldn't be implemented for non-IE browsers? And if it were implemented across browsers, would it easily work across different OS's? Or is Silverlight not really a browser plugin like Flash? (As is probably obvious, I'm totally ignorant of how browser plugins, Flash, Silverlight, and most other things work.)

There's an open source implementation of Silverlight, called Moonlight:

http://www.mono-project.com/Moonlight

I've never used it before, so I don't know how well it works or anything.

Re: Python, client side: Skulpt

#37
post #34

Earlier quoted context omitted.

On the topic of Silverlight: is there a reason beyond Microsoft's economic whims that Silverlight couldn't be implemented for non-IE browsers? And if it were implemented across browsers, would it easily work across different OS's? Or is Silverlight not really a browser plugin like Flash? (As is probably obvious, I'm totally ignorant of how browser plugins, Flash, Silverlight, and most other things work.)

I believe Silverlight works in Firefox actually. I don't use it, but the trypython.org page has a statement: "Target browsers are Firefox 2 & 3, Safari and IE 7 & 8. (It won't work in other browsers until there is a version of Silverlight that works with them.)"

Thanks. I did a little googling. It appears that Silverlight works (at least marginally) in several browsers on two OS's (Windows and OS X).

I'm still curious about why Silverlight works for, say, Firefox on OS X, but not Firefox on Linux. I understand that Microsoft probably wants to prevent Silverlight from working on Linux, but I'm curious whether it's something hard to do because Linux doesn't have X, Y, and Z that Silverlight requires, or is it relatively easy to do (if you had control of the codebase).

Re: Python, client side: Skulpt

#38

Earlier quoted context omitted.

On the topic of Silverlight: is there a reason beyond Microsoft's economic whims that Silverlight couldn't be implemented for non-IE browsers? And if it were implemented across browsers, would it easily work across different OS's? Or is Silverlight not really a browser plugin like Flash? (As is probably obvious, I'm totally ignorant of how browser plugins, Flash, Silverlight, and most other things work.)

There's an open source implementation of Silverlight, called Moonlight: http://www.mono-project.com/Moonlight I've never used it before, so I don't know how well it works or anything.

I don't actually want to use a proprietary tool like Silverlight, or an open reimplementation, but I appreciate the effort to make the comment.

Thanks.

Re: Python, client side: Skulpt

#40

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?

Hmm, sorry about that, I only tried the demo console on Ubuntu and Windows, and only with a US keyboard.

I haven't found a non-insane way of doing it.. see f.e. http://www.quirksmode.org/js/keys.html

Anyone have any pointers? (or patches? :)

Post reply on HN