Our new home will be golang/vscode-go.
Вау, плагин Go переходит в другую организацию. Однако это хорошая новость, значит поддержка будет более качественная, раз LSP & VSCode станут ближе.
https://github.com/microsoft/vscode-go#we-are-moving---
Вау, плагин Go переходит в другую организацию. Однако это хорошая новость, значит поддержка будет более качественная, раз LSP & VSCode станут ближе.
https://github.com/microsoft/vscode-go#we-are-moving---
> this serverless application
> fat jar size is 120MB+
> components in Java Enterprise space are included
> Spring, Spring Boot, Tomcat, MySQL-Connector
> build time is long
> 100 GB of memory and 4000 seconds
(если я правильно делю на 60, то это час+)
А потом после оптимизаций это стало 20гб и 1000сек соотв.
Работа ведь конечно классная, но когда билд занимает тысячи секунд, наверное что-то было сделано не так. Хотя после такого буст 5х, 20х, 100х, по некоторым параметрам, получить легко.
https://medium.com/graalvm/static-compilation-of-java-applications-at-alibaba-at-scale-2944163c92e
> fat jar size is 120MB+
> components in Java Enterprise space are included
> Spring, Spring Boot, Tomcat, MySQL-Connector
> build time is long
> 100 GB of memory and 4000 seconds
(если я правильно делю на 60, то это час+)
А потом после оптимизаций это стало 20гб и 1000сек соотв.
Работа ведь конечно классная, но когда билд занимает тысячи секунд, наверное что-то было сделано не так. Хотя после такого буст 5х, 20х, 100х, по некоторым параметрам, получить легко.
https://medium.com/graalvm/static-compilation-of-java-applications-at-alibaba-at-scale-2944163c92e
Medium
Static Compilation of Java Applications at Alibaba at Scale
This is a guest blog post written by Sanhong Li, Ziyi Lin, Chuansheng Lu and Kingsum Chow from the Alibaba JVM team.
Интересная и полезная игра. Советую, если пропустили (там о доверии в основном) https://ncase.me/
Forwarded from HN Best Comments
Re: HashiCorp forbids its software being used in China
Hello, I'm a founder of HashiCorp and I'd like to explain this.
First, this document only applies to enterprise evaluation software. This doesn't apply to our OSS software and this shouldn't be linked anywhere near our OSS except in the context of signing up for an enterprise eval.
Most importantly: why is this here? This is NOT a political statement. This is a legal requirement. The encryption we use in Vault is subject to Chinese export control laws and it is illegal for us (by Chinese law) to sell in China.
To be able to sell Vault within China we'd have to restrict the encryption that could be used within Vault to government-acceptable versions.
We don't do this, therefore it is illegal for us to sell in China. We have to include this line in our enterprise terms.
EDIT: Our legal team has updated the copy in our terms to be more explicit. You can read the updated copy in the second paragraph here: https://www.hashicorp.com/terms-of-evaluation
mitchellh, 1 hour ago
Hello, I'm a founder of HashiCorp and I'd like to explain this.
First, this document only applies to enterprise evaluation software. This doesn't apply to our OSS software and this shouldn't be linked anywhere near our OSS except in the context of signing up for an enterprise eval.
Most importantly: why is this here? This is NOT a political statement. This is a legal requirement. The encryption we use in Vault is subject to Chinese export control laws and it is illegal for us (by Chinese law) to sell in China.
To be able to sell Vault within China we'd have to restrict the encryption that could be used within Vault to government-acceptable versions.
We don't do this, therefore it is illegal for us to sell in China. We have to include this line in our enterprise terms.
EDIT: Our legal team has updated the copy in our terms to be more explicit. You can read the updated copy in the second paragraph here: https://www.hashicorp.com/terms-of-evaluation
mitchellh, 1 hour ago
HashiCorp | The Infrastructure Cloud Company
Terms of Evaluation
HashiCorp helps organizations automate multi-cloud and hybrid environments with Infrastructure Lifecycle Management and Security Lifecycle Management.
"filter(P, S) is almost always written clearer as [x for x in S if P(x)]"
(с) Guido van Rossum on Python
(с) Guido van Rossum on Python
Parkinson’s law states that “work expands so as to fill the time available for its completion.”
This is one of the problems with having too many people on staff — you need to keep them busy. This is how software gets bloated. Too many people, too much time, too many features to add. It’s also a vote for more constraints. By forcing yourself to do less (because you have less money, less people, and less time) you can’t do too much.
2005 https://signalvnoise.com/archives2/dont_break_parkinsons_law.php
(signalvnoise это +-бложик DHH & Basecamp)
Вспомнил еще старый пост о других законах мироздания https://t.me/oleg_log/1652
This is one of the problems with having too many people on staff — you need to keep them busy. This is how software gets bloated. Too many people, too much time, too many features to add. It’s also a vote for more constraints. By forcing yourself to do less (because you have less money, less people, and less time) you can’t do too much.
2005 https://signalvnoise.com/archives2/dont_break_parkinsons_law.php
(signalvnoise это +-бложик DHH & Basecamp)
Вспомнил еще старый пост о других законах мироздания https://t.me/oleg_log/1652
Telegram
oleg_log
Laws, Theories, Principles and Patterns that developers will find useful.
Хорошее воскресное чтиво, не знал про Putt's Law. Короч советую ознакомиться.
https://github.com/dwmkerr/hacker-laws
Хорошее воскресное чтиво, не знал про Putt's Law. Короч советую ознакомиться.
https://github.com/dwmkerr/hacker-laws
Отлично, возможно после слов Линуса некоторые задумаются про "мой дед пилил 80 символов, мой батя пилил 80, мои дети тоже будут до 80 символов писать".
Я не совсем согласен с Нардис Викторовичем про "your hardware limitations" во всех смыслах случаях, но ломать совместимость со временем надо. Иначе прогресс просто замирает. (лайк за линкбэк)
Я не совсем согласен с Нардис Викторовичем про "your hardware limitations" во всех смыслах случаях, но ломать совместимость со временем надо. Иначе прогресс просто замирает. (лайк за линкбэк)
Forwarded from Hermitage
There really isn't any reason ⟨...⟩ [in] 80 columns any more
> Longer lines are fundamentally useful. My monitor is not only a lot wider than it is tall, my fonts are universally narrower than they are tall. Long lines are natural.
> If you choose to use a 80-column terminal, you can live with the line wrapping. It's just that simple.
> And longer lines are simply useful. Part of that is that we aren't programming in the 80's any more, and our source code is fundamentally wider as a result.
> And yes, we do line breaks at some point. But there really isn't any reason to make that point be 80 columns any more
LKML: https://lkml.org/lkml/2020/5/29/1038
From Linus Torvalds <>> If you or Christoph have 80 character lines, you'll get possibly ugly wrapped output. Tough. That's _your_ choice. Your hardware limitations shouldn't be a pain for the rest of us.
Date Fri, 29 May 2020 12:19:02 -0700
Subject Re: clean up kernel_{read,write} & friends v2
> Longer lines are fundamentally useful. My monitor is not only a lot wider than it is tall, my fonts are universally narrower than they are tall. Long lines are natural.
> If you choose to use a 80-column terminal, you can live with the line wrapping. It's just that simple.
> And longer lines are simply useful. Part of that is that we aren't programming in the 80's any more, and our source code is fundamentally wider as a result.
> And yes, we do line breaks at some point. But there really isn't any reason to make that point be 80 columns any more
LKML: https://lkml.org/lkml/2020/5/29/1038
Последние 2 или 3 недели решил пожить в Goland (который IDE от JetBrains) и...я так-то не много потерял, когда жил без него.
Конечно рефакторинг по F6 это прикольно, и вот все эти менюшки, но как показывает практика, бОльшая часть времени тратится в простом наборе кода и перепрыгиванию между файлами/определениями.
Что сильно выбешивает, так это время отклика, когда по привычке ставишь {} и быстренько хочешь поставить курсор внутри и нажать Enter, а в итоге проваливаешься на строку ниже, а скобки висят на месте. Да и другие телодвижения чувствуются в натяжку (сейчас в лс набегут со словами, что РАМУ РАМУ НАДО БЫЛО ПОДДАТЬ, но факт такой, mbp15 не дотягивает)(и да, кроме как телеги и хрома с 4 вкладками ничего нет, цпу нулевой).
В итоге с июня возвращаюсь в VSCode 🎉
Конечно рефакторинг по F6 это прикольно, и вот все эти менюшки, но как показывает практика, бОльшая часть времени тратится в простом наборе кода и перепрыгиванию между файлами/определениями.
Что сильно выбешивает, так это время отклика, когда по привычке ставишь {} и быстренько хочешь поставить курсор внутри и нажать Enter, а в итоге проваливаешься на строку ниже, а скобки висят на месте. Да и другие телодвижения чувствуются в натяжку (сейчас в лс набегут со словами, что РАМУ РАМУ НАДО БЫЛО ПОДДАТЬ, но факт такой, mbp15 не дотягивает)(и да, кроме как телеги и хрома с 4 вкладками ничего нет, цпу нулевой).
В итоге с июня возвращаюсь в VSCode 🎉
Думаю все уже наслушались про zero-day в Sign-in with Apple и выплате в 100к.
Но мне больше понравилась эта статья, где все тож самое, только по полочкам рассказывается https://aaronparecki.com/2020/05/31/30/the-real-cause-of-the-sign-in-with-apple-zero-day
тлдр:
1: Validate your form inputs!
2: Never roll your own authentication.
Но мне больше понравилась эта статья, где все тож самое, только по полочкам рассказывается https://aaronparecki.com/2020/05/31/30/the-real-cause-of-the-sign-in-with-apple-zero-day
тлдр:
1: Validate your form inputs!
2: Never roll your own authentication.
Aaron Parecki
The Real Cause of the Sign In with Apple Zero-Day
The zero-day bug in Sign In with Apple actually had nothing to do with the OAuth or OpenID Connect part of the Sign In with Apple exchange, and very little to do even with JWTs. Let's take a closer look to see what actually happened.
The Rule Of 2
https://chromium.googlesource.com/chromium/src/+/master/docs/security/rule-of-2.md
А еще я узнал интересную вещь: Rust ~ Trust, а T можно расшифровать как Transactional и доклеить свой скрытый смысл.
https://chromium.googlesource.com/chromium/src/+/master/docs/security/rule-of-2.md
А еще я узнал интересную вещь: Rust ~ Trust, а T можно расшифровать как Transactional и доклеить свой скрытый смысл.
Мне вот интересно, в этом комментарии скрыто много опыта или много боли? 🤔
Уже вижу желающих сказать "много опыта без боли не бывает".
Однако замечание очень меткое. Очень.
Уже вижу желающих сказать "много опыта без боли не бывает".
Однако замечание очень меткое. Очень.
Forwarded from HN Best Comments
Re: CA Root expired on 30 May 2020
Quick reminder from your friendly local SRE: never ever issue certificates that expire on weekends. Make certs expire in the middle of the afternoon on a business day wherever your operators live and work. The cert in question expires at May 30 10:48:38 2020 GMT, which smells suspiciously like a fixed time after the cert was generated, rather than at a well-chosen point in time.
jeffbee, 2 days ago
Quick reminder from your friendly local SRE: never ever issue certificates that expire on weekends. Make certs expire in the middle of the afternoon on a business day wherever your operators live and work. The cert in question expires at May 30 10:48:38 2020 GMT, which smells suspiciously like a fixed time after the cert was generated, rather than at a well-chosen point in time.
jeffbee, 2 days ago
Тут офиц твитор Rust не хочет пока ничего писать, пока в США творятся дела красочные. И вот конечно же возникает вопрос: а есть ли жизнь вне США ? Речь про айти, конечно же.
Опрос-вопрос ниже будет (частично?) необъективен, в силу места проживания и культуры уважаемых подписчиков (думаю все согласны, что европейцы, снгшники, американы и долго по списку думают по разному).
Собственно твит https://twitter.com/rustlang/status/1267519580756422659
Опрос-вопрос ниже будет (частично?) необъективен, в силу места проживания и культуры уважаемых подписчиков (думаю все согласны, что европейцы, снгшники, американы и долго по списку думают по разному).
Собственно твит https://twitter.com/rustlang/status/1267519580756422659
X (formerly Twitter)
Rust Language (@rustlang) on X
In acknowledgement that taking a stand against police brutality is more important than sharing tech knowledge, this account will pause tweeting until further notice. Feel free to email the core team at: core@rust-lang.org.
Forwarded from 0x1337
Знаю, не все из читающих программируют на C++, тем не менее, хотел бы узнать вот что:
Выражение состоящее из Шести подряд идущих точек стало возможным к написанию в...
Выражение состоящее из Шести подряд идущих точек стало возможным к написанию в...
Anonymous Quiz
13%
Точно в C++11
5%
Точно в C++98
3%
Точно в C++03
15%
Точно в C++17
7%
Точно в C++14
15%
Точно в C++20
41%
Планируют принять в будущих стандартах
В мае SpaceX запостили симулятор для стыковки капсулы Dragon с МКС https://iss-sim.spacex.com/ Вещь прикольная и не совсем легкая.
А один скучающий человек сделал автопилот для этого https://github.com/mbertschler/dragon-iss-docking-autopilot
Весело еще то, что весь алгоритм укладывается в 50 строк https://github.com/mbertschler/dragon-iss-docking-autopilot/blob/master/autopilot.go#L140 Остальное это приклеивание ввода к странице.
А один скучающий человек сделал автопилот для этого https://github.com/mbertschler/dragon-iss-docking-autopilot
Весело еще то, что весь алгоритм укладывается в 50 строк https://github.com/mbertschler/dragon-iss-docking-autopilot/blob/master/autopilot.go#L140 Остальное это приклеивание ввода к странице.
SPACEX - ISS Docking Simulator
This simulator will familiarize you with the controls of the actual interface used by NASA Astronauts to manually pilot the SpaceX Dragon 2 vehicle to the International Space Station.