Skip to content
#

libuv

Here are 173 public repositories matching this topic...

ssrlive
ssrlive commented Aug 27, 2019

也算一个总结, 提醒后来人少走弯路.

  • 写入 socket 时的内存管理
    uv_write 函数写网口时, 写入数据的内存必须由你管理, 在 回调函数 uv_write_cb 内部释放. 如果你不信邪, 在 uv_write 执行完以后马上释放, 恭喜你掉坑里了. 我就在这坑里呆了一星期. 因为这么干的结果是, 在 Windows 下一切正常, 在 Linux 下会随机写失败. 估计 Windows 对这块写内存复制了一份以增加安全性, 类 unix 平台就不管你死活了. 这点差异性就足以逼你发疯痛不欲生了.

  • 接收数

AlexDaniel
AlexDaniel commented Jun 18, 2019

Example here:
https://github.com/MoarVM/MoarVM/blob/8e078a2fed5225332ed5916d9ce8d3f14954a2fc/src/core/threads.c#L171

The error message appeared during Blin run:

🥞🥞🥞 Testing Benchmark::Plot (new)
⏳ 901 out of 1305 modules processed
🥞🥞🥞 Testing App::Pray (new)
🥞🥞🥞 Testing Cro::HTTP (new)
🥞🥞🥞 Testing Auth::SCRAM (new)
🥞🥞🥞 Testing CPAN::Uploader::Tiny (new)
MoarVM panic: Could not spaw

游戏服务器框架,网络层分别用SocketAPI、Boost Asio、Libuv三种方式实现, 框架内使用共享内存,无锁队列,对象池,内存池来提高服务器性能。还包含一个不断完善的Unity 3D客户端,客户端含大量完整资源,坐骑,宠物,伙伴,装备, 这些均己实现上阵和穿戴, 并可进入副本战斗,多人玩法也己实现, 持续开发中。

  • Updated Jul 7, 2020
  • C++
ColinFay
ColinFay commented Nov 27, 2019

In the Comparison Vignette, path_norm() is said to approximate normalizePath().

It seems that path_norm() is more the equivalent of path_abs() though:

library(fs)
normalizePath(".")
#> [1] "/private/var/folders/5z/rm2h62lj45d332kfpj28c8zm0000gn/T/RtmpdjTe5h/reprex171265ac46d6f"
path_norm(".")
#> .
path_abs(".")
#> /private/var/folders/5z/rm2h62lj45d332kfpj28c8zm0000gn/T
glennsl
glennsl commented Mar 29, 2020

Luv.Loop.run returns a boolean value whose meaning does not seem to be documented and, judging by the examples, in most cases is not used, but usually just ignored.

I would argue that using ignore without any type annotation is very error-prone because it sets the trap for accidental partial application. It should be considered bad style IMO, and therefore should be avoided particularly i

ORESoftware
ORESoftware commented Jan 4, 2019

Questions/suggestions:

  1. Is this lib alpha beta or ready to go?

  2. Could you create a git repo on Github that we can clone that has a basic server that does some async I/O with this lib? Example git repos that people can clone are super nice because you can get up and running very quickly and you don't need to run some scaffolding tool from the command line.

I come from the land of Node.

Improve this page

Add a description, image, and links to the libuv topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the libuv topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.