Eric

35 posts

Eric

Eric

@MindOfTony

Katılım Ağustos 2022
19 Takip Edilen8 Takipçiler
Eric
Eric@MindOfTony·
@reichswanderer I don’t think typescript could if it wanted to, it’s been long but I remember typescript not being a sound type system. It also allows stuff like casting string array into string or number array. I see it as a missed opportunity but design goals and such…
English
0
0
0
19
Nnanna
Nnanna@reichswanderer·
iirc, the worst part about TS is that it provides little type information to the JIT which is downstream, which means that there are probably minimal performance benefits of using it in the first place.
stupid tech takes@stupidtechtakes

English
2
0
0
155
Eric
Eric@MindOfTony·
@chinedu_10 Very minor nitpick, but the reason why it’s so dangerous in c/c++ is because it’s not guaranteed to crash, it can cause memory corruption if the system reused that memory for a different allocation (unless you use sanitizers)
English
2
0
7
271
chinedu🦀
chinedu🦀@chinedu_10·
A reference pointing at data that no longer exists is one of the oldest bugs in programming. C lets it crash, Java uses a garbage collector. Rust makes you prove it can’t happen at compile time, with zero runtime cost.
English
1
3
33
5.1K
Eric
Eric@MindOfTony·
@vivekgalatage It’s even more useful if you use = delete to remove troublesome overloads
English
0
0
1
163
Vivek Galatage
Vivek Galatage@vivekgalatage·
The delete-with-reason from C++26 is quite useful! Helpful to document why a certain method is removed from the class. #motivation" target="_blank" rel="nofollow noopener">open-std.org/jtc1/sc22/wg21…
Vivek Galatage tweet media
English
6
8
149
10.9K
Eric
Eric@MindOfTony·
@reichswanderer This is true to an extent, sometimes the prose is needed to give a full picture, but I believe it should be accompanied by explanatory text
English
0
0
0
16
Eric
Eric@MindOfTony·
@nohost_dev About that… I figured out some dubiously long combos and got super lucky. jumping helps a lot especially out of stomp and side airs
Eric tweet media
English
0
0
1
30
nohost
nohost@nohost_dev·
@MindOfTony have you tried jumping more? his side airs hit horizontally so he'll catch you with them if you're trying to dodge out of hitstun
English
1
0
0
78
nohost
nohost@nohost_dev·
this fight is giving a lot of people trouble without a proper explanation of all the systems it's pretty hard to brute force tbh. here's how i beat clem
English
560
2.2K
36.2K
9.4M
Eric
Eric@MindOfTony·
@nohost_dev @noxlotl I needed a lot of 5-7 hit combos, can’t be caught losing neutral tho
Eric tweet media
English
0
0
0
15
nohost
nohost@nohost_dev·
@noxlotl Damn legit like 2 pixels of health bar lol. Those back airs hit when he's downed too, little known tech
English
2
0
5
296
Eric
Eric@MindOfTony·
@nohost_dev If the AI gets any better than Oreo that’ll actually be crazy. I’ve gotten him down to about quarter HP once but I barely get to half. He just keeps eating my recovery with the side airs
English
1
0
8
371
nohost
nohost@nohost_dev·
@MindOfTony I still think oreo is an easier fight even though he ai is stronger, I think because the hunters moveset lets you get some longer combos in more easily and hunters grab is kinda OP
English
1
0
50
20K
Eric
Eric@MindOfTony·
@chinedu_10 @reichswanderer You still have to choose to use new, pointers still have destructors, they’re trivial but they exist
English
0
0
2
18
chinedu🦀
chinedu🦀@chinedu_10·
If the mechanism exists but does nothing by default for raw pointers, and you have to explicitly choose a smart pointer to get actual resource cleanup how is that not opt-in? Nobody said C++ doesn’t have RAII. I said you have to choose to use it. That’s what opt-in means. I wonder what’s difficult to understand.
English
2
0
1
84
Eric
Eric@MindOfTony·
@straceX ADL tends to do that sometimes
English
0
0
0
89
Strace
Strace@straceX·
People say C gives you enough rope to hang yourself. C++ gives you a loaded gun, but the trigger is a template metaprogramming error and when you pull it, you accidentally shoot a dog in a different namespace.
English
10
13
139
4.1K
Eric
Eric@MindOfTony·
@ChShersh Shouldn’t the return value be decltype(auto) or std::remove_reference_t<T>&&, because T&& can collapse to lvalue reference
English
2
1
5
955
jabbr
jabbr@JustinAlexBaker·
@ChShersh how do you live without a .contains() method for vector? just always using iter != vector.end() or switch to unordered_set?
English
2
0
1
467
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
Just spent 8 hours writing C++ non-stop. AMA
English
139
4
440
56.2K
Eric
Eric@MindOfTony·
@reichswanderer Rust needs variardic generics and reflection
English
0
0
0
14
Nnanna
Nnanna@reichswanderer·
Rust should be the boring Java of the future. That's where it should aim for. That way, we should hopefully get, generally, software of slightly better quality than what we have today
English
1
0
1
36
oxcrow
oxcrow@oxcrows·
C++ devs hate it when someone says C/C++. But to me, writing C++ as "C with classes, methods, and very few templates," is the only right way to write reliable code. Miss me with that modern C++ ish. So we call it C/C++.
GIF
English
7
1
13
603
Eric
Eric@MindOfTony·
@reichswanderer @usman_akinyemi Is he tho? If you’re not doing stupid shit with box.leak every reference is tied to an automatic storage duration object
English
1
0
0
11
Nnanna
Nnanna@reichswanderer·
@usman_akinyemi it doesn't translate very neatly to scopes or higher order trait bounds. But yeah, you're pretty much correct.
English
2
0
0
31
Usman Akinyemi
Usman Akinyemi@usman_akinyemi·
Anyone who understand Borrowing and Ownership in Rust without knowing or Understanding Stack and Heap memory is a liar. The person is capping.
English
4
0
15
491