com.google.common.collect.Iterators.concat
Note: the current implementation is not suitable for nested concatenated iterators, i.e. the following should be avoided when in a loop: iterator = Iterators.concat(iterator, suffix);, since iteration over the resulting iterator has a cubic complexity to the depth of the nesting.Вот из-за этой штуковинки обычный список на 1к элементов заставлял пользователя немножко подождать.
А с 8к чуть-чуть больше.
https://google.github.io/guava/releases/19.0/api/docs/com/google/common/collect/Iterators.html#concat(java.util.Iterator)
C++’s creator finds himself on the other side of the community on the issue of C++’s growing complexity. Stroustrup correctly identifies C++’s growing complexity as a potentially fatal risk for the language.
С++ официально зашкварен самим Страуструпом. Расходимся.
http://www.stroustrup.com/P0977-remember-the-vasa.pdf
С++ официально зашкварен самим Страуструпом. Расходимся.
http://www.stroustrup.com/P0977-remember-the-vasa.pdf
Вопрос
Ответ
% cat string_view_uaf.cc
#include <iostream>
#include <string>
#include <string_view>
int main() {
std::string s = "Hellooooooooooooooo ";
std::string_view sv = s + "World\n";
std::cout << sv;
}
% clang++ -std=c++11 string_view_uaf.cc -stdlib=libc++ -fsanitize=address && ./a.out
?ooooooooooooooo World
=================================================================
==15854==ERROR: AddressSanitizer: heap-use-after-free
I don't know if this is a libc++ bug or a C++17 feature, please advise.
Ответ
LEWG/LWG considered this during the adoption of string_view, and decided that they were OK with it. (or, more accurately, that fixing this would make string_view much less useful).
So this is definitely a C++17 "feature".
Как программист из Екатеринбурга с нуля построил бизнес на $400 млн
https://www.rbc.ru/magazine/2019/01/5c1baef09a79470d23908f47
https://www.rbc.ru/magazine/2019/01/5c1baef09a79470d23908f47
system of a down driven exploits
https://www.qualys.com/2019/01/09/system-down/system-down.txt
https://www.qualys.com/2019/01/09/system-down/system-down.txt
Тупейшая желтизна приплыла.
АВС запускают сервис с апи монго и у SJW (software justice warriors) рвет крышу: как это можно взять апи и сделать для него сервис?
ОПЕНСУРС ИЗБИВАЮТ!!!111
Подумать же шире в желтой газетке не смогли :\
https://techcrunch.com/2019/01/09/aws-gives-open-source-the-middle-finger
АВС запускают сервис с апи монго и у SJW (software justice warriors) рвет крышу: как это можно взять апи и сделать для него сервис?
ОПЕНСУРС ИЗБИВАЮТ!!!111
Подумать же шире в желтой газетке не смогли :\
https://techcrunch.com/2019/01/09/aws-gives-open-source-the-middle-finger
TechCrunch
AWS gives open source the middle finger
AWS launched DocumentDB today, a new database offering that is compatible with the MongoDB API. The company describes DocumentDB as a “fast, scalable, and highly available document database that is designed to be compatible with your existing MongoDB applications…
У меня у одного кнопки JKL на ютюб работают как назад/пауза/вперед?
Даже в порномоде...
#абстрайксбэк
UPD
Все просто, они поломали определение cmd+<что-то>
Спасибо доброму человеку за мануал ❤️ https://support.google.com/youtube/answer/7631406?hl=en
Даже в порномоде...
#абстрайксбэк
UPD
Все просто, они поломали определение cmd+<что-то>
Спасибо доброму человеку за мануал ❤️ https://support.google.com/youtube/answer/7631406?hl=en
Google
Keyboard shortcuts for YouTube - YouTube Help
With keyboard shortcuts, save time navigating YouTube. To access the list of Keyboard shortcuts, go to your profile picture
В Яндексе есть MapReduce-платформа - YT.
«Ыть», как они сами ее называют.
;D
«Ыть», как они сами ее называют.
;D
Software developers use unnecessary props like like Electron and Kubernetes because they solve problems that shouldn’t exist in the first place or which a tiny fraction of companies actually have and need a solution for.
(c)
(c)
Forwarded from Typesafe-space
Монаду жителя Биробиджана признали самой красивой во вселенной.
Вроде бы обычный сишный
Но черт.
Какой здесь контекст?
Почему оно не импортится?
Почему после обычного импорта оно будет(?) работать?
ifdef или гошные build-tag.Но черт.
Какой здесь контекст?
Почему оно не импортится?
Почему после обычного импорта оно будет(?) работать?
try:
import cProfile as profile
except ImportError:
import profile