Я заставил LLM писать Rust полгода. Вот что они стабильно ломают

Полгода использовал Claude, GPT и Cursor как полноценного второго разработчика на Rust в проде. Собрал семь категорий ошибок, которые модели стабильно делают и которые проходят cargo build, cargo test, иногда cargo clippy и при этом являются UB или скрытыми архитектурными ловушками. Lifetime laundering, std::sync::Mutex через .await, Drop у транзакций, unaligned read, async cancellation, orphan rule и массивы на стеке. Разбираю, почему именно Rust ломает LLM и что с этим делать.

https://habr.com/ru/articles/1035712/?utm_source=habrahabr&utm_medium=rss&utm_campaign=1035712

#Rust #LLM #unsafe #async #tokio #miri #AI

Я заставил LLM писать Rust полгода. Вот что они стабильно ломают

Полгода я использовал Claude, GPT и Cursor как основной инструмент для написания Rust-кода в проде. Не как «помощник для бойлерплейта», а как полноценного второго разработчика на монолите примерно в...

Хабр
@bascule "Made you look". Comparative FFI study this AM. I had reason to examine #PyCA #cryptography after reading @filippo and seeing it used #CFFI, not #Cython, and Rust-ified its underlying #OpenSSL API exposure with #C linkage using #Rust #unsafe blocks. Go figure. I just use #libsodium for most things because it ROCKS.

Я заставил LLM писать Rust полгода. Вот что они стабильно ломают

Полгода использовал Claude, GPT и Cursor как полноценного второго разработчика на Rust в проде. Собрал семь категорий ошибок, которые модели стабильно делают и которые проходят cargo build, cargo test, иногда cargo clippy и при этом являются UB или скрытыми архитектурными ловушками. Lifetime laundering, std::sync::Mutex через .await, Drop у транзакций, unaligned read, async cancellation, orphan rule и массивы на стеке. Разбираю, почему именно Rust ломает LLM и что с этим делать.

https://habr.com/ru/articles/1035712/

#Rust #LLM #unsafe #async #tokio #miri #AI

Я заставил LLM писать Rust полгода. Вот что они стабильно ломают

Полгода я использовал Claude, GPT и Cursor как основной инструмент для написания Rust-кода в проде. Не как «помощник для бойлерплейта», а как полноценного второго разработчика на монолите примерно в...

Хабр
Despite a new wharf, lobster fishers say this P.E.I. harbour is 'unsafe’
Lobster fishers in Covehead Harbour are calling for changes after their boats were damaged, even though a new wharf was just built. They say they need a boat pen, a sheltered area to protect from storms, that is a feature at most other harbours. CBC’s Nancy Russell reports.
https://www.cbc.ca/player/play/9.7192553?cmp=rss

Твой код на Rust компилируется, проходит тесты и является UB. Ты просто об этом не знаешь

Если взять случайный крейт с crates.io и поставить его под Miri, шанс увидеть undefined behavior где-то в зависимостях стремится к единице. Разбираемся, почему: pointer provenance, Stacked Borrows, Tree Borrows и почему noalias в LLVM выключали три раза.

https://habr.com/ru/articles/1033328/

#rust #unsafe #miri #stacked_borrows #tree_borrows #provenance #llvm #noalias #undefined_behavior

Твой код на Rust компилируется, проходит тесты и является UB. Ты просто об этом не знаешь

Если взять случайный крейт с crates.io, поставить на него Miri и подождать минут пять, шанс увидеть красное сообщение про undefined behavior где-то в зависимостях стремится к единице. Чаще всего...

Хабр

@veronica I disagree with"New kernels in [...] Bullseye":

IMO Copy Fail still unpatched on Raspberry Pi Linux Bullseye!

Even after the official update procedure[1]it keeps the kernel over 3 years old(!!!)

12 days after disclosure and 5 days after public one!

As I understood,security patches for Bullseye are still supported.

In my opinion,Raspberry Pi is unsafe,they fail to keep it secure.

I feel contempt towards Raspberry Pi Foundation when they IMO make their official operating system for their hardware product like this.

IMO severe and total failure of security in the official RPi Linux Bullseye.

[1]"sudo apt update"—"sudo apt full-upgrade" https://www.raspberrypi.com/documentation/computers/os.html

The following tags may be partially or completely unrelated:

#failure #raspberry #raspberrypi #debian #bullseye #copyfail #irresponsible #negligent #negligence #failure #unsafe #insecure #security #linux #opensource #hypocrisy #incompetence #reckless #recklessness #complicated #friction #ux #usability #contempt

Security warning:IMO Copy Fail[3]still unpatched on Raspberry Pi Linux Bullseye!

Even after the official update procedure[1]it keeps the kernel over 3 years old(!!!)

12 days after disclosure and 5 days after public one!

As I understood,security patches for Bullseye are still supported.

In my opinion,Raspberry Pi is unsafe,they fail to keep it secure.

I feel contempt towards Raspberry Pi Foundation when they IMO make their official operating system for their hardware product like this.

IMO severe and total failure of security in the official Raspberry Pi Linux Bullseye.

The following hashtags may be unrelated or only remotely related:

#failure #raspberry #raspberrypi #debian #bullseye #copyfail #irresponsible #negligent #negligence #failure #unsafe #insecure #security #linux #opensource #hypocrisy #incompetence #reckless #recklessness #complicated #friction #ux #usability #contempt

I hate #async in #Rust.
I say that after writing 4 toy runtimes for it.

I have a very async-shaped problem and I *still* can't use async for it without ugly hacks.

Lifetime hell is trying to kill me. Will self-referential struct save me or finish the job? Let's find out.

Yeah, I'm riding #no_std , no alloc, why do you ask?

#programming #rustlang #unsafe #jazda

(When the state removes every safe option and calls the unsafe one “support”) #support #unsafe

https://survivorliteracy.com/2026/04/21/15-the-forced-reliance-on-abusive-family-members/

15. The Forced Reliance on Abusive Family Members

(When the state removes every safe option and calls the unsafe one “support”) People love to say, “Why don’t they just ask family for help?”But for millions of parents — especially survivors of chi…

Survivor Literacy
Bullying Perisists

When a family runs on scapegoating, the child carries that script into every group they enter. Check out my music!

Protyus A Gendher