当前位置:网站首页>[rust daily] first release of mnemos on April 20, 2022
[rust daily] first release of mnemos on April 20, 2022
2022-06-10 15:06:00 【MikeLoveRust】
Ruby yjit use Rust Rewrite the PR Submitted
Before matz Say you prefer zig, But respecting the decisions of the community introduces Rust .
introduce Rust Of Value proposition :
- Rust The type system will find more errors early , Helps prevent new errors
- Easier to manage YJIT Growing complexity
- Easier to maintain the code base , Less “footguns”
- Easier for novices , Because the compiler catches more errors
- Better performance , Because more complex optimizations can be achieved
- Easier to add support for new platforms ( This adds complexity )
- Rust Have mature and easy to install tools , For example, source code formatter and editor plug-ins
- Rust As a programming language community , There is great enthusiasm behind it . This may translate into a response to YJIT and Ruby More enthusiasm .
YJIT The new Rust Version and C The version has reached the same level , Because it passed all CRuby test , Able to run all YJIT The benchmark , And the execution is similar to C edition ( Because it works in the same way and mostly generates the same machine code ). Some design improvements have even been added , For example, a finer grained constant failure mechanism , It's expected that this will help Ruby on Rails Applications have a significant impact .
https://github.com/ruby/ruby/pull/5826
Previous discussions https://bugs.ruby-lang.org/issues/18481
Use Rust and React Create rich text editor
stay Fiberplane, The author recently encountered an interesting challenge : Their libraries exceed those we use for rich text editors . They used to use Slate.js —— A good editor , But when implementing our own rich text primitives for collaborative editing , Find ourselves their primitives and Slate The disconnect between our data models is an obstacle to some extent . So I decided Use Rust and React Create rich text editor .
Original reading :https://fiberplane.dev/blog/creating-a-rich-text-editor-using-rust-and-react/
MnemOS First release
MnemOS v0.1.0 Version release , It's a small universal operating system , use Rust To write .MnemOS Designed for restricted hardware , Including microcontrollers .
at present ,Adafruit Feather nRF52840 Express Is the only supported kernel hardware platform . Support for other goals and architectures is planned .
Kernel code repository :https://github.com/jamesmunns/pellegrino
Details please see :https://jamesmunns.com/blog/mnemos-initial-release/
fast_fp project
fast_fp Provides a set of primitive types , Support for fast math compiler optimization for many operations . These optimizations allow the compiler to relax IEEE 754 Some of the requirements of floating-point arithmetic to potentially generate faster code .
Examples of use :
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);Project address :https://github.com/standard-ai/fast_fp
From Daily Group @Jancd
边栏推荐
- 100003字,带你解密 双11、618电商大促场景下的系统架构体系
- 一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue
- How to solve the problem that SVN cannot open the URL address
- 微信小程序 颜色渐变
- Wechat applet date comparison, calculation days
- Kubernetes 1.24:statefulset introduces maxunavailable copies
- 【云原生 | Kubernetes篇】深入RC、RS、DaemonSet、StatefulSet(七)
- 2022第十四届南京国际人工智能产品展会
- We media video Hot Ideas sharing
- 2022 the 15th Nanjing International Digital Industry Expo
猜你喜欢

Meta公司新探索 | 利用Alluxio数据缓存降低Presto延迟

Day10/11 recursion / backtracking

二分查找详解

This article introduces you to j.u.c's futuretask, fork/join framework and BlockingQueue
![[registration] to solve the core concerns of technology entrepreneurs, the online enrollment of](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[registration] to solve the core concerns of technology entrepreneurs, the online enrollment of "nebula plan open class" was opened

svn外网打不开url地址怎么解决

4. Meet panuon again UI. Title bar of silver form

初试c语言之第二次笔记

Create a space of local value together. In 2022, China successfully held the "one hundred cities tour · Ningbo Station" for commercial distribution

In what scenario can we not use the arrow function?
随机推荐
自推荐-深入理解RUST标准库内核
Kubernetes 1.24: 避免为 Services 分配 IP 地址时发生冲突
How the WordPress administrator user name was leaked
Explain the opencv function filter2d() in detail and remind you that the operation it does is not convolution but correlation operation
2022 the 15th Nanjing International Digital Industry Expo
面试题详情
[logodetection data set processing] (2) draw the label box of the training set picture
Collision detection unity experiment code
OpenTelemetry Metrics发布候选版本
数据库创建触发器的问题
自媒体视频热门思路分享
一款完整的多用户微信公众平台开发源码,带文档免费分享
Sanzi chess (implemented in C language)
Information theory and coding 2 final review BCH code
信息论与编码2 期末复习-BCH码
We media video Hot Ideas sharing
竟然还有人说ArrayList是2倍扩容,今天带你手撕ArrayList源码
2022第十五届南京国际数字化工业博览会
小程序实现全局数据共享
KaTeX问题 —— csdn编辑时中打出等号对齐的样式