李冬冬

Results 10 comments of 李冬冬

Manjaro with 5.9.1 kernel, all tests passed, didn't work, too. edit: Switched to 5.8.16, it works. WTF!!!

@mainrs See this [docs](https://man7.org/linux/man-pages/man2/pread.2.html) for pread(2)/pwrite(2): > The pread() and pwrite() system calls are especially useful in multithreaded applications. They allow multiple threads to perform I/O on the same file...

@newsbielt703 For Example,the date formatting needs to be localized,the default is in English,which is so unreadable for non-native English speakers.

Here's my solution: use [num_derive](https://crates.io/crates/num-derive) derive all enums : `#[derive(FromPrimitive, ToPrimitive)]`. But you must handwrite all enums in bulid script which is inconvenient.

我觉得最好是像其他基于LSP的VSCode插件那样,用一个原生语言比如C++,Rust写一个服务器,插件和它通信控制它播放声音。插件在安装的时候下载预编译的可执行文件,启动的时候启动它作为一个后台进程。

I'm a [rust analyzer](https://github.com/rust-analyzer/rust-analyzer) user, too. Your ideas are already implemented in RA. I guess it's implementation may be inspireful. Another idea is, the parameter inlay hints is pretty useful...

The parameter inlay hint should be omitted when it meets some rules. Like: ```cpp struct Bar {}; void foo(Bar* bar); // ... foo(/*inlay hint: bar*/ &bar); // it should be...

@adriangb There's a framework [rweb](https://github.com/kdy1/rweb) could do this, which is based on [warp](https://github.com/seanmonstar/warp). But rweb seems not very popular. We still need this feature in popular web frameworks.

```Rust unsafe fn spawn_inner Task { // Remove the task from the set of active tasks when the future finishes. let entry = active.vacant_entry(); let index = entry.key(); let state...