Thursday, June 18, 2009

Is Intel going to loose its manufacturing advantage?


Whatever happened to 32nm chips?

It was a mere 4 months ago that Intel first demo'd working 32nm processors in both mobile and desktop systems. Those chips were to become available soon. Soon is still not here yet.

Now all of a sudden, I hear news TSMC will be moving to a 28nm fabrication process early in 2010. Now Toshiba is going to be mass producing 28nm chips in the same time frame.

This has implications. Unless both TSMC and Toshiba are vastly over-optimistic about their time frame, Intel is going to going to lose the lead in manufacturing. Think it through. Intel has still not shipped its first 32nm chip. They have a way to go before they completely convert to 32nm. There will be 45nm transistors in Intel's lineup for some time. However, TSMC and Toshiba plan to ship 28nm chips early in 2010.

This news is like ship bearing a pirate flag rising up over a watery horizon in front of a harbor town. A sense of dread must be rising in the hearts of Intel Corp all over the world.

Is it actually possible? Do you think they will actually do it? Can it be? TSMC vowed several years ago they would take the manufacturing process lead away from Intel. Now it appears they are on the verge of doing it. But Toshiba also?

Wednesday, June 17, 2009

Dynamic Languages, Revisited

Hey, shock of shocks! A few programmers are reading my blog! These are guys I don't even know. How wonderful for me! But there was a bit of discord on the definition of just what is a dynamic language and what isn't.

So, for the record, I will quote the wikipedia.org article on Dynamic Languages:

The definition of a dynamic language is ambiguous because it attempts to make distinctions between code and data as well as between compilation and runtime which are not universal. Virtual machines, just-in-time compilation, and the ability of many programming languages on some systems to directly modify machine code make the distinction abstract. In general, the assertion that a language is dynamic is more an assertion about the ease of use of dynamic features than it is a clear statement of the capabilities of the language.
There you go! Wikipedia clearly acknowledges that there is big old nasty mess where a nice precise definition aught to be. Everybody (except me) would like to lay claim to the Dynamic tag because it is considered a hot buzzword right now... especially for the resume. In the process the real meaning of the term is absolutely lost.

The long list of languages at the bottom of the Wikipedia article include everything under the sun, including such preposterous inclusions as Forth, D, C#, Lisp, VB9 and REALBasic. HOLY SHIT! I want to make it clear that Spanish, Hungarian and Mandarin also qualify as a dynamic computer language under the catch-all basket definition presented in this wikipedia article.

Alas, such is the case with all hot buzzwords. They all become polluted and corrupted until the very last shred of meaning is lost. Such was the case with the term Light-Weight. Everything is now Light-Weight. Every last group claims to have a light-weight application stack or frame work. Such was the case with RISC. Everyone not manufacturing an explicit x86 chip tried to lay claim to the RISC title. When IBM claimed the PowerPC was a RISC design, the very last vestige of the original meaning of RISC died.

Therefore, allow me to clean up the fucking mess:
A Dynamic language is an object oriented programming language which provides a metaprogramming model that allow a runtime engine of some sort to construct new and modify existing classes in any application. These systems are capable of both creating and modifying classes without intervention or explicit programmatic effort by the original developer.

The emphasis is on the terms object oriented and classes. This eliminates languages such as JavaScript and VBScript. Why? Because they are not object oriented, that is why. I have heard protests on this subject before. Some think the existence of JSON implies that JavaScript is an example of OOPS. Not so. JSON is basically open data container format, mailable into many formats. It is no more object oriented than XML is. You cannot encapsulate public or private methods in JSON, nor can you redistrict visibility or access to data elements.

Weak typing has nothing to do with the subject of dynamics, although it is a necessary step along the way. There have been a vast array of languages which implement weak typing. The overwhelming majority of them are not dynamic. As I mentioned briefly in my prior piece, this is the greatest point of confusion for the masses. Many know that their favorite language is weakly typed, and believe (ergo) a dynamic language also. Perish the thought! Not even close to being true.

