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继续阅读 »
Type determination
java interface query:
interfaceDemo instanceof InterfaceDemo
subClassInstance instanceof ParentClass
python
isinstance
golang interface query:
value, ok := element.(T) element is interface var, T is base type
switch value := element.(type)继续阅读 »
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继续阅读 »
tbox provides a lightweight implementation of stackless coroutines
and it's interfaces are very simple too, for example:
c
tb_lo_coroutine_enter(coroutine)
{
while (1)
{
tb_lo_coroutine_yield();
}
}
The switch performance of this stackless coroutines is faster than the implementation of tbox's继续阅读 »