2016-12-07 ruki
Stackless introduction Stackfull introduction More coroutine examples New features Support coroutine context switch for mips Add __tb_thread_local__ keyword macro Add --micro=y|n option to compiling micro library (~64K) for the embed system Add tb_addrinfo_addr and tb_addrinfo_name interfaces Add stackless coroutine A 继续阅读 »
2016-10-30 ruki
New features Support make command and compile directly without xmake Add switch context interfaces into platform module Add coroutine module (supports i386, x86_64, arm, arm64 ..) Add simple http server demo using coroutine Add simple spider using coroutine Add io poller interfaces(with epoll, poll, kqueue, select) Su 继续阅读 »
2014-09-16 码农明明桑
在Android系统中打开Activity,Service, BroadCast 都需要使用到Intent(意图),那么作为一个开发者就需要知道怎么使用Intent,知道怎么通过Intent的匹配规则打开其他的组件,或者给其他组件提供访问接口。因此在这里总结一下Intent和Intent的匹配规则。 Intent使用示例 显式使用Intent java Intent intent = new Intent(context, XXXActivity.class); intent.putExtra(Intent.EXTRA_TEXT, "string text"); 隐式使用 java Intent intent = new 继续阅读 »
2015-06-23 W.Y.
ES6
在 ES6 中引入了一种新的字符串字面量 -- 模板字符串,除了使用反引号 (`) 表示,它们看上去和普通的字符串没有什么区别。在最简单的情况下,他们就是普通的字符串: javascript context.fillText(`Ceci n'est pas une chaîne.`, x, y); 之所以被称为模板字符串,是因为模板字符串为 JS 引入了简单的字符串插值特性,也就是说,可以方便优雅地将 JS 的值插入到字符串中。 more 很多地方可以用到模板字符串,看下面这个不起眼的错误提示消息: javascript function authorize(user, action) { if (!user.hasP 继续阅读 »