Better HN
topnewbestaskshowjobs
Log inSign up

krick

5,716 karma · joined Dec 15, 2013 (12y ago) · 2,267 submissions

Submissions

comment 4d ago · link · parent

> the reason so many old sites are stuck on PHP5

Right, and you surely mean 5.3, not 5.4. There is a difference between "extremely backwards-compatible" and "not breaking anything ever", you know. I converted (gradually, through each major release, of course: skipping versions indeed would be more difficult) huge ancient codebases from pre-5.3 to 8.* just fine, and there wasn't even LLM to help me back then. It wasn't that hard. PHP never introduced anything close to Python 2 vs Python 3 situation.

comment 5d ago · link · parent

PHP is EXTREMELY backwards-compatible in general. All breaking changes are (i.e. were up to this point) usually introduced very gradually, first emitting Notices and Warnings and not without a very good reason.

comment 5d ago · link · parent

Ok, let's see what do we have in here.

Not a huge fan of partial function application syntax. Was it really necessary when you already have short anonymous function? What does it cost you to write that explicitly? Like, 10 extra characters? It is way more readable and clear what you mean when a variable has a name, not just `?`. WTF is `?`?

Pretty much the same for DocComments for params. Uh... why? I don't see anything wrong with the old way.

Duration class... well, we all already had duration classes in our projects, didn't we? It looks alright, but it's a real pity operator overloading isn't a native part of the language still. Why do we still have to `->add()` instead of `+`?

Similarly harmless but not hugely exciting are `clamp()` and `SortDirection`. The former isn't that hard to implement, but I don't think I ever did somehow, so thank you. SortDirection is literally just a built-in enum, not a huge deal. Libraries will still use their own implementations for a long time just to preserve back-compatibility.

Polling... Well, I'd usually opt for some other language instead of using PHP like that, but sometimes you need it.

Stream Error Handling and Readonly Defaults are great and overdue.

All in all, doesn't look to be a terribly exciting update.

comment 1w ago · link · parent

I mean... It is so obvious that I truly have to think that everyone in the comments who pretends it isn't are just Claude bots.

comment 2w ago · link · parent

What is this idiotic manner of typing full articles in lowercase? Don't people learn basic orthography in school anymore? This is fucking unreadable.

comment 1mo ago · link · parent

You do you, but that is enough of a red flag to actually mention when somebody recommends Dynadot to everyone else without much elaboration.

Also, banks are really different from domain registrars in several important and relevant respects, but, for the record, I don't have to tell it to the banks I use, and if I did, I'd probably be looking for a bank that I don't have to tell it to.

comment 1mo ago · link · parent

It asks you to choose 4 (four!) "secret questions" as a "security" measure. I decided that keeping your domains with an organization that insists on idiotic practices that are firmly forbidden by every sensible security practices guide (OWASP, NIST 800-63, anything, really) since like 2015 is not a very wise choice.

comment 1mo ago · link · parent

There are in that very Reddit thread though.

comment 1mo ago · link · parent

Damn, that's a leet social security number.

comment 2mo ago · link · parent

Ok, so let's say you are an Orthodox Jew business owner. Can you let your goyim to continue making profit for you on Saturday, or "does that itself take away from the spirit and sanctity of the day" too? I don't see how it's different from the problem at hand.

