鼓舞人心的廣告 by Intel & DreamWorks
只是 Intel 與 DreamWorks 合作,給 InTru 3D 的一隻廣告,卻讓我看了莫名地 high...
- Drake's blog
- 留言回應
- 402 reads
My first experience in Erlang
I recently started learning Erlang, one of famous functional programming languages, which is also a general-purpose concurrent programming language developed by Joe Armstrong. (I love the name Armstrong. Sounds cool!) And why do I bother to learn another programming language? I think I has been influenced by The Pragmatic Programmer, which suggests programmers to pick up a new programming language once a year to fresh your mind.
Some of my experiences:
- Compared to C/C++ family's semicolon ";" in the end of statements, Erlang's usage of decimal point "." is kinda interesting. It makes me think of programming as writing an essay.
- The force of variable's name to be started with an uppercase letter (ex, "Drake" is a variable name while "drake" is not.) is so tiresome. It might destroy my left little finger one day. But it is, at least, better than using dollar signs :p
- Preventing double "pattern matching" (or variable bounding) of one variable is new to me and I am getting used to it to figure out what really benefits I can have to this restriction.
- The built-in data type, integer, is kinda like Big-Num, which I love so much!
- The meaning of "=" is not assignment but "pattern matching" guides me to the ideas of no-side-effects in FP.
-
Some mathematic or arithmetic operators are so weird:
- ">=", but "=<" ?! (not "<=")
- "=:=" means equality testing.
- "or" and "orelse" are different.
- In some context, ";" is semantically equal to OR; while "," is AND.
- The braces "{}" are used for data type, Tuple, is not that familiar to me cause I have already used to Python's way by parenthesis "()".
- Making usage of Tuple for record (or struct in C way) is not that cool for Dictionary for that in Python.
-
Claus, the great way to express some function definition in more mathematic way. It somehow looks like polymorphism in OOP and I love this more than OOP way!! Ex.
area({rectangle, Width, Ht}) -> Width * Ht;
area({circle, R}) -> 3.14159 * R * R. - The different syntax for "function definition" and "claus definition" troubles me sometimes. (put "end" in the end of fun()...)
- The Erlang shell's auto-completion is kinda weak when I am used to ipython's convenience.
- The functional way to describe/define the function has so much fun!!!
-
List comprehensions in Erlang seems more powerful than in Python. Check this out:
pythag(N) ->[ {A,B,C} ||A <- lists:seq(1,N),B <- lists:seq(1,N),C <- lists:seq(1,N),A+B+C =< N,A*A+B*B =:= C*C].
> lib_misc:pythag(40).[{3,4,5},{4,3,5},{5,12,13},{6,8,10},{8,6,10},{8,15,17},{9,12,15},{12,5,13},{12,9,15},{15,8,17}] - Still, I have to say, "the Erlang shell is so weak!". I think a powerful shell is the necessary to make a learning programmer happy and easy-life.
- Drake's blog
- 留言回應
- 767 reads
- Drake's blog
- 留言回應
- 900 reads
CSI -- The Experience
跑去參加 CSI -- 犯罪調查體驗營,一連獲得三張證書,證明了一件事:人人都可以是 FBI 探員。
- Drake's blog
- 留言回應
- 871 reads
任天堂 在 京都
任天堂株式会社(東證1部:7974, NASDAQ:NTDOY),於1889年9月23日成立,起初是一間由山内房治郎創立小公司,專門製造一種名為花札的日本手製紙牌。20世紀中期,任天堂株式会社曾經發展多方面業務,例如酒店和計程車;經過多年時間,現已成為一間全球最大的電視遊戲公司。除此之外,任天堂亦持有美國職棒大聯盟的西雅圖水手隊。
任天堂是歷史上最長壽的電視遊戲平台公司,以及最有影響和有名的遊戲平台生產商,是手提遊戲平台的領導者。他們於1983年於日本發展,往後亦於不同地區,如1985年於北美洲和1986年於歐洲發展分部。任天堂已開發5個電視遊戲平台—FC(俗稱紅白機)、超级任天堂、任天堂64、GameCube 和Wii - 以及許多不同的手提攜帶型裝置,包括著名的Game Boy系列、Game & Watch、Virtual Boy、Pokémon Mini和任天堂DS。他們推出了超過250款遊戲,製作了最少180款遊戲,超過24億套遊戲售出。
我只是在想,11月初的京都之旅有沒有機會見識一下,這個傳說中的家用遊樂器王國。可惜的是,似乎任天堂不像 SONY 那樣,它是個比較有濃厚日本色彩,且也比較保守的公司,並沒有所謂的 showroom,對自家的很多東西更是保密到家,看來是沒機會了~
- Drake's blog
- 留言回應
- 799 reads
SIGGRAPH 2010 : Emerging Technologies Trailer
Some demo appear interesting to me this year:
- Matrix LED Unit
- FuSA2 Touch Display
- 360-degree Autostereoscopic Display (It's Autostereo! Definitely take a look at it!)
- Beyond the Surface (from Taiwan!)
- Head-mounted Photometric Stereo (This reminds me what has been done in ICT Graphics Lab led by Paul Debevec)
- Touch Light Through the Leaves (Anything more weird and abstract than this one?)
- QuintPixel (HDR Display?)
- Acroban the Humanoid (Much more interesting and cute than robots developed by CMU)
- Drake's blog
- 1 則回應
- 1098 reads
SIGGRAPH 2010 : Technical Papers Trailer
- Drake's blog
- 留言回應
- 1140 reads



