1.84K subscribers
3.26K photos
129 videos
15 files
3.54K links
Блог со звёздочкой.

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
ТАСС
Вице-президент Ирана Мансури подтвердил гибель президента Раиси при крушении вертолета
Ребят, кто призывали смерть на президента раиси, магия не понимает сарказма, называйте Россию правильно
😁40🤡16💩6🥴1
👌51💩1🍌1
Папищеки, предлагаю новый интерактив: вы присылаете мне свои нюдсы, а я на них смотрю.
❤‍🔥17🤡10😁2💩2🥴2🔥1🤮1
#meme про AWS
6🎉3💩2🤮1
Россиянин Украинец
🤝
Скрываться от
мобилизации
🤝43🤡10🤮3🌚3😭2😁1💩1
🌚14🤨2👍1🎉1🤮1
Forwarded from So what do we have here?
👍5😁2👎1🤔1
#prog #rust #article

Unwind considered harmful?

Нико аргументированно показывает, почему имеет смысл если не полностью убрать раскрутку стека, то как минимум радикально снизить её использование.
👍3
Forwarded from Generative Anton (Anton Repushko)
Волшебная история про то, как в 90ые годы в Германии все сообщения Air Traffic Control передавались через headless Emacs, а роутер сообщений был написан на Emacs-Lisp.

In Germany, a Herr Doktor is always right (they have forgiven Moses by now for not having space on the stone tablets, but it really is the 11th Commandment). This one worked at Symbolics before so knew one programming language: Lisp. He wanted to code the message router in Lisp because of the “complex” (meh) requirements, but there was no Lisp (or no Lisp in budget) for HP/UX so he was stuck. I told him about Emacs, gave him my tape with the ports, and maybe that was a mistake 😉

A week later - I helped out finishing the 4GL UI in the meantime and completed the messaging protocol - he called me in, quite happy.
He showed me the code - page after page of Emacs Lisp, with exactly zero comments “because Lisp is self-documenting”. I got scared, it was an air traffic control system after all, but I was no Herr Doktor so I whipped up the DCE native code for Emacs, made a hack to have it start headless in message router server mode, and we got messages to flow. I did a code hand-over, and drove back home a couple of days later. The “self-documenting” code, as far as I know, landed in production so at least for a while, all ATC message routing in Germany was done through Emacs.
🔥13😱4😁2🤔2
🥴11😁5❤‍🔥1
Невероятный #gamedev #meme
🤯14
#prog #cpp #rust #article

How to rewrite a C++ codebase successfully (in Rust)

Ценно в том числе примерами реальных багов на границе FFI
🔥3
#prog #rust #math #article

How hard can generating 1024-bit primes really be?

Автор последовательно усложняет код, начиная с генерации случайных простых u16 и заканчивая обозначенной в заголовке целью, попутно создавая и оптимизируя собственную длинную арифметику
7
#web #article

Speeding up this site by 50x

Может пригодится тем, кто, как и автор, использует Octopress.

<...>

I'm not sure what to think about all this. On the one hand, I'm happy that I was able to get a 25x-50x speedup on my site. On the other hand, I associate speedups of that magnitude with porting plain Ruby code to optimized C++, optimized C++ to a GPU, or GPU to quick-and-dirty exploratory ASIC. How is it possible that someone with zero knowledge of web development can get that kind of speedup by watching one presentation and then futzing around for 25 minutes?
1
#meme про мытьё рук
🌚9🤔2
#prog #rust #rustlib

qualifier_attr — procedural macro attributes for adding "qualifiers" to various items.

// We can add a qualifier to a function
// with an attribute.
#[qualifiers(const)]
fn const_fn() -> u32 {
42
}

const CONST_RES: u32 = const_fn();

// It's not so impressive on its own,
// but with `cfg_attr`, it can be conditional.
#[cfg_attr(
feature = "extern_c",
no_mangle,
qualifiers(pub, extern "C")
)]
fn extern_c_fn() -> u32 {
42
}
👍9
😒🤚 Аренда
😏👉 Arend
🤡5🔥1😁1
В Doom надо doomать
🤔12
#prog #article

In What Sense is WebAssembly Memory Safe?

TL;DR: в WASM защищается только доступ к памяти модуля в целом, memory safety структур данных поверх этой памяти целиком на совести процесса кодировки программы в WASM.