More seriously, though, thinking about this pretty silly (in my view) question makes me want to talk to some Rabbis to clarify some things. AFAIK, the existence of free will is pretty fundamental to Judaism (unlike Islam or branches of Protestantism), and having pretty materialistic views on the question of free will myself (i.e. it doesn't exist, obviously), I struggle to imagine how the alternative views can survive contemplating if you can let your AI-agent run on Saturdays. I mean, I think I understand how, say, Orthodox Christians can keep these views today, but they don't really have such meticulous legal system built upon purely theological discussions. So, as an Orthodox Christian, even if you fully understand the implications (which, of course, most people don't, but that's besides the point) it isn't really a problem to consciously accept whatever beliefs about free will while still being very materialistic about most practical questions. But since my knowledge of Jewish theology is extremely limited, I have no idea if you even have to have some specific views about determinism for halakha to be self-consistent.

comment 2mo ago · link · parent

Probably even luminescent paint to be sure it can be seen in the dark. This is even more valuable than a sparkly gemstone, I suppose, that's almost magical!

comment 2mo ago · link · parent

I wonder what exactly these laws prohibit. Like, does it apply to a fully encrypted cold-copy on Amazon Glacier? If you don't store the encryption key outside of UAE, I'd say this isn't even the same data that gets transferred to the third party, it's just some random blob. But I have no idea if the authorities of that country would agree and if it's even actually enforced for that matter, or if it's one of those laws that actually cause problems only if you follow them.

comment 2mo ago · link · parent

That is actually surprising to me. Claims like that are pretty common, they make sense and they should be true, so even though I don't really know AWS (/Backblaze/Azure/whatever) redundancy planning in enough detail, I used to trust them. It's really worrying when they outright say it will be ok, and then a week later it turns out to be not ok.

comment 2mo ago · link · parent

That's very unpleasant to hear. It's sad to be reminded that Rust compiler is not magic and cannot just... do these things somehow. Sure, all abstractions do have some cost, but, man, 17% performance gain by virtue of replacing enum with this monstrosity? That's very annoying.

comment 2mo ago · link · parent

I shouldn't be surprised, given I saw plenty of nicely functioning legacy codebases, but still, somehow this isn't the news I was expecting to hear in 2026.

comment 3mo ago · link · parent

Obviously it's bad and we can all say "fuck Microsoft" once more, but "we" probably don't use Windows anyway, right? I have no idea, really, but if you willingly use closed-source spyware that is notorious (for AT LEAST 15 years) for all kinds of invasive telemetry it forces upon you, you probably wouldn't find this new piece of information concerning anyway.

And ironically, I think that this one is kinda fair. I mean, you specifically asked your software to generate whatever pseudo-random bytes it wishes to loosely based on some text prompt. It did that. Now, apparently, these pseudo-random bytes turn out to be personally identifiable. So what? I suppose they didn't claim their PRNG to be cryptography-grade. They could even make it seem like an accident, should they be bothered to. Make it way less obvious.

Now if it would insert watermarks on save (like printers do), that would be really outrageous. But when you trust software to produce "whatever", you probably shouldn't be really mad about it doing anything more than you asked to.

comment 3mo ago · link · parent

I still just use Greasemonkey. What is even the point of both successors on Firefox?

comment 3mo ago · link · parent

Clearly you have no idea how the head of EC is chosen. Because of the two only Trump was actually elected by the people.

comment 3mo ago · link · parent

Yep, that's right.

comment 3mo ago · link · parent

Actually, they do, sort of. At least, if you use GLSL shaders. I remember some demo project using it in a way that made it appear that the website "sees" another window with the same website, which blew my mind when I saw it first. Cannot recall the name or anything else to locate it.

comment 3mo ago · link · parent

Screenshots would be helpful, because (you may be surprised to learn that) it is not entirely obvious which mode of behavior is supposed to be "wrong".

Anyway, I wouldn't say it currently behaves nicely (like something I would like to reuse anywhere whatsoever). Tested on Firefox opening Bookmarks on the left. First off, there is this ugly flicker, as browser first renders the "wrong" version, then your JS "fixes" it. Second, there is some concurrency problem, as by opening and closing Bookmarks repeatedly I somehow managed to render both versions: centered to viewport and covered by sidebar.

And, yeah, as others have said, I also think that allowing sidebar to cover your webpage content is absolutely bogus and don't foresee myself wanting this behavior, ever. But that's up to you.

comment 4mo ago · link · parent

I don't understand what's the conclusion is. I was supposed to "disagree initially and be convinced by the end", but I ended up losing sight of what I was supposed to agree/disagree, and what should I've been convinced of.

It starts with the premise of "C/C++ have pretty fucked up type systems, and look how much nicer integer type names are in Rust" and also that we should use unsigned integers as the first approximation if we are trying to model ℕ. Was I supposed to disagree with that? It didn't seem like the author was arguing against them, and they seem like pretty trivial, obviously true statements.

Then it starts to talk about how we cannot properly use unsigned in C/C++, because it's fucked up, and it cannot be fixed properly because the proper handling of integers is too expensive. This all sounds sadly familiar and we are nodding and saying: "Well, such is life." But at least we still have Rust, that doesn't suffer from the same inherent UB curse, right? I mean, I'm not deep enough into the details of current compiler implementation, but I've got the impression that the described problems don't apply to Rust. All good then? (edit: obviously, except for the fact that we still allow wrapping in prod builds, because it's expensive not to. But we all knew this already.)

