天天看點

【Rust日報】 2019-08-08:q 架構 - 通用隊列自動機運作時實作

lzjd-rs - Lempel-Ziv Jaccard Distance 算法的 Rust 實作庫

這個庫的作用是這個,随着資料的增多,想要從各種資料中識别出使用者的關鍵(敏感)資訊,就越來越困難,必須使用一定的工具來進行自動化處理。而這個算法就在這個過程中起作用。詳情請查閱:https://tweedegolf.nl/blog/33/implementing-lempel-ziv-jaccard-distance-lzjd-in-rust

Repo: https://github.com/tweedegolf/lzjd-rs

在使用現有的Rust設施模拟 HKT(Higher-Kinded Types )上的嘗試

屬于研究範疇了,作者還有後續文章,請持續關注。

Read More: https://gist.github.com/edmundsmith/e09d5f473172066c0023ef84ee830cad

Kate 編輯器對 Rust rls 的支援已經落實了

Kate,對,就是原來 KDE 中的那個 Kate,現在已經在其主分支上支援了 Rust 的 rls。想嘗鮮的可以下下來試一下。

Read More: https://kate-editor.org/post/2019-08-07-kate-initial-rust-lsp-support/

NRC 大佬的部落格文章,對 tikv 的 futures 0.1 升到 0.3 過程的記錄

之前推過,今天社群又比較關心,故再次推一下。

Read More: https://tikv.org/blog/client-futures/

fractals_rust - 生成分形渲染圖

可以并行渲染,适合新手練習。

【Rust日報】 2019-08-08:q 架構 - 通用隊列自動機運作時實作

Repo:https://github.com/Smoltbob/fractals_rust

boggle-solver - 通過解決 boggle 問題來展示 crossbeam-deque

Boggle 遊戲是一種找字遊戲,說明在[這裡](https://en.wikipedia.org/wiki/Boggle),作者通過嘗試将多線程與 crossbeam-deque 配合使用實作了高性能的解題武器。

Repo: https://github.com/elfsternberg/boggle-solver

q 架構 - 通用隊列自動機運作時實作

包含:

  • A event based Descrete Event Simulator(DES)
  • A Queue Network, consists of Servers(Operator), Queues(Communication Channel)

感覺已經超出了小編的認知了,誰能來講一下?

比如,它可以對斐波拉契公式映射成下面這個:

Fib(n) = Add ( Fib(n -1 ) , Fib (n-2), Fib(0) = 0, Fib(1) = 1.

  cargo run -- 5
@0000000000 queue = []
@0000000005 queue = [1]
@0000000007 queue = [1, 1]
@0000000012 queue = [2]
@0000000013 queue = [2, 1]
@0000000015 queue = [3]
@0000000016 queue = [3, 0]
@0000000018 queue = [3]
@0000000018 queue = [3, 0]
@0000000019 queue = [3]
@0000000020 queue = [3, 1]
@0000000023 queue = [4]
@0000000023 queue = [4, 1]
@0000000024 queue = [5]
@0000000025 queue = [5, 0]
@0000000027 queue = [5]
@0000000027 queue = [5, 0]
@0000000028 queue = [5]
@0000000029 queue = [5, 0]
@0000000030 queue = [5, 0]
@0000000030 queue = [5, 0]
@0000000031 queue = [5]
Result 5

           

複制

Repo: https://github.com/max6cn/q

From 日報小組 Mike

日報訂閱位址:

獨立日報訂閱位址:

  • Telgram Channel
  • 阿裡雲語雀訂閱
  • Steemit
  • GitHub

社群學習交流平台訂閱:

  • Rust.cc 論壇: 支援 rss
  • Rust Force: 支援 rss
  • 微信公衆号:Rust 語言學習交流