So what if I am a great lover of JavaScript and I desperately covet the buzzword Dynamic? JavaScript still has an undeserved bad rep in many places. I am trying to rehab my favorite language's image in the court of public opinion. I want people to think highly of JavaScript. I want to lay claim to the title Dynamic to help forward this end goal. Can't you just bend the rules a bit to let my baby in the club?

Nope. The end.

On the question of just how fast IronPython is, you might be surprised. Have a look at this little piece right here. That article is essentially a soft retraction piece, where a good benchmark artist discovered something very interesting about IronPython vs. CPython performance. The future looks very nice for IronPython.

As to whether Python is a static language or dynamic... Well, fortunately more ink than blood has been shed over this subject. Python types are never stated in variable declaration. Data types are inferred from arguments passed or assignments made. Variable types are immutable, within scope. There is nothing that would prevent one well written Python function from handling three different binary types in three consecutive calls. This is very dynamic, my friends. Finally, and most importantly, you can mutate a class definition at runtime. This is the absolutely crucial key to dynamics.

Anyhow, I appreciate the readership! Thanks for bumping up my ad campaign. :D Hope I can help clarify somethings. One famous wag said "It is better to insulted than ignored... but only in passing." Not that I was insulted, mind you.

Quick checkup on the Top-10 Blu-Rays I am looking forward too

Some 90 days ago I, I posted a blog regarding the Top 10 movies I was looking forward to buying on Blu-Ray. For the record, those movies were:
  1. The Incredibles
  2. The Exorcist
  3. The Minority Report
  4. Dr. Strangelove
  5. Braveheart
  6. Aliens
  7. True Lies
  8. Star Wars
  9. South Park
  10. Escape from New York
So how has the past Quarter treated me?
  1. The Incredibles (No word on a release Date)
  2. The Exorcist (No word on a release Date)
  3. The Minority Report (No word on a release Date)
  4. Dr. Strangelove (Just released yesterday)
  5. Braveheart (No word on a release Date)
  6. Aliens (No word on a release Date)
  7. True Lies (No word on a release Date)
  8. Star Wars (No word on a release Date)
  9. South Park (No word on a release Date)
  10. Escape from New York (There is such a thing in Australia)
So, some of the most entertaining movies of all time continue to languish on the shelf whilst abosolute shit like Anaconda, Dark Blue, Fletch, Baby on Board, Norbit, Rockers, and Friday the 13th get a Blu-Ray release this very month of June 2009.

Sometimes you just gotta wonder. Just what the hell is the prioritization system like in Hollywood. How the hell do you make up your mind about what to release? Is it just the crap that the studios own? Are we lacking The Minority Report and The Incredibles because the respective authors of the works have too many points of residual income?

I think that is how it works. Absolute stink-o, stenchy, wet, running, fly-swarmed doggy caca like the 4th sequel to The Planet of the Apes can already be found on Blu-Ray on the shelf at Frys. The reason is that Fox owns all the points on that product. Every last penny is pure profit for the corp. Big or small, they get it all. I just want you corporate suits to know this: You suck. I hate you, and not because your beautiful.

Just why is George Lucas lollygaging about an HD release anyhow? His stuff has been in HD release on the cable channels for more than 2 years now. I have seen the high-def implementation of The Minority Report on TNT and it looks terrific. Just pop in on a Blu-Ray, why won't you? I would have traded Star Trek 1 and Star Trek 5 for Braveheart and True Lies, wouldn't you?

Dr. Strangelove arrives

With some joy and some trepedation, I read that Dr. Strangelove was released just yesterday. Don't ask me how they managed to ambush me with this one. I must have been busy. I am glad to see this movie released. The early reviews are mixed. Some love the transfer and audio quality. Some don't. The original had a mono soundtrack, just like Dirty Harry. Now the Blu-Ray has been give a lush 5.1 surround mix. Some love it. Others are acting as if the tribal gods have been offended.

