Dmitrii Kovanikov

41.4K posts

Dmitrii Kovanikov banner
Dmitrii Kovanikov

Dmitrii Kovanikov

@ChShersh

Dysfunctional Programming account #1. Senior SWE. I write C++ for money. ex-Haskell, ex-OCaml. All opinions are my own.

London, UK Katılım Ekim 2013
246 Takip Edilen67.7K Takipçiler
Sabitlenmiş Tweet
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
Wanna become a C++ expert? Good news, everyone! Join CodeCrafters and build your own low-latency in-memory DB. And because you endured all my shitposts, you get a generous 40% discount. I reward your loyalty. app.codecrafters.io/join?via=chshe… It's time to git gud. #ad
Dmitrii Kovanikov tweet mediaDmitrii Kovanikov tweet media
English
18
22
383
57.3K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@websloprat Hard to say. One can say, it's a flex being in tech now as a Junior and managing to find a job anyway in this crazy market. But I'm glad I learned lots of stuff pre-AI. It helped a lot to solidify fundamental knowledge.
English
0
0
0
100
regard
regard@websloprat·
@ChShersh is it really a flex if you were in tech before the pandemic though
English
1
0
1
101
LitFill
LitFill@razzy_ar·
@ChShersh Is this what they call midlife crisis?
English
1
0
1
93
Mari
Mari@Tech_girlll·
@ChShersh What’s the story? I want to hear it 🙏
English
1
0
2
174
Tom Sydney Kerckhove
Tom Sydney Kerckhove@kerckhove_ts·
@devabram Only because I worked on getting GHC to be deterministic because it very much isn't :p
English
2
0
12
1.8K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@AndrewGossage33 Yeah, I work with a single-line text, I don’t have newlines, so why do extra work. Fortunately, taking care of them as well them is straightforward.
English
1
0
0
19
Andrew Gossage
Andrew Gossage@AndrewGossage33·
@ChShersh Are you intentionally leaving newlines or am I missing something?
English
1
0
1
24
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
You're not a true C++ dev if you haven't written your own implementation of string 'trim' at least once. Here's a version with zero allocations.
Dmitrii Kovanikov tweet media
English
19
9
243
16.8K
🦅
🦅@NarcosLukaku·
@ChShersh are you talking about Ocaml to c++ transistion😭
English
1
0
1
183
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@endingwithali Every morning here I see an unhinged tweet and I’m trying to guess whether it’s a copypasta, a parody, or just the normal state of the world.
English
0
0
2
228
ali
ali@endingwithali·
I think I’m willing to give up on the fact that a man will not take me to get fork lift certified as a first date Instead I am willing to settle on a picnic but it’s us, a whole rotisserie chicken each, a stack of 100 unhinged questions (generated by our AI of choice using our account history), and a bottle of wine (or case of spindrift).
English
7
0
31
1.8K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
There’s this little thing on Windows that fixes all of the dev problems but nobody admits it
sudox@kmcnam1

English
67
17
2.3K
339.9K
Marco
Marco@shotpianist·
@ChShersh And it's called Linux on Windows
English
2
0
121
29.9K
Dartrisen
Dartrisen@Dartrisen·
@ChShersh it's not that "little" tho, it consumes 4+ gigs of ram
English
6
0
208
33.2K
csgm
csgm@csgbwk·
@ChShersh WSL finished convincing me to switch to linux full time
English
2
2
306
30.4K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@sudox7 What's even funnier is that this naive implementation has automatic memoisation
English
1
0
27
1.3K
SudoX7
SudoX7@sudox7·
fun fact: c++ templates run at compile time. you can compute fibonacci, sort a list, or build a type-safe state machine before main() is ever called.
SudoX7 tweet media
English
7
10
194
12.2K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@schteppe I wonder how many people noticed. I'm not even trying to be subtle at this point, yet I'm surprised how many people replied seriously.
English
0
0
1
40
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
C++20 introduced for-range loops with an init-statement. I propose to support increment statements in for-range loops in C++29. I call it Default Enumerated Range loops, or DE-ranged loops for short.
Dmitrii Kovanikov tweet media
English
17
10
232
15.4K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
These are my drafts for installing OCaml on Windows for Ubuntu under WSL. I was planning to write a blog post, but I'm too lazy, so here you go.
Dmitrii Kovanikov tweet media
English
7
4
88
4.8K
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@yama_codes OCaml is a really nice language. It's very pragmatic and ergonomic. When I don't need the lowest possible latency, I go for OCaml. Otherwise, C++
English
0
2
11
375
Yama
Yama@yama_codes·
@ChShersh How's OCaml as a language? Does it have definitive advantages over C++ or C?
English
2
0
1
138
Dmitrii Kovanikov
Dmitrii Kovanikov@ChShersh·
@OSINTCap This is just a trade-off, as usual in programming. You gain portability, but you might lose some performance. Different languages provide different options, so you can always pick the tool with the best set of trade-offs for you.
English
0
0
1
13
OSINT Capital
OSINT Capital@OSINTCap·
@ChShersh A java application or python application are running on their own VM (Java Virtual Machine, Python Virtual Machine) and are packaged as an executable with that VM included. I understand the portability reason, but things would be better, if they were tailored for each platforms.
English
1
0
0
8
OSINT Capital
OSINT Capital@OSINTCap·
why is it that most software tools/libraries/frameworks for building have an abstraction and relies on virtual machines, why couldn't they just make it so it runs directly on bare metal.... why do they always do this. No it's not design requirement, they're just retarded!! WHY!?
English
4
0
3
1.4K