Alex Fan

Results 12 issues of Alex Fan

Hi there, I am testing gazebo-11.7.0 on Gentoo. With cmake 3.22 and BUILD_TESTING=TRUE, it fails with ``` In file included from /var/tmp/portage/sci-electronics/gazebo-11.7.0-r1/work/gazebo-11.7.0/gazebo/common/Plugin.hh:41, from /var/tmp/portage/sci-electronics/gazebo-11.7.0-r1/work/gazebo-11.7.0/gazebo/common/Plugin_TEST.cc:18: /var/tmp/portage/sci-electronics/gazebo-11.7.0-r1/work/gazebo-11.7.0/gazebo/physics/PhysicsTypes.hh:26:10: fatal error: gazebo/msgs/poses_stamped.pb.h: No such...

I know this is an extremely minor problem in readme file and I might seem overly picky, but it does really confuse me for several minutes until running tree -L...

tested on riscv64 and amd64 machines, I am sure ARM should also work. char on some machines like ARM and RISC-V is by default unsigned. Using signed literals will cause...

直觉上task模块只需要提供当前task的信息就好了,然后处理都放在syscall中。可是由于TASK_MANAGER要exclusive access,对于不想要拷贝只想引用的task信息,比如当前task的memset,就没法返回引用,比如以下简化的代码就会有问题 ``` fn get_cur_memset() -> &memset { let inner = TASK_MANAGER.exclusive_access(); & inner.cur_task.memset } ``` 这就导致一堆syscall的东西必须放在task里面,感觉不太好 我的尝试: ``` fn get_cur_memset(inner: &'a appmanager_inner) -> &'a memset { ... } ```...

question

在看[practical intro to macros](https://danielkeep.github.io/practical-intro-to-macros.html)时看到了这个操作 ``` let mut swap_tmp = next; for i in (0..2).rev() swap(&mut swap_tmp, &mut self.mem[i]); ``` 作者声称用swap的好处是使得上面的代码也可以作用于non-copyable的类型。swap基于unsafe的操作,想问下swap这种使用方式是通常做法么?想不出对 无法copy的类型进行swap操作会用在哪里?储存引用/指针,然后直接swap引用不是更好

question

Hi there, I open this issue to ask about the relation between the in-tree packages and this overlay. I want to clarify this because I am testing ROS for riscv...

with ``` header= '#include' '#include' ``` scons will generate it in one single line `'#include#include`, causing wrong config and bug ref: https://bugs.gentoo.org/870850

topic-compiling

我按照stbiw的doc加入一个.cpp文件,然后只在那里定义来生成implementation,结果是成功的。 但是有洁癖的我很奇怪为什么必须有一个新的cpp?我提交的这样不添加.cpp,直接使用.h可以编译,但在链接时会提示找不到stbiw的函数,可是明明链接了stbiw.a了啊 报错如下 cmake verbose的输出 ``` Scanning dependencies of target stbiw make[2]: Leaving directory '/home/alexfan/Documents/parallel101/build' /usr/bin/make -f stbiw/CMakeFiles/stbiw.dir/build.make stbiw/CMakeFiles/stbiw.dir/build make[2]: Entering directory '/home/alexfan/Documents/parallel101/build' [ 20%] Linking CXX static library libstbiw.a...

torch.compile fails for SparseTensor.matmul torch version: 2.6.0 pytorch_sparse version: 0.6.18 py312hf276b08_7 from conda-forge reproducer: ``` import torch from torch_sparse import SparseTensor import scipy.sparse as sp import numpy as np def...

Hi, BrainPy team While modelling synapse connections with delay, I discovered the delay in FullProjAlignPost* is always off by some steps compared to the value passed as argument. I tested...

bug