Sunday, January 12, 2014

An Engineer's Guide to Cats 2.0...

An Engineer's Guide to Cats 2.0...  Awesome!  Via my lovely bride...

Blast from the past...

Blast from the past...  Reader and friend Simon M. passes along this video of a news report from 1981, talking about the wonders of online news reading.

I don't recall ever seeing this particular news report, but it could have been about me: I was reading the news online in 1981, for the first time.  At that time, I was a big user of CompuServe, the then-giant of the online world (this considerably predates the Internet).

Back then, we connected to CompuServe through a 300 baud modem, faster than the 110 baud acoustic coupled modems shown in this video.  We also connected to privately-run, free “bulletin board services” (BBS), and on those we could connect as fast as 700 baud using a proprietary modem from a now-defunct company with a memorable name: Potomac Micro Magic Inc., or PMMI for short (image at left).  Their modems were S-100 boards crammed with discrete components, marvels of electronics ingenuity for their time.  I was amazed to find that the manual for that ancient thing is available online, and reading through it brought that board right back to life for me, along with some of the norms for the day.  Back then, we had to use FCC-registered “couplers” to legally connect a modem to the phone line; that was a hangover from the fully regulated telephone lines of just a few years earlier, when it was illegal to connect anything to the phone lines unless you bought it from AT&T.  Then I had to laugh at the extensive programming examples in the manual – in several flavors of Basic, and in 8080 assembly language.  What a different world back then!

Geek: some ARM cleverness for immediate operands...

Geek: some ARM cleverness for immediate operands...  I'm currently reading a lot on computer instruction sets, as I have a goal of building a computer from component parts.  I've chosen a simple architecture for my machine, based on my reading over the past few months: a 32 bit RISC machine.  The ARM family is good example of a successful RISC design, so I've been looking at it.  I'd never written ARM assembly language before, so the entire thing is new to me.  Yesterday I ran across this discussion of ARM's 12 bit immediate operand encoding, an ingenious approach to maximally exploiting those 12 measly bits.

If you're familiar with immediate values from other machine's instruction sets, you know that generally speaking they are simply constant values with a bit length shorter than the computer's word length (if the processor has fixed word lengths, as ARM does) or equal to the computer's word length (if the processor has variable instruction length, as the x86 does).  There are quite a few machines with variable-length instruction sets that implement both variations of immediate values.

The ARM, though, does something that is unique, so far as I'm aware: rather than use simple constant values, its 12 bit immediate value is divided into two fields: a 4 bit rotation specifier and an 8 bit integer.  The rotation specifier is internally multiplied by two, then used as a rotate right operand, with the result being 32 bits long.  For example, the immediate value 0x345 becomes 0x45 rotate right 6 = 0x14000001.  This mechanism allows that 12 bit immediate to encode quite a few values within a 32 bit space, including every possible single bit value – a very useful capability indeed, and without the need for a special bit level instruction.

Very clever, ARM folks!

PS.  The site linked above has a very nice interactive demonstrator for the ARM immediate value encoding...

California leads the way...

California leads the way ... to the abolition of private property.  What am I babbling about?  SB1 has been approved by both the California assembly and senate – it needs only the Moonbeam's signature to become law.  A careful read of the bill's text reveals something quite disturbing: the creation of a mechanism by which any private property could be defined as blight, and therefore subject to government taking under the doctrine of eminent domain.

More detailed analysis here, here, and especially here.  It's scary stuff.  We are so glad that we've already decided to leave this loony bin!

Overheard...

Overheard...  Yesterday Debbie and I stopped for lunch at a local institution (who is blameless, and therefore shall not be dragged into this).  As we tucked into our sandwiches, a pair of girls came in and sat at a table adjacent to us.  They looked to me to be in their 20s, but from subsequent overheard conversation it was clear they were high school seniors (and, we hope, younger than 20).  Shortly thereafter, a pair of boys came in and sat at a table adjacent to both us and the two girls.  From overheard conversation, it became clear that the two boys were also seniors, in the same high school as the two girls – all parties knew each other well.

One of the girls was trying very hard to keep a conversation going between the four of them.  She'd ask leading questions, obviously hoping to draw the boys into a conversation.  Considering her age, I thought she was actually quite skilled at this, and I was half-listening to the chatter mostly to admire both her skill and her persistence.  Then she asked the one question that sticks in my mind (well, actually, it's the answer that sticks).  She said, to one of the boys:
Hey, are you going to get a job after you graduate?
To which he replied:
No, I can get more money from unemployment.
Oh, my.  That's just wrong on multiple levels!

I have no idea what this boy's previous employment experience was, but if I'm reading the California eligibility requirements correctly, he'd have to have been employed within the past 12 months to be eligible for unemployment insurance (UI) at all.  However, I'm not at all confident that I'm reading them correctly (they are complex and poorly written), nor am I confident that our state government is smart enough to enforce such a requirement.

