Collide

Results 16 comments of Collide

I meet the same bug. clap version: - clap-4.0.22 - clap_complete-4.0.5 The `Cli`: [cli.rs](https://github.com/TD-Sky/conceal/blob/zsh-complete/src/cli.rs) The code to generate completions: [build.rs](https://github.com/TD-Sky/conceal/blob/zsh-complete/build.rs) The zsh completion script: [_cnc.rs](https://github.com/TD-Sky/conceal/blob/zsh-complete/completions/_cnc) ## Error ```zsh _arguments:comparguments:327: doubled...

Neovim added `exrc` option at 0.9 but project.nvim hasn't benefited from it. I guess it's because neovim sources exrc during startup instead of opening a new buffer. Would you consider...

> 当然,这个例子是一种简单的理想情况,实际的多处理器计算机系统中运行的进程行为会很复杂,除了并行执行,还有同步互斥执行、各种/O操作等,这些都会对调度策略产生影响。 /O -> I/O

> 而其他一些策略,比如LRU置换,最优置换等,就不会遇到这个问题。其原因是,LRU等具有栈特性(stack property),即数量为 m+1 的物理页帧一定包括数量为 m 的物理页帧的数据内容。因此,当增加物理页帧数量时,访存命中率至少保证不变,且 ~~由~~ **有** 可能提高。而FIFO策略、时钟策略等没有栈特性,因此可能出现异常行为。

> 注意使用`translated_ref(mut)`的前提是类型`T`不会跨页,我们通过设置`SignalAction`对齐到 16 字节来保证这一点。 不会跨页跟对齐有什么关系?

```rust unsafe fn __switch(current_task_cx_ptr: *mut TaskContext, next_task_cx_ptr: *const TaskContext) { SWITCH_TIME_START = get_time_us(); switch::__switch(current_task_cx_ptr, next_task_cx_ptr); SWITCH_TIME_COUNT += get_time_us() - SWITCH_TIME_START; } ``` 编程题4的此处,为什么`__switch`跳完栈切换完指令后,仍能完成增加计时的运算?

`syscall::fs::sys_write`内,如何保证不会有字符的前后几个字节散布不同的两个物理页内?

> I believe #4612 may resolve this issue. I ran into this while creating https://github.com/davvid/garden so I figured we might as well fix it (rather than [workaround it](https://davvid.github.io/garden/commands.html#zsh)). > >...

> @TD-Sky I spent some minutes trying to compile your project and looking into what might be u. It doesn't look like the project you shared (conceal) compiles in the...