tsudzuki

Results 9 issues of tsudzuki

而不是什么也没有

t:enhancement
t:feature
N
s:console

### 问题描述 ``` 2022-04-22 20:16:31 E/main: Failed to init MiraiConsole. net.mamoe.mirai.console.internal.util.ServiceLoadException: Could not load service org.laolittle.plugin.SimpleTarot. at net.mamoe.mirai.console.internal.util.PluginServiceHelper.loadService(PluginServiceHelper.kt:60) at net.mamoe.mirai.console.internal.util.PluginServiceHelper.loadAllServices(PluginServiceHelper.kt:42) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl$extractPlugins$findAllInstances$2.invoke(BuiltInJvmPluginLoaderImpl.kt:146) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl$extractPlugins$findAllInstances$2.invoke(BuiltInJvmPluginLoaderImpl.kt:141) at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210) at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:314) at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)...

M
t:problem
s:console

``` >> a = a a Variable references itself. >> a = aa >> a thread 'main' has overflowed its stack fatal runtime error: stack overflow zsh: abort kalker ```

Currently, winit has implemented this api on macOS and Linux (KDE) which could be found on [link](https://docs.rs/winit/latest/winit/window/struct.Window.html#method.set_blur). The api marks Windows as **Unsupported**, which is quite confusing. But it works...

`AtriBot`内有很多Arc wrapper, 比如`Client`, `Group`, `Friend`... 他们的数据转移到插件的时候会先转换为`Managed`结构体 该转换包含了一次堆分配, 而`Arc`本身就是将数据存入堆中的(也就是变成了Box\) 考虑添加`ManagedArc`, 使用`Arc::into_raw`与`Arc::from_raw`, 减少堆分配(释放)

# 指令系统 ### 单指令 单个可以执行的指令 ```rust #[command(name = "x", help="a")] async fn a(arg1: ..) -> Result { } ``` 调用方式: `/x arg1..` ### 复合指令 ```rust #[command(name = "x")] mod a...

```rust app.add_plugins((DefaultPlugins, TemporalAntiAliasPlugin, OutlinePlugin)); commands.spawn((Camera3dBundle { transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y), ..default() }, TemporalAntiAliasBundle::default())); commands .spawn(PbrBundle { mesh: meshes.add(Mesh::from(Cube { size: 1.0 })), material: materials.add(Color::rgb(0.1, 0.1, 0.9).into()), transform: Transform::from_xyz(0.0, 1.0,...

## Motivation References to a `static mut` variable would become a hard error in rust 2024. ```rust #[inline] fn get_global() -> &'static Dispatch { if GLOBAL_INIT.load(Ordering::SeqCst) != INITIALIZED { return...

Hi. When I was using `inkwell` for code generation, I found that some operations (like div/rem) are divided into two functions because they require a sign flag to work. And...