智慧 + 毅力 = 无所不能

正确性、健壮性、可靠性、效率、易用性、可读性、可复用性、兼容性、可移植性...

导航

上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 97 下一页

2015年6月1日

摘要: 转自:http://tonybai.com/2014/09/29/a-channel-compendium-for-golang/在进入正式内容前,我这里先顺便转发一则消息,那就是Golang 1.3.2已经正式发布了。国内的golangtc已经镜像了golang.org的安装包下载页面,国内go程... 阅读全文

posted @ 2015-06-01 17:32 Bill Yuan 阅读(1989) 评论(0) 推荐(0) 编辑

摘要: 转自:http://tonybai.com/2015/01/13/a-hole-about-variable-scope-in-golang/临近下班前编写和调试一段Golang代码,但运行结果始终与期望不符,怪异的很,下班前依旧无果。代码Demo如下://testpointer.gopackage... 阅读全文

posted @ 2015-06-01 17:24 Bill Yuan 阅读(3150) 评论(0) 推荐(0) 编辑

摘要: 转自:http://tonybai.com/2014/11/15/how-goroutines-work/在golangweekly的第36期Go Newsletter中我发现一篇短文"How Goroutines Work",其作者在参考了诸多资料后,简短概要地总结了一下 Goroutine的工作... 阅读全文

posted @ 2015-06-01 17:19 Bill Yuan 阅读(476) 评论(0) 推荐(0) 编辑

摘要: 转自:http://tonybai.com/2014/11/05/how-stacks-are-handled-in-go/Go 1.4Beta1刚刚发布,在Go 1.4Beta1中,Go语言的stack处理方式由之前的"segmented stacks"改为了"continuous stacks"... 阅读全文

posted @ 2015-06-01 17:16 Bill Yuan 阅读(1261) 评论(0) 推荐(0) 编辑

摘要: 转自:http://tonybai.com/2012/09/26/interoperability-between-go-and-c/Go有强烈的C背景,除了语法具有继承性外,其设计者以及其设计目标都与C语言有着千丝万缕的联系。在Go与C语言互操作(Interoperability)方面,Go更是提... 阅读全文

posted @ 2015-06-01 16:45 Bill Yuan 阅读(18954) 评论(0) 推荐(1) 编辑

2015年5月26日

摘要: 转自:http://www.cnblogs.com/ringofthec/archive/2010/11/09/lua_State.html1. 创建lua虚拟机lua_State *lua_newstate (lua_Alloc f, void *ud)创建一个新的独立的lua虚拟机. 参数指定了... 阅读全文

posted @ 2015-05-26 13:48 Bill Yuan 阅读(3502) 评论(0) 推荐(2) 编辑

摘要: 转自:http://www.cnblogs.com/ringofthec/archive/2010/11/05/luaClosure.html这里, 简单的记录一下lua中闭包的知识和C闭包调用前提知识: 在lua api小记2中已经分析了lua中值的结构, 是一个 TValue{value, tt... 阅读全文

posted @ 2015-05-26 12:14 Bill Yuan 阅读(948) 评论(0) 推荐(0) 编辑

摘要: 转自:http://www.cnblogs.com/ringofthec/archive/2010/10/26/luabindobj.html虽然有tolua++, luabind等等, 不过自己手动绑定还是有助于更深的了解lua的机制, 以及锻炼自己如何使用lua提供的现有机制来实现自己的需求[部... 阅读全文

posted @ 2015-05-26 12:13 Bill Yuan 阅读(803) 评论(0) 推荐(0) 编辑

摘要: 转自:http://www.cnblogs.com/ringofthec/archive/2010/10/22/lua.html1. 建一个新表void lua_createtable (lua_State *L, int narr, int nrec)创建一个新的table, 并把它放在栈顶. n... 阅读全文

posted @ 2015-05-26 12:11 Bill Yuan 阅读(1618) 评论(0) 推荐(0) 编辑

2015年5月25日

摘要: 转自:http://www.58player.com/blog-2537-87218.html 项目要求对lua脚本进行加密,查了一下相关的资料,得知lua本身可以使用luac将脚本编译为字节码(bytecode)从而实现加密,试了一下,确实可行。下面是使用原生的lua解释器编译字节码:1、新... 阅读全文

posted @ 2015-05-25 11:51 Bill Yuan 阅读(1690) 评论(0) 推荐(0) 编辑

上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 97 下一页