HNHacker News
TopNewBestAskShowJobs

sgentle

6,129 karma · joined January 23, 2009

sam@samgentle.com https://samgentle.com

[ my public key: https://keybase.io/sgentle; my proof: https://keybase.io/sgentle/sigs/3uQdZp996Jauky4wYek0MR_EgtzlUs8DAPZprVt-AMs ]

submissionscomments
sgentle··on Lace: A New Kind of Cellular Automata Where Links Matter
I've updated the shader – I think the issue was just that I was initialising the states to random values instead of running a proper degree calculation. The behaviour looked pretty similar to me either way, but now it matches exactly and I added colours to make that clear: https://imgur.com/a/4gZKlSg
sgentle··on Lace: A New Kind of Cellular Automata Where Links Matter
As far as I can tell, this isn't adding any meaningful topology. The various notions of graph-connectedness basically amount to a standard finite-state CA with a slightly complex update rule.

The per-cell update mechanism, using "amazing dragons" as an example:

1. Calculate a metric for every cell based on its neighbours

   eg: metric = sum(1/degree if degree > 0)
2. Calculate whether each cell is eligible based on its metric

   eg: eligible = (state > 0) ? (0.9 <= metric <= 2.6) : (1.4 <= metric <= 7.0)
3. Calculate new state based on degree (degree = eligible ? number of eligible neighbours : 0)

   eg: state = (degree == 1 || degree == 7) ? 0 : degree
Since the "edges" just represent eligibility of neighbours, which depends on their neighbours, you can replace them with a larger neighbourhood (ie 5x5 instead of 3x3). And since state is just degree or 0, you effectively have 1 more state than degrees.

Here's an example of that approach: https://www.shadertoy.com/view/wXSyRw

I think for this to live up to the name it would need one or both of the following:

1. edges that mask or gate cells in some way (ie a dynamic neighbourhood) 2. rules that turn edges into other edges without going via cell states

sgentle··on Regarding the Compact
The second result in your YouTube search is a PBS mini-doc called "Why Do College Campuses Have So Many Protests?"

The questions I offered were prompts to engage critically with why this compact exists. Perhaps watching that video might help you find answers beyond "playing dumb".

sgentle··on Regarding the Compact
Careful not to fall into the "People's Democratic Republic" trap: the way something is described and its purported aims are not at all the same as its actual effects (and, often, not even its intended ones). Politics is, in many cases, the art of selling you a box of spoons with "forks" printed on the label.

Instead of asking "does this agreement sound nice?", ask what power it gives, to whom, and what might they want to do with it.

Some prompts to spark a cogent reasoning process:

> Signatories commit themselves to [...] transforming or abolishing institutional units that purposefully punish, belittle, and even spark violence against conservative ideas

What "institutional units" might this mean? How are they identified? Who identifies them? What is the threshold for belittling conservative ideas that might trigger the "transforming or abolishing" remedy?

> Universities shall be responsible for ensuring that they do not knowingly: (1) permit actions by the university, university employees, university students, or individuals external to the university community to delay or disrupt class instruction or disrupt libraries or other traditional study locations [...] signatories commit to using lawful force if necessary to prevent these violations

What do "actions by" "university students" to "delay or disrupt class instruction" refer to? What kinds of disruptive action might the people writing this document be so concerned about that they would ask universities to "commit to using lawful force" to prevent? What sort of scenario is being envisaged here?

> Institutions commit to defining and otherwise interpreting "male," "female," "woman," and "man" according to reproductive function and biological processes.

Doesn't it seem oddly specific to assert a definition like this? Why can't a university decide for itself? How does this assertion square with "maintaining a vibrant marketplace of ideas" and the "empirical assessment of a broad spectrum of viewpoints"? Why only this definition and no others?

I could go on, but hopefully you get the picture. It's an important skill to practice critically reading a document the same way you might critically audit code. Don't ask what it seems like it does, ask what it might allow someone to do.

sgentle··on Employee survives 40-foot fall into corn silo at Denver Frito-Lay plant
In case this doesn't seem like a particularly scary situation: https://en.wikipedia.org/wiki/Grain_entrapment#Occurrence

> Half of all entrapment victims eventually become engulfed. A human body in grain takes seconds to sink, minutes to suffocate, and hours to locate and recover.

sgentle··on Copilot broke audit logs, but Microsoft won't tell customers
The coercion will continue until metrics improve.
sgentle··on Guid Smash
Apparently there's 500 hours of video uploaded to YouTube every minute (30 seconds every millisecond). Assuming 4K@60fps, that works out to 14,929,920,000 pixels per millisecond.

If YouTube wanted to give every incoming pixel its own UUIDv7, they'd see a collision rate just under 0.6%.

sgentle··on Try and
When you say "allow"... what exactly do you imagine happening if Yale's linguistic department forbids people from using English in certain ways?

Or is this more of a federal government thing? Grammar Force as the seventh branch of the US Military? What about other countries... are we thinking NATO or UN? Either way, gonna be tough to try and convince the Brits that US English is the correct one, since we didn't exactly get permission from them in the first place.

sgentle··on Our Farewell from Google Play
It's a choice that Google made to obfuscate their DRM by calling it "FLAG_SECURE", at the cost of usability and security for everyone else. Just check out this delightful doublespeak: https://developer.android.com/security/fraud-prevention/acti...

> When a window is flagged with FLAG_SECURE, Android prevents screenshots from being taken and prevents the window from being displayed on a non-secure display, such as a TV or projector. This helps to protect the information that is being displayed in the window from being accessed by unauthorized people.

What's a "secure display"? Why, none other than our old friend HDCP: https://source.android.com/docs/compatibility/16/android-16-...

So the docs might imply that "the information" is your banking information, and the "unauthorized people" are, I guess, dudes with binoculars outside your window. But actually "the information" is Netflix and the "unauthorized people" are you.

That's why you can project your OTP codes on a 50-foot wall as long as your projector is HDCP-compliant.

sgentle··on JavaScript decided my day starts at 9am
There's a larger design issue here that becomes clearer if you think of timezones as something more like temporal reference frames. Every date and/or time is relative to something; it's just a question of whether that reference is explicit or implicit, and if it's implicit then how does it get resolved?

Your original code (inadvertently) used a UTC day: T00:00:00Z -> T24:00:00Z. Your new code uses a day in an implicit timezone, which gets resolved by the client (to its local time). So, if you send that dashboard to someone in Singapore or Australia, their day is going to be an hour off compared to what you see.

Ultimately, the design issue is: when someone says "Tuesday", do they mean Tuesday in their local time? Tuesday in Japan? Tuesday in the location of their company HQ? Tuesday in the timezone where they do the most business?

I think a lot of the reason people get mad about timezones is because they don't think clearly about their reference frames from the beginning, which leads to getting caught up in implicit time spaghetti later on.

sgentle··on AI overviews cause massive drop in search clicks
It's kinda old news now but I still love searching for made-up idioms.

> "You can't get boiled rice from a clown" is a phrase that plays on expectations and the absurdity of a situation.

> The phrase "never stack rocks with Elvis" is a playful way of expressing skepticism about the act of stacking rocks in natural environments.

> The saying "two dogs can't build an ocean" is a colloquial and humorous way of expressing the futility or impossibility of a grand, unachievable goal or task.

sgentle··on AI overviews cause massive drop in search clicks
"full moon time NY"

> The next full moon in New York will be on August 9th, 2025, at 3:55 a.m.

"full moon time LA"

> The next full moon in Los Angeles will be on August 9, 2025, at 3:55 AM PDT.

I mean, it certainly gives an immediate answer...

sgentle··on ICE's Supercharged Facial Recognition App of 200M Images
My bad. Looks like that changed in 2017 and I had out of date information. I will say that "may eliminate or shorten this 60-day period as a matter of discretion" means the scenario is still just as plausible:

https://natlawreview.com/article/notices-appear-ntas-being-i...

sgentle··on ICE's Supercharged Facial Recognition App of 200M Images
I think there are 3 fundamental misapprehensions that someone who thinks in abstract systems (like software) tends to make when considering about a human system (like the law).

1. The system doesn't make mistakes

2. The system represents the underlying reality

3. The system can be implemented

Let's see how that plays out here:

1. You're a US citizen. While returning from an overseas trip, a border agent thinks it's a bit weird that you have 3 laptops and flags you for extra screening. Unfortunately, the box for "extra screening" was right next to "fraudulent passport" and they checked the wrong one. You say you're a US citizen. The box says you aren't. No due process? Straight to gitmo.

2. You're in the US on a work visa sponsored by your benevolent megalithic software company. Unfortunately, they engage in some right-sizing by sizing you right out the door with zero notice. It's policy for immigration to retroactively extend your status if you find another sponsor or a different visa. But, on paper, the moment you were terminated you lost your legal status. And, just your luck, immigration agents are waiting outside as you carry your stuff to your car. No due process? Straight to gitmo.

3. You've never had a passport because you grew up in the US and have never travelled internationally. An immigration agent stops you and asks you for proof of your status. All you have is your old (pre-REAL ID) driver's license, but the agent says those are easily faked. Maybe you could go to your parents' house to look for your birth certificate, but the agent wants proof now. No due process? Straight to gitmo.

sgentle··on Bypassing Google's big anti-adblock update
It depends on how you interpret the word "properly". There are ads and adblocker-detection techniques that can't be blocked by MV3-style static filtering.

If "properly" means "can block all ads" then you're wrong. If it means "can block some ads" then you're right. If it means "can block most ads" then you're currently right, but likely to become wrong as adtech evolves around the new state of play.

Don't forget Chrome launched with built-in popup blocking. Now we just have popunders, in-page popups, back-button hijacking etc. Ads, uh... find a way.

sgentle··on Preliminary report into Air India crash released
Sure, but you can open the door, pull the handbrake, or turn the wheel so hard you lose control of the vehicle. These are all similarly preventable, but maybe not worth the risk of being unable to open the door, brake or steer if the safety mechanism fails closed, or if your situation is outside the foresight of its designer.

Also, you don't need multiple certifications and 1500 hours of experience to drive a car.

sgentle··on Tiny Undervalued Hardware Companions (2024)
Pretty much anything – I just bought a random cheap one from Amazon, though you might get better latency for more money. The dongles show up as USB cameras (ie UVC) which is supported since iPadOS 17.

I use the (free) Orion app, but it's basically just a fullscreen camera preview so there are plenty of other options.

sgentle··on Tiny Undervalued Hardware Companions (2024)
I use an iPad (that I have with me anyway) + cheap USB HDMI capture dongle for this.
sgentle··on Our narrative prison
Very strange choice to use Mulholland Drive as an example of conforming to the hero's journey "complicated by dream sequences" (?!)

The second half of the film reveals the hero's journey to be a self-serving narrative constructed by the protagonist to retell her own tragic and shameful history, casting herself as a hero instead of a villain. By extension, the film is a critique of Hollywood, American myth-making, and the exact trope it supposedly conforms to.

sgentle··on Ask HN: How to study for system design that doesn't include front end/back end?
I learned a lot about event-driven distributed systems by just building things with ZeroMQ. Even if you don't end up using it, learning its messaging patterns and the decisions behind them can give you a pretty solid mental framework.

The ZeroMQ guide really takes you through it in detail, for example check out Figure 19 here for a parallel job queue with cancellation: https://zguide.zeromq.org/docs/chapter2/#Handling-Errors-and...

sgentle··on STEPS Toward the Reinvention of Programming (2012) [pdf]
It did get some attention 10 years and 2 months ago ;)

