HNHacker News
TopNewBestAskShowJobs

ardel95

456 karma · joined October 11, 2021

submissionscomments
ardel95··on Fast memcpy, a system design
While you are right, we are where we are and there is tremendous leverage in making an extremely common (even if undesirable) thing more efficient. It kind of doesn't matter why millions of lines of code perform memcpys - they do, and we're unlikely to change majority of them anytime soon.

P.S. I work on the type of systems where we obsess over unneeded memory accesses and copies. Minimizing those is not as trivial as it may seem, especially if you care about memory safety.

ardel95··on New Zealand Bans Cigarette Sales to Everyone Born After 2008
So New Zealand is about to prop world’s first an underground cigarette market.
ardel95··on Pentagon Shares $9B Cloudy Dollars Between AWS, Google, Microsoft, Oracle
So the whole 5 year process with thousands of human years of effort boiled down to: We’ll use some cloud.

Fascinating.

ardel95··on Fast midpoint between two integers without overflow
Oh, you are right. For some reason I thought I saw unsigned in there.
ardel95··on Fast midpoint between two integers without overflow
Tweet said unsigned ints, so don’t think this would work. Even with signed I think this can overflow.
ardel95··on Fast midpoint between two integers without overflow
The tweet said unsigned ints
ardel95··on Fast midpoint between two integers without overflow
Eh, that’s what I get for writing code on a cell phone. Fixed.
ardel95··on Fast midpoint between two integers without overflow
The correct way most people would write this for positive integers is:

if (a < b)

  return a + (b - a) / 2;
else

  return b + (a - b) / 2;

This method is just more efficient (for places where it matters) as it avoids divisions and branches. But for a vast, vast majority of use-case that tiny efficiency gain doesn’t really matter.
ardel95··on Amazon Alexa Deemed ‘Colossal Failure’ Following $10B Loss
I don’t know about others, but our Alexas became really hard to use lately. Basic commands like “Alexa, turn on the lights” or “Alexa, play Frank Sinatra” get misunderstood and need to be repeated multiple times. Combined with unsolicited “by the ways”, we are generally unlikely to ever buy another one.

I think smart assistants could be a useful gadget eventually, but alas this isn’t it.

ardel95··on Why this universe? New calculation suggests our cosmos is typical
This line of reasoning assumes that all physical processes are deterministic. If they are not (as is the current mainstream belief) then I don’t think that line of reasoning would stand. Instead, the current state is the result of that initial set of inputs, and countless other nob-deterministic dice rolls.
ardel95··on High availability implementation of AWS NAT instances
50% savings to replace a managed service with a self-managed instance (trust me, even if things are fully automated there will still be gray failures, weird hiccups, congestion events, etc) doesn’t sound like a great idea for most companies.
ardel95··on Galactic settlement of low-mass stars as a resolution to the Fermi paradox
I think the left side of the Drake equation is pretty challenging too. If we assume that faster than light travel is impossible (which is likely) and all galactic civilizations are subject to the tyranny of the rocket equation, then it’s quite likely that there are no alien spaceships wizzing around, even if our galaxy is full of intelligent life forms.

And then our best way of detecting advanced alien life forms is through direct observations of remote star systems, a field that is in its infancy at best.

ardel95··on TCP Connection Repair
Live migrating a process from one host to another sounds fun on paper, until you run into all the caveats. And it gets even more fun when you try to do it on a cloud provider, where your process state is coupled to the instance on which it runs (such as security group or instance metadata state).
ardel95··on A global house-price slump is coming?
If there is a housing crash coming, the builders around me tend to think otherwise. Lots of new construction starts.

I think as it often happens, the most likely outcome is that lower priced areas will see the brunt of the value decrease, while higher priced neighborhoods may at best see a moderate speed bump.

ardel95··on Uncovering a 24-year-old bug in the Linux Kernel (2021)
That sounds plausible. But also, most software (browsers, web service SDKs, RPC frameworks) treat TCP connections as fallible by setting read/write timeouts and aggressively reopening broken connections. So, I’m totally not surprised this issue went unnoticed for this many years.
ardel95··on JEP draft: 64 bit object headers
I'm glad folks are starting to look at memory efficiency of Java programs - there's just so much improvements to be had there. For a fun exercise, take a look at memory footprint of storing a million entries in a HashMap<Integer, Integer>. Between "object header" overhead, "everything is a pointer to a heap allocated object" overhead, "GC needs enough headroom to remain effective" overhead, the actual memory consumption can be as much as 10x of a comparable C, C++, or Rust implementation.
ardel95··on The Forgotten Operating System That Keeps the NYC Subway System Alive (2019)
That’s the thing with fraud. The goal is never to stop it all, but to keep it at some local minimum. The rest is just the cost of doing business.
ardel95··on RFC: C++ Buffer Hardening
I’m afraid this might be too little, too late. But regardless whether I’m right or wrong, we all should welcome a widely used language trying to become a little more safe.
ardel95··on Volvo is using Rust for its in-vehicle software
They do claim to be the safest cars!
ardel95··on Next steps for Rust in the kernel
Rust is significantly better than C++. And I say that as somebody who has done many years of C++ development.
ardel95··on Can the American mall survive?
I think they can, but they may need to evolve away from a goods marketplace and more towards entertainment centers. Most of the times we find ourselves going to a mall it’s to do something (eat out, watch a movie, engage in some kids activity) rather than to buy something.
ardel95··on Over 1k iOS apps found exposing hardcoded AWS credentials
Not an iOS developer, but curious what’s the current state of the art for distributing and storing your credentials if the app needs to make AWS service calls?

Or is that considered an anti pattern, and you want to proxy all AWS calls through your own authenticated backend?

ardel95··on Blocking Kiwifarms
I wasn’t familiar with Kiwifarms, so I read up about it - and oh, boy. The fact that something like Kiwifarms can exist in the United States without legal or civil liabilities is really problematic.
ardel95··on The Zoom installer let a researcher hack his way to root access on macOS
May I introduce you to a long list of Linux breakout and privilege escalation CVEs.
ardel95··on The Zoom installer let a researcher hack his way to root access on macOS
It's way past time we accepted that all current operating systems are single user environments. Any access to the system means full access to the system.
ardel95··on Linux Kernel vs. DPDK: HTTP Performance Showdown
DPDK is common within network appliances, where you don't need most of the features within kernel networking stack.
ardel95··on HDMI Firewall
This is wishful thinking, but I really hope HDMI protocol was replaced by something more reliable one day. I’ve never had this many problems with a simple task of having device A connect to device B over a short physical cable.

Having to flash firmware on a TV just so that it can successfully connect to a DVR is peak techno dystopia.

ardel95··on Why isn't there a universal data format for résumés?
Because humans are too complex to fit into schemas.
← PreviousPage 2 of 2