One reviewer praised the graininess of the black and white transfer. He said it is very film-like. Others express disapointment that the studio did not do a better job cleaning the 4K transfer. The good news is that there was a 4K transfer. I promised to deal with 4K, and I haven't forgotten that promise.

A blanced reading of these reviews would suggest the following:
  • This is the best release of Dr. Strangelove ever
  • It completely avoids the ghastly & dastardly errors of past DVD and VHS editions.
  • There are deep-nasty visual blems in the old print. Those have not been entirely scrubbed out by our fully-modern visual effects firms. Expect blems.
  • The audio is good. Better than ever. It is not what Kubrick intended, but he would not be offended.
Anyhow, Hollywood needs to go to work. Spare us some of the recently released rubbish. Spare us the Woodstock rubbish. Spare us some of those dastardly 4th and 5th rancid sequels. Release some of the great stuff from the past.

Monday, June 15, 2009

Get ready for Black September 2009

And it may come sooner than September. Maybe even as early as July 30th 2009.

The U.S. Economy has not healed itself. The politicians purportedly running this dog and pony show have not done anything to speed the correction of the fundamental structural problems underlying our present economic crisis. Indeed, they have completely retarded the correction process. They left more battles to the future, and the next one is coming soon to a theater near you. No later than September 5th, says I.

The real problem with making politicians the masters of the economy is short-run thinking. Keynes is famous for stating "In the long run we are all dead" meaning that it is only the short run that counts. Our lives are composed of a bunch of short terms between now and death. Ergo, we have to fix things right now.

I wish the politicians understood the real way to apply this saying. If they did they would allow all the stupid financial firms (such as Fannie Mae, Freddie Mac, AIG, etc) to die an orderly death. The buffoon morons who created this havoc would then suffer the same fate as Lehman Brothers. Yes, this would create cataclysmic pain for 3 to 5 years. On the other side of the rainbow, we would have a healthy system again. The alternative is to suffer 3-5 years of not so cataclysmic pain, and stay in a poor, unhealthy, dysfunctional economy. You may not like those choices, but those are the choices. Accept one.

The Fed is not allowing natural selection to destroy the weak/bad firms and select the health and good firms. If they had permited nature to take its course, several major banks would now be dead, and people would be scurring to small Credit Unions, who would reap the natural benefits of their wisdom and good practices.

The U.S. Federal Government is pursuing a policy very close to that of the Japanese Government in 1990s. We are propping up a bunch of dysfunctional zombie banks. These banks cannot survive on their own, if left to flounder, many would default and be taken over by the FDIC. These bad institutions cannot function as real banks right now. So we feed them life-support capital and keep them alive & dysfunctional. They lead an undead existence.

Why are we doing what the Japanese did? Because politicians think short term; as short as the next election. They do not think long term. Quite frankly, no U.S. Representative cares what will happen 5 years from now. They will fight that battle in 5 years. They are drowning now. They need to get re-elected in less than 15 months, and it is not looking so good right now. These politicians are going to pump any number of deficit bucks necessary into the system to provide us with some sort of illusion of recovery by November 2011.

It doesn't matter if every last shred of this program is bad policy. Congressmen are committed to doing whatever it takes to stay in office. Just win baby. Raider rule #1: Cheating is encouraged. If your not cheating, your not trying. The politicians invented this scheme. They know it, they love it, they live it.

The problem is that the market likes to get even. The real money men, the real investors who run this world, know the situation really isn't getting better. The good news you heard for the last two months is a bunch of horse-shit. Further, they know the long term prospects are bad. We do not have the guts to go through the short term pain we need to experience to guarantee the future.

We want to loose weight to avoid a heart attack and stroke, but we can't stop eating those Double Quarter Pounders.

Ergo we are going to have that first heart attack soon... or maybe the second. Most of these guys are bracing themselves, and taking a defensive position for another downward spiral.

