
Geek.com 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.
Member since:
2005-06-30
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