< 返回版块

苦瓜小仔 发表于 2025-06-09 10:16

Tags:日报

Stackoverflow 2025 开发者调查问卷已开始

剧透:今年很多 AI 问题,不想回答的问题可以直接下一项。

问卷直达链接:https://stackoverflow.az1.qualtrics.com/jfe/form/SV_1MNG2CYTY2AzkAm

Reddit:https://www.reddit.com/r/rust/comments/1l47u9k/stackoverflow_survey/

公告:跨平台的纯 Rust 音频 IO 库 cpal 正在寻找新的维护者

阅读:https://github.com/RustAudio/cpal/issues/981

Reddit:https://www.reddit.com/r/rust/comments/1l5ukpb/cpal_looking_for_maintainers/

文章:《Linebender: A plan for SIMD》

作者:Raph Levien

关于 Rust 语言中 SIMD(单指令多数据)编程的计划。

文章指出 SIMD 在处理大量数据时可以显著提高速度,尤其是在图像处理、媒体编解码和音频处理等领域。

作者提出了一个目标,即为 Rust 程序员提供一个易于使用且安全的 SIMD 编程库,使其能够在各种 CPU 上实现接近峰值的性能。

该计划包括构建一个轻量级的库,支持从 64 位到 512 位的 SIMD 宽度,以及各种整数和浮点数类型。

此外,作者还讨论了如何通过代码生成来减少编译时间,并提出了对 SIMD 编程的一些具体实现方法和未来的发展方向。

阅读:https://linebender.org/blog/a-plan-for-simd/

Reddit:https://www.reddit.com/r/rust/comments/1l5yf3b/a_plan_for_simd/

文章《Probably Faster Than You Can Count: Scalable Log Search with Probabilistic Techniques》

作者:Ido Duckuks

本文探讨了在处理海量日志数据时,如何使用概率技术来提高搜索效率。

文章介绍了 Bloom Filters 和 HyperLogLog++ 算法。

Bloom Filters 用于快速判断某个值是否存在于某个分片中,从而减少不必要的数据扫描。

HyperLogLog++ 算法则用于高效估计唯一元素的数量,避免了传统方法在大规模数据集上面临的内存和性能瓶颈。

这些技术在大规模日志处理系统中表现出色,能够显著提高查询性能和内存效率。

阅读:https://blog.vega.io/posts/probabilistic_techniques/

Reddit:https://www.reddit.com/r/rust/comments/1l6bxg2/probably_faster_than_you_can_count_scalable_log/

文章《Zero-cost Functional Records in Rust》

作者:Jon Wolski

介绍 Rust 如何支持零成本的函数式风格。

阅读:https://ecency.com/rust-lang/@jonwolski/zero-cost-functional-records-in-rust

Reddit:https://www.reddit.com/r/rust/comments/1l5xvvz/zerocost_functional_records_in_rust/

Redstone-ml - 高性能动态自动微分 Rust 库

作者开发了一个类似 PyTorch/JAX 的 Rust 机器学习库,支持 N 维数组、线性代数运算(含 GPU 和 CPU 加速)以及动态自动微分。

该项目受 PyTorch 和 NumPy 启发,旨在学习 Rust 和机器学习,未来计划增加 Metal、CUDA、SIMD 和 BLAS 支持,并实现基础模型。

仓库:https://github.com/BhavyeMathur/redstone-ml

Reddit:https://www.reddit.com/r/rust/comments/1l5vptg/media_redstone_ml_highperformance_ml_with_dynamic/

simply_colored - 用于打印彩色文本的最简单的库

源代码大约有 50 个 constants,它们都是简单的 &str 。

#![no_std],没有 trait 抽象、没有依赖、没有宏。

// simply_colored 
format!("{BLUE}{BOLD}Bold{RESET} blue text!");

// 其他库
format!("{} blue text!", "Bold".bold().bright_blue());

仓库:https://github.com/nik-rev/simply-colored

Reddit:https://www.reddit.com/r/rust/comments/1l6l8ns/simply_colored_is_the_simplest_crate_for_printing/

Xylo - 创意编程和过程艺术语言

Xylo 是一种用于创意编程和过程艺术的函数式领域特定语言,可通过编写 .xylo 文件生成图像。

该语言用 Rust 实现,并运行一个解释器,将代码编译成一系列形状,然后渲染为 PNG 图像。所有代码都精简为一个根函数。

仓库:https://github.com/giraffekey/xylo

Reddit:https://www.reddit.com/r/rust/comments/1l6ja4l/i_wrote_a_programming_language_in_rust_for/

RS - Rust 编写的 R 语言更快实例化的类库

它提供了更快的类定义和实例化方法,支持字段类型验证,但不支持继承,而是推荐使用组合。

仓库:https://github.com/avhz/RS

Reddit:https://www.reddit.com/r/rust/comments/1l6q4h7/rs_fast_classes_for_r/

讨论:让 Rust 更简单

文章:https://chadnauseam.com/coding/pltd/keep-rust-simple

Reddit:https://www.reddit.com/r/rust/comments/1l5txr0/keep_rust_simple/

讨论:不建议向新手推荐不活跃的 Rocket?

评论区里更推荐 Axum、Salvo、Poem 等 Web 框架库。

Reddit:https://www.reddit.com/r/rust/comments/1l64hnz/reports_of_rockets_revival_are_greatly_exaggerated/

--

From 日报小组 苦瓜小仔

社区学习交流平台订阅:

评论区

写评论
golanguage 2025-06-10 09:10

是不是xilem那帮人已经迷失方向了,四下里摆摆闲棋冷子,因为不知道理想的GUI应该什么样。

1 共 1 条评论, 1 页