If you are surprised by the low price Dale Rosenbloom fetches for the Rams, understand I warned you about the state of the economy and what Billionaires are doing these days. The fact that his buyers know he has tax problems, and that this is a distressed sale does not help his cause either.

So what am I prophesying? I think we're going to loose 1,500 points off the Dow by September. Expect it to bust down to 7,000 or lower by September 30th. Expect it to finish around 6,500 for the year. Expect oil to bust down to $35 again. There is a glut in supply 10,000 miles wide. OPEC can't keep building reserves like this. They are going to have to dump supply. This is good for most of us. It is going to be a financial catastrophe for those invested in oil.

So why the hell would you say a thing like that? Do you have any specific info to share with us? Let me respond this way: Did you read the news today? Have you read the reports leading up to the news today? If you had, you would not be to surprised I am posting this blog today. Have a look at some these links:

So just what is a Dynamic Language anyway?

It's remarkable to me how many friends I have in the business who aren't really sure just what the heck a dynamic language is anyway. Many things they say to me indicate that they don't know what a dynamic language really is. For the record, let's clear it up.

Let's start with a quartet of distinctions.
  1. Object Oriented Language
  2. Interpreted language
  3. Weakly typed language
  4. Dynamic language
  • An OOPS language is not necessarily interpreted, weakly typed, or dynamic.
  • An interpreted language is not necessarily OOPish, weakly typed, or dynamic.
  • A weakly typed language is not necessarily OOPish, interpreted, and not necessarily dynamic. This is one of the most frequent bits of confusion. Many believe Weak = Dynamic.
  • A Dynamic language isn't necessarily interpreted, but it is always OOPSy and weakly typed.
  • With that said, most dynamic languages are interpreted and weakly typed.
Here is a list of languages that are not dynamic, although some think they are:
  1. JavaScript
  2. VBScript
  3. Perl
  4. PHP
  5. Lua
Here are a list of languages that are truly dynamic:
  1. Smalltalk-80
  2. Python
  3. Ruby
  4. Groovy
So, you will notice that most of the popular and well known interpreted scripting languages are not dynamic. More obscure choices, selected by the ubergeeks, are the dynamic languages. Being weakly typed is necessary but not sufficient to be classified as a dynamic language. I would have said that being interpreted was necessary also, but then along came IronPython.NET and blew my world appart.

So what is the key? What distinguishes the dynamic language? The answer is in the meta-programming model. In a dynamic language, no class is ever final, not even at run time. It is not only possible, but common for a dynamic interpreter to mock-up or attach methods to a class or object at runtime. I can also tack on additional properties at runtime. I can also write code that edits its own source code, and dynamically reloads it on the fly. I can create self-mutating code. This is the key feature which permits research into genetic algorithms.

Can I attach new methods and properties to a class at run-time in Java and C#. No, not per se. There are ways to try to achieve a similar effect, but these belong in the category of dirty hacks. This approach is absolutely not supported by either of these languages. How about VB.NET? Nope. How about VBScript? Please! This isn't even an object oriented language! How can you attach new properties and methods to something that is not a class in the first place? Same thing goes for JavaScript.

So why the hell would I want to dynamically dispatch new methods I never intended to be a part of my class when I designed a wrote it? Why would want to dynamically attach additional properties to the object at runtime? Isn't this unsafe and unsound? Aren't I allowing the interpreter to alter my architecture in ways I did not intend?

Maybe, if you don't know the language and don't know how to use it.

What if I do know the language and do know how to use it, doesn't the mere existence of such a feature open the door to entirely new categories of unintended consequences and unpredictable behavior?

That is the rub now, isn't it? We have put out finger on the exact point of critique which serious computer scientists have been arguing about for several years now. Decades really. Ever since Smalltalk-80, this debate has been running among serious men of great learning and skill.

