随笔分类 -  Erlang Efficiency Guide

摘要:翻译太菜希望大牛指正。以后会逐渐加入自己写的注释和疑问,有些地方自己也不太了解,知道或者感兴趣的同学可以指出来,一起讨论一下。===============================================================================================Functions1 Pattern matching模式匹配Pattern matching in function head and incaseandreceiveclauses are optimized by the compiler. With a few excepti 阅读全文
posted @ 2012-10-26 10:21 CJ_Ruan 阅读(1413) 评论(1) 推荐(0) 编辑
摘要:摘要: 翻译太菜希望大牛指正。以后会逐渐加入自己写的注释和疑问,有些地方自己也不太了解,知道或者感兴趣的同学可以指出来,一起讨论一下。=====================================================================================================List handling1 Creating a list创建一个列表Lists can only be built starting from the end and attaching list elements at the beginning. If y 阅读全文
posted @ 2012-10-22 17:01 CJ_Ruan 阅读(2213) 评论(0) 推荐(0) 编辑
摘要:翻译太菜希望大牛指正。以后会逐渐加入自己写的注释和疑问,有些地方自己也不太了解,知道或者感兴趣的同学可以指出来,一起讨论一下。内容较多,慎入=====================================================================================================Constructing and matching binariesErlang/OTP R15B02In R12B, the most natural way to write binary construction and matching is now 阅读全文
posted @ 2012-10-19 13:48 CJ_Ruan 阅读(863) 评论(6) 推荐(3) 编辑
摘要:发现很多大牛也在翻译Erlang/OTP的一些内容,先膜拜一下,可能不小心会重复,但是也只有在翻译过程中才会遇到并且学习到跟自己原想不一样的东西,翻译太菜希望大牛指正。=====================================================================================================Common Caveats(常见注意事项)Erlang/OTP R15B02 Here we list a few modules and BIFs to watch out for, and not only fro... 阅读全文
posted @ 2012-10-17 12:27 CJ_Ruan 阅读(2019) 评论(0) 推荐(0) 编辑
摘要:重新看Erlang的自带文档,发现还是很多细节需要注意的,这里自己翻译一下,也分享一下==================================================================================The Eight Myths of Erlang PerformanceErlang/OTP R15B021 Myth: Funs are slow Fun函数很慢(这里应该是指Module:Function(Arguments)这种形式的函数,其中M,F,A可以是变量类型,值不是固定的) Yes, funs used to be slow... 阅读全文
posted @ 2012-10-16 14:24 CJ_Ruan 阅读(2605) 评论(0) 推荐(3) 编辑