oleg_log
1.73K subscribers
1.88K photos
131 videos
9 files
2.82K links
Shelter for antisocial programmers "Oleg"

halp: @olegkovalov
web: https://olegk.dev
fov: @oleg_fov
chat: @oleg_log_blabla
podcast: @generictalks
Download Telegram
Аххааххаха, знакомо) но эт всегда весело
В связи большим количеством обсуждений в личке, то вот вам GitLab'ов публичных. ТЫСЧИ ИХ!11!!

https://www.google.com/search?q=intitle%3A%22Gitlab%22+intext%3A%22register%22+intext%3A%22sign+in%22
Услышал фразу «опять из-за сломанного бекенда у нас(мобайл) ничего не работает». И стало интересно.

Может бизнес оч любит фуллстек по причине «так вы же это делаете, значит вы и сломали», а не по поводу всех этих людей оркестров которые могут и там, и сям что-то накодить.

Ведь действительно, сколько митингов и перекидываний багов отпадает(так сколько?), если вся ответственность за фичу/фикс бага лежит в рамках ответственности одной команды.

Сюда же и плюс JS в силу бекенда, фронта и мобайл. Понимаю, что пост кэповский, но раньше на эту мысль не тратил время.
Оуч, вот это действительно внезапно (мне).

The Swift project is introducing new downloadable Swift toolchain images for Windows! These images contain development components needed to build and run Swift code on Windows.

https://swift.org/blog/swift-on-windows/
Похоже, что это феил) чесн, никогда не понимал аргументации "да нафиг нам обновляться". Хотя когда по ногам били прод падал и быстренько перепрыгивала на 11 - все становилось лучше.

На самом деле вся идея Java LTS меня напрягает. Мы будем сидеть на той версии, которая будет жить 8 лет, ведь у нас бузинес на этом. лолшто?

https://blog.jetbrains.com/idea/2020/09/a-picture-of-java-in-2020/

https://en.wikipedia.org/wiki/Java_version_history
Имхо самый сок:

Implement incremental sorting (James Coleman, Alexander Korotkov, Tomas Vondra)

If an intermediate query result is known to be sorted by one or more leading keys of a required sort ordering, the additional sorting can be done considering only the remaining keys, if the rows are sorted in batches that have equal leading keys.

Хотя дедупликация в B-tree индексе тоже красиво отрабатывает. Вроде еще с вакуумом какие-то радости доставили.
Приберу ссыль из чата подкаста Generic Talks (@generictalkschat)

https://blog.rust-lang.org/inside-rust/2020/09/18/error-handling-wg-announcement.html

TLDR
Some of the goals this project group will be working on include:
1. Defining and codifying common error handling terminology.
2. Generating consensus on current error handling best practices.
3. Identifying pain points that exist in Rust’s error handling story.
4. Communicating current error handling best practices.
5. Consolidating the Rust error handling ecosystem.

Тут же можно порофлить, что нет единого подхода, что делать с ошибками [citation needed] и тут же можно порадоваться, что есть движение к единому виду обработки ошибок [citation not needed?], что упростит жизнь в экосистеме.