The majority have chosen not to use dynamic languages. The majority have chosen statically typed OOPs. A rather small minority have chosen dynamic languages.

So, why have those who have chosen dynamic languages chosen dynamic languages?
  • Very loose coupling. You can pass anything to anything. If it works it works. Very large systems can be built this way.
  • Interpreter safety: If it doesn't it throws a soft error and you make a correction. The OS does not crash.
  • Auto-Mocking. These days, we have come to recognize that we need automatic testability for all code. We call this Unit Testing. We aim for 100% code coverage. This means we want every line of code automatically tested in a unit test project. To facilitate this process, you need something called mock objects. These are objects that doppelgangers for dependencies your test unit needs to function, but they do not produce the real world side-effects. Real files do not appear and disappear. Real records are not created, read, updated, and deleted.
  • Mocking in a static language like C# and Java is a real pain. Python and Ruby just construct Mocks for you, dynamically attaching empty properties and methods for your. You never need to write Mock object when doing TDD in Python or Ruby.
Isn't there a substantial performance penalty for this approach?

Yep, Ruby and Groovy are the two slowest languages currently accepted in the world. Although Smalltalk and Python are faster, they are not that fast. We can pretty well destroy them with C#.

With that said, a fully compiled variant of Python, called IronPython.Net is now making some waves in the world. IronPython's compiler is written in C#, and it cranks out CIL like all the languages on the .NET platform. This CIL assembly is locked and loaded by the CLR and handed over to the JIT for transformation to x86 or AMD64 code. That code is greatly fattened and slowed by the dynamic approach to things, but it is real machine code. IronPython is now something like 8x faster than standard C Python. It is still not as fast as something like Java or C#, but it is still far better than it's brother and cousins in terms of performance.

I personally am very interested in IronPython.Net. However, I am more interested in Scala.

My religion is generally opposed to Dynamic languages. I believe in static typing. I believe in a strong compiler. I believe in things like checked exceptions. I love design my contract. I love annotating requirements on code. C# does not give me as much static verification as I would like. I hope Scala is better. Python means busting my version of the 10 commandments. This is risky, and I dislike the notion. However, I am trying to keep an open mind, and determine whether IronPython can provide some wonderful new service to my .NET applications.

Saturday, June 13, 2009

Quick Blog about the NFL's Top 10 Innovations

So the NFL Network unveiled another masterpiece just last night: The NFL's top 10 innovations. For the record, those elements of the game listed as innovations are as follows:

  1. The Zone Blitz
  2. The West Coast Offense
  3. The 4-3 defense
  4. The Shotgun
  5. The 46 Defense
  6. The No Huddle Offense
  7. The 3-4 Defense
  8. The Run 'N Shoot Offense
  9. The Tampa 2
  10. The Wildcat Offense
So, here we have a laundry list of all the things we see on any given Sunday these days. As always I have a couple little quibbles with this ranking:
  1. The 4-3 and the Tamp 2 are almost the same thing. The only minor adjustment is that you drop two DBs deep to ensure nobody gets behind you, and the MLB drops back and guards the middle zone of the field.
  2. The Tamp 2 should be called the Steel Curtain defense. It was invented by Chuck Knoll. Tony Dungy learned it when he joined the Steelers in 1978. Dungy himself has always credited the Steelers & Knoll with inventing the scheme.
  3. The 46 Defense is almost the same thing as the 4-3 defense. You merely adjust the lineup of the defensive linemen, and shift the Will and Sam linebackers over to one side.
  4. The 46 Defense can't really be considered an innovation because it was more a crew of men in Chicago than a working scheme. It is said that Buddy Ryan was able to implement this scheme in Philly and Arizona. I deny that. The Philly defense was different in every respect. It was a 3-4 defense. The Arizona Cardinals never got that defense right at all. Ergo, you do not have an organized system of defense that is repeatable.
  5. The 46 has not stood the test of time at all. Nobody plays this scheme anymore. As the documentary said, a certain dude named Joe Gibbs figured out how to block the thing. Also it did match well against the Run 'N Shoot at all. For those foolish enough to play 4 wide against the 46, touchdowns flowed quick and easy. You just needed a rugged QB who could take a hit.
