Borsh 安全高效的二进制序列化("Venus", 0.7), ("Earth", 1.0), ]); 多语言支持 Platform Repository Rust https://github.com/near/borsh-rs Typescript https://github.com/dao-xyz/borsh-ts Java, Kotlin, Scala https://github.com/near/borshj com/alexfilatov/borsh 欢迎使用 https://github.com/near/borsh-rs borsh.io •near/near-jsonrpc-client-rs •near/near-cli-rs •near/near-sdk-rs •near/workspaces-rs •near/borsh-rs •… 欢迎申请: 有偿的开源贡献者 Thank you !0 码力 | 21 页 | 3.35 MB | 1 年前3
 CeresDB Rust 生产实践 任春韶async/await ,提供了高效的异步锁、异步队列等。 3. Tokio 社区支持好。 生产实践 – Tokio Rust future preemption https://docs.rs/tokio/latest/tokio/#cpu-bound-tasks-and-blocking-code However, this kind of swapping can only happen k/language-features/generators.html 生产实践 – Async lock Req0 Req1 Req2 Memory cache https://docs.rs/tokio/1.28.2/tokio/sync/ struct.Mutex.html#which-kind-of-mutex-should-you-use 生产实践 – Async lock runtime Preemption 总结: Mixed workload: 碰到混合负载的时候,把 CPU 密集型任务隔离出去 会得到比较好的效果。 相关 Blog : 1. https://tokio.rs/blog/2020-04-preemption 2. https://www.influxdata.com/blog/using-rustlangs-async-tokio-runtime- for-cpu-bound-tasks/0 码力 | 22 页 | 6.95 MB | 1 年前3
 Rust分布式账务系统 - 胡宇针对读场景,写场 景分别优化 ● 稳定的底层 API ● 灵活的顶层 API ● 树状结构 ● 聚合查询 ● 正确性:内存安全,线程安全 ● 可靠性: Raft 共识算法 raft-rs ● 高性能:关键路径无锁单线程 顶层架构 ● Gateway 路由层 ○ 业务 API 到底层 API 的翻 译 ○ 产生转账计划 ● Marker 事务层 ○ 使用业务 id 进行路由 分布式账务系统 1 2 3 4 ● 1. 接受转账请求,转换成 events ● 2. 将 events 送入 Raft 共识,等待 events 被多数节点保存 ○ 共识:基于 raft-rs 的可靠消息队 列 ○ 存储: Rocksdb with Rust 账户层: Auticuro 分布式账务系统 1 2 3 4 ● 1. 接受转账请求,转换成 events ● 2 Gitlab CI/CD 心路历程 真刀实枪 – 文档工具 文档生成 CI/CD git page 作为文档 心路历程 吐槽点 ● Nightly 版本编译器: tikv , raft-rs ● 无官方库,官方库支持不成熟 ○ Kafka (第三方: https://github.com/kafka-rust/kafka-rust) ○ PostgreSQL ( 第三方: https://github0 码力 | 27 页 | 12.60 MB | 1 年前3
 NativeScript 101Fast to market ? Compromise on UX https://info.dynatrace.com/rs/compuware/images/ Mobile_App_Survey_Report.pdf https://info.dynatrace.com/rs/compuware/images/ Mobile_App_Survey_Report.pdf Nativ e Hybri0 码力 | 90 页 | 40.11 MB | 1 年前3
 Rust与算法 - 谢波高低位排序区别处理 https://github.com/QMHTMY/RustBook/blob/main/publication/code/chapter07/tim_sort_without_gallop.rs 字典树 怎么确定单词结束? 需要区分大小写吗? 图 如何定义点、边、图? 图 点和边操作注意事项 图 联想:图数据结构的的点、边、面似乎满足欧拉公式 : V – E + F = 20 码力 | 28 页 | 3.52 MB | 1 年前3
 基于Rust-vmm实现Kubernetes运行时Image Impleme ntation Language Open source Hot plug Direct access to HW Required Hyperviso rs Backed by Runc Yes Yes Golang Yes No Yes None Docker gVisor+runsc Yes Yes Golang Yes No No None0 码力 | 27 页 | 34.17 MB | 1 年前3
共 6 条
- 1
 













