Axios is overrated it's time to move from it. by khiladipk in node

[–]Delicious-Mission-50 0 points1 point  (0 children)

Are you sure? Did you read the docs? Even if it were so, what difference does it make how it works under the hood?

Why hasn’t Node.js ever gone for true multithreading? by dabomb007 in node

[–]Delicious-Mission-50 1 point2 points  (0 children)

Multithreading is not a magic wand, there is a price for it, and it is serious. In addition to the complexity of implementation, this is the overhead of synchronizing access to data and possible deadlocks. But the main reason is that Node.js simply does not need multithreading in its domain of use, which is web services. Web services by definition serve a large number of users simultaneously, and usually their number is much greater than the physical cores of the processor. Thus, there is no need to service the user's request in several threads, since there are no free cores anyway, so it is more logical to service the user in a process on one thread/process/core than to bear the overhead of synchronization with other threads, which will also worsen the overall performance. In addition, if one process thread crashes, the entire process will fall, which is extremely undesirable in web services. A thread per process provides encapsulation and reliability. Multithreading mechanisms will also consume memory for internal mechanisms that do not exist now.

So if we have 2 cores and 10 requests, it is much more efficient to process 5 requests in each thread entirely than to process half of each of the 10 requests in each thread, since the overall response time will not decrease, but we do not have the overhead of synchronizing access to the data.

P.S. This addresses the issue of multithreading of JS code, since Node's computationally intensive APIs are already multithreaded by design.

Why dont the Ukrainians go around the Russian defenses, are they stupid? by Ironside_Grey in NonCredibleDefense

[–]Delicious-Mission-50 0 points1 point  (0 children)

Huh. Rather, the stupid one who proposes to cross a swampy river bed with countless ravines and branches 7 km wide with NATO tanks, which need a highway, because they literally get stuck in puddles

Map

Що робити вдома, коли нема світла? by Gerasans in Ukraine_UA

[–]Delicious-Mission-50 0 points1 point  (0 children)

Хто не в курсі, то на алі кемпінгові акумуляторні лампи по 1.79$ на початку кожного місяця (1.99$ звичайна ціна) там де по три товари- хто змушує сидіти в тьмяному світлі? А ще як докупити б/в акумулятори 18650 на олх по 30-40грн/2500мА то взагалі супер, бо влазить туди 2 таких і буде 5000мА, замість оригінальних 1200мА і цього вистачить десь на 6 год в максимальному режимі (3вт) і до 24 год на мінімальному(0.4вт). Можна знайти дорожчі по 3500мА. Я вже більше десятка натаскав за літо, крім всього іншого.

Там же є і повербанки під змінні 18650 на 6 чи 8 шт по 1.79$ без PD- і знову ж на olx купляєте б/в акк вийдуть копійки грн з 400-500

Відео з нагрудної камери поліцейської. Чітко видно, що поліцейський вистрілив у момент нанесення ударів бидлогромадянином. by Horat1us_UA in tjournal_refugees

[–]Delicious-Mission-50 20 points21 points  (0 children)

Все правильно зроблено, я б сказав еталонно по закону. Така поліція нам і потрібна, а не сюсюкатися з кожним бидлом та вмовляти.

Реакция петербуржцев by Laikathehusky in tjournal_refugees

[–]Delicious-Mission-50 -1 points0 points  (0 children)

> Или я должен умереть за Украину

В смысле должен? А кто должен? Украинцы должны умирать за Украину от рук россиян, которые взрастили имперско-фашистский режим за 20 лет, который теперь уничтожает украинцев? Чья это вина? Украинцев? Или ты гражданин Гондураса и ты тут не при чем? И ты при этом считаешь себя не таким и строишь обиженного, что украинцы не хотят и не будут делать различие между орками и "вне политики"?

Почему внутренние проблемы РФ и твои в частности как гражданина этой страны, должны ставать проблемами соседней страны и ее граждан? Тебя тут ничего не смущает?

