Christian Hofer

901 posts

Christian Hofer

Christian Hofer

@chmhofer

Father of three. Gemini at work, Kimi at home.

Seville, Spain Katılım Aralık 2012
413 Takip Edilen96 Takipçiler
Christian Hofer
Christian Hofer@chmhofer·
@ChShersh I think that would be std::weak_ptr. You think you own it, until the government takes it away from you.
English
0
0
3
93
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
std::shared_ptr is C++ idea of communism
Dmitrii Kovanikov tweet media
English
29
26
408
13.4K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
In the age of AI, knowing Vim still helps me daily. Truly a timeless essential skill to have.
English
51
15
463
31.7K
Christian Hofer
Christian Hofer@chmhofer·
@ChShersh You don't like C++? Don't let the functional programming expert hear this!
English
0
0
1
83
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
It’s hilarious how someone writes a bad post about C++ and each time three absolutely random people summon me replies telling me I NEED TO SEE THIS AND DISAGREE
English
24
4
128
6.3K
Christian Hofer
Christian Hofer@chmhofer·
@ChShersh Well, instead of learning Zig, I ended up vibe coding in Python. Learning Ukrainian is probably more honourable... Although, I imagine, for you it must be like for me learning Dutch.
English
1
0
1
313
Christian Hofer
Christian Hofer@chmhofer·
@ChShersh For me that was quite a shock initially to learn that these "optimal algorithms" are not the ones that are useful in practice. Our algorithms department at university was focusing on the latter, and I was stupid enough to be disappointed by that...
English
0
0
10
3.5K
Christian Hofer
Christian Hofer@chmhofer·
@ChShersh Maybe I would be willing to trade your 2% of C++ against my -2% of C#, though.
English
1
0
0
10
Christian Hofer
Christian Hofer@chmhofer·
@ChShersh @lisyarus These are the things I enjoy reading in my Twitter feed. You may agree with this style and the abstractions it permits, or you may find it obfuscating. But Twitter at its finest is showing us what each programming language offers.
English
0
0
1
72
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
Thanks, @lisyarus, for these examples of variadic templates. They enabled me to finally implement a nice eDSL in C++ for creating TUI layouts declaratively.
Dmitrii Kovanikov tweet mediaDmitrii Kovanikov tweet mediaDmitrii Kovanikov tweet media
Nikita Lisitsa@lisyarus

@ChShersh Yep, I mean scope-based automatic destructors specifically, aka RAII. As for variadic templates, I use them in a lot of places! My ECS implementation (bitbucket.org/lisyarus/pseme…) is heavily based on them, e.g. here's how I create an entity - world.create() has to use variadics

English
4
0
64
6.6K
Christian Hofer
Christian Hofer@chmhofer·
@debasishg Are they different to C# structs that have been around from the beginning?
English
1
0
0
98
Debasish (দেবাশিস্) Ghosh 🇮🇳
value objects in JDK 26 will be a game changer in data oriented programming .. Value objects are identity-less and immutable by design. The JVM is allowed to: • Flatten (inline) them directly into the memory layout of the containing object or array. • Eliminate the per-instance header and padding that regular objects require. • Store them contiguously, just like a C struct or a Rust struct. Concrete performance wins delivered: • Cache-friendly data structures: Point[], Complex[], Vector3d[], record-like data carriers, etc., now behave like primitive arrays. • No more @ Contended hacks (the old annotation that manually padded fields to avoid false sharing). • Better locality in collections (e.g., ArrayList or specialized value collections will be dramatically faster). • Reduced GC pressure because fewer objects = fewer things for the garbage collector to scan. • AOT / JIT friendliness - the compiler can make much more aggressive assumptions about layout and inlining.
Paul@PaulLarionov

JDK 26: - build-in HTTP/3 - AOT caching for lightning-fast startup - project Valhalla: value objects, goodbye memory overhead, hello CPU cache - project Loom: structured concurrency making async code as easy as sync - project Amber: pattern matching & data-oriented programming - project Babylon: running pure Java natively on GPUs for AI

English
7
11
86
9.7K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@HaoTurnip It's crazy how try_emplace was added in C++17, yet LLM still doesn't leverage it 9 years later
English
6
0
27
22.8K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
Same C++ function. One is generated with AI. The other one is written manually. Guess which one is which.
Dmitrii Kovanikov tweet mediaDmitrii Kovanikov tweet media
English
203
46
1.3K
521.7K
severin tatarczyk
severin tatarczyk@stagerbn·
Der Wahl in seinem Tun steht exemplarisch für ganz Deutschland.
severin tatarczyk tweet media
Deutsch
48
15
250
5.6K
jenn ☀️
jenn ☀️@jennsun·
overheard a new insult: you have a short context window 💀
English
235
1K
12K
405.2K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
If you recognise this, take care of your knees
Dmitrii Kovanikov tweet media
English
887
443
6.2K
206.8K
Christian Hofer
Christian Hofer@chmhofer·
@jdegoes Do you have a link? For me, it makes sense that Rust should work well. In my experience, Python is going much smoother, though.
English
1
0
0
198
John A De Goes
John A De Goes@jdegoes·
@chmhofer Benchmarks don't support that hypothesis for certain choices of [my favorite language].
English
1
0
4
564