Chris Blume

14.5K posts

Chris Blume banner
Chris Blume

Chris Blume

@ProgramMax

industry accolades: "software engineer" - BleepingComputer "developer" - Engadget "Twitter user" - XDA

Katılım Nisan 2009
947 Takip Edilen1.4K Takipçiler
Chris Blume
Chris Blume@ProgramMax·
@marcaruel Slightly necroing this but it popped into my head again and I'm so curious. How can you skip the message pump?? I mean, it technically can be ignored. But you won't get messages you need like WM_QUIT, right?
English
1
0
0
14
Marc-Antoine Ruel
Marc-Antoine Ruel@marcaruel·
@ProgramMax I was specifically measuring the memory usage of the tiniest process achievable on Windows when we decided to make Chrome multiprocess. I was happy to realize we could save memory by skipping the message loop, only to realize we'd need one for the renderer process anyway.
English
1
1
3
64
Marc-Antoine Ruel
Marc-Antoine Ruel@marcaruel·
As a Windows NT4, 2000 and XP kernel developer, on the initial Chrome sandbox team, Daniel is wrong. Win32 is a shithole of legacy compatibility. Absolutely bypass it if you can afford it! Nobody with a thinking head needs 26 emulated current working directories per process.
Marc-Antoine Ruel tweet media
Daniel Colascione@dcolascione

For starters, kernel32 performs various path transformations as it passes filenames from user programs to ntdll and the kernel. A program using ntdll directly, especially if it isn't careful to emulate win32 semantics (which I doubt Zig takes care to do) will behave unlike other Windows programs, e.g. when figuring out what actual disk file a string path names. Is the direct ntdll way better? Yes, it is, viewed in isolation. I quite like NT. Win32 is aesthetically suboptimal. But a direct ntdll program is *different*, and it's the difference that will cause subtle headaches for all sorts of users and integrators. Maturity in software is understanding that you sometimes have a duty to put up with an ugly interface for the greater good of a consistent interface. Our decisions ramify in time, and it's better for everyone to be consistently warty than for every program to be selfishly special. Plus, it's just rude to do this stuff, because 1) Zig is making a lot of work for the Windows team by making them support a second API surface they never signed up to support, and 2) Zig is constraining the evolution of the Windows platform by forcing Microsoft to freeze internal APIs in amber when they should be able to improve them. The Zig people do the same thing on Linux, by the way. They bypass libc and go straight to the kernel, breaking LD_PRELOAD shims Linux users rely on. And for what? Nothing! It's infuriating. The interface layers Zig bypasses on Linux and Windows are thin and add practically no overhead. Zig programs are not faster or better for having bypassed these layers that everyone else has relied on for decades. So what's the root cause of Zig-ism? Vibes about being closer to the metal? A feeling of power stemming from wielding esoteric knowledge? A kind of glee in annoying people like me, with my silly appcompat war stories and spiritually boomer worries about long term ecosystem evolution? Is it some kind of innumerate gutfeel that load bearing elements of the system are "bloat"? Do they understand how shared libraries work? A decade ago, the Zig people would be posting on forums about how they optimized (but in actuality pessimizd) their Gentoo systems by compiling with -O99 -funroll-all-loops -DMOAR_SPEED, saying a numerically "for sure felt smoother". A decade before that, the Zig people would have been attaching enormous spoilers and illegally loud mufflers to their Honda Civics. Probably painting them red too, because as everyone knows, the red ones go faster. There's just a sort of timeless personality type prone to this sort of thing. And that's fine. People are allowed to be ridiculous. Except this generation, this personality type comes armed with a trendy programming language. The Gentoo system gets reimaged with Debian stable. The Honda Civic eventually gets compressed into a cube in some landfill. We cannot serve similar justice unto Zig programs doing flagrantly stupid things forever.

