2016-10-29 ruki
tbox add a coroutine library with stackfull mode and provide the following features. 1. yield 2. suspend and resume 3. sleep 4. io scheduler with (epoll, poll, kqueue, select, poll ..) 5. supports stream, http and other all io modules of tbox 6. channel 7. lock 8. semaphore 继续阅读 »
2015-07-21 Jason Liao
click here! I rewrite all the demos with ES6, some note here, source code here 继续阅读 »
2014-09-22 Kun Ren
Twelve days after the initial commit, pipeR tutorial is released! If you want to write R code fluently and process data elegantly, I strongly recommend that you read this tutorial which is designed to serve as a complete guide to pipeR package, including how it works with dplyr, rlist, and rvest with vivid examples. 继续阅读 »
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-12-07 ruki
此版本主要增加stackless协程模块以及为嵌入式平台增加micro微模块编译(~64K)。 此stackless协程模块比之前的stackfull协程实现更加的轻量高效,切换效率提升5、6倍,在macosx上测试1000w次切换仅需40ms 当然易用性和灵活性上,还是stackfull模式更有优势(tbox两种模式都已支持,接口类似)。 stackless协程使用见:stackless协程使用文档 stackfull协程使用见:stackfull协程使用文档 更多协程服务器demo实现,请参考:协程examples 新特性 针对协程上下文切换,支持mips架构 添加__tb_thread_local__关键字宏 添加 继续阅读 »
2014-08-07 Kun Ren
Here is a quiz on magrittr and you may check if you are really good at using it. Since the CRAN version currently does not support nested ., it won't be interesting to make a quiz on that version. All the following examples are using the latest development version on GitHub. You can do the same test with the CRAN versi 继续阅读 »
2014-12-03 Kun Ren
r nse
One of my favorite features of R is its meta-programming facilities. It can be simply demonstrated by the following examples. 继续阅读 »