Как показывает практика - безликий код упрощает жизнь. Еще бы мне смириться с пирамидками из if let Some, так вообще станет приятно жить. Но за пару лет я такого в опен-сурсе не встречал :(
Ахахахах, прикольно. Ведь действительно, делать свой уникальный вид Windows XP проще было с некого шаблона и за основу была взята Mac OS.

https://www.theverge.com/2020/9/25/21456525/microsoft-windows-xp-theme-mac-aqua
Есть шанс, что в #go 1.16 завезут Fiat-crypto.

TLDR: formally-verified, high-performance modular arithmetic implementations, useful for crypto primitives like Curve25519, Poly1305, and the NIST ECC curves that are used within the Go standard library.

(Fiat & crypto гуглить неприятно, спасибо криптоскамувалюте)

https://github.com/golang/go/issues/40171

Наверное это мало кому интересно, но вещь правда хорошая, пруфнутая на корректность, да еще и шустрая. Криптография в Go станет еще чуточку лучше и доступнее.

Еще забавно, как они в ишью лицензию обсуждали. Не знаю, забавно смотрелось.
oleg_log
Оуч, вот это действительно внезапно (мне). The Swift project is introducing new downloadable Swift toolchain images for Windows! These images contain development components needed to build and run Swift code on Windows. https://swift.org/blog/swift-on-windows/
Опять Swift.

It is my pleasure to announce a new open source project for the Swift Server ecosystem, Swift Cluster Membership. This library aims to help Swift grow in a new space of server applications: clustered multi-node distributed systems. With this library we provide reusable runtime-agnostic membership protocol implementations which can be adopted in various clustering use-cases.

https://swift.org/blog/swift-cluster-membership/

Как-то резво все начало у них двигаться. Придется убить выходные и залезть в экосистему, понять что к чему стоит.
Сижу такой, листаю что там в Caddy последний завезли (ZeroSSL привлекло внимание), и конечно же надо вспомнить что там в go.mod раз мы зашли, встречаю это...

github.com/smallstep/nosql v0.3.0 // cannot upgrade until protobuf warning is fixed


https://github.com/caddyserver/caddy/blob/master/go.mod#L23

Собственно виновник: NoSQL is an abstraction layer for data persistency https://github.com/smallstep/nosql

Да курва, брать какой-то абстрэкшэн лэйэр (оставив вопрос зачем он нужен в другом проекте и другой фирме (в контексте одного проекта это может быть нужно (што))) ради одного интерфейса, ахахахах https://github.com/smallstep/nosql/blob/master/database/database.go#L90

Моё глубокое уважение, что это работает и сообщество живо, но блин, что происходит)))
На той неделе была новость о том, что Wiki будет менять дизайн 1й раз за 10 лет. Ну и блабла.

https://diff.wikimedia.org/2020/09/23/wikipedia-is-getting-a-new-look-for-the-first-time-in-10-years-heres-why/

Можно просто глянуть примеры (хотя не со всеми согласен) https://www.mediawiki.org/wiki/Reading/Web/Desktop_Improvements#What_features_will_be_added

Но привлекла другая пдфка в конце статьи Computer text line lengths affect reading and learning https://cdn.tc-library.org/Edlab/eye-tracking%20article.pdf by IBM (https://t.me/repushko_channel/1320 пример)

Выводы конечно очевидные: “…text printed in shorter line lengths was read faster…” “…shorter line lengths produced significantly greater retention…”

Наверное это не стоит читать как аргумент за 80 символов в строке, но порой стоит подумать.
Экономия эт конечно круто, но как показывает жизнь - всегда есть люди, которым проще заплатить х2-х3-х4 и не думать лишний раз. А на все вопросы есть саппорт и "ну у AWS проблемы, мы-то что можем сделать?".

Еще интересно, как меняется цена из-за региона, Мумбаи думаю может быть чуть специфичным, и какой-то Франкфурт или Дублин дадут друго коэф выгоды (если не наоборот :)

хн https://news.ycombinator.com/item?id=24608538
Довольно интересный сборник особенностей работы с JSON в Go. Большинство и так известно (и со стороны го, и со стороны жсон), но советую пролистать, хуже не будет.

Я вот про Non-ASCII punctuation characters aren't supported in struct tags не знал, и рад, что не знал.

https://www.alexedwards.net/blog/json-surprises-and-gotchas
While not yet at version 1.0, Zig is about to reach a new level of maturity and stability.

The work to replace the current C++ compiler implementation with a new pure Zig version has begun. Moving to a self-hosted implementation is usually considered a step towards maturity, with most benefits being felt by developers of the language itself <..> it also makes LLVM an optional dependency, increases compilation speed.

https://kristoff.it/blog/zig-new-relationship-llvm/
oleg_log
While not yet at version 1.0, Zig is about to reach a new level of maturity and stability. The work to replace the current C++ compiler implementation with a new pure Zig version has begun. Moving to a self-hosted implementation is usually considered a step…
LLVM, which takes at least 70% of the total compilation time including when compiling a debug build, where optimizations aren’t even enabled.

The self-hosted compiler will not depend on LLVM for debug builds and will be able to cut compilation time considerably, basically reducing that 70% to almost zero, just by virtue of being a simpler piece of software compared to LLVM.

https://youtu.be/R5FKgi9BYyU