| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43972669
Hacker News 上的一篇讨论集中在 Rustls 的服务器端性能,一篇 memorysafety.org 博客文章重点介绍了其渐进式改进。评论者们辩论了 Rust 的优势,特别是其内存安全特性,这有助于编写复杂的、多线程代码。一些人告诫不要盲目地将现有代码库重写为 Rust,主张采取战略性方法。讨论涉及到 Rustls 的架构,指出其 TLS 实现完全用 Rust 编写,利用 aws-lc-rs 进行加密(后者利用汇编语言来提高性能)。关于依赖于 OpenSSL 派生代码的讨论也出现了,解释强调 Rustls 主要使用这些组件进行底层加密例程,而其 TLS 协议和证书解析是用 Rust 编写的。总的来说,讨论强调了 Rustls 的进步,它作为 OpenSSL 更安全替代品的潜力,以及在为不同项目采用 Rust 时需要考虑的细微之处。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
I feel bad for other/new system languages, you get so much for the steeper learning curve with Rust (cult membership optional). And I think it’s genuinely difficult to reproduce Rust’s feature set.
reply