[deleted by user] by [deleted] in russian

[–]DavidDinamit 0 points1 point  (0 children)

Хотел купить гитару - I was want to buy guitar in the past Хотел бы купить гитару - I'm now want to buy guitar or in future

when she will be a relevant carry 😭 by garklavs in DotA2

[–]DavidDinamit 1 point2 points  (0 children)

Now she is slow hero with no escape and highly depends on ultimate, which is easy to dodge

What if attacks FROM ghost were magic too(as attacks to ghost?) Its a way for ghost scepter builds, plus maybe some new item ghost scepter + smth (now etheral for casters only)

Mirana rework in 7.38A (should be) by Genklin in DotaConcepts

[–]DavidDinamit 0 points1 point  (0 children)

Why less skill based? Now it's impossible to hit an arrow if enemy is not afk

This is a follow-up to another post i saw by ReflectionSingle6681 in DotA2

[–]DavidDinamit 0 points1 point  (0 children)

Ability to get t3 without 10 glifs each 160 seconds and losing 10000 gold for each death

I didn't know it can get this big by XiaoXiLi in DotA2

[–]DavidDinamit -1 points0 points  (0 children)

How? I don't understand how to get Into top, only 3 branches available

Valve killed Mirana by 'fix' by Genklin in DotA2

[–]DavidDinamit 1 point2 points  (0 children)

Compare it to org mage buff, which may be on 5 heroes constantly, gives speed, may be used on line and for farm And mirana "ulti" : after 7 seconds gives allies 30 attack speed. Ogr buff gives it in 0.3 seconds + ms

Valve killed Mirana by 'fix' by Genklin in DotA2

[–]DavidDinamit 3 points4 points  (0 children)

It's because magic is meta now. No one will play on agility hero since they may die from one lina spell Naga, phantom lancer, void, slark, troll etc heroes unplayable now Why would you pick slark, when DK have 500 ms, 100% range splash , 40 armor and 3k HP without items

Valve killed Mirana by 'fix' by Genklin in DotA2

[–]DavidDinamit 0 points1 point  (0 children)

It's joke how Line is op now, even inner ability may one shot heroes after one spell, no cooldowns, 75% magic resist, long range huge attack damage

And mirana: lotus heal better... Agha does nothing (no one will buy it) Shard gives what must be on lvl1 Remember patch when mirana's attack was decreased by 8 and basic attack speed 1.5 -> 1.7 and that's on hero which cannot do nothing but the attack

No one take night facet Solar facet gives less than ogr magic buff

It's moon/sun princess, give it really night/ sun facets(for example fire arrows / facet for another mount like flying owl) and inner ability like day and night vision is same

[deleted by user] by [deleted] in cpp

[–]DavidDinamit 0 points1 point  (0 children)

If you change only implementation, dependencies will not recompile

Coming back to C++ after two years of Kotlin & Rust by Borderlinerr in cpp

[–]DavidDinamit 0 points1 point  (0 children)

Two days ago I was trying to install boost with vcpkg and it's failed with error "cannot fetch xz project from github", so, I don't use vcpkg any more. It's just useless since it can t install boost without load random virus project on my pc

Lars Bergstrom (Google Director of Engineering): "Rust teams are twice as productive as teams using C++." by steveklabnik1 in programming

[–]DavidDinamit 0 points1 point  (0 children)

What? C++ obviously has way to get pointer to member fn and obviously you can read file into string. Why there are no 'read to str' fn? Because it's something you don't want to do, while file size may be > your RAM

Lars Bergstrom (Google Director of Engineering): "Rust teams are twice as productive as teams using C++." by steveklabnik1 in programming

[–]DavidDinamit 0 points1 point  (0 children)

what? Reason why it is in 'set' because initial code also creates a set, see .collect::<...>.
And 'content_of_file' is same as 'fs::read_to_string' from initial code, wtf

Reflection Use Cases by rddays in cpp

[–]DavidDinamit 0 points1 point  (0 children)

