Вот из-за отсутствия этой ленивости у нас год назад летели алерты по латенси.
Фишка была в том, что для
Советую грепнуть код на такую же штуку, вполне легко проколоться #java (хотя и другие языки тож)
Фишка была в том, что для
orElse параметр сразу считался (что логично), а нам надо было ток лениво его дергать.Советую грепнуть код на такую же штуку, вполне легко проколоться #java (хотя и другие языки тож)
oleg_log
Вот из-за отсутствия этой ленивости у нас год назад летели алерты по латенси. Фишка была в том, что для orElse параметр сразу считался (что логично), а нам надо было ток лениво его дергать. Советую грепнуть код на такую же штуку, вполне легко проколоться…
BTW, чуток похожий паттерн для #go только о каналах.
Можно несложно и неоптимально потерять время на блокировках.
Более детально в докладе и куча других примеров https://youtu.be/5zXAHh5tJqQ?t=209 (на 3:30)
Можно несложно и неоптимально потерять время на блокировках.
Более детально в докладе и куча других примеров https://youtu.be/5zXAHh5tJqQ?t=209 (на 3:30)
ахахаххаха счетчик Гейгера по аллокациям в го https://github.com/lukechampine/geiger
Это победа. https://linux.googlesource.com/Documentation#gerrit-code-reviews-for-the-linux-kernel твит: https://twitter.com/dvyukov/status/1161246539051937792?s=21
Кстати, не подскажете твит/бота/rss с патчами в кернел? Думал подчитать
UPD: Спасибо, https://github.com/torvalds/linux/commits/master.atom
Кстати, не подскажете твит/бота/rss с патчами в кернел? Думал подчитать
UPD: Спасибо, https://github.com/torvalds/linux/commits/master.atom
Роскошный канал с топ коментами ХН, просто сливки с доставкой, спасибо @korkoma
Собственно вот https://xn--r1a.website/hn_best_comments
Анонс создания канала https://xn--r1a.website/korkoma/602
Собственно вот https://xn--r1a.website/hn_best_comments
Анонс создания канала https://xn--r1a.website/korkoma/602
Forwarded from HN Best Comments
Re: GitHub stars won’t pay your rent
I'm closing in on 100 public, nontrivial, nonforked repos on github. Since github's inception, I've received a total of $200 in donations for my OSS stuff, 1 job from a company that uses a product of mine as the foundation of their business, and many job offers from people who are familiar with my work. I don't make money off OSS, and never have (at least not directly).
But I just. can't. stop.
I can't. I've tried suppressing the urge to create, but I just can't do it. Ideas, challenges, problems, unmet potential, are everywhere, and I can't unsee them. On many days I despair that I won't live long enough to build even a tiny fraction of the things I see in my mind. It's infuriating!
And so I do my best to keep my focus small. I have a full time job, so I try to keep my extracurricular coding down to at the very most 3 hours a day if I can, but my idea list just keeps on growing faster than I can keep up.
I keep thinking that maybe I'll calm down as I get older, but I started at 8, and I'm 44 now. If I had no financial pressure at all, I'd be doing this stuff all day. The only difference would be that I'd burn through my list faster.
But long story short, don't write OSS for money. Have a full time job and do OSS on the side.
kstenerud, 4 hours ago
I'm closing in on 100 public, nontrivial, nonforked repos on github. Since github's inception, I've received a total of $200 in donations for my OSS stuff, 1 job from a company that uses a product of mine as the foundation of their business, and many job offers from people who are familiar with my work. I don't make money off OSS, and never have (at least not directly).
But I just. can't. stop.
I can't. I've tried suppressing the urge to create, but I just can't do it. Ideas, challenges, problems, unmet potential, are everywhere, and I can't unsee them. On many days I despair that I won't live long enough to build even a tiny fraction of the things I see in my mind. It's infuriating!
And so I do my best to keep my focus small. I have a full time job, so I try to keep my extracurricular coding down to at the very most 3 hours a day if I can, but my idea list just keeps on growing faster than I can keep up.
I keep thinking that maybe I'll calm down as I get older, but I started at 8, and I'm 44 now. If I had no financial pressure at all, I'd be doing this stuff all day. The only difference would be that I'd burn through my list faster.
But long story short, don't write OSS for money. Have a full time job and do OSS on the side.
kstenerud, 4 hours ago
Кстати Nginx 1.17.3 вышел, стоит обновиться прям сейчас, дырки довольно значимые, и го 1.12.8.
Короч среда будет про обновления 🐸
https://xn--r1a.website/count0_digest/2631
А тут и Cloudflare отписались о уязвимостях (больше пиар :)
https://blog.cloudflare.com/on-the-recent-http-2-dos-attacks/
Короч среда будет про обновления 🐸
https://xn--r1a.website/count0_digest/2631
А тут и Cloudflare отписались о уязвимостях (больше пиар :)
https://blog.cloudflare.com/on-the-recent-http-2-dos-attacks/
Telegram
Пятничный деплой
https://github.com/Netflix/security-bulletins/blob/master/advisories/third-party/2019-002.md подборка уязвимостей от Netflix #security
Правдивая и грустная история о разработке приложения и опенсурсе...Может показаться длинной, но очень полезная, из тех отрезвляющих статей с чужим опытом.
https://medium.com/@kitze/github-stars-wont-pay-your-rent-8b348e12baed
https://medium.com/@kitze/github-stars-wont-pay-your-rent-8b348e12baed
Medium
GitHub stars won’t pay your rent
Lessons learned and mistakes made while turning an open-source project into a profitable SaaS product.
Приходишь в офис, а там нет света, и сесурити не пускает на лестницу, и зачем надо было тащиться в это сырое утро?
Upd: все на час еще закрыто
Upd: в Варшаве и с метро траблы (вроде)
Upd: все на час еще закрыто
Upd: в Варшаве и с метро траблы (вроде)
Вы можете жить и продуктивно работать без автокомплита?
(Дада, плевать на язык, думайте о своих навыках глобально)
(Дада, плевать на язык, думайте о своих навыках глобально)
Anonymous Poll
50%
Да
50%
Не
Вспомнил долгоиграющую #саксес_сториз
Вот есть у нас в мире Protobuf, Avro, FlatBuffers, CapnProto и другие форматы, которые бинарны и хороши в версионировании.
Просто докидываешь новое поле/расширяешь схему и живешь дальше, не думая про прошлое, оно ведь иммутабельное...вот если тебе не жмет черепушка.
Стабильно пару раз в месяц кто-то берет и удаляет схему авро, создает новую и внезапно версии накладываются, или просто делает форс-ремув версии последней и создание другой. И как-то внезапно это бьет по рукам из-за кешей и схема-режестри, а в самом красивом случае микросервису на проде.
Чо, съэкономил 1 число из инт64? Красаучек
Вот есть у нас в мире Protobuf, Avro, FlatBuffers, CapnProto и другие форматы, которые бинарны и хороши в версионировании.
Просто докидываешь новое поле/расширяешь схему и живешь дальше, не думая про прошлое, оно ведь иммутабельное...вот если тебе не жмет черепушка.
Стабильно пару раз в месяц кто-то берет и удаляет схему авро, создает новую и внезапно версии накладываются, или просто делает форс-ремув версии последней и создание другой. И как-то внезапно это бьет по рукам из-за кешей и схема-режестри, а в самом красивом случае микросервису на проде.
Чо, съэкономил 1 число из инт64? Красаучек
Вспомнилось сравнение скорости компиляторов C++, D, Go, Pascal, Rust
No war, just lulz https://imgur.com/a/jQUav
No war, just lulz https://imgur.com/a/jQUav
Imgur
Code gen'd quick sunday slam - Comparing compilation time of random code in C++, D, Go, Pascal and Rust
Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.
Часто замечаю вопрос: а как вам Микро? стоит брать? в проде не подведет?
— тестов меньше, чем в моих ридми
— в зависимостях тащится клиент телеги/дискорда/слака
— 1 man army с целью 10к звездочек (твиты автора)
Вывод: нинадо оно
виновник моей грусти github.com/micro/go-micro
— тестов меньше, чем в моих ридми
— в зависимостях тащится клиент телеги/дискорда/слака
— 1 man army с целью 10к звездочек (твиты автора)
Вывод: нинадо оно
виновник моей грусти github.com/micro/go-micro
Конечно этот код очень хорош и помогает в разработке, ведь в определении этой фции описано все, что только можно, но...
ах да, self-documenting cargo-mantra™
private fun convertUsingAllowedEngines(allowedConvertEngines: List<ConvertEngineType>, converter: Converter, clientName: String)...хм, почему бы не назвать всё
convert(engines, converter, clientName)
а объяснения параметров перенести в доку-комент на 1 строку выше?ах да, self-documenting cargo-mantra™
How nasty/dirty is the raw internet?
This is the time (in seconds) between server boot on a public cloud provider (with public IP) and the first known hostile connection.
The ‘best’ is only 30 seconds.
At 90 seconds they’ve all been comprehensively port scanned.
https://twitter.com/fdmts/status/1157315943271403525
This is the time (in seconds) between server boot on a public cloud provider (with public IP) and the first known hostile connection.
The ‘best’ is only 30 seconds.
At 90 seconds they’ve all been comprehensively port scanned.
https://twitter.com/fdmts/status/1157315943271403525
О, прикольно, оказывается OpenCensus и OpenTracing стали OpenTelemetry.
https://opentelemetry.io/
Оказывается это было 19 апреля анонсированно, нуок
https://medium.com/opentracing/a-roadmap-to-convergence-b074e5815289
https://opentelemetry.io/
Оказывается это было 19 апреля анонсированно, нуок
https://medium.com/opentracing/a-roadmap-to-convergence-b074e5815289
OpenTelemetry
The open standard for telemetry
Нашел твитер-тред где люди хвастаются своим топом команд в консоли. Этим можно собрать статистику (отвечаю, это не рмрф)
Твит с командой https://twitter.com/vincentpants/status/1148317661060722688
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10Твит с командой https://twitter.com/vincentpants/status/1148317661060722688