Dimitrios Polymenos

200 posts

Dimitrios Polymenos

Dimitrios Polymenos

@DimiWantCracker

Coding my way out of paper bags. ¯\_(ツ)_/¯ used to make games, nowadays I try to make codebases better... Also, my views are my own...

가입일 Şubat 2018
157 팔로잉83 팔로워
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
Admitting defeat. No problems at all with compilers after all. I wrote a buggy accumulator and the bug manifested when the elements were ordered in a specific way. ... I was iterating over an unordered_map...
GIF
English
0
0
0
20
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
Career 1st. Discovering a potential code gen bug on C++ @VisualStudio compiler... ... While doing a take-home exercise for an interview. (Details TBD since I have to coordinate releasing the code to the public with the interviewer)
English
1
0
1
45
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
@dyaroshev This is one of the real examples where "c++ requires a lot of boilerplate" really applies. If you know, you know... (Not spoiling with details as this can be a legit interview question in some shops)
English
1
0
0
67
Denis Yaroshevskiy
Denis Yaroshevskiy@dyaroshev·
One of my favorite C++ excercises - writing `heap_value` - a wrapper around T that stores that T on the heap. template <typename T> class heap_value { public: // private: T* x; }; You are not allowed to use unique_ptr. It requires a ton of things to do well.
English
1
0
10
693
Dimitrios Polymenos 리트윗함
Ryan Fleury
Ryan Fleury@rfleury·
From the perspective of deduplicating codepaths, it’s a compression problem—if you compress too early, you get bad compression, because good compression requires more information about the entire dataset. So you can’t deduplicate too early.
English
2
5
159
6.7K
Sergei
Sergei@sergei_am·
@DimiWantCracker The order is used by the dtor - some object refer each other and are calling methods in their respective dtors.
English
1
0
0
56
Sergei
Sergei@sergei_am·
When a C++ class depends on a specific ordering of its members to work correctly - how is this anti-pattern called?
English
3
0
0
191
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
@sergei_am Member reordering implies layout sensitivity. Could you maybe hoist the problematic initialisation to a (potentially-defaulted) ctor parameter? Hard to know without seeing code 😔
English
1
0
0
39
Sergei
Sergei@sergei_am·
@DimiWantCracker The member reordering was the goal for me for performance reasons. I never hoped to find such a gem when I did that.
English
1
0
0
55
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
@sergei_am Caching!? Jokes aside... Legitimate uses might exist depending on context. But if I had to use an authoritative sounding term, it would be: Data-member-initialization-interdependincies You heard it here first!
English
1
0
0
24
Sea of Thieves
Sea of Thieves@SeaOfThieves·
Sea of Thieves Season 11 begins on January 23rd.
Sea of Thieves tweet media
English
327
431
3.8K
603.7K
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
@SeaOfThieves Cannot believe SoT is still going... 11th Season... On my 40th birthday nonetheless! It still seems like yesterday when me and @ChrisMarlow666 were coding up fishing! Keep up the good work crew!
English
1
0
3
175
Dimitrios Polymenos 리트윗함
CASTPIXEL🏳️‍⚧️ 🇵🇸🍉
Hi! I'm a professional pixel artist, illustrator and animator with 14 years of experience looking for a paying project. Doesn't have to be games. RTs are really appreciated. ty! #gamedev #pixelart
CASTPIXEL🏳️‍⚧️ 🇵🇸🍉 tweet mediaCASTPIXEL🏳️‍⚧️ 🇵🇸🍉 tweet mediaCASTPIXEL🏳️‍⚧️ 🇵🇸🍉 tweet mediaCASTPIXEL🏳️‍⚧️ 🇵🇸🍉 tweet media
English
108
3.6K
7.8K
0
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
@keeyaaaa Cannot believe it. Was there an hour after seeing your post. Went with something a bit more classic after the initial wow!
Dimitrios Polymenos tweet media
English
1
0
2
166
Dimitrios Polymenos
Dimitrios Polymenos@DimiWantCracker·
@fbuontempo Comma operator discard? Some unintended std::string ctor overload? Something to do with multi-arg bracket operator? Hard to tell without reference 😩. ELI5 please?
English
1
0
0
116
@fbuontempo@mastodon.social
@[email protected]@fbuontempo·
Spot the deliberate mistake: std::map<std::string, std::string> keywords; keywords["vector", "sequential container supporting dynamic resizing"];
English
4
0
7
1.4K