Finally, I have to take serious issue with making the Zone Blitz the #1 innovation of all time. That's just one of those bizzaro things that make you ask "What the hell were they thinking?" Yes, it is a nice piece of trickeration. Yes, it is a recent innovation. Yes, it does mess with QBs big time.

No, the big Harrison play in the Super Bowl was not a Zone Blitz. James Harrison is an outside linebacker. It is not unusual for one of these guys to fake the blitz and drop back into coverage. I have seen this every year since 1979. If Harrison were a nose tackle pulling off the center of the line, and then made the big interception, that would have been the Zone Blitz. This is not what happened.

I am absolutely fucking amazed that the guys at NFL Films and the NFL Network promoted this play as the ultimate example of the Zone Blitz? What the fuck? Didn't you guys realize that this was a mistake?

Please, please, please don't try to tell me that this is the #1 innovation of all time because it won SB XLIII. You know that just isn't true. If the real motive is to get Dick LeBeau into the Hall of Fame, I am all in favor of it. Still, let's not make factually false statements to get him there.

One other comment: I really enjoyed the diagrams and the explanations. More please. More detail please. Diagram the plays for these schemes. Show us the common plays. You should have shown the people how the 49er triangle pattern works.

Friday, June 12, 2009

A short blog about whether the Rams might move back to Los Angeles

There are is still considerable doubt about whether the next owners of the Rams might be interested in moving back to Los Angeles or not. I grant you that nothing is certain. It's never over until its over. It ain't over till the fat lady sings.

With this said, let's play the micro economic business management game. You are the new owner of the Rams. You just laid down $500 million of your personal wealth to purchase an NFL franchise in St. Louis. You acquired $429m additional in collateralized debt. You have acquired 100% of the stock from Dale, Lucia, and Stan. You are now the boss.

You are now mortgaged up to your eye-balls for $429 million, and you just blew all your dry investment powder. If you default, the Bank gets the team. You loose your $500 million down. Now what are you going to do?

Option 1: Keep the team in St. Louis and pay down the debt of $429 million as quickly as possible from team revenues. This means slowly. Try to get the city of St. Louis to make serious improvements in the Edward Jones Dome so that greater revenues might flow. Bleed your other business ventures for capital such that the debt can be repaid quickly.

Option 2: You see that you have the open option to move the team back to the 2nd largest market in North America, where they have a history. There you will have a new state-of-the-art convertible domed stadium in Industry California. This can all happen in 2014.

Now what are you going to do, my business manager? You make the call, knowing for certain that it's your financial ass on the line. How are you going to reduce debt, reduce risk, and optimize returns?

You know what you do? You do point #1 in the short run, and you execute point #2 in the middle of the night Jan 1, 2014. That's how you pay off the team and make it your solid asset.

You see, this is a pretty devastating question when it is phrased this simply. You know these are very rich men we are dealing with here. Most of them got that way for a reason. They are very shrewd money men. They think as serious managers would. This is the biggest single reason to fear, if you are the city of St. Louis.

There is one other factor to consider. Just about every billionaire in the billionaire's club took a haymaker to the chin in September of 2008. Just about all these guys sunk a lot of money in CDOs and MBS paper. They also held considerable stock in financials. All of these investments have gone to shit in the past 9 months. You should read the Forbes report on billionaires. Believe it or not, they are in a lot of trouble right now.

What does this mean to the Rams? It means the next guy to own the Rams is very likely to a fellow whose personal assets are hurting right now. Said billionaire has such a deep love for the sport that he just cannot resist the irrational temptation to buy this team, even despite the fact that he can ill-afford to do so right now.

Consider this my friends and fellow Ram fans.