搜索:

一首大萧条时期的老歌,唱得不错!

这是电影《cinderella man》里的,怎么说呢,反映劳动人民对自己生活境遇的不满。






Sure, business is bunk,
And Wall Street is sunk,
We're all of us broke, and ready to croak.
We've nothing to dunk,
Can't even get drunk,
And all the while, they tell us to smile:

Cheer up, gentle citizens, though you have no shirts,
Happy days are here again. Cheer up, smile, nertz!
All aboard prosperity, giggle 'till it hurts!
No more bread-line charity. Cheer up, smile, nertz!

Cheer up, cheer up, cheer up, cheer up, cheer,
Up, cheer up, cheer up, cheer, better times are here.
Sunny smilers we must be, the optimist asserts,
Let's hang the fat-head to a tree! Cheer up, smile, nertz!

The world's in the red,
We're better off dead,
Depression, they say's in session to stay.
Our judges are queer,
Our banks disappear,
And all the while, they tell us to smile:

Cheer up, gentle citizens, though you have no shirts,
Happy days are here again. Cheer up, smile, nertz!
All aboard prosperity, giggle 'till it hurts,
No more bread-line charity. Cheer up, smile, nertz!

Cheer up, cheer up, cheer up, cheer up, cheer,
Up, cheer up, cheer up, cheer, better times are here.
Sunny smilers we must be, the optimist asserts,
Let's hang the fat-head to a tree! Cheer up, smile, nertz!

Nertz!

nertz这个词是不是就是现在nuts,discuZ论坛是把ss变成z,他是把z变成s,er变u.

Tags: ''

作者:大恐龙 - 分类: '随笔|Essay' - - 评论 (0) - 引用通告 (0) - 查看次数: (0)

HyperTable选择C++还是java开发时的考虑

WhyWeChoseCppOverJava  
Why We Chose C++ Over Java

This document is to clarify our position regarding C++ vs. Java for choice of implementation language. There are two fundamental reasons why C++ is superior to Java for this particular application.

  1. Hypertable is memory (malloc) intensive. Hypertable caches all updates in an in-memory data structure (e.g. stl map). Periodically, these in-memory data structures get spilled to disk. These spilled disk files get merged together to form larger files when their number reaches a certain threshold. The performance of the system is, in large part, dictated by how much memory it has available to it. Less memory means more spilling and merging which increases load on the network and underlying DFS. It also increases the CPU work required of the system, in the form of extra heap-merge operations. Java is a poor choice for memory hungry applications. In particular, in managing a large in-memory map of key/value pairs, Java's memory performance is poor in comparison with C++. It's on the order of two to three times worse (if you don't believe me, try it).
  2. Hypertable is CPU intensive. There are several places where Hypertable is CPU intensive. The first place is the in-memory maps of key/value pairs. Traversing and managing those maps can consume a lot of CPU. Plus, given Java's inefficient use of memory with regard to these maps, the processor caches become much less effective. A recent run of the tool Calibrator (http://monetdb.cwi.nl/Calibrator/) on one of our 2GHz Opterons yields the following statistics:
    caches:
    level  size    linesize   miss
    -latency        replace-time
     
    1     64 KB   64 bytes    6.06 ns =  12 cy    5.60 ns =  11 cy
     
    2    768 KB  128 bytes   74.26 ns = 149 cy   75.90 ns = 152 cy

查看全文:"HyperTable选择C++还是java开发时的考虑" »

Tags: ''

作者:大恐龙 - 分类: 'C/C++/VC/GNU' '数据库|DataBase' '系统|System' - - 评论 (0) - 引用通告 (0) - 查看次数: (0)

勤快兔子和懒兔子

曾经养过兔子,两至兔子的性格完全不同。

一只很勤快,天天洗脸,喜欢活动。爱吃青菜,水果,尤其是苹果。生活很有规律。另一只很懒,非常懒,毛很脏也不洗,晚上睡觉经常趴着躺着,经常误以为他已经死了,不喜欢人抱她,喜欢吃米饭和馒头,特别喜欢吃薄荷味的馒头。吃了就不动,睡觉,起来再吃。除非把吃的送到嘴边,他就不起来。

昨天晚上终于发现,勤快兔子死了,懒兔子活得好好呀。照吃照睡

唉,人生呀!

哈哈,于是平百无故之中,又多了一丝对人生的不惑。勤快兔子死之前,发出三声凄惨哀号,身音很尖,难道是在诉说什么。在用报纸包裹起勤快兔子的尸体后,懒兔子高兴的跳过来,拾起勤快兔子身边的一颗胡萝卜,快乐的啃了起来,然后在满足中睡去。 我在想,在她死之前,是不是也是"My Whole Life Flash Before My Eyes"。

但她的一生究竟是什么样子的呢,与她相处了一个多月,看着她慢慢长大,然后突然死掉,是什么让她保持着这么积极的人生态度呢?她为什么又要死去呢?是因为我吗,还是因为懒兔子呢? 

作者:大恐龙 - 分类: '随笔|Essay' - - 评论 (0) - 引用通告 (0) - 查看次数: (0)