• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Rust 日报2022-03-27 Google对25名Rust开源贡献者做出奖励

武飞扬头像
Rust语言中文社区
帮助1

Google对25名Rust开源贡献者做出奖励

Rust 是系统级编程语言,重点关注内存安全。Google 在一些项目中使用了 Rust:包括 Android、Fuchsia 和 ICU4X;并一直参与在 Linux 内核中评估 Rust 的工作。Google 也是 Rust 基金会的创始成员。

部分列表(经允许)如下:

Winner Project
antoyo For work on rustc_codegen_gcc
Asherah Connor For maintaining comrak
David Hewitt For maintaining PyO3
Dirkjan Ochtman For maintaining rustls and quinn
Frank Denis For maintaining rust-ed25519-compact
Gary Guo For maintaining Rust for Linux
Jack Grigg For integrating RustCrypto into Fuchsia
Jack Huey For highly involved rust compiler work fixing a large number of crashes around higher-kinded types.
Joe Birr-Pixton For building rustls
Joshua Nelson For improving the developer workflow for contributing to Rust itself
Lokathor For creating tinyvec and bytemuck
Mara Bos For work on the Rust Libraries Team and the 2021 Rust Edition
Nikita Popov For maintaining the Rust compiler’s LLVM backend
Pietro Albini For maintaining crucial Rust infrastructure and working on the Rust core team
Ricky Hosfelt For maintaining cargo-outdated
Sébastien Crozet For creating dimforge
Simonas Kazlauskas For maintaining the Rust compiler’s LLVM backend

找了几次,没在原文中找到到底奖了啥;)不过,Google Open Source Peer Bonus 主页有:一张预付借记卡和一封奖励信 :D

另外,社区成员说 Gary Guo 大佬是中国人~

地址:https://opensource.谷歌blog.com/2022/03/Rewarding-Rust-contributors-with-Google-Open-Source-Peer-Bonuses.html

Rust移动开发与跨平台模式探究

社区张汉东老师关于 Rust 在移动开发和跨平台模式方面的探究,大纲如下:

  • Rust 语言 对 iOS 和 Android 平台支持状态

  • Rust 用于移动开发的几种方式

  • Android 官方支持 Rust 的方式

  • 给 Apple 的一封公开信:请用 Rust 替换 Objective-C

学新通

地址:https://zhuanlan.zhihu.com/p/484269271

bombs:单生产者多消费者通信类型

其中 Fuse 是生产者,Bomb 是消费者。

使用指南:

  1.  
    // Create a new fuse and bomb pair.
  2.  
    let (fuse, bomb) = Bomb::new();
  3.  
     
  4.  
    // Clone `bomb` into thread.
  5.  
    let bomb_clone = bomb.clone();
  6.  
    thread::spawn(move || {
  7.  
    loop {
  8.  
    // Do some stuff...
  9.  
     
  10.  
    if let Some(_) = bomb_clone.exploded() {
  11.  
    // Received close signal, break.
  12.  
     
  13.  
    // Clean up data values...
  14.  
     
  15.  
    break;
  16.  
    }
  17.  
    }
  18.  
    });
  19.  
     
  20.  
    // Create another thread.
  21.  
    // Move original `bomb` into thread.
  22.  
    thread::spawn(move || {
  23.  
    loop {
  24.  
    // Do some other stuff...
  25.  
     
  26.  
    if let Some(_) = bomb.exploded() {
  27.  
    // Received close signal, break.
  28.  
     
  29.  
    // Clean up data values...
  30.  
     
  31.  
    break;
  32.  
    }
  33.  
    }
  34.  
    });
  35.  
     
  36.  
    // Do some different stuff...
  37.  
     
  38.  
    // Send close signal.
  39.  
    let fire = fuse.light(());
  40.  
     
  41.  
    // Wait for all inner threads to close safely (checked by `Bomb` drop).
  42.  
    while !fire.extinguished() { }
  43.  
     
  44.  
    // Now safely quit the program.
学新通

GitHub:https://gitlab.com/nebneb0703/bombs

用Rust写个语言

使用 Rust 和 LALRPOP 从头开始实现一个 C 风格架构的编程语言。

视频:https://www.youtube.com/watch?v=OynJIFEsf3o

GitHub:https://github.com/eZanmoto/norpl

使用 Rust 实现 Brainfuck 语言。

Brainfuck 是 Urban Müller 于 1993 年创建的一种极简、深奥的编程语言。该语言以其极简主义著称,仅包含八个简单的命令、一个数据指针和一个指令指针。虽然它是完全图灵完备的,但它并不是为了实际使用,而是为了挑战和娱乐程序员。——来自维基百科

Brainfuck 的 Hello World 是这样的:

  1.  
    [> > > > <<<<-]
  2.  
    > .> . .. .> .<< .
  3.  
    >. .------.--------.> .>.

小编内心 OS:谁吃饱了撑的没事干搞这个^_^

地址:https://rtoch.com/posts/brainfuck-interpreter-implementation-part-1/

GitHub:https://github.com/CrazyRoka/brainfuck-interpreter

num2words:数字转文本

一个阿拉伯数字转自然语言的小工具。使用方法:

  1.  
    use num2words::num2words;
  2.  
    assert_eq!(num2words!(42), Ok(String::from("forty-two")));

也可以在命令行使用:

  1.  
    $ num2words 42
  2.  
    forty-two
  3.  
    $ num2words 10 --to EUR
  4.  
    ten euros

GitHub:https://github.com/Ballasi/num2words/

rust_android_ios寻找维护者

项目通过使用共享库来防止代码重复,保持完全原生的 UI 体验和对平台最新 API 的简单访问。它也非常灵活,允许在不同平台之间轻松迁移,包括传统的跨平台框架,如 Flutter 或 React Native。例如,您可以使用 Rust React Native 或 Rust Flutter 开发您的 MVP,然后迁移到原生 iOS/Android,而无需重写所有内容。您甚至可以使用 WebAssembly 或桌面应用程序将您的核心重用于 Web 应用程序(同样,您可以使用本机或跨平台框架,如 Electron)。

如果你有意向,可以在项目上开个 Issue,或给作者发邮件:mailto:ivanhp978@gmail.com

GitHub:https://github.com/ivanschuetz/rust_android_ios


From 日报小组 长琴

社区学习交流平台订阅:

  • Rustcc 论坛:支持 rss

  • 微信公众号:Rust 语言中文社区

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgcjhhj
系列文章
更多 icon
同类精品
更多 icon
继续加载