Блог*
Ir al canal en Telegram
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
Mostrar más1 982
Suscriptores
+124 horas
-137 días
-1330 días
Archivo de publicaciones
1 983
Ха, а сейчас вдруг появился. Хотя я для этого ничего не делал и приложение не обновлял
10 ene 2023, 13:23
1 983
"...экспериментально методом бинарного тыка"
#prog #quotes #моё #трудовыебудни
10 ene 2023, 12:03
1 983
#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.
10 ene 2023, 10:38
1 983
#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);
}
}10 ene 2023, 09:36
1 983
каминг-аут я не люблю кетчуп
10 ene 2023, 07:58
1 983
Repost from Подлый апельсинчик
Vim ZZ and Vim zz
https://www.programmerhat.com/vim-zz/
10 ene 2023, 02:35
1 983
Когда плюсовик переучивается на фронтендера, он по привычке вместо iframe пишет ifndrame
09 ene 2023, 06:49
1 983
Repost from я что-то �� и всё ����
🔁 Developer Memes
"PHP as a C preprocessor"
submitted by asdvasdvasd
https://reddit.com/r/ProgrammerHumor/comments/zxalmh/php_as_a_c_preprocessor/
09 ene 2023, 06:05
