上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 36 下一页
摘要: https://github.com/rvirding/luerl 阅读全文
posted @ 2013-12-13 15:24 宁静的天空 阅读(438) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/futuredo/archive/2012/10/26/2737644.htmlFunctions1 Pattern matching模式匹配Pattern matching in function head and incaseandreceiveclauses are optimized by the compiler. With a few exceptions, there is nothing to gain by rearranging clauses.函数头以及case和receive子句中的模式匹配是经过编译器优化的。重新整理 阅读全文
posted @ 2013-12-12 21:21 宁静的天空 阅读(881) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/futuredo/archive/2012/10/19/2727204.htmlConstructing and matching binariesErlang/OTP R15B02In R12B, the most natural way to write binary construction and matching is now significantly faster than in earlier releases.在R12B版本中,构造和匹配二进制数据最自然的方式,相比较之前的版本其效率有了明显提高。To construct a 阅读全文
posted @ 2013-12-12 21:20 宁静的天空 阅读(914) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/futuredo/archive/2012/10/17/2726416.htmlCommon Caveats(常见注意事项)Erlang/OTP R15B02 Here we list a few modules and BIFs to watch out for, and not only from a performance point of view. 这里我们列出了需要注意的一些模块和内置函数,不仅仅是从性能的角度来看。 1 The timer module 定时器模块 Creating timers usingerlang... 阅读全文
posted @ 2013-12-12 21:19 宁静的天空 阅读(356) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/futuredo/archive/2012/10/16/2725770.htmlThe Eight Myths of Erlang PerformanceErlang/OTP R15B021 Myth: Funs are slow Fun函数很慢(这里应该是指Module:Function(Arguments)这种形式的函数,其中M,F,A可以是变量类型,值不是固定的) Yes, funs used to be slow. Very slow. Slower thanapply/3. Originally, funs were imple.. 阅读全文
posted @ 2013-12-12 21:18 宁静的天空 阅读(780) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/futuredo/archive/2012/10/22/2734186.htmlList handling1 Creating a list创建一个列表Lists can only be built starting from the end and attaching list elements at the beginning. If you use the++operator like this列表只能从尾端开始创建,从头部加入元素。如果你像这样使用++操作符List1 ++ List2you will create a new lis 阅读全文
posted @ 2013-12-12 21:15 宁静的天空 阅读(420) 评论(0) 推荐(0)
摘要: 一、使用spawn(Fun)生成新的进程,在Fun中调用ets:new(Arg),在new()后能查到新的ets表的信息,但是在别的进程以及控制台都查不到该ets表的信息。原因:普通的spawn()生成的进程执行完任务后就会自动关闭了,由于进程的关闭由该进程创建的ets表也会随之关闭。 阅读全文
posted @ 2013-12-08 17:14 宁静的天空 阅读(238) 评论(0) 推荐(0)
摘要: 一、查看进程的信息 process_info(Pid). 阅读全文
posted @ 2013-12-06 10:30 宁静的天空 阅读(260) 评论(0) 推荐(0)
摘要: 转自:http://blog.csdn.net/flyinmind/article/details/7740540项目中用到erlang,同时也用到mysql。惯例,google。但是,按照网上说的做,有些出入,行不通,需要自己摸索,下面记录我摸索的东西。1、下载erlang-mysql-driver;下载地址:https://github.com/dizzyd/erlang-mysql-driver2、解压到mysql目录,不罗嗦了;3、编译要先配置erlang路径,在/etc/profile中,将erlang的bin路径写入比如PATH=$PATH:/home/erlang/bin否则提示 阅读全文
posted @ 2013-12-05 15:59 宁静的天空 阅读(3626) 评论(0) 推荐(2)
摘要: 一、show processlist:查询数据库连接的状态二、show slave status;三、数据库连接的超时时间show global variables like '%timeout%';set global wait_timeout=10;set global interactive_timeout=10;四、查询表的信息。## 获取数据库下的全部的表的名字。SELECT table_name FROM information_schema.tables WHERE table_schema='ygzj' and table_type =' 阅读全文
posted @ 2013-12-05 08:37 宁静的天空 阅读(237) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 36 下一页