- 浏览: 982340 次
- 性别:
- 来自: 广州
最新评论
-
qingchuwudi:
有用,非常感谢!
erlang进程的优先级 -
zfjdiamond:
你好 这条命令 在那里输入??
你们有yum 我有LuaRocks -
simsunny22:
这个是在linux下运行的吧,在window下怎么运行escr ...
escript的高级特性 -
mozhenghua:
http://www.erlang.org/doc/apps/ ...
mnesia 分布协调的几个细节 -
fxltsbl:
A new record of 108000 HTTP req ...
Haproxy 1.4-dev2: barrier of 100k HTTP req/s crossed
文章列表
原型: static Instruction symbexec (const Proto *pt, int lastpc, int reg);
symbexec 是安装vm的执行流程来模拟一段opcode的执行, 执行到lastpc, 同时返回修改reg的那条指令。
有2个用途
1. loadstring检查代码是否被篡改,是否合法
2. 用于lua_getinfo的时候 看一个first class的function是global,local,upval 还是其他东西。
总之设计还是很巧妙的。
一直对coroutine的运作原理不是很明白, 这几天琢磨了下终于搞明白了:
root@yfnix:~/lua-5.1.3/src# cat t.lua
a= coroutine.create(function ()
b= coroutine.create(function ()
coroutine.yield(1)
end)
coroutine.resume(b)
end)
coroutine.resume(a,1)
root@yfnix:~/lua-5.1.3/src# gdb --args lua ...
- 2008-07-03 12:47
- 浏览 14224
- 评论(0)
RemDebug is a remote debugger for Lua 5.0 and 5.1. It lets you control the execution of another Lua program remotely, setting breakpoints and inspecting the current state of the program. RemDebug can also debug CGILua scripts.
看他的源码只有2个东西:controller.lua 和 remdebug/engine.lua
controller(233行)接受用户输入的 ...
- 2008-06-30 14:47
- 浏览 7519
- 评论(1)
Lua For Windows v5.1.3.11 Release Candidate 1
Andrew Wilson - 2008-06-28 00:19 - Lua for Windows
We are proud to announce the first release candidate of Lua for Windows (LfW). This moves this project into feature freeze, so only bugs will be fixed until the official release. Let us know what ...
前段时间受邀去青岛海洋大学做的演讲的ppt,内容主要涉及到
1. 高级服务器设计实现
2. Architecture of Large-Scale Websites
3. P2P设计经验谈
4. 个人成长之路
凑合看吧!
What is Alien
Alien is a Foreign Function Interface (FFI) for Lua. An FFI lets you call functions in dynamic libraries (.so, .dylib, .dll, etc.) from Lua code without having to write, compile and link a C binding from the library to Lua. In other words, it lets you write extensions that call out to ...
Announcing LuaEdit 2008 and new website
Jean-François Goulet - 2008-06-24 21:14 - LuaEdit
LuaEdit is getting a whole new look with the upcoming version of LuaEdit 2008 which will support the latest version of Lua 5.1, remote debugging, easy software integration and solution oriented managemen ...
What does newproxy() in 5.1?
> I find newproxy a curious addition. It gives you unique userdata that
> share the same metatable. I cannot think of a use for it yet.
> What did you have in mind?
This is a very experimental feature. We wanted a simple and secure way
of creating userdata in ...
- 2008-06-27 01:02
- 浏览 5899
- 评论(0)
LuaRocks
This is LuaRocks, a deployment and management system for Lua modules.
LuaRocks allows you to install Lua modules as self-contained packages called "rocks", which also contain version dependency information. This information is used both at install time, so that when one rock is r ...
- 2008-06-26 21:38
- 浏览 7922
- 评论(1)
R12B发布以后 号称ASN.1解码速度快了好多。前天仔细看了文档,感觉用在自有的系统去不错。ASN.1的结构还是很紧凑的,BER,PER,BER_BIN,PER_BIN都支持。特别是支持选择性decode,这个feature非常赶兴趣。用在自己的项目里面就省去了很多协议编解码的繁琐和易错,毕竟asn compiler也做了几万行 我相信他的性能。
Introduction
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs). In this text, I assume you are familiar with PEGs. If you are not, you can get a quick start reading the Wikipedia Entry for PEGs or Section 2 of Parsing Expression Grammars: A Recognition-Based ...
- 2008-06-16 12:05
- 浏览 5517
- 评论(1)
当tcp对端调用shutdown(RD/WR) 时候, 宿主进程默认将收到{tcp_closed, Socket}消息, 如果这个行为不是你想要的,那么请看:
shutdown(Socket, How) -> ok | {error, Reason}
Types:
Socket = socket()
How = read | write | read_write
Reason = posix()
Immediately close a socket in one or two directions.
How == write means closing the socket fo ...
今天发现strncpy使用上的一个古怪bug, 解决了是发现对strncpy的语义理解错误。
SYNOPSIS
#include <string.h>
char *strcpy(char *dest, const char *src);
char *strncpy(char *dest, const char *src, size_t n);
DESCRIPTION
The strcpy() function copies the string pointed to by src (including
...
Erlang/OTP R12B-3 released
The third service release for Erlang/OTP R12B has been released. (June 11, 2008)
最大的卖点:
An experimental module "re" is added to the emulator which interfaces a publicly available regular expression library for Perl-like regular expressions (PCRE). The interfa ...
这本书是lua作者自己写的 非常的不错 解说非常到位 学lua的都应该人手一本 china-pub.com上面有的买。俺前2年买的E版本 花了俺好几百块 不过值。。。
- 2008-05-30 12:17
- 浏览 4246
- 评论(1)