Linked by Thom Holwerda on Sun 20th Apr 2008 15:43 UTC
General Development is running an opinion piece on the extensive reliance of programmers today on languages like Java and .NET. The author lambastes the performance penalties that are associated with running code inside virtualised environments, like Java's and .NET's. "It increases the compute burden on the CPU because in order to do something that should only require 1 million instructions (note that on modern CPUs 1 million instructions executes in about one two-thousandths (1/2000) of a second) now takes 200 million instructions. Literally. And while 200 million instructions can execute in about 1/10th of a second, it is still that much slower." The author poses an interesting challenge at the end of his piece - a challenge most OSNews readers will have already taken on. Note: Please note that many OSNews items now have a "read more" where the article in question is discussed in more detail.
Permalink for comment 310755
To read all comments associated with this story, please click here.
RE[2]: GUI applications
by kmarius on Mon 21st Apr 2008 18:14 UTC in reply to "RE: GUI applications"
Member since:

I am no PhD but as far as I understand, Python is not really object oriented is it? Isnt that one of the main reasons why doing a simple thing as reading a file in Java often tends to result in a lot of boilerplate code?

Python is object oriented. The "open" function returns an object

"print open (file).readlines ()"

This could be written as

file = open(filename)
lines = file.readlines()

print lines

Reply Parent Score: 1