Then there's the question of the amount of money paid by UI.  Surely it's not equal even to minimum wage?  According to the previously linked document, the maximum UI rate is $450 per week (or $11.25 per hour for a 40 hour week).  Elsewhere I see that California's current minimum wage is $8/hour.  So yes, it is possible to make more money through UI than through full time employment at minimum wage.

So was this boy's assertion accurate?  I can't say for certain, but it does appear that it is possible that he was correct.  If so, that is just wrong – it makes no sense at all for any UI scheme to provide the perverse incentive of making UI more lucrative than a job.

Then there's the question of the boy's attitude, his moral stance: why does he think it's acceptable to make a choice like that?  Not only acceptable in a minimalist way, either – but acceptable enough that he was willing to proclaim it in a public setting, to a girl he obviously thought well of.  I find that quite shocking, a measure of just how far our society's fabric has torn in the period of my life.  My high school peers would have thought that choosing to go on UI instead of getting a job was shameful.  So shameful that they would have gone out of their way to keep that choice private and secret.  Making such a choice public would have had a severe stigma attached to it, a public shaming that nobody would have wanted to endure.  Contrast that with this boy's straightforward reckoning that choosing to go on the dole was more lucrative than a job, and therefore would be his choice.  From the chatter subsequent to his announcement of his choice, there didn't appear to be any shame attached to it by any of the four youths.  It was the logical, rational thing to do...

I sure hope that what I overheard yesterday was an aberration.  If it was not – if it's really an accurate reflection of our young people's attitudes – then I am much less hopeful about my country's future...

Saturday, January 11, 2014

Anniversary today!

Anniversary today!  One year ago today, I retired.  Yay!

California leads the way...

California leads the way ... to new heights of nanny-statism.  Starting January 1, it is now illegal for sushi chefs in California to make sushi with their bare hands.  They are now required to wear gloves.  Seriously.

The bill instituting this requirement was AB 1252, approved on October 4, 2013 by Governor Jerry “Moonbeam” Brown.

Listen up, That One!

Listen up, That One!

The week in images...

The week in images...  Steven Hayward, writing at Powerline, has a wonderful collection of images from the week, like the one at right...

Senatorial pressure getting attention...

Senatorial pressure getting attention...  Senator Udall's attempt to quash the release of ObamaCare cancellation numbers is getting a lot more attention today...

Analog computers coming back into vogue?

Analog computers coming back into vogue?  Well, maybe.  New metamaterials are providing opportunities to build components that perform basic analog computation (amplify, invert, add, subtract, multiply, divide, differentiate, integrate, etc.) with light, rather than electricity.  These could be used either directly as an analog computer, or indirectly as components in a light-based digital computer (much as transistors, resistors, capacitors, and inductors are used to make electronic computers).

Back in the '70s, when I was in the U.S. Navy, our ship still had quite a few analog computational systems still on board and in use.  The biggest, baddest of them was the all-analog fire control computer that ran the Terrier anti-aircraft missile system that was my ship's primary defensive weapon.  These analog systems were electro-mechanical beasts, full of precision electronic components, synchro motors, gears (some of them very complex), and oddly shaped cams that implemented arbitrary math functions.  Maintaining those computers was a never-ending job, mainly involving cleaning (dust and dirt actually affected their accuracy!) and lubricating.  A few systems also had electronic calibration that needed regular tuning.  But...these systems were (at that time) smaller than digital systems with the same capability, and in certain cases were faster.  These days a digital computer would win the race hands down, but back then, when our mainframe had a blazing 100KHz clock, an analog computer doing a few multiplies, divides, and differentiations, would beat the digital computer handily...

Cosmic magnifying glass...

Cosmic magnifying glass...  An anomalously bright supernova was originally classified as a new type of super-bright supernova, because it was 30 times brighter than expected.  Now another astronomer proposes that it's actually a well-known Type Ia supernova, but is seen from earth as magnified by the gravitational lensing of an intervening galaxy (as seen from Earth).  The evidence for this new hypothesis is at the fringe of data the best current telescopes can provide – but newer, larger telescopes coming on line in the next few years should be able to settle the question...

Geek: fast arithmetic entropy encoding...

Geek: fast arithmetic entropy encoding...  This post, on finite state entropy encoding for lossless data compression, caught my eye for two reasons.  First, I have a general interest in data compression.  Secondly, the approach the author took has the same objectives as the decimal number formatting and parsing project I'm currently working on – accomplishing its job entirely with additions, shifts, and masks (no multiplies and especially no divides)...

Friday, January 10, 2014

Home schooled...

Home schooled...  Via reader Simi L.
1. My mother taught me TO APPRECIATE A JOB WELL DONE: "If you're going to kill each other, do it outside. I just finished cleaning."

2. My mother taught me RELIGION: "You better pray that will come out of the carpet."

3. My father taught me about TIME TRAVEL: "If you don't straighten up, I'm going to knock you into the middle of next week!"

4. My father taught me LOGIC: "Because I said so, that's why."

5. My mother taught me MORE LOGIC: "If you fall out of that swing and break your neck, you're not going to the store with me."

