当前位置:网站首页>【Rust日报】2022-04-20 MnemOS 首次发布
【Rust日报】2022-04-20 MnemOS 首次发布
2022-06-10 14:43:00 【MikeLoveRust】
Ruby yjit 用 Rust 重写的 PR 已经提交
之前 matz 说自己更喜欢 zig,但尊重社区的决定引入 Rust 。
引入 Rust 的 价值主张:
- Rust 类型系统将及早发现更多错误,有助于防止新错误
- 更容易管理 YJIT 日益增长的复杂性
- 更容易维护代码库,更少的“footguns”
- 对新手来说更容易,因为编译器会捕获更多错误
- 更好的性能,因为可以实现更复杂的优化
- 更容易添加对新平台的支持(这会增加复杂性)
- Rust 拥有成熟且易于安装的工具,例如源代码格式化程序和编辑器插件
- Rust 作为一个编程语言社区,背后有着极大的热情。这可能会转化为对 YJIT 和 Ruby 的更多热情。
YJIT 的新 Rust 版本与 C 版本达到了同等水平,因为它通过了所有 CRuby 测试,能够运行所有 YJIT 基准测试,并且执行类似于 C 版本(因为它以相同的方式工作并且大部分生成相同的机器代码)。甚至加入了一些设计改进,例如更细粒度的常量失效机制,预计这将对 Ruby on Rails 应用程序产生重大影响。
https://github.com/ruby/ruby/pull/5826
之前的讨论 https://bugs.ruby-lang.org/issues/18481
使用 Rust 和 React 创建富文本编辑器
在 Fiberplane,作者最近遇到了一个有趣的挑战:他们的库超出了我们用于富文本编辑器的库。他们曾经使用 Slate.js —— 一个很好的编辑器,但是当实现我们自己的富文本原语进行协作编辑时,发现我们自己他们的原语和 Slate 的数据模型之间的脱节在某种程度上是一个障碍。所以决定 使用 Rust 和 React 创建富文本编辑器。
原文阅读:https://fiberplane.dev/blog/creating-a-rich-text-editor-using-rust-and-react/
MnemOS 首次发布
MnemOS v0.1.0 版本发布,它一个小型的通用操作系统,用Rust编写。MnemOS是为受限硬件设计的,包括微控制器。
目前,Adafruit Feather nRF52840 Express是唯一支持的内核硬件平台。对其他目标和架构的支持正在计划中。
内核代码仓库:https://github.com/jamesmunns/pellegrino
详情请看:https://jamesmunns.com/blog/mnemos-initial-release/
fast_fp 项目
fast_fp 提供了一组原始类型,支持对许多操作进行快速数学编译器优化。这些优化允许编译器通过放宽 IEEE 754 浮点运算的一些要求来潜在地生成更快的代码。
使用示例:
use fast_fp::{FF32, ff32};
// Construct instances of the fast type from std's type using the convenience
// wrapper `ff32` (or `ff64`)
let four = ff32(4.0);
// or using the `From`/`Into` trait
let five: FF32 = 5.0.into();
assert_eq!(four + five, ff32(9.0));
// Most ops are also implemented to work with std's floats too (including PartialEq).
// This makes working with literals easier.
assert_eq!(five + 6.0, 11.0);
assert_eq!(five * 2.0, 10.0);
// Functions can be made generic to accept std or fast types using `num-traits`
use num_traits::real::Real;
fn square<T: Real>(num: T) -> T {
num * num
}
assert_eq!(square(3.0_f32), 9.0);
assert_eq!(square(five), 25.0);
// If the nalgebra feature (with version suffix) is enabled, interop with
// nalgebra is supported
# #[cfg(feature = "nalgebra_v029")]
use nalgebra_v029 as na;
# #[cfg(feature = "nalgebra_v029")]
assert_eq!(na::Matrix3::repeat(four).sum(), 36.0);项目地址:https://github.com/standard-ai/fast_fp
From 日报小组 @Jancd
边栏推荐
- Ue5 how to convert screen coordinates to world coordinates and World Directions
- How the WordPress administrator user name was leaked
- Kotlin bubbling algorithm, Gaud map filters out the data whose distance between two points is less than 50, and does not repeat the display
- AUTOCAD——设置文字间距与行距
- BigDecimal 去除末尾多余的0
- 竟然还有人说ArrayList是2倍扩容,今天带你手撕ArrayList源码
- 【離散數學期複習系列】二、一階邏輯(謂詞邏輯)
- SIGIR 2022 | 港大、武大提出KGCL:基于知识图谱对比学习的推荐系统
- The interview at the big factory was held at 10:00 a.m. and came out at 10:09 a.m. the question was really too
- jdbc对数据库增删改查
猜你喜欢

Binary tree and figure 1

【LogoDetection 数据集处理】(3)将训练集按照类别划分为多个文件夹

The interview at the big factory was held at 10:00 a.m. and came out at 10:09 a.m. the question was really too

初试c语言之第二次笔记

Simulated 100 questions and online simulated examination for safety production management personnel of hazardous chemical production units in 2022

【离散数学期复习系列】六、树

KaTeX问题 —— csdn编辑时中打出等号对齐的样式

【离散数学期复习系列】三、集合的概念及运算

UE5如何將屏幕坐標轉為世界坐標和世界方向

【报名】解决科技创业者核心关切,「星云计划公开课」线上招生开启
随机推荐
Generate a dataset of training vectors for doc2vec
列表、数组和张量之间的相互转化
Blogger Confessions
洞見科技入選「愛分析· 隱私計算廠商全景報告」,獲評金融解决方案代錶廠商
Gorm set foreign key
Consumption mode of Message Oriented Middleware
【LogoDetection 数据集处理】(3)将训练集按照类别划分为多个文件夹
what‘t the meaning of “de facto“
How to implement the association between interfaces in JMeter?
这个牛逼的低代码生成器,现在开源了!
Collision detection unity experiment code
WordPress的管理员用户名是如何泄露的
2022山东省安全员C证复训题库及在线模拟考试
New exploration of meta company | reduce Presto latency by using alluxio data cache
Euclidean algorithm for finding the greatest common factor
How can JMeter parameterization be implemented?
Meta公司新探索 | 利用Alluxio数据缓存降低Presto延迟
博主自白
一次主从表集成流程开发过程
Insight technology was selected into the "Aijian · privacy computing manufacturer panorama report" and was rated as a representative manufacturer of financial solutions