English
5
10
106
25.1K
Chris Blume
Chris Blume@ProgramMax·
I dislike how LLMs just predict the next word and we call it AI. That misses the point. A few days ago I started a project to actually *learn*. I figured I would give it a head start with sentence structure, nouns, and verbs. Turns out I was just reinventing Knowledge Graphs.
English
0
0
1
88
Chris Blume
Chris Blume@ProgramMax·
@RichardN7 It is exceptionally bad. Reminds me of when Comcast intentionally limited bandwidth to the backbone that Netflix was on (trying to get Netflix to pay Comcast for the bandwidth usage).
English
0
0
0
12
Richard
Richard@RichardN7·
@ProgramMax I've never seen anything on Netflix look that bad. Is he watching over dial up?
English
1
0
0
74
Chris Blume
Chris Blume@ProgramMax·
INSTANTLY shot down. But with good reason. Thank you, committee members who have already debated this.
English
0
0
7
283
Chris Blume
Chris Blume@ProgramMax·
@marcaruel IIRC you can make a program that doesn't link anything and Window links user32.dll anyway when your program launches? I forget. Some library is always loaded. I ran into it when trying to make a super small program.
English
1
0
1
76
Marc-Antoine Ruel
Marc-Antoine Ruel@marcaruel·
That said, almost all Windows processes need a message loop, thus they have to link with user32.dll which loads win32k.sys anyway, causing kernel allocations. So I don't think "not loading kernel32.dll" should be a goal but there's no "high road" to using it.
English
2
1
9
1.1K
Chris Blume
Chris Blume@ProgramMax·
That was cool. I just matched up with Post Malone, Shroud, and xQc in a game. Got a headshot on PM :D
Chris Blume tweet media
English
0
0
1
465
Chris Blume
Chris Blume@ProgramMax·
@Manu343726 Yep. I have the same old wisdom. :) It is wild. I think the idea that eased me a bit is transistor density. The hot spot is physically smaller, so it can spreadthat heat more easily.
English
0
0
0
14
Manu Sánchez
Manu Sánchez@Manu343726·
@ProgramMax Yeah, the issue I have is that in the old days 65°C was considered ok, and >70-75°C bad (with 90°C being you've fried your die). Now I'm seeing 90°C ok ish for certain top AMD models such as mine. I mean it correlates with the increase in power draw, but... Feels wrong.
English
1
0
1
27
Manu Sánchez
Manu Sánchez@Manu343726·
Wondering if 75°C max CPU temp for a Ryzen 9 9900X temp is alright. It's been almost 10 years since I built a PC, I'm a bit out of touch. I'm doing my usual CPU benchmark, building clang.
English
1
0
0
134
Chris Blume
Chris Blume@ProgramMax·
Compiling shaders...
English
0
0
0
109
Chris Blume
Chris Blume@ProgramMax·
AI data center networking is a whole beast unto its own. Fascinating, the problems they're facing. Load balancing is entirely different with that workload.
English
0
0
0
103
Chris Blume
Chris Blume@ProgramMax·
My main computer died while I was on vacation. I had a second computer I was working on water cooling and getting a top 100 in the world rank. But it wasn't ready for sustained usage. Blessing in disguise? I guess now I know the VRAM isn't getting enough cooling.
Chris Blume tweet media
English
0
0
0
127
Chris Blume
Chris Blume@ProgramMax·
Most people aren't computer nerds, so they wouldn't have noticed... RAM prices are SKYROCKETING. There is a long story why. But the short version: AI datacenters demand RAM.
Chris Blume tweet media
English
0
0
3
236
Chris Blume
Chris Blume@ProgramMax·
I need to change my Visual Studio shortcuts. F10? F11? That shit needs to be F1/F2. Or maybe something better.
English
0
0
0
79
Chris Blume
Chris Blume@ProgramMax·
I am confident it was the NORAD Santa Tracker. What else hits the GPU in a serious way and matches that timeframe? I tried contacting them so I could access a test site and debug it. But I got no response. It is the bug that got away. I never ended up getting to fix it.
English
0
0
2
104
Chris Blume
Chris Blume@ProgramMax·
On Christmas day I was busy trying to find the cause while also being present with my family (higher priority, plus couldn't ship a big fix anyway). But then it just stopped. I figured someone else already fixed it?? But then it happened again next year. So I brainstormed...
English
1
0
1
113
Chris Blume
Chris Blume@ProgramMax·
Fun Chrome GPU dev story, Many of us took vacation days for the holidays. Don't ship big changes during this time. On Dec 24th I started seeing a LOT of GPU process crashes. It spiked then died off at the end of the 25th. Because the crashes stopped, I couldn't repro...
NORAD Tracks Santa@NoradSanta

🎅 The NORAD Tracks Santa website is now live — and the Santa Dash game is active! Play now and explore Santa’s journey at noradsanta.org #NORADTracksSanta #NTS25 #SantaDash

English
1
1
2
459