https://news.ycombinator.com/item?id=8857113

sgentle··on Study finds bullies have more children than non-bullies
My first thought also. Every reason to think a pattern of bullying would extend to romantic and sexual partners.
sgentle··on Do Lake Names Reflect Their Properties?
I was surprised to learn that, while the suburb of Silver Lake in LA is in fact named after the water reservoir at its centre, the reservoir itself is actually named after former water commissioner Herman Silver. The way its serene surface reflects the city and the mountains beyond? Just a coincidence.
sgentle··on Google's 7-year slog to improve Chrome extensions hasn't satisfied developers
Here's Wipr's instructions for toggling on its blocklists: https://kaylees.site/wipr-faq.html#wipr-has-no-effect-after-...
sgentle··on Polyamory doesn't liberate; monogamy doesn't protect
This article didn't really hit for me. It feels like I'm just reading the author's particular experiences run through a gauntlet of theorisation that ultimately does more to obscure than clarify the message.

1. Being a very particular sort of person (I'm going to guess specifically Bay Area tech or tech-adjacent rationalist), the author is surprised to find that his personal experience of poly dating is different to what the statistics say. Is it the author's social group? His preferences? A limitation of his context? Nope, it's "statistics, culture, and biology". I find this to be generally true of rationalist writing: why reflect when you can generalise?

2. "most things conceptualized as identity are silly" is a pretty significant axiom to assert halfway down a section on definitions, immediately underneath the Classical Greek Forms of Love infographic. The article's first conclusion is just this same premise restated, leaving me suspicious of whatever reasoning occured in between.

3. It's hard to even find the author's actual perspective through all the equivocation. Monogamy and polyamory are both deluded in their own ways, they both say they're natural, but really the most natural thing is... incel-tier sexual economics? And maybe that's bad, or maybe not, so you should do what feels right for you. But also it's really about your attachment wounds, so maybe just do whatever's easiest. Or maybe just pick one and stick with it. But you can (and probably will) change your mind. In conclusion, the important thing is to be thoughtful and considered in our choices and the effect they have on society.

As far as I can tell, the actual truth of this piece is that the author is in a community where polyamory is the norm. He really tried to make it work for him but it didn't. He's not poly anymore and kinda thinks the whole thing is busted, but doesn't want to alienate his community. So he's just wafting a general sense of intellectualised discontent into the air and hoping for the best. I mean, fine, but I don't think we needed to get to Level Seven of The Spiral to do it.

sgentle··on 1/0 = 0 (2018)
You might be interested in the hyperreal numbers, which sound a bit like the avenue you were exploring.
sgentle··on Europe is under attack from Russia. Why isn't it fighting back?
When you ask a question like that, are you making an implicit commitment to change your mind if a source is provided?

https://pmc.ncbi.nlm.nih.gov/articles/PMC10763974/

sgentle··on Missing open-source contributor presents a dilemma when accepting their PR
"Whenever you add Content to a repository containing notice of a license, you license that Content under the same terms, and you agree that you have the right to license that Content under those terms. If you have a separate agreement to license that Content under different terms, such as a contributor license agreement, that agreement will supersede."

https://docs.github.com/en/site-policy/github-terms/github-t...

sgentle··on Ask HN: What is the most useless project you have worked on?
Sibling commenters: for what it's worth, the notion of an employee having a fiduciary duty to their employer isn't as crazy as it sounds. eg, see here: https://www.lexology.com/library/detail.aspx?g=724a91e1-94f1...

That said, I think it'd be a pretty tough argument to make that an employee following the instructions of their superior was breaching fiduciary duty. If they weren't acting to their employer's benefit, then whose? Employee fiduciary duty cases tend to be more about things like embezzling or competing with your own company while you're still working there.

An example of Fox getting shut down for trying to claim that sexual harassment was a breach of fiduciary duty: https://www.barnespc.com/news-articles/limitations-on-the-sc...

sgentle··on The Getty makes nearly 88k art images free to use
You might find it helpful to refer to the Copyright Office's Compendium, which covers copyright law specifics in more detail. It's big, but quite approachable.

Chapter 300 covers copyrightability in general: https://copyright.gov/comp3/chap300/ch300-copyrightable-auth...

> 313.4(A): A work that is a mere copy of another work of authorship is not copyrightable. The Office cannot register a work that has been merely copied from another work of authorship without any additional original authorship. [...] Bridgeman Art Library, Ltd. v. Corel Corp., 36 F. Supp. 2d 191, 195 (S.D.N.Y. 1999) ("exact photographic copies of public domain works of art would not be copyrightable under United States law because they are not original").

Chapter 900 covers visual art specifically and goes into more detail on the copyrightability of photographs: https://www.copyright.gov/comp3/chap900/ch900-visual-art.pdf

> 909.3(A): [...] A photograph that is merely a "slavish copy" of a painting, drawing, or other public domain or copyrighted work is not eligible for registration. The registration specialist will refuse a claim if it is clear that the photographer merely used the camera to copy the source work without adding any creative expression to the photo. Similarly, merely scanning and digitizing existing works does not contain a sufficient amount of creativity to warrant copyright protection.

← PreviousPage 2 of 16Next →