Блог*
Не #meme про мужчин
Кстати, мужики, декоративный маникюр — хороший способ получать комплименты от женщин, советую
❤20🤡14😁5👍1🥰1🤮1💩1
Блог*
#prog #go #article Статья о внутреннем устройстве map в Go. К сожалению, в статье длиннющая преамбула о различных вариантах реализации хэш-таблиц в разных языках и крайне мало о собственно реализации в Go. Ключевая фишка реализации — фактически нетипизированная…
#prog #go
В феврале выпустили версию Go 1.24, в которой, помимо всего прочего, поменяли реализацию встроенного типа map. Теперь там используется дизайн Swisstable. Ожидаемо перформанс операций на мапах ощутимо подрос:
Тем не менее, реализация всё равно теряет перф из-за гарантий на поведение итерации по мапе, изменяемой в процессе итерации.
В феврале выпустили версию Go 1.24, в которой, помимо всего прочего, поменяли реализацию встроенного типа map. Теперь там используется дизайн Swisstable. Ожидаемо перформанс операций на мапах ощутимо подрос:
In microbenchmarks, map operations are up to 60% faster than in Go 1.23. Exact performance improvement varies quite a bit due to the wide variety of operations and uses of maps, and some edge cases do regress compared to Go 1.23. Overall, in full application benchmarks, we found a geometric mean CPU time improvement of around 1.5%.
Тем не менее, реализация всё равно теряет перф из-за гарантий на поведение итерации по мапе, изменяемой в процессе итерации.
go.dev
Go 1.24 Release Notes - The Go Programming Language
👍8🌚1
#prog #article #performancetrap
Use Fast Data Algorithms
Use Fast Data Algorithms
As an engineer who primarily works with data and databases I spend a lot of time moving data around, hashing it, compressing it, decompressing it and generally trying to shovel it between VMs and blob stores over TLS. I am constantly surprised by how many systems only support slow, inefficient, and expensive ways of doing these operations.
In my experience, these poor algorithm choices are orders of magnitude slower than modern alternatives.
❤6👍1💯1
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
1801 - Joseph Marie Jacquard uses punch cards to instruct a loom to weave "hello, world" into a tapestry. Redditers of the time are not impressed due to the lack of tail call recursion, concurrency, or proper capitalization.
🔥4🍌4🌚1
Блог*
Birthday is a fake holiday created by baking companies to sell more cakes
Вы поспешили с поздравлениями на две недели, алё
👌3🌚2🤡1
Блог*
#rustforlinux #suckassstory (link) I no longer have any faith left in the kernel development process or community management approach. Apple/ARM platform development will continue downstream. If I feel like sending some patches upstream in the future myself…
Asahi Lina делает паузу в разработке.
For personal reasons, I no longer feel safe working on Linux GPU drivers or the Linux graphics ecosystem. I've paused work on Apple GPU drivers indefinitely. I can't share any more information at this time, so please don't ask for more details. Thank you.
If you think you know what happened or the context, you probably don't. Please don't make assumptions. Thank you.
I'm safe physically, but I'll be taking some time off in general to focus on my health.
😢14😁6🤣4😭4🎉2❤1🫡1
Forwarded from Install Wizard
Всё же видеокодеки - это нечто магическое. Конвертирую выкачанный с ютуба сериал. yt-dlp выкачал его в AV1 (как я понимаю, ютуб пользуется этим кодеком по умолчанию для хранения видео), но телевизор в силу возраста кодировку не понял, поэтому я в хендбрейке конвертирую все серии в более старую кодировку H.264. Выходные файлы получаются почти в 3 раза больше. При том, что в настройках стоит (очень небольшое) сжатие. Уменьшить размер файла без потери информации втрое, просто используя более современный кодек - это, конечно, дико впечатляет
👍23🤡2💯2
#prog #article
Small Functions considered Harmful
Статья скорее против догматичного подхода к небольшим функциям, но даже так, на мой взгляд, полезна.
Small Functions considered Harmful
Статья скорее против догматичного подхода к небольшим функциям, но даже так, на мой взгляд, полезна.
In this post, I aim to:
— Shed light on some of the presumed benefits of small functions
— Explain why I personally think some of the benefits don’t really pan out as well as advertised
— Explain why small functions can actually prove counterproductive sometimes
— Explain the times when I do think smaller functions truly shine
👍4
Блог*
(Не) #meme про идеальное мужское тело
Фембои — это высшая форма развития человечества, дальше уже некуда.
(на втором месте, разумеется,томбои )
(на втором месте, разумеется,
🥰14🤮7🤡4❤🔥3💯3😐3💩2🤣2😁1
Forwarded from commit -m "better"
https://gitlab.xiph.org/xiph/ogg/-/merge_requests/11#note_57404
"A 3 year old MR, to fix a 14 year old bug, now arguing about using a 26 year old language, in a project that hasn't had a release in 5 years. Forget about it. Please don't merge this, I don't want my name associated with this project"
Open source, который мы заслужили!
(спасибо нашим радиослушателям за ссылку!)
"A 3 year old MR, to fix a 14 year old bug, now arguing about using a 26 year old language, in a project that hasn't had a release in 5 years. Forget about it. Please don't merge this, I don't want my name associated with this project"
Open source, который мы заслужили!
(спасибо нашим радиослушателям за ссылку!)
GitLab
Issue #1747: on Apple, use standard C99 fixed integer types (!11) · Merge requests · Xiph.Org / Ogg · GitLab
This effectively reverts c8fca6b4 going back to something more like...
😁12😢4❤1🤯1