Erlang 种子列表 Erlang
-
Infix Translator Erlang Implementation
I read a little about Erlang last year, but due to some reason I didn’t acquire the details, just skimmed through the textbook. When i started to implement a compiler lately, the thought that Erlang m …阅读全文 -
理解ibrowse的send_req
ibrowse简介 ibrowse是一个用Erlang写的http client。具有异步,多进程,管道,代理等功能,具体可以点击项目主页看看。 用途 游戏 项目里面,跟渠道对SDK,一般情况是http请求,iOS的内购也是http请求。所以,有了ibrowse这个项目,可以简化我们的代码,不用自己再造轮子写ht tp的发包和收包。 send_req 用ibrowse这个项目,也就使用ibrows …阅读全文 -
Notes on Introducing Erlang - Chapter 1
TOC Escape the Shell Shell Command History Shell fs Navigation Math Calling Functions Numbers Variables in the Shell Escape the Shell ^G abort and bring up the User switch command prompt ^C menu [代码 …阅读全文 -
Notes on Introducing Erlang - Prolog
Erlang vs other functional languages [表格] …阅读全文 -
在Ubuntu 14.04(服务器)安装Erlang
下载安装包 可以在官网下载,如果嫌国内速度慢,也可以去我百度盘,点击这里。如果想命令行在服务器下载的话,可以直接用wget或者curl。或者去可以去又拍云的 镜像http://erlang.b0.upaiyun.com/download下载(来源https://github.com/upyun/kerl),将文件 名补齐就可以了。 [代码片段] 安装依赖 [代码片段] 因为我们项目并没用Java作 …阅读全文 -
Erlang动态编译源码
Erlang:动态编译加载Erlang文件 使用方法: [代码片段] Erlang动态编译源码: https://github.com/liuweiccy/mslog/blob/master/src/dynamic_compile.erl …阅读全文 -
Erlang动态编译源码
Erlang:动态编译加载Erlang文件 使用方法: [代码片段] Erlang动态编译源码: https://github.com/liuweiccy/mslog/blob/master/src/dynamic_compile.erl …阅读全文 -
Erlang Ranch - 监听器
Ranch 是一个Erlang Tcp服务器Acceptor池的实现. 监听器是一组进程, 其角色是在端口上监听新连接. 它管理一个Acceptor进程池,每个Acceptor阻塞,知道有新的连接请求到达 Ranch 是一个Erlang Tcp服务器Acceptor池的实现. 监听器是一组进程, 其角色是在端口上监听新连接. 它管理一个Acceptor进程池,每个Acceptor阻塞,知道有新的 …阅读全文 -
gen_server设计思想
本文介绍gen_server行为模式的设计思想,gen_server的使用请看上一篇文章”gen_server行为模式“。gen_server行为模式设计目的是分离通用代码和具体业务代码,通用代码由行为模板实现,具体业务代码通过回调函数让用户实现。用户只需实现具体业务逻辑,不用考虑消息通信、循环维护,使用户实现client-server功能变得简单轻松。 先看银行帐号的简单 …阅读全文 -
gen_server行为模式
本文主要介绍gen_server行为模式的使用,gen_server的设计思将想下文“gen_server设计思想”中介绍。gen_server是开发中最常用的一种模式,使用gen_server时,需在模块中定义behaviour属性为gen_server,并实现回调接口init/1,handle_call/3,handle_cast/2,handle_info/2,code_change/3,t …阅读全文