1.84K subscribers
3.27K photos
130 videos
15 files
3.55K links
Блог со звёздочкой.

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

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
Из чата канала Дениса Чужого
13🤣8🥴1
Уже с завтрашнего дня гетерастический мир в очередной раз будет сломлен.

🌈 Gay_Mems
Please open Telegram to view this post
VIEW IN TELEGRAM
😁14🤮12🎉6💩3
#prog #rust #rustlib

morph-rs — библиотека для морфологического анализа русского языка.

Осторожно, распространяется под нестандартной лицензией.
❤‍🔥6🤔4
#prog #rust #java #article

How We Migrated Our Static Analyzer From Java To Rust

Меня, правда, смущает, что правила анализа почему-то написаны на JavaScript.

<...>

We observed that the migration tripled our performance and resulted in a tenfold reduction in memory usage, <...>

To our surprise, we gained a firm grasp of the language and a clear idea of how our codebase would be mapped onto Rust within 10 days. <...> Within a month, the entire code analysis infrastructure was migrated from Java to Rust, and all customers were running on the new Rust analyzer.

<...>

Removing our dependency on the JVM and speeding up the analysis enabled us to embed the analyzer directly into the IDE. The very same lightweight and fast analyzer that runs in your CI/CD pipelines simultaneously reports coding errors and suggests fixes in your IDE in real time, <...>
1👍1🤔1🌚1🤨1
#prog #rust #article

Send & Mutex

I saw a question on Reddit, that asks: “why T needs to be Send in order to Mutex<T> to be Sync?”. I think that’s a great question, and in here I’ll try my best to shine some light on that.

Автор излагает объяснение, опираясь на неканоничное определение Send:

allows an object to be used by two threads A and B at different times.

, в противовес Sync:

allows an object to to be used by two threads A and B at the same time.

Это позволяет ответить на вопрос в начале более простым образом.
👍21
Forwarded from Nero's (Александр Ф. 🇷🇺)
chad C++ programmer reacting to corner cases
😁13🔥2🥰1🎉1
π
В СМЫСЛЕ УЖЕ ИЮНЬ
👎11🤝6🤡3😍3
Блог*
π
🚪
🍌10😁3
1 июня — день защиты детей.

Защищайтесь
👏10👍1🤡1
Я не люблю 🍆
😢8🍌4🌚3🤡2
Как называют гея-универсала?

Парень хоть куда
🤩12👌1
Forwarded from Neural Machine
Я родился и вырос, но не понимаю почему.
🍌4😭3👍1
#prog #article

When allocating unused memory boosts performance by 2x

During performance testing, I stumbled upon a weird performance effect. The throughput of a function increased by 2x when I added a dataset but didn't use it anywhere. Such fluctuations are not unheard of and could be caused by a myriad of things. But this time the code was so unrelated that I had to investigate further, especially since the effect was consistent and not a fluke.

Спойлер: гистерезис-подобное поведение аллокатора glibc касательно возврата аллоцированной памяти операционной системе.
😱4🔥2🤔1
#meme про корпоративную разработку
Forwarded from ОРУ, СЭР!
😢14😁7👌1
#prog #rust #article

Taming Floating-Point Sums

Статья о различных способах суммировать числа с плавающей точкой: способы быстрее прямолинейного и способы точнее прямолинейного.

Осторожно, бенчмарки проводились на данных, которые умещаются в кеш процессора
👍4