2009年8月7日

《Programming Erlang》读书笔记(持续更新)

摘要: Erlang惯用模式: 递归求和:[代码]list-at-a-time操作:[代码]绑定测试:[代码]尾递归:[代码] 阅读全文

posted @ 2009-08-07 15:45 Quon Lu 阅读(223) 评论(0) 推荐(0) 编辑

Erlang Start![3]

摘要: 练习链接: http://erlang.org/course/exercises.html题目:1. Write a function lists1:min(L) which returns the mini- mum element of the list L. 2. Write a function lists1:max(L) which returns the maximum eleme... 阅读全文

posted @ 2009-08-07 10:42 Quon Lu 阅读(243) 评论(0) 推荐(0) 编辑

Erlang Start![2]

摘要: 练习链接: http://erlang.org/course/exercises.html题目: 3. Write a function mathStuff:perimeter(Form) which computes the perimeter of different forms. Form can be one of: {square,Side} {circle,Radius} {tri... 阅读全文

posted @ 2009-08-07 10:35 Quon Lu 阅读(133) 评论(0) 推荐(0) 编辑

Erlang Start![1]

摘要: 练习链接: http://erlang.org/course/exercises.html题目: Simple sequential programs 1. Write functions temp:f2c(F) and temp:c2f(C) which convert between centigrade and Fahrenheit scales. (hint 5(F-32) = 9C)... 阅读全文

posted @ 2009-08-07 10:13 Quon Lu 阅读(188) 评论(0) 推荐(0) 编辑

Erlang Start![0]

摘要: 公司的游戏一直采用单服务器架构,虽然满足目前的需求,但是对今后的扩展极其不利,考虑了很多方案,突然想到了个老东西: Erlang。记忆中的Erlang就是一个函数式的,有着奇怪语法的语言,对于我这个OO世界的人来说的确带有恐惧感。趁着兴致好的时候,在erlang.org上看了一遍getting started,体验了一把函数式编程,也感到了erlang的匹配、分布式和容错的强大。于是决定学习一下这... 阅读全文

posted @ 2009-08-07 09:55 Quon Lu 阅读(193) 评论(0) 推荐(0) 编辑

导航