Monthly Archives: July 2009

Density

July 6, 2009
By

I’ve long been complaining — some would say bitching — about how verbose it is to code in many languages today. In many cases I am sorry witness to people programming in C/C++ or Java and writing thousands upon thousands of lines of code only to end up with a piece of code that coudl easily have been expressed in a denser language in a few hundred lines of code. Today I came across a nice table produced by Larsson Omberg comparing the code required to do some value decomposition in Mathematica, Matlab, and Python. It’s from 2005 but much of this probably still holds for his example.  What we see is the following: Mathematica: 276 lines of code Matlab: 52 lines of code Python: 71 lines of code What we see is a density advantage of 5 times for Matlab and about 4 for Python over Mathematica. And Mathematica is already a dense language. Imagine coding the same solution in C/C++ or Java? We’d probably see at least twice as much code over Python for C/C++ and Java. That means the Mathematica code would be 10 times as dense, an order of magnitude. What that means is that on

Read more »

Ph.D.s, Focus, and the Loss of the Infinite

July 2, 2009
By

I’ve been trying for a long while to put into words why I became disenchanted with the Ph.D. process, and why that was one reason — though not the overriding reason — why I terminated my pursuit of a doctorate. But today, sitting back and reading a bit of Thomas Aquinas I came to a sudden epiphany. The reason is straightforward, and ironically was told to me by a dearly departed friend years ago. The problem, is that Ph.D.s are too narrowly focused. Or, as Jim Anderson so eloquently put it way back when, “Some of the stupidest people I know have Ph.D.s.” He bemoaned their inability to grasp the larger picture, instead focusing on minutiae, some small problem ignoring all else. Sometimes ignoring reality itself and coming up with a “solution” that worked only within some fantastical model that had little relation to how the real world functioned. Now Jim, like myself, was an old grey beard of security. In fact, I would argue that Jim was responsible for what today is called “information security”. The very foundations of computer security were formulated and documented by Jim way back in 1972. I was fortunate enough to work with Jim

Read more »

Page 2 of 2
1 2

Musings

A blog of my musings. Some folks find it interesting and so I continue. Hopefully it will remain fairly interesting. At worst, it'll keep me writing orthogonally to my day job.

Month at a Glance

July 2009
M T W T F S S
« Jun   Aug »
 12345
6789101112
13141516171819
20212223242526
2728293031  

StatPress

Visits today: 4
Total page views: 115746