Then it follows up with some pretty contrived (IMO) example of how we cannot mindlessly swap int with uint (obviously? I mean, you basically explicitly check for `i == -1` in this example), framing is as "uint is unintuitve". Was it supposed to be a strawman? It surely is a strawman, but the author doesn't argue against it.

And then a couple more of statements to the support of Stroustrup's "just use signed" (in C/C++), which also don't seem to apply to (saner) Rusts choices.

And then it ends w/o a conclusion. So, what was the conclusion supposed to be, please? I really don't understand what the author tried to convey.

comment 4mo ago · link · parent

I'm only interested in how it treats multiline commands in bash. It's the only thing that the default history doesn't do consistently (unless you make it replace \n with ;, which is just unuable). Otherwise, fzf + history works just fine.

comment 4mo ago · link · parent

Aren't they? Pictures are quite small, but B50 is clearly a stork. B100 looks like some kind of heron maybe, not sure. B10 is a kingfisher, I suppose. I don't know, they look real enough to me.

comment 4mo ago · link · parent

Why, though? I'd much prefer not to carry any coins at all, ever since I gave up and stopped fighting the Big Brother (I applaud everyone who still does, but it just didn't seem like my struggle was productive). I mean, to think of it, coins never were very nice to use, I just wasn't bothered by it, because the volume of cash on me was quite significant anyway. Now it's not and I just don't carry any coins at all. Paper is so much nicer to handle. I still need to have some cash just in case, but I'd simply "forgive" any change below 1€ now. I don't feel rich enough to forgive everything below 5€ though.

comment 4mo ago · link · parent

Hope it's the birds. I suppose there's no way to vote or anything with the current level of technological advancement, and the final design will be chosen by professional choosers that are handsomely paid for their hard work?

comment 4mo ago · link · parent

Yeah, this is insufferable. The title was interesting enough to click, but I don't know what to make of the audience that actually perceives this as a good source of information.

comment 4mo ago · link · parent

Yes, they did, and many still do write it on the package, but it is, and always was a myth born God knows when out of precaution, because nobody really knows anything about how all this stuff really works now, and they did know even less than that 30 years ago. There never really was any evidence that you have to cycle it, and nobody (aside from the manufacturers) ever says it anymore. It makes about as much sense as cycling protein powder.

As for pills, yes, there is about every form of creatine supplement now, even chewing gum, but this is just dumb, how much of creatine do you think you can consume this way in a day?

comment 4mo ago · link · parent

I have no idea. Doesn't seem implausible to me. Apparently, ≈75% of the world population has internet access now. And if a person has internet access, is it that unlikely that he was successfully targeted by at least one of these idiotic marketing campaigns (turn your photo into a barbie doll or whatever)? 10% sounds plausible to me, more or less. So maybe not really literally a 1B, but doesn't need to be very far from the real numbers, IMO.

comment 4mo ago · link · parent

If you seriously have this question, read "War with the Newts". Really do, make it your priority this week. If you did and this is a rhetoric question... Well, I do hope that if every single person on the planet would have read "War with the Newts" and made the right conclusions, maybe there would be a chance to change the course. But that's only because I choose to believe in miracles, otherwise I wouldn't know how to live.

(TL;DR: we won't.)

12345
76