HackerTrans
トップ新着トレンドコメント過去質問紹介求人

kingluo

no profile record

投稿

Coco: A simple stackless, single-threaded, and header-only C++20 coroutine lib

luajit.io
3 ポイント·投稿者 kingluo·7 か月前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·2 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·2 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·3 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·4 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·4 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·4 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·4 年前·0 コメント

[untitled]

1 ポイント·投稿者 kingluo·4 年前·0 コメント

コメント

kingluo
·4 年前·議論
Yes, if there is a call before the instruction, you should check if it changes the register you want. Particular case is particular analysis.
kingluo
·4 年前·議論
Yes, it does so in our company. The etcd is somehow heavyweight to be the configuration center. And event more, the postgresql could be deployed in de-centralized cluster just like what etcd does, via some tools (e.g. raft-based failover agents) and configurations (I helped my customers to achieve this goal, but the solution is not open source yet).
kingluo
·4 年前·議論
Yes, the DP (data plane) in the demo acts as reverse proxy, it routes the downstream http request to the upstream according to the configuration. The CP (control plane) just translates the json configuration to sql and get it executed in the postgresql.
kingluo
·4 年前·議論
It's useful to set arbitrary breakpoint in any lua file to inspect the context infomation, e.g. print local variables if some condition satisfied.

In this way, you don't need to modify the source codes of your project, and just get diagnose infomation on demand, i.e. dynamic logging.

This library supports setting breakpoints within both interpretd function and jit compiled function. The breakpoint could be at any position within the function. The function could be global/local/module/ananymous.

Features:

set breakpoint at any position

dynamic breakpoint

Customized breakpoint handler

you could define one-shot breakpoint

work for jit compiled function

if function reference specified, then performance impact is only bound to that function

if all breakpoints deleted, jit could recover