Re: What python can NOT do?

2009-09-08 Thread Дамјан Георгиевски
Boot loaders are another type of software which would be impractical to write in existing Python implementations. I wonder if TinyPy (http://www.tinypy.org/) could be used to write a boot loader. It would probably need some more code to replace the services it uses from an OS, and perhaps it

Re: What python can NOT do?

2009-09-07 Thread Albert van der Horst
In article 0022052b$0$2930$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Fri, 28 Aug 2009 15:37:46 -0700, qwe rty wrote: i know that an interpreted language like python Languages are neither interpreted nor compiled. *Implementations* are interpreted

Re: What python can NOT do?

2009-09-07 Thread Steven D'Aprano
On Tue, 08 Sep 2009 00:09:26 +, Albert van der Horst wrote: Existing Python implementations don't give you direct access to hardware, and bit-manipulation has a lot of overhead in Python. Numerical Surely you don't mean that 0x17 0xAD has more overhead than 17 + 123 So what do

Re: What python can NOT do?

2009-09-04 Thread Mike Coleman
On Aug 28, 5:37 pm, qwe rty hkh00...@gmail.com wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language? Neither of those is strictly true. It is true,

Re: What python can NOT do?

2009-09-04 Thread Steven D'Aprano
On Fri, 04 Sep 2009 08:21:15 -0700, Mike Coleman wrote: It is true, though, that Python cannot be used to write arbitrarily complex one-liners, though. Incorrect. exec x=1\0while x 5:\0 x+=1\0print x.replace('\0','\n') 5 Take (almost) any arbitrary piece of Python code. Replace all

Re: What python can NOT do?

2009-09-04 Thread Grant Edwards
On 2009-09-05, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Fri, 04 Sep 2009 08:21:15 -0700, Mike Coleman wrote: It is true, though, that Python cannot be used to write arbitrarily complex one-liners, though. Incorrect. exec x=1\0while x 5:\0 x+=1\0print

Re: What python can NOT do?

2009-09-04 Thread Steven D'Aprano
On Fri, 04 Sep 2009 22:27:39 -0500, Grant Edwards wrote: Take (almost) any arbitrary piece of Python code. Replace all newlines by nulls. Escape any quotation marks. Wrap the whole thing in quotes, and pass it to exec as above, and you have an arbitrarily complex one-liner. I don't

Non-deterministic computing (was: What python can NOT do?)

2009-08-30 Thread Joshua Judson Rosen
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote: My private list of things that when implemented in Python would be ugly to the point of calling it difficult: 1. AMB operator - my very favourite. In one sentence,

Re: What python can NOT do?

2009-08-30 Thread Nobody
On Sat, 29 Aug 2009 23:07:17 +, exarkun wrote: Personally, I consider Python to be a good language held back by too-close ties to a naive interpreter implementation and the lack of a formal standard for the language. Name one language under active development that has not been harmed by

Re: What python can NOT do?

2009-08-30 Thread John Nagle
exar...@twistedmatrix.com wrote: On 10:23 pm, a...@pythoncraft.com wrote: In article 4a998465$0$1637$742ec...@news.sonic.net, John Nagle na...@animats.com wrote: Personally, I consider Python to be a good language held back by too-close ties to a naive interpreter implementation and the

Re: What python can NOT do?

2009-08-29 Thread Hendrik van Rooyen
On Saturday 29 August 2009 02:14:39 Tim Chase wrote: I've also been sorely disappointed by Python's ability to make a good chocolate cream silk pie. This is not pythons fault - it is yours, for failing to collaborate with a good hardware designer for the robotics. - Hendrik --

Re: What python can NOT do?

2009-08-29 Thread Timothy N. Tsvetkov
On Aug 29, 4:26 am, qwe rty hkh00...@gmail.com wrote: On Aug 29, 3:14 am, Tim Chase python.l...@tim.thechases.com wrote: what else can NOT be done in python? what are the limitations of the language? I understand there's a little trouble getting Python to prove that P=NP  You'll

Re: What python can NOT do?

2009-08-29 Thread Tomasz Rola
On Sat, 29 Aug 2009, Timothy N. Tsvetkov wrote: On Aug 29, 4:26 am, qwe rty hkh00...@gmail.com wrote: On Aug 29, 3:14 am, Tim Chase python.l...@tim.thechases.com wrote: what else can NOT be done in python? what are the limitations of the language? [...] I forgot about solving

Re: What python can NOT do?

2009-08-29 Thread Tomasz Rola
On Sat, 29 Aug 2009, Steven D'Aprano wrote: On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote: My private list of things that when implemented in Python would be ugly to the point of calling it difficult: 1. AMB operator - my very favourite. In one sentence, either language

Re: What python can NOT do?

2009-08-29 Thread John Haggerty
Theoretically a microkernel could be used to do the stuff python directly couldn't do and the rest could be done once an interpreter was loaded in theory. On Fri, Aug 28, 2009 at 4:37 PM, qwe rty hkh00...@gmail.com wrote: i know that an interpreted language like python can't be used to make an

Re: What python can NOT do?

2009-08-29 Thread AggieDan04
On Aug 28, 7:05 pm, Tim Chase python.l...@tim.thechases.com wrote: qwe rty wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. As long as you are willing to write the OS hooks in C, you can write the userspace device drivers

Re: What python can NOT do?

2009-08-29 Thread Che M
On Aug 28, 6:37 pm, qwe rty hkh00...@gmail.com wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language? Now that you have some good answers, may I ask

Re: What python can NOT do?

2009-08-29 Thread Michael Torrie
qwe rty wrote: On Aug 29, 5:11 am, Nobody nob...@nowhere.com wrote: On Fri, 28 Aug 2009 17:26:06 -0700, qwe rty wrote: if you don't know the answer please don't reply If you don't understand the question, don't post it in the first place. don't be so angry ,not good for your health You

Re: What python can NOT do?

2009-08-29 Thread Terry Reedy
exar...@twistedmatrix.com wrote: For my part, I will agree with John. I feel like Python's big shortcomings stem from the areas he mentioned. They're related to each other as well - the lack of a standard hampers the development of a less naive interpreter (either one based on CPython or

What python can NOT do?

2009-08-28 Thread qwe rty
i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language? -- http://mail.python.org/mailman/listinfo/python-list

Re: What python can NOT do?

2009-08-28 Thread Christian Heimes
qwe rty wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language? Python is a high level language. It's not designed for low level stuff like bit

Re: What python can NOT do?

2009-08-28 Thread r
On Aug 28, 5:37 pm, qwe rty hkh00...@gmail.com wrote: what else can NOT be done in python? what are the limitations of the language? Why would you even want to know what can't be done? What is it that you would like to do with Python? If you want a one size fits all language you may be looking

Re: What python can NOT do?

2009-08-28 Thread Tim Chase
qwe rty wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. As long as you are willing to write the OS hooks in C, you can write the userspace device drivers in Python:

Re: What python can NOT do?

2009-08-28 Thread Tim Chase
what else can NOT be done in python? what are the limitations of the language? I understand there's a little trouble getting Python to prove that P=NP You'll also find that it only comes close to solving the unrestricted three-body problem and the Traveling Salesman problem is still limited

Re: What python can NOT do?

2009-08-28 Thread qwe rty
On Aug 29, 3:14 am, Tim Chase python.l...@tim.thechases.com wrote: what else can NOT be done in python? what are the limitations of the language? I understand there's a little trouble getting Python to prove that P=NP  You'll also find that it only comes close to solving the

Re: What python can NOT do?

2009-08-28 Thread r
On Aug 28, 7:05 pm, Tim Chase python.l...@tim.thechases.com wrote: (snip) Since Python is Turing-complete, there's no reason a whole OS couldn't be authored in Python. Yes, and one could go from NY to LA on a unicycle but would one really want to? Talk about some redass and blueballs! *yikes*

Re: What python can NOT do?

2009-08-28 Thread Steven D'Aprano
On Fri, 28 Aug 2009 15:37:46 -0700, qwe rty wrote: i know that an interpreted language like python Languages are neither interpreted nor compiled. *Implementations* are interpreted or compiled. Perl has only one implementation, which is interpreted (as far as I know); Java has a number of

Re: What python can NOT do?

2009-08-28 Thread Bruce C. Baker
qwe rty hkh00...@gmail.com wrote in message news:00a36f89-52dd-4d90-a455-cee6a0c9d...@q5g2000yqh.googlegroups.com... i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of

Re: What python can NOT do?

2009-08-28 Thread Tim Chase
qwe rty wrote: On Aug 29, 3:14 am, Tim Chase python.l...@tim.thechases.com wrote: what else can NOT be done in python? what are the limitations of the language? I understand there's a little trouble getting Python to prove that P=NP You'll also find that it only comes close to solving the

Re: What python can NOT do?

2009-08-28 Thread qwe rty
if you don't know the answer please don't reply I'm not sure you understand -- Being a Turing complete language, anything you can do in any other language, you can do in Python.   As r observed, it might not be a pleasant experience (though there are a lot of things I'd rather do in Python

Re: What python can NOT do?

2009-08-28 Thread qwe rty
On Aug 29, 4:17 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 28 Aug 2009 15:37:46 -0700, qwe rty wrote: i know that an interpreted language like python Languages are neither interpreted nor compiled. *Implementations* are interpreted or compiled. Perl has only

Re: What python can NOT do?

2009-08-28 Thread Nobody
On Fri, 28 Aug 2009 17:31:22 -0700, r wrote: Since Python is Turing-complete, there's no reason a whole OS couldn't be authored in Python. Yes, and one could go from NY to LA on a unicycle but would one really want to? Talk about some redass and blueballs! *yikes* Yes, if i have learned

Re: What python can NOT do?

2009-08-28 Thread Nobody
On Fri, 28 Aug 2009 17:26:06 -0700, qwe rty wrote: if you don't know the answer please don't reply If you don't understand the question, don't post it in the first place. -- http://mail.python.org/mailman/listinfo/python-list

Re: What python can NOT do?

2009-08-28 Thread qwe rty
On Aug 29, 5:11 am, Nobody nob...@nowhere.com wrote: On Fri, 28 Aug 2009 17:26:06 -0700, qwe rty wrote: if you don't know the answer please don't reply If you don't understand the question, don't post it in the first place. don't be so angry ,not good for your health --

Re: What python can NOT do?

2009-08-28 Thread Tomasz Rola
On Fri, 28 Aug 2009, qwe rty wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language? Oh, my. And now everybody points at you this Turing-completeness.

Re: What python can NOT do?

2009-08-28 Thread Aahz
In article bbe16797-95c6-4fc3-89d5-8d69c4744...@f10g2000vbf.googlegroups.com, qwe rty hkh00...@gmail.com wrote: if you don't know the answer please don't reply I'm not sure you understand -- Being a Turing complete language, anything you can do in any other language, you can do in Python.

Re: What python can NOT do?

2009-08-28 Thread Steven D'Aprano
On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote: My private list of things that when implemented in Python would be ugly to the point of calling it difficult: 1. AMB operator - my very favourite. In one sentence, either language allows one to do it easily or one would not want to do