HNHacker News
TopNewBestAskShowJobs

Remnant44

558 karma · joined April 25, 2014

submissionscomments
Remnant44··on The Myth of the Second Chance
I also disagree strongly with that. I live in Seattle (a city well known for being not social and welcoming - aka the seattle freeze), and didn't recover from being a shy introvert until around 30. The skills and mindset for human connection was hard for sure, but I found many pockets of really welcoming social environments around shared interests. My personal interests run to the outdoors, so for me it was hiking/biking/mountaineering/run clubs. However, groups and clubs around shared activities exist for almost any interest, and the whole point of them is to socialize and meet people! It DOES take some effort and discomfort, but it's not even close to "almost impossible".
Remnant44··on The Myth of the Second Chance
That's a pretty strong claim to make completely unsupported by evidence. In fact, I think you'll find more people than ever before are settling down in their 30s and starting families, etc.
Remnant44··on Family of Boeing whistleblower John Barnett speaks out following his death
I've never heard this before.. absolutely wild, thanks for sharing.
Remnant44··on Most people with addiction simply grow out of it (2014)
I don't have a lot of personal experience dealing with addiction in either myself or others, but TFA lays out to me a pretty compelling claim that addiction is a developmental disorder. The current mainstream belief of addiction as disease has always seemed to me like it had a great number of holes; it's main purpose was to make people stop stigmatizing addicts for moral failing.

The comparison to ADHD made in the article is an interesting one: although for sure many ADHD kids do age out of the diagnosis, I know many ADHD adults who still have it significantly impact their lives. What do we do with addiction if you've made it past your brain developmental point and you're still addicted?

Remnant44··on Nvidia's "Grace" Arm CPU holds its own against x86 for HPC
That's a great paper. I've tangled with the line fill buffer issue before, along with other hidden limits such as infinity fabric limits on AMD systems. It's one of the first big disppointments when you start doing high performance, bandwidth-limited compute work. It's also one that's almost entirely undocumented which is frustrating.
Remnant44··on Nvidia's "Grace" Arm CPU holds its own against x86 for HPC
Impressive memory bandwidth!

I feel like x86 offerings often fall down so flat in this area. Even when theoretical memory bandwidth is provided, there are often other significant limitations that prevent its use. I've run into this personally with AMD Zen cores, where it is pretty easy to saturate the infinite fabric bandwidth.

Do you know why they would outfit it with LPDDR5 instead of regular DDR5? I don't have a good feel for the difference here. At first blush I would assume low power DDR would run slower not faster, but that doesn't seem to be the case anywhere I see it deployed.

Remnant44··on Demystifying GPU compute architectures
At least for x86, there's an incredible wealth of architectural details out there, both from the vendors themselves and from people who have worked tirelessly to characterize them.

Along the lines of another comment on this post, part of the problem is the GPU compute model is a lot more abstract that what is presented for the CPU.

That abstraction is really helpful for being able to simply write parallel code. But it also hides the tremendous differences in performance possible...

Remnant44··on Avoiding register spills in vectorized code with many constants
This is probably the right place to grumble about the fact that it took Intel until ~2020 to stop selling chips that still don't have AVX/AVX2 in them, a solid decade and change after the tech was introduced.

