Hacker News new | past | comments | ask | show | jobs | submit login

Is python really a 'standard'? Python's had trouble lately with non-mainline implementations because the grammar keeps changing. There's no standards document laying out how the language should behave, in the sense of 'Jython is compatible with the Python language 2.5'; rather, third-party implementations duplicate features and functionality from CPython based off the PEP they're defined in.

Does it pertain to the web? It doesn't. Python isn't used 'on the web', it's used on the backend to generate web pages, as is C#, Erlang, and pretty much every other language ever. Are you suggesting that Apple should include a Python interpreter in WebKit? It sounds like that's what you're suggesting.

The simple answer would be 'because Python is not a language that is used in client-side scripting anywhere on the web'. No other browser supports it, and even if they did it wouldn't be widely used.

Your argument seems not only spurious but nonsensical. Python is used to send or receive documents over HTTP, so therefore I should be able to write a web app in Python to run on the iPhone? It doesn't make sense.

My home cable internet 'pertains to the web' too, and it uses documented standards like DOCSIS, so why doesn't my iPhone support DOCSIS? It's a ridiculous argument, as is yours.




> Is python really a 'standard'?

In an important sense I think it is. If I write a program in Python I can be reasonably sure it will run on someone else's system (obviously I have to take into account different Python versions, different underlying OS, etc). If I write a program in C++ or Scheme, what assurances of portability do I have if someone else's system is running a different implementation, with different libraries available, and different underlying behaviour in edge cases.

> rather, third-party implementations duplicate features and functionality from CPython based off the PEP they're defined in.

Yes; CPython is the standard. It's better if the standard is a program rather than a document, because you can run a program and find out what it does, but a document just sits there and does nothing (and may be hard to understand or ambiguous; the spec for Algol 68 comes to mind here).

> Python isn't used 'on the web', it's used on the backend to generate web pages

It is used as an http client as well as a server.

> Are you suggesting that Apple should include a Python interpreter in WebKit?

No, I'm suggesting that Apple should open up their platforms and allow people who have bought iPhones and iPads to run software of their own choosing on them; I'm sure someone would port Python fairly quickly.

> The simple answer would be 'because Python is not a language that is used in client-side scripting anywhere on the web'.

That's factually inaccurate; I personally have written code in Python that acts as a web client. As have some of my friends.

> No other browser supports it, and even if they did it wouldn't be widely used.

You seem to be under the misapprehension that client-side web programming must involve running inside a graphical web browser. This is not the case. Ever heard of wget? Or scraping?

> Python is used to send or receive documents over HTTP, so therefore I should be able to write a web app in Python to run on the iPhone? It doesn't make sense.

Yes it does. For example, I might want to write a program to cache certain web pages so I can read them even if I'm in an area with poor wifi and 3G access. And I might want to write that program in Python.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: