2016-06-09 ruki
xmake从v2.0开始,全面支持插件模式,我们可以很方便的扩展实现自己的插件,并且xmake也提供了一些内建的使用插件 我们可以执行下 xmake -h 看下当前支持的插件: Plugins: l, lua Run the lua script. m, macro Run the given macro. doxygen Generate the doxygen document. 继续阅读 »
2016-07-17 ruki
Website Sources Changelog New features Add check includes dependence automatically Add print colors Add debugger support, .e.g xmake run -d program ... Changes Improve the interfaces of run shell Upgrade luajit to v2.0.4 Improve to generate makefile plugin Optimizate the multitasking compiling speed Bugs fixed Fi 继续阅读 »
2016-07-26 ruki
Introduction This is a very simple and lightweight x86 virtual machine which can load and run the assembly code from ida pro directly. Features Supports cross-platform and it's able to run the x86 assembly code on linux, windows, maxosx, android and ios ... Supports the frequently-used x86 assembly instruction (.e.g 继续阅读 »
2016-07-16 ruki
xmake默认在编译完程序后,可以通过以下命令运行指定目标程序: bash $xmake run [target] [arguments] ... 并且在linux/macosx下面,目前已经支持关联调试器,去直接调试指定目标了,只需要加上-d/--debug参数选项: bash $xmake run -d [target] [arguments] ... 默认情况下,xmake在macosx下用的是lldb,在linux下用的是gdb,调试器xmake会在配置的时候去自动检测,如果需要指定调试器路径,可以手动去配置它: bash $xmake f --debugger=/usr/bin/gdb 继续阅读 »
2013-06-05 Klaus Ma
0MQ (also spelled ZeroMQ, 0MQ or ZMQ) was originally a high-performance asynchronous messaging library aimed at use in scalable distributed or concurrent applications. It provides a message queue, but unlike message-oriented middleware, a 0MQ system can run without a dedicated message broker. The library is designed to 继续阅读 »
2016-10-28 ruki
Introduction Benchbox is a benchmark testing utilities based on xmake and tbox. Build Please install xmake first: xmake bash $ xmake The Coroutine Switch Reports (2 Coroutines) Run bash $ xmake coroutine -n switch Macosx (x86_64) tbox: 10000000 switches in 205 ms, 48780487 switches per sec 继续阅读 »
2016-11-22 Klaus Ma
Build make Unit test make check WHAT=pkg/kubectl make check WHAT=pkg/kubectl KUBE_TEST_ARGS="-run TestOfferStorage" GOFLAGS=-v 继续阅读 »
2016-08-16 MoreFreeze
I spend some day to learn a powerful tool that is called parallel. It can help you split several tasks into multiple groups to run them parallel. Get into the car! 继续阅读 »
2016-05-25 Li Shuai
也许你会偶然发现Python的多线程程序使用Ctrl-C杀不掉,必须拿到pid用kill -9才能干掉,研究这个问题的原因可以使得对Python多线程的信号处理及线程的退出机制有更好的理解。 假如有一个Python写成的用多线程模拟生产者-消费者的程序,代码如下: class Producer(threading.Thread): def run(self): global count while True: if cond.acquire(): if count > 1000: cond.wa 继续阅读 »
2016-05-11 MoreFreeze
git
Today I want to share a code snippet. It used for reminding me run rake preview before git commit. 继续阅读 »