There is such as thing as MicroPython https://micropython.org/ that runs directly on bare metal microcontrollers. Okay, they don't have just 256 bytes of RAM, but that's stretching it for every language
Python certainly is NOT typeless. Python is a strongly typed language: every object is of a certain type, even functions and types (or classes) itself are instances of a type. The operations on the objects are well defined in terms of their type.
What you're probably confusing it with is that Java does static typing (a name always represents a value of a certain fixed type) and Python does dynamic typing (names can denote values of varying types)
I've been a happy user of the Directory Opus file manager tool since when it first came out for Windows (and before that on Amiga, but that is beside the point here). Indeed it seems I'll be a happy user of Directory Opus for many years to come.
What makes you think the Win users actually paid for their OS? If they spend $8 on average on a deal like this, I'm inclined to think many of them don't pay the price of a legal Windows install either... (then again, the other 2 amounts aren't particulary high too. It could be that many people just look at the deal and see 1 game they like, and base the amount of money on that? Even though you get a lot more. Personally, I decided to pay $50 for this deal.)
I'm not impressed. Epic had Unreal Engine 3 running on the iPhone back in december last year: http://www.anandtech.com/gadgets/showdoc.aspx?i=3695 Granted, it's a modified version and I don't think there's a working game available yet that uses it, but the engine is several generations newer than the Quake 3 one... Still, nice job. It's weird to see 'big' games appearing on tiny devices. Didn't think the mobile technology would be this advanced so soon, tbh.
Interesting, this is the first time I see someone else use the 'pi' factor in time estimates. I once did a project that had a huge amount of overhead due to the usual (bad requirements analisys, big management overhead, inefficient testing etc etc) that really made a factor of more than three times the original estimate a realistic estimate.
The GIL does get released at certain strategic points: when Python does I/O (or rather, waits for its completion) and when calling an extension module that releases it.
In both cases multiple threads *can* run concurrently. It's mainly when the interpreter is executing byte code that only one thread at a time is active.
My A4000 happily ran Debian m68k-Linux including X11.
Re:My short experience with perl...
on
What is Perl 6?
·
· Score: 2, Informative
Python's list comprehensions are generators. Look it up what this means. The infinite Fibonacci sequence can be written in Python as a generator function:
def fib():
e=0
f=1
while True:
yield f
e,f = f,f+e
You can print it like this:
for f in fib(): print f
but that wouldn't bee too convenient, other than to see Python's long-number feature:)
More interesting is combining it with another generator function, one that only returns the first N numbers of the given generator:
def firstn(g, n):
gen=g()
for i in range(n):
yield gen.next()
print list(firstn(fib, 10))
The explicit conversion to a list is because otherwise you would see that the object you're trying to print is not the list itself, but the generator that will build the list for you one element at a time.
As you can read in my comment below about McAfee Virusscan 9.0, disabling activex in internet explorer breaks every settings and information panel of that virus scanner. Great. A virus scanner that contains IE. (I deinstalled McAfee an hour ago).
I've decided to try Anti-Vir (free-av.com) for a while, I heard good comments from other people too about this one. At least it seems to work fine with thunderbird too.
But the main point of my original comment was that McAfee decided to use Internet Explorer itself, one of the main sources of leaks and infections, as part of their own anti-virus product! This must be the result of someone having some serious brain damage over at McAfee's.
I have McAfee virusscan 9.0 installed.
Clicking the test link with IE proved that my system is vulnerable (if using IE, which I'm not, ofcourse).
I had expected McAfee to block this web page, but it didn't. So I went to the internet security options panel in IE, and disabled all ActiveX controls.
But lo and behold, McAfee virusscan stopped working!
All their dialogs and panels seem te be using IE's HTML engine for display, and all I get now is first an error "your current security settings prohibit running ActiveX controls on this page. As a result, the page may not display correctly" and then an empty window when trying to access any of McAfee's information or settings dialogs!!
What a load of crap. I will send them a complaint, and remove their product from my computer right now, to replace it with a good, free virusscanner. Any recommendations? Thanks.
"spotted before rollout"? Dude, the article says that only versions before Firefox 1.0 are vulnerable, and 1.0 has been out for 2 months already. What are you talking about?
In my Python port to AmigaDOS, I added a near-seamless ARexx integration module. This means that you could script any Amiga application with an ARexx port, using AmigaPython:) I wonder if anybody actually used it for something serious though... because it was in the days that Commodore was practically already belly-up...
You'd rather have a big mega corp behind it? Strange, people always seem to get angry on the subject of Microsoft that's controlling.NET, or Sun that's controlling Java.
Python is a SCRIPTING languate [sic] Define 'scripting language'. Without a sound definition (and probably also with a definition), I don't agree with this statement.
Even though I also don't agree with the other points you're making about Java, it was not my intention to talk about the language differences between Python and Java, but the "cross-platform" aspects of them.
Indeed it seems likely that because Java gets much more marketing exposure, it's Java that's talked about most. But to me, it often looks like a knee-jerk reaction: "cross-platform bla bla" - "Ah, you mean Java"...
Why should "cross platform" always mean Java/.NET?
on
Ars Technica Tours Mono
·
· Score: 5, Interesting
What I don't understand is that when people are talking about "cross platform" programming, it almost always is about Java or.NET/Mono. What is it that those 2 seem to be mutually connected to "cross platform"?
I mean, take Python! (my favorite high level cross-platform programming languate)
Python has been around longer than Java (it's from 1991)
Python has been ported to a lot more platforms than Java (and certainly.NET!)
Python has various powerful language features that Java, C# can only dream of (metaclasses, generators, list comprehensions)
Pure python programs will run everywhere a suitable Python is available
What's so special about Java or.NET that makes them the talk of the day, while other much more interesting languages seem to be ignored in this matter?
ActiveX is good for one purpose -- Windows Update.
I beg to differ. I see no reason why Windows Update should be done from within a web browser, with some javascript and ActiveX stuff thrown in the mix. Why, why is there not a standalone program to fetch the windows updates?
If the automatic update installer service can do this for you, (probably without using the windowsupdate web site at all), why do we still have to have IE around for the manual Windows Update? I want to get rid of it! (IE that is)
I was stunned when I downloaded Farb-rausch's "Candytron" 64K demo.
It contains a 3d engine, procedural texture creation, realtime music synthesizer AND also a speech synthesizer! The music in some of their demos is actually accompanied by a (robotic) singer! You can even make out the words...
It's 8mb likely because of the larger textures and music files. Farb-rausch has an impressive list of =64Kb demo's that are almost as cool, if not cooler than "Popular"...
This sort of issues occured on various computers I've worked on in the past due to faulty video card drivers. And as others have pointed out, a user space program by itself shouldn't be able to crash the whole system (not even on Windows)...
Spot on. I'm a big fan of animated movies and in my top three there are two movies (both by Hayao Myazaki): 'Spirited Away' and 'Princess Mononoke'. They are beautifully drawn classic '2d' movies. I've seen various 3d CG movies (FF, titan AE) that don't come close to those two, not within miles.
"limited only by your hardware" To be more precise: limited only by the available memory. Your statement might be mistaken as if python's numbers were limited by the 32/64 bits of your cpu...
There is such as thing as MicroPython https://micropython.org/ that runs directly on bare metal microcontrollers. Okay, they don't have just 256 bytes of RAM, but that's stretching it for every language
Python certainly is NOT typeless. Python is a strongly typed language: every object is of a certain type, even functions and types (or classes) itself are instances of a type. The operations on the objects are well defined in terms of their type. What you're probably confusing it with is that Java does static typing (a name always represents a value of a certain fixed type) and Python does dynamic typing (names can denote values of varying types)
I've been a happy user of the Directory Opus file manager tool since when it first came out for Windows (and before that on Amiga, but that is beside the point here). Indeed it seems I'll be a happy user of Directory Opus for many years to come.
What makes you think the Win users actually paid for their OS? If they spend $8 on average on a deal like this, I'm inclined to think many of them don't pay the price of a legal Windows install either... (then again, the other 2 amounts aren't particulary high too. It could be that many people just look at the deal and see 1 game they like, and base the amount of money on that? Even though you get a lot more. Personally, I decided to pay $50 for this deal.)
I'm not impressed. Epic had Unreal Engine 3 running on the iPhone back in december last year: http://www.anandtech.com/gadgets/showdoc.aspx?i=3695 Granted, it's a modified version and I don't think there's a working game available yet that uses it, but the engine is several generations newer than the Quake 3 one... Still, nice job. It's weird to see 'big' games appearing on tiny devices. Didn't think the mobile technology would be this advanced so soon, tbh.
Interesting, this is the first time I see someone else use the 'pi' factor in time estimates. I once did a project that had a huge amount of overhead due to the usual (bad requirements analisys, big management overhead, inefficient testing etc etc) that really made a factor of more than three times the original estimate a realistic estimate.
The GIL does get released at certain strategic points: when Python does I/O (or rather, waits for its completion) and when calling an extension module that releases it. In both cases multiple threads *can* run concurrently. It's mainly when the interpreter is executing byte code that only one thread at a time is active.
I second that. Made me sick in my stomach
My A4000 happily ran Debian m68k-Linux including X11.
Python's list comprehensions are generators. Look it up what this means. The infinite Fibonacci sequence can be written in Python as a generator function:
:)
def fib():
e=0
f=1
while True:
yield f
e,f = f,f+e
You can print it like this:
for f in fib(): print f
but that wouldn't bee too convenient, other than to see Python's long-number feature
More interesting is combining it with another generator function, one that only returns the first N numbers of the given generator:
def firstn(g, n):
gen=g()
for i in range(n):
yield gen.next()
print list(firstn(fib, 10))
The explicit conversion to a list is because otherwise you would see that the object you're trying to print is not the list itself, but the generator that will build the list for you one element at a time.
As you can read in my comment below about McAfee Virusscan 9.0, disabling activex in internet explorer breaks every settings and information panel of that virus scanner.
Great. A virus scanner that contains IE.
(I deinstalled McAfee an hour ago).
I've decided to try Anti-Vir (free-av.com) for a while, I heard good comments from other people too about this one. At least it seems to work fine with thunderbird too.
But the main point of my original comment was that McAfee decided to use Internet Explorer itself, one of the main sources of leaks and infections, as part of their own anti-virus product!
This must be the result of someone having some serious brain damage over at McAfee's.
I have McAfee virusscan 9.0 installed.
Clicking the test link with IE proved that my system is vulnerable (if using IE, which I'm not, ofcourse). I had expected McAfee to block this web page, but it didn't. So I went to the internet security options panel in IE, and disabled all ActiveX controls.
But lo and behold, McAfee virusscan stopped working!
All their dialogs and panels seem te be using IE's HTML engine for display, and all I get now is first an error "your current security settings prohibit running ActiveX controls on this page. As a result, the page may not display correctly" and then an empty window when trying to access any of McAfee's information or settings dialogs!!
What a load of crap. I will send them a complaint, and remove their product from my computer right now, to replace it with a good, free virusscanner. Any recommendations? Thanks.
"spotted before rollout"?
Dude, the article says that only versions before Firefox 1.0 are vulnerable, and 1.0 has been out for 2 months already. What are you talking about?
I get "error 28 selected item cannot fit into memory" when trying to install the Grub bootloader.
What's going on?
In my Python port to AmigaDOS, I added a near-seamless ARexx integration module. This means that you could script any Amiga application with an ARexx port, using AmigaPython :) I wonder if anybody actually used it for something serious though... because it was in the days that Commodore was practically already belly-up...
You'd rather have a big mega corp behind it? Strange, people always seem to get angry on the subject of Microsoft that's controlling .NET, or Sun that's controlling Java.
Python is a SCRIPTING languate [sic]
Define 'scripting language'. Without a sound definition (and probably also with a definition), I don't agree with this statement.
Even though I also don't agree with the other points you're making about Java, it was not my intention to talk about the language differences between Python and Java, but the "cross-platform" aspects of them.
Indeed it seems likely that because Java gets much more marketing exposure, it's Java that's talked about most. But to me, it often looks like a knee-jerk reaction: "cross-platform bla bla" - "Ah, you mean Java"...
I mean, take Python! (my favorite high level cross-platform programming languate)
- Python has been around longer than Java (it's from 1991)
- Python has been ported to a lot more platforms than Java (and certainly
.NET!)
- Python has various powerful language features that Java, C# can only dream of (metaclasses, generators, list comprehensions)
- Pure python programs will run everywhere a suitable Python is available
What's so special about Java orActiveX is good for one purpose -- Windows Update.
I beg to differ. I see no reason why Windows Update should be done from within a web browser, with some javascript and ActiveX stuff thrown in the mix. Why, why is there not a standalone program to fetch the windows updates?
If the automatic update installer service can do this for you, (probably without using the windowsupdate web site at all), why do we still have to have IE around for the manual Windows Update? I want to get rid of it! (IE that is)
I was stunned when I downloaded Farb-rausch's "Candytron" 64K demo.
:-)
It contains a 3d engine, procedural texture creation, realtime music synthesizer AND also a speech synthesizer! The music in some of their demos is actually accompanied by a (robotic) singer! You can even make out the words...
Farb-rausch rule, IMHO
It's 8mb likely because of the larger textures and music files.
Farb-rausch has an impressive list of =64Kb demo's that are almost as cool, if not cooler than "Popular"...
This sort of issues occured on various computers I've worked on in the past due to faulty video card drivers.
And as others have pointed out, a user space program by itself shouldn't be able to crash the whole system (not even on Windows)...
Spot on. I'm a big fan of animated movies and in my top three there are two movies (both by Hayao Myazaki): 'Spirited Away' and 'Princess Mononoke'. They are beautifully drawn classic '2d' movies. I've seen various 3d CG movies (FF, titan AE) that don't come close to those two, not within miles.
"limited only by your hardware"
To be more precise: limited only by the available memory. Your statement might be mistaken as if python's numbers were limited by the 32/64 bits of your cpu...