wangzhr4 Profile Banner
wang Profile
wang

@wangzhr4

Followers
3K
Following
8K
Media
630
Statuses
6K

I like putting `GNU` in front of `Linux` | HPC Dev | C, Shell, & Cloud | Music

Shanghai, China
Joined October 2022
Don't wanna be here? Send us removal request.
@wangzhr4
wang
1 year
Seeing universe as a whole that follows Tao/Dao, is one of the essences of Zhuang Zi's philosophy. That really broadens one's views and thoughts. Sadly, we are being advocated to be "individual". Actually not. One's fingers cannot be individual, so is everyone. We are connected.
@wangzhr4
wang
1 year
Shu(倏) lived in the South, Hu(忽) lived in the north, Chaos lived in the middle. Chaos treated Shu and Hu very well. Shu and Hu wanted to repay Chaos for his kindness. They discussed:. Everyone has 7 orifices to look, hear, breath, and eat; but Chaos doesn't. Let's help him by.
3
3
22
@wangzhr4
wang
5 hours
No, using raw pointers in C++ in 2025 means you are writing C, not C++, of course not modern C++. Use STL or equivalent Template Libraries. They are encapsulated enough to avoid any necessity of raw pointers.
@Aadriksh
Aadriksh
19 hours
Some devs say using raw pointers in 2025 means you’re not writing Modern C++. Others argue they still have niche use-cases. Where do you stand?.
11
2
68
@grok
Grok
8 days
What do you want to know?.
658
477
3K
@wangzhr4
wang
5 hours
We've developed CPU from 32 to 64, yet we still cannot shift the GB from 1,000,000,000 Bytes to the precise value: 1,073,741,824 Bytes. We still have to use GiB, in serious scenarios. We are so smart.
0
0
2
@wangzhr4
wang
14 hours
Wait . Is PayPal still alive and relevant?.
3
0
9
@wangzhr4
wang
14 hours
You can play with dynamic data structures in C, but there is one rule: Do not assert memory allocation succeeds, instead, always check NULL return.
@zack_overflow
zack (in SF)
2 days
Every programmer should spend time building all the fundamental data structures from scratch (dynamically resizable array, hashmap, linked list). Actually learning how they work and the specific implementation tricks is 10x more valuable than just knowing their Big O complexity.
0
0
7
@wangzhr4
wang
15 hours
Use uint8, you would save 3 bytes.
@tsoding
Тsфdiиg
1 day
Boolish on ints
Tweet media one
57
14
1K
@wangzhr4
wang
15 hours
You would definitely be doomed if you really, really think that AI is smart enough, vibe coding is reliable, and your computer is secure with LLM:
Tweet media one
2
0
9
@wangzhr4
wang
1 day
They crawled the GitHub to train their AI models, and claim that AI coding is magic and that AI can turn ideas into codes/products immediately.
@icanvardar
Can Vardar
2 days
they milked stackoverflow to train their ai models, tossed it aside like trash, and now nobody even uses it anymore.
0
1
3
@wangzhr4
wang
1 day
If you are obsessed to AI in your phone, I'd say, good luck to your privacy. I like AI, but take over my phone? Get the fk outta here.
0
0
3
@wangzhr4
wang
2 days
Just curious but isn't OAuth a debatable decision for your apps? Your user statistics (not the data in your app but the signup/signin) would be exposed to the OAuth providers, right?.
1
0
1
@wangzhr4
wang
4 days
The core of the core issue in Web services: Heartbeats. Never forget designing a good heartbeat solution to handle situations related to networking issues.
@asmah2107
Ashutosh Maheshwari
4 days
Quick Question:. "Just use WebSockets" they said for chat. Simple, right? . Then your users complain: . "Why does my friend appear online when their phone is off?" . "Why did my message disappear when the network blipped?". How do you fix this ?.
0
0
5
@wangzhr4
wang
5 days
When interacting with system-level APIs, the golden rule is:. Always check the return value. The OS doesn't guarantee your stuff - it has lots of things to take care of. Maybe, most of the times it returns good results for you to proceed with, but exceptions may occur.
0
0
6
@wangzhr4
wang
5 days
I don't doubt the coding capabilities of AI models, because:. - I can develop interactive, intuitive, functional front end pages without knowing TypeScript language or next.js frameworks. (E.g. a fully functional dashboard). - I can let AI to implement pretty good backend modules.
1
0
2
@wangzhr4
wang
7 days
Anyone claiming that BYD is "leading the EV market" actually lack of sense of reality about China and the Chinese market. The EV prosperity in China has been driven directly and mainly by the government strategy and policies. So, is Tesla great? Maybe, maybe not, but the real.
@nikstankovic_
Nik Stankovic
7 days
Do people understand why this is? Their revenues are roughly the same, but one is worth (market cap) 6 times more than the other. Why would that be?. Partial answer is hype. The other part of the answer is trust in the future. Chinese companies, it is believed, are controlled by.
0
0
1
@wangzhr4
wang
7 days
Could any one please explain why Cloudflare is able to verify a human without any explicit interactive challenges? Many thanks.
Tweet media one
7
0
17
@wangzhr4
wang
7 days
A weird thing is, I have never seen any mainstream consumer products here in China equipped with the mysterious LoongArch chips. What's happening in China is, for general purpose products, X64 and Arm are still dominating and will continue dominating the market. Without enough.
@lauriewired
LaurieWired
8 days
The West has a blindspot when it comes to alternative CPU designs. We’re so entrenched in the usual x86, ARM, RISC-V world, that most people have no idea what’s happening over in China. LoongArch is a fully independent ISA that’s sorta MIPS…sorta RISC-V…and sorta x87!
Tweet media one
Tweet media two
0
0
3
@wangzhr4
wang
7 days
This morning, my boss talked a lot about making money with Web 3, USDC, USDT, international trading . I was like: damn it, I'm gonna fire him.
1
0
5
@wangzhr4
wang
7 days
Without smoking, I can code. Without chewing gums, I can code. Without washing or shaving, I can code. Without air conditioners, I can still code. Without coke, well, maybe I can code. But without coffee - are you kidding? Give me the damn coffee!.
2
1
9
@wangzhr4
wang
8 days
Which do you prefer for the REST API endpoint format? With or without a trailing slash '/'?. /resources ?.or./resources/ ?.
7
0
11