According to the steam software survey as of Feb24, there's still almost 8% of the market that thus doesn't have access to AVX2. Which for many practical purposes means falling back to SSE for everything unless you want the complexity of dynamically dispatching functions according to instruction set and the complexities of it (https://news.ycombinator.com/item?id=24577069). Even for significant performance, I usually do not.

The reason that whole rant is relevant is that the trick in the article (which is simple and short) doesn't even have a cost in SSE code! For SSE you have to do a load and shuffle anyways since there is no lane broadcast instruction. (The set1_ps intrinsic hides this from you, since it will compile instead to a broadcast if you have set the compiler suitably). Since you're already shuffling, there's no downside to this trick, only reduced register pressure.

Remnant44··on Physical cash is dying–and you don't need to be a conspiracist to worry
You are able to buy now, but not pay until 30 days later, paying no interest unless paid in full. Which means YOU earn interest on your money during that period...
Remnant44··on Nassim Taleb says the U.S. is in a ‘death spiral’ over government debt
Who's right in this case...
Remnant44··on Nations don't get rich by plundering other nations
The evidence produced is definitely addressing a different argument than the one he actually starts with.

Comparing ancient empires to modern living standards is nonsensical for the purposes of determining if plunder was the basis for empire. And indeed, we know plenty of cases where plunder made wealthy and then ravished entire nations such as the Spanish conquest of Middle America.

His fundamental point is accurate though - there is not a fixed pot of wealth in the world, and the increased wealth of our modern age is due to technology and efficiency, not simply taking things from others.

Remnant44··on Nations don't get rich by plundering other nations
It might be helpful if you explain why you think it's stupid instead of writing a one sentence dismissal. Otherwise why make a comment?
Remnant44··on Don't pass structs bigger than 16 bytes on AMD64
Yes, but this concern is orthogonal to calling convention. If the parent function does anything to the object, it will be in cache already. If it does not, but loads the fields to register, the parent will take the cache miss instead of the function. You neither gain or lose anything...
Remnant44··on Is This How Amazon Ends?
Surprisingly, this is one of the value propositions of Costco!

Of course, the first thing they're known for is letting you buy comically huge volumes of everyday items.

But one of the reasons that they actually have a cult following is that their corporate buyers are actually incredibly good at finding interesting items and offering them at a good price.

Browsing Costco essentially becomes a curated tour of what's new in the land of food, gadgets, etc. All backed by an extremely consumer friendly set of policies allowing returns etc, which minimizes your risk.

Remnant44··on Coastline paradox
It's not really a fractal in the sense that a fractal is a mathematical object, and a coastline lives in the real world. As your ruler gets smaller, it also becomes impossible to define what even is the coastline anymore - is it the wetted sandline? On a sufficiently small scale, where is the interface between land and sea?

Thus at sufficiently small scale it does break down, but the fractal nature over a very broad range of scales is clear; I feel like the Wikipedia article is tripped into pedantry at that point :)

Remnant44··on Coastline paradox
Calculus deals with things that are sufficiently smooth on a small scale, and thus converges. For example, approximating a circle with smoother and smoother polygons. The length of those polygons will converge to the circumference of the circle.

The coastline paradox is the classic example of a fractal; the dimension of a fractal is actually greater than that of the space it lives within!

Remnant44··on Qt Widgets Rendering Pipeline
I think in our modern age, a lot of people can be surprised at just how fast the CPU is relative to GPU. Slower, yes, but compiled SIMD-enabled CPU code is bloody fast. I've seen people on HN claiming "just put it on the GPU and be 10,000x faster"; I can only assume this comes from comparing interpreted Python code with compiled kernel code or something! Basic drawing code is highly likely to be memory-bandwidth-bound; Some napkin math shows e.g. a 4070 has about a 10x performance advantage over a Zen4 CPU (500gb/s vs 50).

Rant out of the way, obviously 10x faster is still an order of magnitude faster! I've continued to be curious if there's a way to properly batch geometry in the QT backend to remove all the state-changes that the QT painter is doing that kill performance; a powerfully GPU-accelerated backend for widget based apps would be incredibly useful, although given the dominance of web/electron apps these days not a useful feature for a commercial company to build.

Remnant44··on The Myth of Smart Pointers
Agreed. This is a very odd rant against smart pointers that is essentially a rant against the strawman.

The most relevant line is this: "to most other languages you are simply passing the address of a buffer". That's true! And so for the love of all that's holy, don't transfer ownership. Simply pass a (non-owning, defined-lifetime) pointer to your data to the relevant dependency.

Have asynchronous issues? Need to extend lifetime sometimes? Well, yeah, unique_ptr is not going to help you there. It's not magic.

