HNHacker News
TopNewBestAskShowJobs

ketralnis

4,271 karma · joined September 4, 2007

David King

[ my public key: https://keybase.io/ketralnis; my proof: https://keybase.io/ketralnis/sigs/-b8hg9xv4sLOgAEnBoAfmQjftzv790I-mM2YelSrYfI ]

submissionscomments
ketralnis··on Ask HN: Tech that seems to have vanished?
I was reminded by another post on HN today: RAD - Rapid Application Development. Newer "no/low code" systems pale in comparison to what novices used to be able to do with Visual Basic or Hypercard or even old PHP. I was one of those novices and I learned so much from them.
ketralnis··on Debugging catastrophic backtracking for regular expressions in Python
I wouldn't go so far as "use re2 instead" of re for everything as a superstitious "X tool is objectively better than Y tool" but if you're performance bound on regexes definitely do look at re2.

For context on why, python's in-built re library is a backtracking regex implementation (as are most) but google's re2 uses a DFA-based system instead that just doesn't support the kinds of regexes that catastrophically backtrack (well, re2 can can fall back to its NFA approach instead which can handle the same kinds of backtracking regexes that re can, but this fallback can be disabled.)

It's also incidentally quite a lot faster for many of the common cases. I swapped re->re2 for an internal rules engine relying heavily on regexes that needed to be robust to novice users and got roughly twice the performance out of it as a happy side effect. For my purposes it was fully drop-in, just swapping out some imports. The only downside was that the regexes that I was explicitly choosing not to support anymore now errored out as intended (and the users that wrote them were given workarounds but not lookarounds :)

ketralnis··on NSO group iPhone zero-click, zero-day exploit captured in the wild
That's needlessly defeatist and "it's so bad out there there's no point in trying" is a thought terminating cliché.

We can and should improve development practises, mitigate vulnerabities (ASLR, WAFs, etc), isolate systems from each other, and model threats in a way that we know where and how to do those things. It's not easy but just moaning "everything sucks" isn't how to fix it.

ketralnis··on BMW drops controversial heated seats subscription
None of that is my problem. My belongings belong to me. I don't care if a bean counter somewhere was slightly happier about it before it got to me. The moment the car is my car, it's no longer their car to start charging me access to.
ketralnis··on BMW drops controversial heated seats subscription
In either of these cases the car you exchanged your money for physically had the seat heaters in it already. You were buying (or renting) the password to be allowed to use your own belongings.

To me this isn't nuanced at all. It's my fucking car, get out of here with this rent-seeking DLC shit.

ketralnis··on Microsoft is using malware-like pop-ups in Win11 to get people to ditch Chrome
IMO "you can turn that off" is absolutely not an acceptable answer to this stuff. It's my computer and it shouldn't be doing anything that I didn't specifically tell it to do. And that's not even to mention how often these setting are reset, or new "settings" added
ketralnis··on Grave flaws in BGP Error handling
I practised picking locks on your house and broke the lock because of a poor lock design. Yeah okay the lock sucks. But I probably shouldn't have been doing it on your house in the first place and now you've got a broken lock. Who are you mad at?

A researcher could have bought their own copy of the lock and picked it there. Or even borrowed yours with some notice, or let you know so you could have them use an interior door instead, or any number of other things that didn't break your actual house.

ketralnis··on The FBI Has Collected DNA Profiles for 21M People
Pretty much every invasive thing starts out as a more acceptable less invasive and is stepped up one thing at a time.

"Oh okay it's just non-citizens" "oh okay it's just criminals" "oh okay it's just people that have been arrested" "oh okay it's just people about to go through the TSA but they don't store it" "oh okay they do store it but they take real good care of it" ...

ketralnis··on Ask HN: Why did Python win?
There's pretty much never a "why". Fashion is fashion.

You can look back at some things that occured and say "well it's because it's easy" or whatever, but to be rigourous you'd have to also apply that to the languages that _didn't_ win, and the reasons that they didn't win to Python, and at best there's loose correlation.

This is the same as people that point to "why" billionaires are billionaires. There's a whole lot of luck to it that you can't discount.

Further, I'd question the premise. It's clearly the first thing that people reach for in ML and in the top 3 for web backends. But it hasn't always been that way and it won't always be. Programmers have way too much ADD and contrarianism for any such state of affairs to last for long. And in other spaces and even in other social circles it would be unheard of.

ketralnis··on HelloSystem: A graphical OS built on FreeBSD
Alright. Sounds like it's not for you then. That's okay.

I don't know what you want us to say here. If you don't like it then you don't like it. No skin off of anybody's teeth if egypturnash isn't convinced.

ketralnis··on HashiCorp switching to BSL shows a need for open charter companies
Sadly the days of "keep using the software" are mostly over. Between security updates and platforms frequently making backwards-incompatible changes you'll hit the wall eventually. The rest of the world has opted into the continous deathmarch treadmill and you're on it too whether you like it or not. We don't value stability, and we berate people for running software that's older than 4 months as positively geriatric and asking for any trouble they might have.

Want to keep running that old package? Cross an ubuntu versioning chasm and now you also need an ancient version of glibc which won't run on your Zany Zamboni fleet because your other requirement of libxml 5 won't work with it. Find a security problem? Well there's a newer version that's only been out for four minutes why aren't you on that already anyway? Oh we don't publish packages for your 4 week old npm yarn bower neonode, who still uses that?

ketralnis··on Muon g-2 doubles down with latest measurement, explores uncharted territory
Not a physicist but basically yes. Most quantum mechanics calculations involve the path integral[0], a sort of sum of all possible Feynman diagrams[1] that an interaction could involve and the more of these you involve the more accurate you hope to be. Further the field theory that they're calculating within is generally an effective field theory[2] which is known to be an incomplete approximation of the system it's modelling but "close enough" for the energies involved. That approximation costs accuracy as you get closer to the energy cutoff you included but you included it because you don't know what happens above it so it's not like you can just not do that. Depending on how renormalization[2] is done in that effective theory the constants involved can have their values affected.

In this particular case you're also looking "closer" at an interaction than you can model with the particle intuition. For simple electron/photon scattering you can pretend that things are particles and use that intuition to guide you but when you start looking really close at things you can't really do that anymore and have to work with fields and waves in a way that belies normal physical intuition. Part of the way that manifests is "virtual particles" popping in and out of existence (really field interactions that aren't really particle-like but with the virtual particle trick can be modelled almost as if they were). These interactions do affect the real world and the way they affect it depends on the fields involved. If there's some unknown 4th generation of lepton for instance a virtual one of those could interact with the experiment, but since you didn't know about it you didn't include it in your calculation.

Also depending on how you're calculating things you aren't just saying "1+2=3", you're saying "1±theory error + 2±theory error = 3±theory error" so you end up with a range of calculations. That might manifest as "well if there's a graviton then I need to calculate it this way but if there isn't then I need to calculate it this way, and we don't have experimental evidence to guide me one way or the other".

Lastly, QFT is quantum mechanics + special relativity and I think it goes without saying that both of these are just detailed, difficult fields with difficult maths involved. So you're taking an already difficult field and since you're trying to be accurate out to a lot of decimal places while interacting with messy real-world experiments you're forgoing all of the nice physics-class "massless particle in a spherical box" approximations that normally let you skip over all of that trouble.

See https://indico.fnal.gov/event/7309/contributions/101335/atta... for some lecture notes on the base problem.

0: https://en.wikipedia.org/wiki/Path_integral_formulation 1: https://en.wikipedia.org/wiki/Feynman_diagram 2: https://en.wikipedia.org/wiki/Effective_field_theory 3: https://en.wikipedia.org/wiki/Renormalization

ketralnis··on Swap_8_and_9: A simple import can modify the Python interpreter
good thinking I definitely need this useful and widely used code to be legible and platform independent
ketralnis··on A Gentle Introduction to IMAP
"People say otherwise" because it's not true. I run my own email and I do just fine. The last blacklist I had was from Hotmail about five years ago
ketralnis··on A Gentle Introduction to IMAP
What’s wrong with it? Not enough json kubernetes mongo rust npm AI cloud react? Or is “old” just the same as “bad”?

Sadly “move on” today means moving to a single vendor’s walled garden. We don’t really have truly federated protocols anymore. We do have some contenders but none that my mother and barber and government use.

ketralnis··on Apple reports third quarter results
> idk what they'd have to do to make me move over, but man, it'd have to be demonstrably valuable - not just the same thing but different 3 feet over that way.

- Since Apple is currently charging 30%, another app store might charge only 10% and so you might be able to get your spotify subscription for 20% less.

- A provider of especially expensive software (say a CAD or Mathematica) might be unwilling to cede so much of their margin to anybody at all and may prefer to run their own single-item "store", making them the only place to get that particular item.

- Same for especially inexpensive software. Open source game ports that don't want to pay Apple's developer fees. They may make so little margin, including 0, that they aren't feasible with Apple's tax. New software may become sustainable to develop and distribute that isn't currently.

- Porn. Emulators. Anything that doesn't conform to Apple's capricious reviewers. Software that does conform but the pain of dealing with Apple made them give up. The kinds of things that are available on the jailbroken appstores currently.

I'm glad you personally don't have a need for any of these things but that's hardly evidence that the market for it shouldn't be allowed to exist.

ketralnis··on Apple reports third quarter results
Since forever? It turns out that more than one thing can be bad
ketralnis··on Apple reports third quarter results
They also run the local government and ban any other malls from existing. Nothing could be more rent-seeking.
ketralnis··on Commercial quantum computer identifies molecular candidate for better solar cell
like every "well technically" you should read it is "not really"
ketralnis··on AWS to begin charging for public IPv4 addresses
For iOS maybe. Most of those applications are also using Apple's networking libraries and are effectively required to be on Apple's infinite software update treadmill to continue to be listed, keeping them young and hip in perpetuity. This is the upside to that treadmill, things are up to date or just stop working.

But I don't think that's representative. "Or just stop working" isn't a valid alternative to the rest of the world. Outside of mobile ecosystems and maybe web development most things aren't on these 6 to 12 month update cycles. It would be absolutely unreasonable to tell a hospital that every piece of hardware and software and MRI machine in their building has to be upgraded every 2 years or it's positively geriatric and do you even `pacman -Syyu` bro?

Theres a whole world of things that haven't been, and may never be, transitioned. Useful things like utility control computers and even peoples' 10 year old, still perfectly functional and supported desktops. Heck, my "end user" newly-installed fibre ISP doesn't support IPv6! And their previous DSL installation to the same address did! So much for "solved problem" :(

ketralnis··on AWS to begin charging for public IPv4 addresses
> Customers who don't pay extra are getting less service than they used to for the same money they used to pay

Sure, yeah. That's how price increases work. Nobody's arguing that it's not a price increase. But if your delivered pizza's costs are fuel+ingredients and the price of fuel goes up, well, the whole price goes up or you have to give on the amount of pizza. The price of the ingredients didn't go down, so yeah you're just going to have to pay more or get less pizza. Sorry.

You can quibble on the pizzeria's margin I guess: AWS could just eat the increased price themselves, and probably have been until now. But apparently they don't want to so they're raising the price to compensate in frankly the most reasonable way possible. AWS has insane pricing for many of its services, especially bandwidth, but this isn't one of them.

ketralnis··on AWS to begin charging for public IPv4 addresses
I don't think either of those is true?

It's not hidden, they put it right up on their blog https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address... the opening line of which is "We are introducing a new charge for public IPv4 addresses" and when it starts and what the cost is. I assume like every other AWS charge it's broken out in great detail on their billing statements and even have APIs to query costs. Usually they send an email with these changes too so if they haven't I assume they will. It's a regular old price hike but it's not a hidden one.

Secondly since "the cost to acquire a single public IPv4 address has risen more than 300% over the past 5 years", there's no accompanying decrease in server costs that would be "reasonable" to account for this. Charging for the IP itself makes total sense since that's the cost they're accounting for. If it were packed into the instance costs, then instances without a public IP would be paying for it too. This incentivises you to do exactly what they want you to do: use fewer public IPs where you don't need them. This is way more reasonable than an across-the-board instance cost bump which would be a hidden price hike. This is a bridge toll that covers the cost of the bridge by its users instead of raising taxes on everyone.

I guess you're wanting to pay the same and just distribute the cost between the IP and the instance differently? And hey me too, I love not being charged more. But they want to account for their costs without eating into their margin and this is how they're going about it. You don't have to like it; I sure don't. You can wish AWS would just keep eating the cost for you; me too! But I don't think "hidden" or "unreasonable" is accurate.

ketralnis··on Oxocards: Interactive programmable minicomputers
Why do they blur the keyboard in every photo? So strange
ketralnis··on SQLite Begin Concurrent
I'd guess using uuids for the keys instead of ROWIDs might help. I'd also guess that UNIQUE constraints must also trigger a conflict and that "close together" in index btrees also does. If that's true then using a uuid primary key is defeated by the indices that you'd use to work around it.
ketralnis··on UK version of “Online Harms Bill” wants to prefilter content without due process
Communism, Marxism, Fascism, and other "everything I don't like is ____" names aren't the same thing as totalitarianism.

You can tell because this is a right-wing government trying to do this while Communism and Marxism are left-wing ideologies.

ketralnis··on Cash Amnesia
Same, I take all of my coins to the grocery store and dump them in before finishing off whatever's left with my card. It takes some time to get the machine to take them all so I don't do it if there's a queue behind me but otherwise it's great for quickly getting rid of the coins without them just vanishing into the aether.

I also have a corner store that loves to get my coins. I suspect he has to make awkward change more often than a big-box store does because when I pull out my $3 in quarters before breaking out the paper bills he always thanks me for it

ketralnis··on Microsoft lost its keys, and the government got hacked
They didn't say it was an intentional backdoor. But if it were, the result would be the same.

It's hard to secure encryption keys. If you had a backdoor based on a key that you had to keep secret, leaks like these can happen. If Microsoft (or anyone) can't keep their encryption keys secure, they'd be equally unable to keep a backdoor key secure for the same reason.

ketralnis··on Couples with joint checking accounts are happier
Prenups can say (almost) whatever you want, so the short answer is to cover maintenance expenses in the same document that gives you a stake in the property in the first place even if that stake is just a residence one. Of course that's much more obvious in hindsight but there's also postnups which can amend the prenup.

If I were pitching in to renovate a property I'd want equity in it. You can do that with or without the inheritance or the prenup: figure out the value of the property before and after the renovations and assign that percentage to the person that covered them.

That's what I'd do in a non-romantic housemate situation but of course a marriage is way more complicated and there are lots of pieces that aren't purely legal or equity in nature. A prenup isn't going to absolve you of that.

ketralnis··on The problem with slow tools (2021)
https://duckduckgo.com/?q=uphill+both+ways
ketralnis··on Using XPath in 2023
XML had a bad rap and was certainly abused. But the wealth and quality of the tools for working with it is really unmatched even today.
← PreviousPage 4 of 34Next →