`
mryufeng
  • 浏览: 982206 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
LuaJIT's interpreter is fast, because: •It's written in assembler. •It keeps all important state in registers. No C compiler manages to do that on x86. •It uses indirect threading (aka labeled goto in C). •It has a very small I-cache footprint (the core of the interpreter fits in 6K). •The parser ge ...
Libevent 2.0.4-alpha is now available for download: http://monkey.org/~provos/libevent-2.0.4-alpha.tar.gz http://monkey.org/~provos/libevent-2.0.4-alpha.tar.gz.sig The complete change list is available here. Some of the feature improvements include:     * bufferevents can now be rate limited     * ...

haproxy 1.4释出

February 26th, 2010 : New stable branch 1.4 !       After 11 months of active development and a lot of external contributions, version 1.4 is now released. It has been tested for the last 3 weeks by many people, and only very minor bugs were reported (and fixed), so it's now time to officially stam ...
抄书:otp_doc_html_R13B04/lib/tools-2.6.5.1/doc/html/lcnt_chapter.html#id2252207 lcnt - The Lock Profiler Internally in the Erlang runtime system locks are used to protect resources from being updated from multiple threads in a fatal way. Locks are necessary to ensure that the runtime system works pro ...
Jan 29, 2010 We are very happy to announce the website of Tidier, an automatic refactoring tool for Erlang programs. Tidier cleans up Erlang source code and suggests to its user a sequence of transformations that improve the quality and performance of code. More information about tidier can be foun ...
Erlang/OTP R13B04 has been released. R13B04 is a service release for R13B. There are mostly error corrections, but also some new functionality. This is the first release after the introduction of the official Git repository at Github and it is amazing to notice that the number of contributions from t ...
From: http://lwn.net/Articles/371466/ I am pleased to announce that the GCC Steering Committee has accepted the contribution of the gccgo front-end and gcc-specific runtime for the Go language with Ian Taylor appointed maintainer. The GCC Release Managers will decide the details about the timing of t ...
R13B04后erlang的源码编译为了考虑移植性,就改变了编译方式,以下是官方wiki上的安装文档http://wiki.github.com/erlang/otp/installation: 1. Cloning Here are the basic steps to build Erlang/OTP in the Git repository. Start by cloning: git clone git://github.com/erlang/otp.git 2. Building Next, set ERL_TOP the environment variable: cd ...
Go Lang介绍 Go编程语言是Google中一些大牛(尤其是有着plan9前科的大牛们)如Rob Pike,Ken Thomason这两位赫赫有名的程序高手、技术作于2007年9月开始建造。 Pike指出,Go代码的编译基本上可以达到C语言的速度,几乎可以在瞬间完成,“就像是在使用交互式语言”。现有的语言都没有针对多核心处理器进行优化,为了解决此类编程问题,Google工程师们开发了Go语言。从源文件的copyright可以看到,很多基础代码来自plan9. Go 已在Google公司内部测试过,但仍处于试验阶段。Google开放Go的代码,希望籍此帮助Go语言的发展。首席软件工程师Ro ...
R13B03以后 OTP的模块加入了大量的测试模块,这些模块都是common_test的使用例子. 我们可以学到的2点 1. 如何编写common_test 2. 如何养成好习惯,为我们自己的工程编写测试案例. 以下是如何允许测试案例: 原文地址: http://wiki.github.com/erlang/otp/running-tests Running tests Building Build the tests like this make release_tests Running To run the test first do: cd release/tests/ ...
从github otp的更新日志可以清楚的看到otp R13B04在binary heap的细化上做了很多工作: 1. 提供参数 限制binary的最小limit. 2. binary_to_term 加多参数来保证安全, 对于外来binary解码的安全性检查 比如说 避免atom的滥用. 3. 更高效率的处理binary fragment. 4. 加强GC对binary碎片的回收操作. 这个对于服务器性能很大帮助.
R13B03 binary vheap有助减少binary内存压力. 参看:http://www.erlang.org/download/otp_src_R13B03.readme 引用    OTP-8202  A new garbage collecting strategy for binaries which is more       aggressive than the previous implementation. Binaries now has       a virtual binary heap tied to each process. When binari ...
我们知道扩展erl有2种方法, driver和port. 这2个方法效率都低,因为都要经过 port机制,对于简单的模块,这个开销有时候是不可接受的。这时候nif来救助了。今天发布的R13B03已经支持了,虽然是实验性质的。erl_nif的代表API functions for an Erlang NIF library。 参考文档: erl_nif.html 和 erlang.html#erlang:load_nif-2 以及 reference_manual/code_loading.html#id2278318 我们来用nif写个最简单的hello, 来展现nif的威力和简单性。 不啰嗦 ...
转自:http://www.reddit.com/comments/63hth/ask_reddit_which_oss_codebases_out_there_are_so/c02pxbp Recommended reading order:     * lmathlib.c, lstrlib.c: get familiar with the external C API. Don't bother with the pattern matcher though. Just the easy functions.     * lapi.c: Check how the API is imp ...
escript Erlang scripting support, 可以让erl模块转身变成unix script来使用,大大方便用户,具体的使用参看otp文档。我这里要演示的是些比较被忽视的高级特性: 首先crack erts/etc/common/escript.c:33  static int debug = 1; 让之显示调用参数。 root@nd-desktop:~# cat >factorial #!/usr/bin/env escript %% -*- erlang -*- %%! -smp enable -sname factorial -mnesia debug ve ...
Global site tag (gtag.js) - Google Analytics