Remnant44··on Bjarne Stroustrup Quotes
Exactly. Outside of the actual merits of the feature being flamed, someone confidently presenting such an opinion without caveat is unlikely to be worth having a reasonable discussion with.
Remnant44··on My solopreneur story
On the contrary: while to you the other things you spend your time with might be more interesting, for the rest of us the means through which you have acquired all of this free time... is by far more interesting and useful.

Care to share?

Remnant44··on What Is Dimensional Analysis?
Shout out to https://instacalc.com/ . It's like a simple spreadsheet or calculator but with awesome support for dimensional analysis -- you can attach any units you want to a quantity and it will track it throughout the calculations, and do a best-faith effort to figure out conversions / "what you meant".

For example, here's a quick scratchpatch I used for calculating memory bandwidth / CPU transfer rates: https://instacalc.com/56842

Remnant44··on Analyzing Starfield’s Performance on Nvidia’s 4090 and AMD’s 7900 XTX
Agreed. I really appreciate their deep dives into uArch - their article on the Zen4's front and back end answered so many questions for me..
Remnant44··on Being a short-term rental host has become much harder
There's a very strong selection bias for people who will talk about their experiences.. much like product review, you only hear about the bad ones
Remnant44··on Downfall Attacks
Almost all of these exploits are due to the out-of-order/speculative execution.. which is incredibly complicated. There is no reason to believe that an out of order architecture that has not been hardened is any better at defense here than x86 - Just that as a minority architecture, it's still less profitable to target for exploitation. I have very little faith that the Apple ARM chips do better here without extensive exploit attempts made...
Remnant44··on Can you trust a compiler to optimize your code?
The article is spot on about SIMD. Often, if you can write your code in exactly the specific form that you would if you were using intrinsics, the compiler will go ahead and SIMDify for you. But you have essentially a 0% chance of writing in that form unless you already have experience writing SIMD code!

Things like branches, loop termination not being regular, alignment, aliasing, function calls, etc all can and do stop your otherwise totally amenable code from vectorizing.

In the terminology of the article, I'm still at Phase 2. By the time I've worked out the dataflow and constraints needed to make a loop parallelize, I've more or less converted it into the form needed for intrinsics already, so why not write them and be sure.

More broadly, the biggest impact I've seen using MSVC (which most of my code is written in), is the function inliner makes absolutely terrible decisions, particularly with lambdas, which is really unfortunate because there's no way to force-inline the lambda. Combine that with the above - the presence of the lambda will prevent vectorization, even though if it was inlined it would then be trivially vectorizable. :(

Remnant44··on Semiconducting Transport in LK99 reproduction attempt
Someone claims that a human can run a 5 minute mile.

To prove it true, you just need to show a human who can run that fast. To provide it fast, you have to accumulate incontrovertible evidence that it's simply beyond us...

Remnant44··on AMD Ryzen 7040 Series Shows Great AVX-512 Performance for Laptops / Mobile
Out of curiosity, do you have any examples of workloads that you have shifted wholesale to the GPU instead of AVX?
Remnant44··on 100x Faster Than Wi-Fi: Light-Based Networking Standard Released
I think the words being look for here are analogy rather than essential.

The essence of a bicycle is not a motorcycle with a human motor. However, that is a very good analogy for what a bicycle is.

Remnant44··on Intermittent fasting is as effective as counting calories, new study finds
I tried IF for 3 months after hearing all the hype, and also recorded bodyfat and muscle mass figures from weekly scans.

Consistent with your experience I lost weight but it was almost all lean mass -fat was reduced only slightly.

I switched to a ketogenic diet after that and watched the fat melt away. IF clearly works for some people but it sure didn't for me.

Remnant44··on Never trust a programmer who says they know C++
Exactly this - The language is big and getting bigger, and so is the standard library.

But this is true of almost any popular language! By the metric people are applying to C++ here, there is no one on earth who "knows Java", which is patently ridiculous.

A better metric would be "Can write code in that language for some domain".

← PreviousPage 4 of 6Next →