1.83K subscribers
3.31K photos
132 videos
15 files
3.58K links
Блог со звёздочкой.

Много репостов, немножко программирования.

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Forwarded from я что-то �� и всё ����
👍16🤯4
Когда плюсовик переучивается на фронтендера, он по привычке вместо iframe пишет ifndrame
💩8👍3
напоминаю
13
Как же хорошо, что на моей работе дейли всего раз в неделю ☺️
🤩9😁3👍2
Forwarded from Архонт щітпосту | #укртґ (free hugs 🐍)
👍11😁2
Forwarded from Life of Tau
каминг-аут я не люблю кетчуп
👎12👍2😐2😢1
#prog #rust

А технически в Rust можно обернуть порядок всего, что может преобразовываться в двухсторонний итератор по мутабельным ссылкам на элементы:

fn reverse<'a, Item: 'a, I>(iterable: I)
where
I: IntoIterator<Item = &'a mut Item>,
I::IntoIter: DoubleEndedIterator,
{
let mut iter = iterable.into_iter();
while let (Some(a), Some(b))
= (iter.next(), iter.next_back()) {
std::mem::swap(a, b);
}
}
😱8🥰1
#prog #cpp #rust #article

Is coding in Rust as bad as in C++?

Несмотря на провокационный заголовок, речь идёт исключительно о времени компиляции.

Conclusion

Are compilation times a problem with Rust? Yes. There are some tips and tricks to speed up builds, but I didn't find the magical order-of-magnitude improvements which would make me happy developing in Rust.

Are build times as bad with Rust as with C++? Yes. And for bigger projects, development compile times are worse with Rust than with C++, at least with my code style.

Looking at my hypotheses, I was wrong on all counts:

1. The Rust port had more lines than the C++ version, not fewer.
2. For full builds, compared to Rust, C++ builds took about the same amount of time (17k SLOC) or took less time (100k+ SLOC), not longer.
3. For incremental builds, compared to C++, Rust builds were sometimes shorter and sometimes longer (17k SLOC) or much longer (100k+ SLOC), not always longer.
😢6🔥1
"...экспериментально методом бинарного тыка"

#prog #quotes #моё #трудовыебудни
👍61
Блог*
И архив в списке чатов тоже протерян. Гении, блин
Ха, а сейчас вдруг появился. Хотя я для этого ничего не делал и приложение не обновлял
Твиттер на радужной страже
Photo
Интересно, а с кнутом пропустили бы?
👍4😁31
#rust #itsec

blog.rust-lang.org/2023/01/10/cve-2022-46176.html

The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks.
😢8
Начни свой день со сна с крушением самолёта 👍
👍121🤔1😢1
Блог* pinned a photo