#prog #rust #cpp #article
Being Fair about Memory Safety and Performance, или о ситуации с индексацией массивов в C++ и Rust
Being Fair about Memory Safety and Performance, или о ситуации с индексацией массивов в C++ и Rust
The Coded Message
Being Fair about Memory Safety and Performance
For this next iteration in my series comparing Rust to C++, I want to talk about something I’ve been avoiding so far: memory safety. I’ve been avoiding this topic so far because I think it is the most discussed difference between C++ and Rust, and therefore…
👍2
Нет, «Но мы же в интернете» — не оправдание тому, чтобы писать безграмотно.
👍17👎11🔥3
Forwarded from мне не нравится реальность
В rust-analyzer changelog #114 есть и мой PR :')
rust-analyzer.github.io
Changelog #114
Commit: fd3942eRelease: 2022-01-31
🔥4🎉1
Forwarded from Протестировал (Sergey Bronnikov)
Крутейшая новость для тех, кто любит читать пейперы (а именно препринты на arXiv). Если в ссылке на abstract статьи заменить "arxiv" на "ar5iv", то можно читать статью в виде веб-страницы. Тут больше деталей - https://twitter.com/dginev/status/1488157927001268231
Примеры статей:
https://arxiv.org/html/1504.00204 → https://ar5iv.org/html/1504.00204
https://arxiv.org/html/2102.02527 → https://ar5iv.org/html/2102.02527
Примеры статей:
https://arxiv.org/html/1504.00204 → https://ar5iv.org/html/1504.00204
https://arxiv.org/html/2102.02527 → https://ar5iv.org/html/2102.02527
👍16
#prog #rust
Очень хороший пример применения паттерна typestate.
twitter.com/bloomofthehours/status/1488464978852163589
(thanks @ihatereality)
Очень хороший пример применения паттерна typestate.
twitter.com/bloomofthehours/status/1488464978852163589
(thanks @ihatereality)
Twitter
большой злой В.
как можно использовать систему типов в Rust, чтобы сделать удобный и безопасный API, проверяющий нужные инварианты на уровне компиляции 🧵
👍1