6. My mother taught me FORESIGHT: "Make sure you wear clean underwear, in case you're in an accident."

7. My father taught me IRONY: "Keep crying, and I'll give you something to cry about."

8. My mother taught me about the science of OSMOSIS: "Shut your mouth and eat your supper."

9. My mother taught me about CONTORTIONISM: "Will you look at that dirt on the back of your neck!"

10. My mother taught me about STAMINA: "You'll sit there until all that spinach is gone."

11. My mother taught me about WEATHER: "This room of yours looks as if a tornado went through it."

12. My mother taught me about HYPOCRISY: "If I told you once, I've told you a million times. Don't exaggerate!"

13. My father taught me the CIRCLE OF LIFE: "I brought you into this world, and I can take you out..."

14. My mother taught me about BEHAVIOR MODIFICATION: "Stop acting like your father!"

15. My mother taught me about ENVY: "There are millions of less fortunate children in this world who don't have wonderful parents like you do."

16. My mother taught me about ANTICIPATION: "Just wait until we get home."

17. My mother taught me about RECEIVING: "You are going to get it from your father when you get home!"

18. My mother taught me MEDICAL SCIENCE: "If you don't stop crossing your eyes, they are going to get stuck that way."

19. My mother taught me ESP: "Put your sweater on; don't you think I know when you are cold?"

20. My father taught me HUMOR: "When that lawn mower cuts off your toes, don't come running to me."

21. My mother taught me HOW TO BECOME AN ADULT: "If you don't eat your vegetables, you'll never grow up."

22. My mother taught me GENETICS: "You're just like your father."

23. My mother taught me about my ROOTS: "Shut that door behind you. Do you think you were born in a barn?"

24. My mother taught me WISDOM: "When you get to be my age, you'll understand."

25. My father taught me about JUSTICE: "One day you'll have kids, and I hope they turn out just like you!"

Lithops dorotheae...

Lithops dorotheae...  Also known as “living stones”.  Via BPOD...

ObamaCare debacle update...

ObamaCare debacle update...  One can never have too much schadenfreude!

Mix of ObamaCare enrollees worse than expected.  Of course it was.

No record of you.  That's what some ObamaCare policy holders are hearing as they try to use their shiny new ObamaCare policies: there's no record of their enrollment.  Well, what do you expect when government is involved?  Service and efficiency?  Surely you jest!

The numbers are so embarrassing ... that U.S. Senator (CO) Mark Udall tried to talk the Colorado Division of Insurance into not reporting them.

Most transparent administration evah says ... we like opaque better, now that we think about it...

Four months after the greatest web site implosion evah, That One's bevy of bozos decides to switch to another contractor: they're dumping CGI and switching to Accenture.  I'd never heard of CGI before, but Accenture is a big name with large enterprises...

Jamul Casino construction started...

Jamul Casino construction started...  At least, that's what's being published at a number of news sources (all of which seem to be written from the same press release).  The stories are all shy on details.  You can read them here, here, here, and here...

Still cooking the books, they are...

Still cooking the books, they are...  The unemployment numbers that came out this morning were, as usual, cooked.  The published “unemployment” number (6.7%) does not include the arbitrarily defined “discouraged workers”, and so therefore does not include all the people who are actually unemployed. The actual labor force participation rate (that is, the percentage of people of working age who are actually working) dropped (again), which would mean the unemployment rate, if measured accurately, would have increased.

Here's the participation rate, 1978 to today (Zero Hedge):


1978 – the Jimmy Carter “stagflation” era – is the last time the participation rate was this low.  If you corrected the published unemployment rate using the participation rate, here's what the real unemployment rate would look like (Federalist):


Quite a bit less progress, when viewed with the actual unemployment rate...

Strange coincidence noted...

Strange coincidence noted...  Reader Simi L. noted the strange coincidence of two famous historical sites being located very close to each other: the twin spiral tunnels built for the Canadian Pacific Railway in the Canadian Rockies, and the location of the Burgess Shale fossil field, where the Cambrian explosion of (bizarro-land!) species was discovered.  This map shows both of the spiral tunnels, plus the location of the most famous quarry in the Burgess Shale (the Walcott Quarry).  You may have to zoom out a little to see the three markers.  The two tunnels are about a mile apart; the quarry is about two miles from either tunnel.  Both are near the summit of Kicking Horse Pass, just a short drive northwest from Banff National Park. 

If the Cambrian explosion and the Burgess Shale are new topics for you, there's a book you should read: Wonderful Life, by Stephen Jay Gould.

How strange that these two places of historic interest (for completely unrelated reasons!) should be located so close together...

Google unemployment index...

Google unemployment index...  Once again, a result that I'm not quite sure how to interpret.  As you can see on the 5 year chart below, every November there's a dip in the index (presumably the hiring of holiday seasonal workers), and every January there's a sharp uptick (presumably the layoff of holiday seasonal workers).  But this year, the uptick is much higher than in previous years.  What does it mean?  I haven't a clue, but it's hard to see how it could be good news...