Sunday, December 17, 2006

PL

I just moved out from the LAB and moved in to LIB.
DK said:
FP:
roughly 35-40% : Scheme
roughly 35-40% : ML
LP:
roughly 10-15% : Prolog
Oscar's part:
roughly 10-15% : other, e.g. activation records
Functional Programming
the working language for textbook is Standard ML.
30s:
Alan Turing's Turing machine
based on an updated store (memory)
Alonzo Church's lambda calculus
based on the mathematical concept of functions

LAMBDA calculus is the foundation of FP paradigm.
functions -- first class object
-> pass as argument
-> return as result
-> store in variable

basic mode of computation : construction and application of functions
principle control mechanism: recursive function application
free from side-effect: no assignment
example: LISP, Scheme, ML, Haskell, Miranda...

<> ::= <>
| <> ->
|
<> * <>
| <> list

->, *, list r in order of decreasing precedence.
basic value := atomic


Scheme:

We have implemented a micro Scheme ourselves this semester!

Saturday, December 16, 2006

I survived the day

I found an interesting term on Operationg System, page 293. I read this chapter only once when I did the written assignment. But at that time I was scanning through the chapter, as if I was doing reading comprehension... Amazingly I could get the correct answer by getting the main idea of each paragraph and combine them without really understand the main idea. So I am rereading the chapters. The term is deadly embrace. This resource allocation graph is like the relationship among the main characters of dramas or tv shows. I believe people tend to avoid this happening, but on the contary they enjoy start with this condition. I think it is like choas. It is the beauty of the world. This law of beauty can be applied to different fields.
Let me show you how we can link the OS to real life interperson relationship. We use the technique of AGING to solve indefinite postponement. So if you are patient enough as u r aging, u will get ur priority increased. Which means you can win your love if your love lasts long enough. You can change people's idea if you can wait and stick to your own. A lot of time, as friends we are preemptive processes. If you are talking to your close friend and he or she sees a beautiful girl or handsome guy (example from Muppala) , he or she will push you away. It is true and people do that without noticing. Hah, I don't know. But Daniel says it is natural and we cannot blame any GUY for being 重色轻友. So we have to live with that and get used to being preemptive process.
I was "joking" to Amber about commiting suicide. But actually I was quite serious last night. Reading the proofs of NP-complete is tough enough let alone prooving them myself. Like how Diana felt the day before, I felt desperate. But unlike her I cannot reschedule my exam. Diana got a lot of pressure these days. She cried for the thoughts of not getting pass. I started to concern I might get B- or even worse for some courses. For the math144, I used tables in textbook but I didn't know about prof's table. They are different! I just did the problems by guessing. Luckily I was able to get above mean though not a SD. (Because I didn't do well for midterm so I was hoping for a above SD score... but I have to admit that I didnt put enough effort into it especially competing with bunch of students who studied statistics before and maths students.) BTW I do need the grade if I want to go exchange... But never mind. I guess I will try to kill myself next time, I didn't go out with Cathy ONCE! But I went out with Ivan a lot!!! It is like she is my preemptive process, but you know, she is not. I don't believe in the preemptive example given by Muppala... Anyway... I move on...
BTW did I tell you that Diana changed her ticket and she is leaving on 23? She couldn't do the exam today, too stressed. When I comforted her, I wanted to cry too! hah~ I called my parents but you know, cannot really tell them how scared I was. I just said I didn't do well and I am sorry.
Zhou Xiang and I discussed about the BIG marriage today. She said she was practical and wanted to marry to a rich family like the girl in the news. I said it just didn't matter that much if I marry a guy with billion dollars or several thousands. You can be happier if you want to. She was exclaiming how lucky they were to be born in that family... I didn't know what to respond. It is like I didn't know her! I mean you cannot pick your parents, your apperance, sometimes even your intellegence... Why bother admiring those 'lucky' ones? Does she really love him? Is she really happy? Will this marriage last long? Won't she feel bored being full-time housewife? Won't she lose her intellegence and ability to survive in this society? I know they can write their fairy tales and make it beautiful but we will never know the truth... If their 'luck' bothers you, why don't you believe that they are not as happy as seem? Heh... I didn't tell her this... I don't want to argue or fight... After all we are after different things.

Thursday, December 14, 2006

小憩

活过来了,刚才睡了一会.Rebecca在梦中吃烧鸡,我在咳嗽和呕吐。然后有人说,那个谁谁好罗索,一听是Muppala在重复:“Collect the data, throw the data, collect the data, throw the data... ”
注解:我趴在桌子上,大概不舒服。Rebecca在身边,我耳朵里塞着Mupala的lecture audio。

干掉了两门,闲扯一下

哈哈,那天阿占说:" 牛牛,你为什么说门啊?"现在想来是因为我们讲普通话,口语和书面语没有区别嘛.Cindy说这样有一个好处,写作文快一点。不过,我没有觉得怎么样,还是看个人吧。昨天考了Huma,感觉不好。然后还和老师吃东西,晚上到Daniel他们那边,没有什么效率,还聊天。回到hall,又看亚运。反正就是一系列自杀行为。所以,最后只好通顶了。极不健康。今天考得照例糟糕。觉得都没有什么把握。我自己平时看书,用的是树后面的表格,今天老师给的竟然不同的。唉我用common sense来评价数据的合理性,都不知道对不对。而且那些查表的,没有什么步骤可言,是残酷的。然后是应用题,应用题。唉,我理解力不好吧。
想想昨天下午,还真是开心呢。原来做练习题,得心应手,总以为可以高枕无忧了。原来考试毕竟不一样,平日里的工夫都见分晓了。平日我总是做operating system的题就当是reading comprehension,做数学也是套套公式,251就是lab做掉,project做掉,也没有花什么其他的时间,难怪学的不扎实。到了期末才发现。浩智(不知道是不是这样写)说喜欢final的,因为他平时有下功夫吧。这种时候很想说我不喜欢,谁会喜欢final呢?eric吧,是他夺A+的时候了。但是,总是不好意思,惭愧啊。就像上次Haze问我关于Yuyu的事,她问问题的方式让我只能有一种答案。我想haze总还不至于对我有什么敌意,如果是因为上庄的事,她也应该知道我是有理由的。但是可能是她说话的方式,让我满害怕的。有的时候,她还挺热情,很多时候就是比较agressive。不是说浩智的说话方式,就是忽然想到Haze了。
今天考试的时候,grey's anatomy的音乐一直响着,如果说他们的life很crappy,我想至少很有意义。Ivan似乎说过,中国人天然崇拜医生。我想可能不是因为收入好什么的,但是,就像grey他们那样,救人啊,怎么想都挺崇高的。做运动员也很好,虽然也是要吃很多苦,但是说明他们有别人没有的天赋啊。顺便一提,昨天3米男子跳板最后一跳,难度系数3.8太完美了。至于后面又播了点篮球,只能说让人失望,也没有看到易建联。亚运会还是无聊,都是自己人在表演,可以说有些项目,比如跳水,还没有什么全运会的水平。中国的体育也是太局限。当然不可能什么都去争金牌,不过,可以在世界上冲入前八才说明好吧。就像很多名校,总以为培养几个尖子,状元就是搞好了教育。那么其他“陪读”的大部分人还去学校做什么?说实验的竞赛不如深中,高考状元、800分以上的也越来越少,但是我看着还不一定说明问题。如果老师可以多点道德培养,不是传统的那种,是比如环保啊,职业道德,爱情观,为人处事,对社会、地球的责任感什么的,不是更好吗?我可不希望中国培养出的是一堆要么考试,要么就肤浅的学生。比如和floormate看电视,你就能明显感觉到。有时候,有些女生的comment只有“这个人好丑阿”,头一次听觉的是她“纯真”,再听就觉得不可思议了。你要发表你的审美观,我无所谓,只是这种发表有多少意义?看跳水,她们的目光全都落在身材、泳衣上了。我当然也会看这个运动员体形怎么样,但是没有必要重头到尾就这种评价吧。如果不懂,不如不要开口。和Ivan说过我不喜欢别人这样,他倒是不理解了。或许是我要求严格了点,想想Amber和Anna看悲惨世界,Anna大部分时候沉默,偶尔来两句Cosette长得好奇怪啊,但是我是知道她是可爱的。所以说,如果她高中音乐课有音乐剧欣赏就好了。我的学校是有的,但是并不是每个人都会修。而且,可以说是我一开始借了我的dvd给老师,老师才觉得把这个介绍给同学们很好。说起来上次在听钢琴音乐会时又见到王老师,原来做音乐老师还真要常常去听这样的音乐会啊。
越扯越远,反正就是想什么些什么吧。Allan很反对他女儿写blog,可是他离开UK那么多年,怎么还那么保守呢?如果他相信自己的女儿就应该让她写,如果她不想让他看就保持沉默,不是很好么?网络上面也没有那么多的虎豹豺狼吧?

Monday, December 11, 2006

cannot be happier

From 7:30 -> 12:00, I was debugging and actually redesigning my way of mapping!!!
Finally, finally, I am too happy to cry.
Though I didnt manage to do the bonus part, still I am so satisfied.
I know my way of evaluating is kinda stupid, but I it can pass the cases now.
I used a stack to collect garbage and then expect fewer memory leak. I used a stack to push all the operands list map. On every level of apply function, I create a new map and push a pointer to the map to the global stack. After every apply, I pop out one pointer from the stack. When I enter the apply function I usually clear the garbage bin.
It is not amazing, but haha.
I read Kangoo's, he used one stack and minor local ones, push and pop a lot. It is complicated. It was like talking to the buddy face to face. So when seeing him in LG5 I almost continued the talk between us.
I think I completely understand Winson's joy. The process was hard and I nearly gave sometimes. When it was 11 pm I still had a bug about passing the list as parameter and didnt find it out. When my buddy called and asked me whether I would like to go to Norelle's Bday party, I almost collasped...
Wakaka... I am so glad that I didnt give up. So Happy bday to Norelle... I donnu. I just don't take bday serious. I donnu what to celebrate. I guess I will call my mum on my Bday. It is just pointless to have cake for oneself only or whatever. Oh, I can find one meaning for friends to celebrate one's bday! It is a chance to have fun and thank the one for being caring. So I probably should thank my close friends for taking care of me for the previous year. Mmm sounds reasonable. But I am always thankful and I prefer to be nice to friends every day instead of just that particular day and because of some gifts. Well, on the other hand giving and getting a gift is always enjoyable... So I just give presents to friends when I find sth right for them.

Sunday, December 10, 2006

我是一个糟糕的家伙

小小忏悔一下……
说mice变了,但是其实只是我自己不够关心别人。
如果我遇到那样的事情,应该会变化更大的。
总觉得这个学期亏了,很多人和事都过眼云烟。
所以我总也是最后知道的。以前还觉得会因为不入流而难过,现在完全没有觉悟。就是不入流嘛,怎么样。
尝试过做点small talk,其实那样也不叫入流嘛。只是哗众取宠.我还是适合严肃点。Ivan说我很奇怪。其实,或许我和他从来就不是一国的。他说他喜欢的东西,或许都是假的呢。曾经为这样的不同而烦恼,不过,现在看来他就是很普通的一个人。只是我自己把他想象成另外一个人,这种想象是危险的。某天他就会把你吓死.或许他一直理解的kama都不过是另外一个人。哈哈,他说这样讲很可怕。
我要真心的祝福mice和她的家人。我都不知道说什么好了。当然我也帮不上什么,但是就是感觉糟糕,如此糟糕。又不能表现出来。只能淡淡的说点什么。RT妈妈也是,现在精神还不错的。我每次去看阿姨,都觉得自己很糟糕。已经拥有很多东西,但是还是不满足。我是属于高危人群,有家族史嘛。mice说要吃蘑菇。我们还聊了一下经济和exchange的事情。
我觉得两个人聊天的时候,mice又回来。胖胖说(她从来就不胖)我们本来就不是玩在一起的,不过,关系这种东西又不是一起玩就好的。有的交流可以是很深层次的。有的时候就是随便几句安慰的话,或者只是听听对方的牢骚,就可以有灵魂的交流了。总之,我一直觉得mice是很可爱的,虽然她有棱有角的,不过很有个性。我觉得她对我也很好啊。
在和mice聊之前,就有点depressed。给daniel打电话。我老是说男生不可靠,不过难过的时候还是要给他挂个电话。对不起点说句,他就像我的女朋友,可以听我发牢骚。rebecca是不用说的。她总是很耐心。不过因为她太乖了,所以有的话还是和daniel说比较好。倒不是说觉得她innocent,就是觉得daniel比较能明白,他听了也没有什么负担。而且他喜欢悲剧嘛。哈哈。
今天一早起来全身都疼,昨天摔了一大跤,不过呢,应该没有关系才对。或许,我的身体热切渴望冬天吧,或许渴望24小时的睡眠呢。yuyu很重视健康的样子,我虽然也想,就是做不到。反复想他说的惰性的问题,觉得很有道理。特别是冬天的早晨,赖床的感觉太好了,这样好的感觉已经很久没有体会到了。或者考完试可以试试看.
顺便提一下,名字应该叫zebra的,我就不是siamese cat。还是被屠杀的zebra比较好。而且我也没有猫那样自恋自怜,大部分时候都是谦虚接受扼杀的。

Friday, December 08, 2006

Last dinner

I had the last dinner with Ivan at the UC, which reopened recently. It actually looks better now. A bunch of exchanges came for farewell I guess. So were we.
I met DY Yueng there! He is a really nice person. I havent taken any of his courses, but according to his English and his clear mind when we were talking, could not be bad. He was with two small boys, and I thought they were his boys. But Rebecca said his son graduated...
Ivan and I talked a little bit about Globe group project. Ivan said he was sorry that not so many people cared about environment. It is okay. I used to have a lot of concerns but now not as much. I just get used to people's apathy and that they saying that I am too serious and strange. I guess I just get used to all these great remarks! Plus, even the pollution or running out of resources will not make human being die out, they will kill each other anyway. Keren said they are still expecting their winter. Yes, that could be because of global warming. But the real reason is unknown yet. I told him sth. about our comp251. I in fact kinda confused and mixed all those languages. SML, Prolog, scheme... But they are amazing! I also told him sth. about the language translation. But since I don't know much about it, I just cannot say too much. You don't expect me to tell him about CFG and all those stuffs, right? Then I shared my idea about the Peach Blossom Fan. I know I am a serious person, so I kinda avoid talking about big issue to please others, so I did. But that doesn't work. Talking about acdemic can bore others as well. Anybody can just live without me --- I always have this feeling. And I think it is true, I won't say I cant live without you to anyone. But for my real friends for lifetime, living without you will be painful. But no matter how hard it is, I move on. But so far, the real friends still stay in my life, I didn't lose them. Pray for their good health! Hah.
In the end Ivan paid for the bill, but I asked him to. So it is not that good. I am grateful but as he joked "DO I MAKE A LOT OF MONEY?" I felt guilty. But he will and I can treat him if he wants. Sometimes money dosen't matter that much, but when it comes to others' money, you just have to think about it. When he pays I always feel sorry for his parents. Haha, wasting their money on me.
Then I talked with Field for some while. She is going to Eypt!!!!!!!!!! I always want to travel with good friends. (I have been using SSH a lot, now I have get use to backspace and avoid using delete key. )
I was not sad as expected at the beginning of the semester. Maybe I will not be sad for anybody's departure, even when Field was leaving for UK. I just know I can always find this person if she or he is my real friend for a lifetime. If she or he is not the real friend, then just let it be. Field said she wanted to be single, is that because she doesnt trust them? I don't know, didnt go deep into it.
By the way, Yuyu came just now. I mean I am in the barn and he came to the barn for his CD left here two days ago. I had similar experience. Then we discussed about the huma course. He still had problem with the Justice to Dou E. I think we will not be asked about that. Well I always hate part of everything. Because nothing can be perfect right? I mean I can like sth or sb with its or her or his flaws, but I can still say I hate part of it right? Field said she is on my side and it is very sweet for her to say so. But there is no side... Things are not just black or white, there are some grey areas. Well when the grey is dark enough and I cannot stand it any more, it is black for me, even if you say it is grey. After all, they are just relatively black or white. When there is not light, everything just cannot reflect any light, what is the point for saying it is black or white? We just don't have the standard. Mmm, I dont know what I am talking about any more.
Come back to the dinner thing. I didn't say good bye. I guess I could have said sth. nicer. I guess I am at lost of words. You know my English is not good and my facial expression in fact is deceiving. So it is pointless for me to make any effort. I assume Ivan knows what I want to say.
Mmm, should go back to work now.

QUoted from Super COW's blog!

This one is amazing! I am a witness: yesterday in the LG1 lab, sb occupied the pc for a whole and I kept wondering. 7-8 pm, Mice came and I saw her removing her hard disk from the PC--- there was a hard disk hiding somewhere!!
Now if u see Mice on campus, just call her CEO!!! Let's spread this news!!!!

November 17

CEO,是这样诞生的。。

CEO是怎样诞生的???!

高智商还是高人品??!西周刊告诉你,nonono。。。

就让我们来抬一下CEO的模范mice同学是怎么诞生的吧!!

mice同学每日都会端坐在她的高级电脑前,目光扑朔迷离看着迅雷的下载页面,一动不动地看着那些个一动不动的进度标示

~~多么深情,又是多么绝望~~

许多同志因为无法忍受这可怕的网速,投奔老牌儿垄断CEO的时候。。。mice不甘示弱!!!

她即使是在网速只能以b来计算的时候,仍然如同黄继光一样在坚守自己的电脑前,一秒也不曾倒下!!!她的乐观的精神一直支撑着她走过这些艰难的 638b的岁月。。。笔者采访她的时候她透露:“我是一个特别容易满足的人!!”据笔者观察,此言属实。当网速达到1kb的时候,mice已是如沐春风, 喜上眉梢~~高兴的扳着几个指头看看还有几十个小时能获得最后的胜利!!

这感人的情景,让笔者不禁汗如雨下-______________-|||

如今,革命的艰辛岁月即将过去,mice同学将迎来她事业的新巅峰!!即便是当代最高级的笔记本也已经不能容纳mice那庞大的Inventory, 笔者预计,她未来的发展方向将为伟大的盗版事业,书柜里的n盒儿DVD足以说明她是一支潜力股!!

今天,在被西周刊评为本年度最有耐心,最具恒心,天天费心的Chief Entertaining Officer的时候,mice同学泪如雨下,万分激动!!但是她仍然十分谦虚的表示:“那个4400我已经当了31个小时还没到50%,不过31个小时 都当下来了,我就不信我当不完你!!”笔者。。感冻了。。。

正式由于这种执著的精神和高尚的职业道德,mice同学现在受到了广大群众的热烈追捧,百呼一应(mice)的情景久久地萦绕笔者脑海中,组织内部顿时变成一片欢乐的海洋!!

望同志们向我们的mice同学好好学习,加紧步伐成长为我国新一代的CEO!!^_____^


Thursday, December 07, 2006

last few days

I am busy with my last few programing assignments for this semester.
Just submitted one for comp252. Our last project only recieved 92~~~ quite unexpected. Rebecca said maybe we forgot to delete all the test output lines. Well, that Toilet one actually was quite easy a lot of groups got 100 I guess.
The comp251 project is almost done now. I have been thinking about it even in my dreams. You know, I promised to have dinner with Ivan (which is quite sad if I say this is the last one), and I have to hurry up. There are a few bugs especially when I input recursion functions into my micro scheme. Rebecca's approach is to dynamically allocate stuffs and store them in the map and use a pointer to keep track. But I think since when the program is executed, it is already on the runtime stack, so, I think I can make use of it to evaluate the input expression. My A5 probably got very low marks for I had some misunderstanding about input format!!! That is so bad!!! But like Winson said, I did it myself, that is enough. I have already got that sense of accomplishment. DK gave us his last lecture for this semester and probably the last one I can ever have. When he finished, everybody clapped their hands. Rebecca and I are thinking about asking him to be our supervisor. Well, that means we will probably do something like pattern matching, language stranslation. His translation system seems very fancy and HUGE. He mentioned the comp3XX he's gonna offer in the next fall semester today and I told him I would probably go exchange then~~~ He had some trouble for being absent for several times this semester. I still like him. But I do hope he could have showed up more. Hah! Maybe I am just like Norelle! Np, definitely not. DK is more than just an ABC. He is sb. who looks like us but yet very special. He is more than that. My midterms were a mess, and my finals will probably be the same. But I have started to look forward to next semester. Because maybe he will be our supervisor then, maybe we will be doing some logic then.
So far that's my progress.