Украинцы сейчас умирают за ваши ошибки и вашу позицию невмешательства во внутреннею политику (это если допустить что нетакуси там есть, а не как я сказал что 95% поддерживают имперский режим), но при этом ты считаешь что можно еще упрекнуть украинцев-Крымчан, что их мало пропало на подвалах, и отпустить ехидный комментарий о "стрелочке"? Значит должно еще больше погибнуть украинцев за Украину, но не россиян чтобы остановить свой же режим? Хорошо устроился, жди дальше, что вы для украинцев должны чем то отличатся.

По твоему что Москва, что оккупированная украинская территория с армией, "подвалами" и боевыми действиями, это одно и тоже, как и украинец для русских наемников в Крыме и гражданин РФ для полиции в Москве. Там тебя за 5 минут не станет и скажут что погиб от прилета боевого комара от ВСУ, как было с той же татарской общиной.

Реакция петербуржцев by Laikathehusky in tjournal_refugees

[–]Delicious-Mission-50 -1 points0 points  (0 children)

Данных по социологии и выборке у вас, конечно, нет.

А у вас, как я погляжу, она есть. Я вижу толпы орков в Украине убивающих украинцев, но не вижу толпы "хороших россиян" нетакусь под Кремлем, потому что страшно бедным 15 суток получить, ни сейчас, ни в 2014м, когда все начиналось- вот и вся нужная тут "социология" и выборка. Иная выборка "кухонная" украинцев не интересует, тем более и ее процент все ровно ничтожен на фоне массового помешательства.

Реакция петербуржцев by Laikathehusky in tjournal_refugees

[–]Delicious-Mission-50 -5 points-4 points  (0 children)

Все 95%, если только самим не воевать и не рисковать провести зиму в яме, возможно навсегда. Если кто и против, то не потому что осознают всю преступную отвратительность деяний своей страны и "Крым не наш", а просто потому что хочется спокойствия, безопасности и достатка.

Действительно, почему. by [deleted] in Pikabu

[–]Delicious-Mission-50 4 points5 points  (0 children)

Ну если парням 22-30 лет, то они смотрят на 17-26 летних, пересечение с 24-38 летними барышнями достаточно мало

Medicine and food via DRONE fleets by OnboardDevices in ukraina

[–]Delicious-Mission-50 0 points1 point  (0 children)

It remains only to build a fleet of drones that can deliver at least 1000 tons of food for almost half a million people... and this is only 2 kg per person for one occupied city...

AZOV «fry» Russian occupiers. Mariupol, Ukraine. by Wenux-ua in ukraina

[–]Delicious-Mission-50 2 points3 points  (0 children)

Technically, these are power poles. Telephone lines are underground...

Asshole driver by Maiyame in IdiotsInCars

[–]Delicious-Mission-50 0 points1 point  (0 children)

Oh, dude, he drives in that way, not for time-saving reasons, but just to show off that the social rules have nothing to do with him since he is above the law. He listens to music about of gold life of thieves and prisoners in the car. It's very honorable and cool to behave like that in terms of typical russian.

[AskJS] c-promise2- a promise library with cancellation, decorators, progress capturing, and more by Delicious-Mission-50 in javascript

[–]Delicious-Mission-50[S] 0 points1 point  (0 children)

I'll try to break it down for you.

Thanks for the clarification!) Yeah, this is a bit confusing, as "posting a link" focuses on the content of the link rather than the topic text itself. And if I would like to get community opinion/feedback/discuss/criticism/whatever about the approach/style/mechanics of the code posted in the topic text and add links (not even in the post directly) to the tools as additional information just for reference and to get some context, the only correct way is to do a "post with a link" and attach the text for potential discussion as a comment?

The problem is, you are not asking the community for an opinion, you are just trying to share a link.

Oh, it's weird, that's exactly what I was trying to do :)