News for hackers. Stuff that matters.

joe_hoyle

Re:Stop Using Pseudo-Types on Monday February 02, 2026 @12:06PM (#46858338)
It is not better, this is a problem with the first-class callable syntax altogether.
Re:Stop Using Pseudo-Types on Monday February 02, 2026 @08:36AM (#46855879)
The problem is that first class callables actually makes a new object wrapper for each reference, so trim(…) != trim(…). (It can be true in some cases, it depends if the memory is freed for the first reference).
Re:PHP-Tokio – Use any async Rust library from PHP on Monday August 28, 2023 @12:30PM (#37296686)
I’m one of the few contributors to ext-php-rs. I’d be interested in contributing to your fork if you are planning to support your fork too. I think there’s a lot of QOL improvements to be made still and also adopting newer php features etc
Re:AWS Lambda function URLs: Built-in HTTPS endpoints on Thursday April 07, 2022 @02:23AM (#30941240)
Is it not possible to set the lambda url has an origin in CloudFront and get WAF protection that way?

For all production workloads we typically have cloudfront in front of everything.

Re:Lots to See in Firefox 93 on Friday October 08, 2021 @05:12PM (#28804270)
I have experienced the same, though I’ve done less visual comparisons. Comparing % quality like-for-like between webp and avif, on average avif files are slightly larger than webp counterparts.

Things didn’t materially improve when using high compression (slow) encoding settings. Could have been a bad encoder (libavif iirc)— there might be an explanation but on the face of it I saw worse performance than webp.

Re:React Concurrent Mode on Friday October 25, 2019 @04:09AM (#21352847)
The "work" is the arbitrary JavaScript in the `render()` function. In Concurrent mode, a `render()` function that renders 1000 children can now be interrupted "between" renders of all those children.

It's akin to doing `Header( LoginLink( GetLoginName() ) )` versus

``` Header(); check_for_interrupt(); LoginLink(); check_for_interrupt(); ... ```

The interrupt between rendering components (pieces of work) can now cancel the whole render operation (because say, the parent component has now been updated / wants to be re-rendered), or can pause the render tree while something like a high-priority animation frame is rendered.

Re:The 64 Milliseconds Manifesto on Tuesday September 24, 2019 @02:09PM (#21063005)
This website isn't an interactive software application though!
Re:Improving Siri's Privacy Protection on Wednesday August 28, 2019 @01:37PM (#20822064)
> Siri uses a random identifier — a long string of letters and numbers associated with a single device — to keep track of data while it’s being processed, rather than tying it to your identity through your Apple ID or phone number — a process that we believe is unique among the digital assistants in use today. For further protection, after six months, the device’s data is disassociated from the random identifier.

Interesting, I thought I had heard it widely reported that Apple was keeping hold of audio records tagged with your Apple ID for 6 months, before anonymizing. That looks like it wasn't the case, and Apple was only tagging those recordings with a device ID, presumably to associate recordings with other recordings.

Re:Chrome hides www and https:// in the address bar again on Tuesday August 06, 2019 @03:38PM (#20628696)
Only issue I have with this is it removes a bit of useful information when I'm asking users for screenshots when reporting errors on websites!
I recently had a child, and being a very tech savvy person, I'm mostly dreading the need to govern what they have access and do on their smartphones, internet, websites etc.

My gut reaction is that parents looking through their children's phones, apps, messages and photos is a huge invasion of privacy. As the article suggests though, there's also the need to protect and manage what our children are involved in, just like offline activities.

There's something about smartphones that is so personal, that there doesn't quite seem to be a good comparison for pre-technology privacy. I don't think I'd have a problem with dictating what my child watches on television, eats, drinks, or otherwise consumes - but controlling smartphones seems something more akin to thoughtcrime.

I was lucky enough to grow up when technology and connectivity was so new that apparently it wasn't used in such a mainstream sinister way as it appears to be now. Going through puberty seems like an even more harrowing experience (ala the move Eighth Grade) with the internet, that seems to go quite unnoticed.

I guess because we "follow" people who interest us or are like minded. I don't set out to "follow an influencer", but when I subscribe to a podcast, or follow someone on twitter because I find their comedy hilarious; that's what I'm doing.
I don't think the intentional is to get people to smoke who otherwise wouldn't. It's to get the people who are going to buy cigarettes, and in doing so, chose their brand. When confronted with many choices of competing products, having someone you trust and admire favour a particular product may be enough to tip the scales and get you to take that option.

I find myself doing this often, due to all the podcast ads I hear! If I'm going to buy a mattress or printed framed picture I'm going to start with I've heard about from some "influencer" I follow.

Based off this definition of merit, any system would be meritocratic. A politician winning elections by purchasing votes wouldn't be considered to be merit based.

In poker, reading tells is an accepted part of the game and within the rules. It's my understanding that most of the tactics reported in the article are against Instagram's rules.

It was my understanding that this doesn’t cover using a trademark in a domain name. I could be wrong; my only experience of this is that “WordPress” is a trademark, and therefore it’s generally accepted that any WordPress related product is not allowed to use the trademark in their domains.
Re:An Update on the Security Issue on Friday October 12, 2018 @03:05PM (#18203859)
:facepalm:
Re:An Update on the Security Issue on Friday October 12, 2018 @02:12PM (#18203430)
The post seems to suggest the number to be concerned about is 30 million users who had access tokens stolen. Seems to downplay the 400 million users who had their profiles leaked.

"They used an automated technique to move from account to account so they could steal the access tokens of those friends, and for friends of those friends, and so on, totaling about 400,000 people. In the process, however, this technique automatically loaded those accounts’ Facebook profiles, mirroring what these 400,000 people would have seen when looking at their own profiles."

Seems a lot more like this has leaked the privacy of 400 million users, but Facebook are trying to focus on the smaller 30 million (though granted, those are more seriously affected.)

Does anyone know how much this improves performance over a simple JavaScript only implementation? This looks cool, but I have no idea if it's really any better with all the extra layers
Re:The UK to open its first sex doll brothel on Wednesday May 03, 2017 @03:44AM (#14253763)
Read title: "The UK to open its first sex doll brothel, because men need more ways to objectify women"

...instantly close.

Re:Wordpress on AWS: smooth and pain free on Tuesday November 01, 2016 @10:23AM (#12845907)
IMO the better way to run is with _no_ shared file system at all. Use CodeDeploy to ship the deploy files to all ec2 servers, and then use S3 to store all uploaded files. WordPress doesn't need to do any file writing outside of the `uploads` directory.

This allows you to sidestep a large amount of pain points with shared filesystems, and every ec2 server has local disk performance.

Ask HN: What was that story about a guy that gets caught in the snow

I'm sure I head a short story a couple years ago on HN, but I can't for the life of me find it.It was about a guy driving in the snow, his vehicle runs off the road so he decides to try hike back to safety, but before long is overwhelmed by the cold and freezes.The writing was rather descriptive if my memory serves me correctly. I may have been called "Snow", I have no idea!

( Read More... | 2 comments | on HN )
Re:WinJS: The Windows Library for JavaScript on Tuesday June 09, 2015 @02:10PM (#9687555)
JS is overwhelmingly edited in text editors, see Sublime, Coda, VIM, Emacs. Comparing to C# in this regard is not a good one. I find code completions / intelligence for JavaScript is very basic compared to something like C#.
Re:How does Facebook disable Developer Tools? on Wednesday February 12, 2014 @12:16AM (#7222649)
How is this exploit not possible by just telling someone to paste javascript:alert(document.cookie) etc into their address bar?
Re:Why I’m not paying the Troll Toll on Wednesday July 03, 2013 @05:12AM (#5983312)
What?! Why would he be obligated or in any way suggested that he donate the sum Lodsys are asking for, isn't that the whole point of this: it's a ridiculous claim and he isn't required to pay the money.
The petition is not evidence of the public being against what the administration is doing, as it only represents the people who want Edward Snowden pardoned, not the "opposite" view, if such a view exists.
From Wikipedia [1]:

> It represents the percentage of visitors who enter the site and "bounce" (leave the site) rather than continue viewing other pages within the same site.

So.. why are you changing that? If someone comes to your site, reads an article and leaves, that;s still a bounce :/

[1] http://en.wikipedia.org/wiki/Bounce_rate

Re:Quote Meritocracy Unquote on Tuesday April 02, 2013 @06:00AM (#5478430)
I think the point was; one can cherry-pick with deviation, as they are not _that_ far apart. The parent contends the overstated-ness, not that they are equal.
Re:YOU_ARE_DEAD, a 1D Roguelike on Sunday February 03, 2013 @04:47PM (#5161315)
192!

Though I died on the last char of the line :( WHAT HAPPENS WHEN YOU REACH THE END OF THE LINE!!!

Older »