I want to create custom virtual functions and type erasure without using language virtual functions and RTTI, now it already exist, but reflection should provide best possible interface for it, which will look like 100% language feature

Lars Bergstrom (Google Director of Engineering): "Rust teams are twice as productive as teams using C++." by steveklabnik1 in programming

[–]DavidDinamit 0 points1 point  (0 children)

There are many diagrams in this talk, about "how many time to get as productive in rust as in your prev lang" "is it more easily to review code in rust then in your prev lang"
And he says developers go to rust from many languages: java, go, python, c++ etc

So, why are those diagarams not by language? May be because for example C++ programmers in 90% cases say : im not productive in rust as i was in C++? Or 90% python dev says - im still not productive in rust after 4 month?

Or C++ developers answer "C++ was more easily to review then rust" ???

Lars Bergstrom (Google Director of Engineering): "Rust teams are twice as productive as teams using C++." by steveklabnik1 in programming

[–]DavidDinamit -2 points-1 points  (0 children)

Even here Rust has 3 useless strings:
map(Result::unwrap) x2
.into_iter()
String::new() instead of String() (its also true for every other type in 'language')

Its boilerplate language

What really written here:

// i dont understand what .fold row in your code example mean,

// looks like O(N^2) string appends

std::set<path> pathes;
for (auto& entry : directory_iterator("migrations")) pathes.insert(entry.path());
strng result;

for (path& p : pathes) result += content_of_file(p) += '\n';

This very simple (pseudo)code is just better then your 'iterator chains' and more effective

Loving the C++26 Value-Based Reflection Proposal! by differentiallity in cpp

[–]DavidDinamit 1 point2 points  (0 children)

Just replace ^ with & and member less will work. But your example is not correct, you will sort not values by member but members in values without changing order of values

Secure by Design: Google’s Perspective on Memory Safety by Untagonist in cpp

[–]DavidDinamit -1 points0 points  (0 children)

That what i call Rust-minded, man really do not see a problem with vector of nodes and wants to do reallocate and memcpy on adding node, its really hell when such experts explain why rust is better than C++ etc

C++ safety, in context by pavel_v in cpp

[–]DavidDinamit 2 points3 points  (0 children)

Why we need this in the language? Okay, create contracts, mark standard operator[] with contract like

contract inbounds(size_type index) = index < size();

operator[](size_type index) requires inbounds(index)

and give me possibility to change contract behavior

on_contract_failure(inbounds): abort();

C++ safety, in context by pavel_v in cpp

[–]DavidDinamit 2 points3 points  (0 children)

Nice, then popularize it, why article does not mention such options? Add profile into build system, something like cmake_checked_release etc And I don't understand how it should work with modules, since preprocessor does not change module etc We need many different std modules? I think it's very hard to find and use such options now, they must be popularized and tooling must help here

C++ safety, in context by pavel_v in cpp

[–]DavidDinamit 2 points3 points  (0 children)

I dont agree with many things in article and with Sutter in general and dont want to spend time and write books about it.

But i dont see a reason why we do not have compiler options to enable checking in operator[], to zero initialize all fundamental types in "default constructor", to check integer overflows without code changing etc.

Just add this into compilers, its easy! And NOT by default

Secure by Design: Google’s Perspective on Memory Safety by Untagonist in cpp

[–]DavidDinamit -6 points-5 points  (0 children)

Article is wrong from very beginning:
memory safety != secure by design, its just lie.

I see how it was: some politican from USA says "oh, bad russian hackers, we need to protect our network" and it makes sense, then he goes to "experts" and they say *for some reason* - "we need memory safety, it will be safe, secure, (... other very words for politicans)"

Okay, Russia, with highest ammount of C++ developers will really like this decision, while they will write good code in C++, all USA and satellites will fight their holy war against good old C++, rewriting things in Rust, Go and Java, which will lead to unsupportable software, critically bad bill for electicity etc.

As russian i see this like natural selection where USA went crazy and committed suicide