MurphyA/hacker-news huggingface dataset:
by pizza234 | 2025-09-02 11:24:23+00:00
There's a report by John Oliver: https://youtu.be/DfTBhrkae74.

> can't they be taken to court?

It costs money, and the low hanging fruits of deportation are low-income families/individuals.

> In case of (1) can't they be taken to court? In case of (2) aren't immigration laws there for a reason

Police, courts and administration work until they don't. There have been cases of people arrested just because of racial profiling, which fits into Trump's racial vision.

The emblematic case IMO, has been the high-profile instance of an American citized deported because of an administrative mistake (!!); Trump has openly refused to apologize or take corrective action (!!!).

The real problem, if one accepts Oliver’s criticisms, is that this is not about law, it's about racial cleansing.
by foldr | 2025-09-02 11:24:32+00:00
The reduceRight is just a bit of cute FP code golf. All it’s saying is that chaining an empty list of middleware yields an ‘OK’ response, and that the first middleware is passed a function which, when called, executes the remaining middleware chain, and so on. It would be obvious enough if written out as a for loop, or via direct recursion.

(My username has never been more appropriate!)
by kouteiheika | 2025-09-02 11:24:55+00:00
> I think there is a third possibility of people just disagreeing with the move of "Lets forcible check every single potentially illegal immigrant, so we can get rid of the illegal ones" from a purely humanitarian perspective, regardless if ICE might be abusing their power or if they're only removing illegal immigrants.

Okay, so bear with me, what does "forcibly" entail here? I'm an immigrant too, I also get "forcibly" (as in: I can't refuse) checked whether I'm legal or not based on how I look, which essentially boils down to spending a minute of my time taking my immigrant card (which shows that I'm legal) out of my wallet, showing it to the police officer (or whatever other government official is asking), and then going my way. This is totally not a problem. Doesn't the US have a way for immigrants to easily and unambiguously identify themselves as legal immigrants?
by cholantesh | 2025-09-02 11:25:16+00:00
>The IDF doesn't need to human shields

And yet they still do, by their own definition and the one that is actually in wide use.

>Seriously, how many israeli civilians have been killed by military strikes aimed at legitimate targets?

Far fewer than the number of Palestinians killed by the IDF 'mistakenly' turning a hospital to rubble with journalists in the vicinity. What are you even trying to argue?
by VGHN7XDuOXPAzol | 2025-09-02 11:25:24+00:00
Afaik Postgres doesn't. In my exposure it'd be quite uncommon for a b-tree to store the size of a subtree; would cause more churn/writes when updating trees.

Perhaps some of the page-level Copy-on-Write databases (LMDB?) might do this, since they have to rewrite ancestor pages anyway.
by SpaceNugget | 2025-09-02 11:25:38+00:00
If you viewed the source and reproduced a software project you don't have a license to redistribute, that's cut and dry copyright violation. If the code looks similar enough you are toast. That's why there's the concept of a "clean room" reimplementation. The same is true if you feed the source into the context of an LLM and asked it to reproduce it. You have done nothing but introduce the possibility of transcription bugs.
by ekidd | 2025-09-02 11:25:47+00:00
The concern here is (1).

ICE officers have no badges. They wear masks. Sometimes they have no uniforms. They grab people off the streets, and stuff them into white vans. They may send those people to foreign prisons, even if a judge tells them not to. Some of the people they take are natural-born citizens.

Taking them to court works sometimes. But ICE will often attempt to move people out of state quickly, and they won't always say where those people went. And as I mentioned above, the administration has just straight-up ignored multiple court orders.

Courts are a cute legal fiction that only works if the people with guns agree to listen to them.
by DanielHB | 2025-09-02 11:26:34+00:00
Yep, been there. It is a lot better these days for React SPAs but it is still a pain.

Fact is the only way around this in the frontend without a monolitic "batteries-included" all-encompassing all-knowing all-mighty framework is through standardization which can only be pushed by the browsers. Like if browsers themselves decided how bundlers should work and not have them be extensible.

And this tooling-hell is not only a browser frontend problem only either, it is also quite common in game development. Where you also have these monstrosities like Unreal Engine that "includes batteries" but makes it really hard to troubleshoot problems because it is so massively big and complex. A game engine is basically a bundler too that combines assets and code into a runnable system to be run on top of a platform.
Show HN: RealCustomAI – An AI Memory Layer for ChatGPT/Gemini/Grok
by RealCustomAI | 2025-09-02 11:26:36+00:00
Groq, Gemini, and GPT – All Seamlessly Connected

This is a personalized AI service designed to help you get smarter, faster answers by securely saving (with encryption) your input every time you chat — and using related past conversations to better understand your current questions.

You can upload past chat history to feel the difference right away.

All stored data can be viewed or deleted anytime, and the AI remembers and keeps learning with you.

It’s your personal AI that truly gets you.

Guide https://realcustomai.online/guide

Use in Custom GPT https://chatgpt.com/g/g-689afc60d3d48191a72416390f9d713f-rea...

Use it on Groq, Gemini, and ChatGPT web via browser extension See the guide above for details.
by latexr | 2025-09-02 11:26:50+00:00
One could argue that’s what a pocket encyclopaedia (those exist) is. But even if we say they don’t, when you make up a term by mushing two existing words together it helps if the term makes sense. Otherwise, why even use the existing words? You called it a “lossy enyclopedia” and not a “spaghetti ice cream” for a reason, presumably so the term evokes an image or concept in the mind of the reader. If it’s bringing up a different image than what you intended, perhaps it’s not a good term.

I remember you being surprised when the term “vibe coding” deviated from its original intention (I know you didn’t come up with it). But frankly I was surprised at your surprise—it was entirely predictable and obvious how the term was going to be used. The concept I’m attempting to communicate to you is that when you make up a term you have to think not only of the thing in your head but also of the image it conjures up in other people’s minds. Communication is a two-way street.
by philipallstar | 2025-09-02 11:26:56+00:00
The problem is (2) has been pushed recently by the left in America (unlike 20 years ago when it was the right that liked illegal immigration) as a racist stance, and "open borders" was a big policy idea.

So many, many thousands of illegal immigrants (renamed 1984-style to "undocumented" by the media outlets who operate in lockstep with the Democrat party) have been allowed in, and have been sheltered by businesses who like below-minimum wage labour, and by democrat cities in general.

This means there's not much left to do when left-wing activists violently defend illegal immigrants from ICE removal other than escalating ICE activities to compensate.
by mcny | 2025-09-02 11:27:00+00:00
I think details also matter here. Should ICE be allowed to come to a Home Depot, a Walmart, elementary schools, and "randomly" interrogate people? Who are they picking? How is it possible to do this without discriminating people based on ethnicity etc while also avoiding the ridiculous cost of interrogating everyone every day or the futility of pure randomness?

The real fear in my mind is not what this circus of an administration does for the next three - four years but that the next administrations will continue these practices just by sheer inertia (same with tariffs).
by masto | 2025-09-02 11:27:08+00:00
I don’t know if this counts as experienced, but I’ve spent about a year exploring Next.js, the last 6 months of which transitioning from exploring to building a serious project.

I understand the author’s frustrations. I have had similar ones when it comes to middleware and other parts of Next.js. I’ve also had those kinds of frustrations with every piece of software and framework I’ve ever used. A lot of times they stem from trying to shove a square peg into a round hole, and it only gets better when I finally develop the right mental model for how the thing works.

As a web developer going back to CGI scripts in the 90s, all this server and client side rendering, edge runtimes, etc., is quite foreign. But when I find myself screaming “why won’t it let me do this?”, the answer is often “because it doesn’t make sense to do that”. Auth is one of the places where that happened, and going through the process of “but why can’t I look the user up in my database from middleware” was a big part of wrapping my head around the parts of Next.js that I had been ignoring.

As far as being married to Vercel for hosting, not at all, if you don’t choose to use all their stuff. The sample Docker build they have works just fine to deploy anywhere, in my experience.

Maybe I’m speaking mostly out of ignorance of not having tried dozens of other modern TS web frameworks (I was on a big tech island for a decade and not in touch with what the cool kids were up to), but I rather like Next.js. I may feel differently when I want to start adding native mobile apps and realize I was lulled into omitting a clean API layer, but for now, adding features has been pretty smooth.
by ghaff | 2025-09-02 11:27:10+00:00
There used to be a great used book store in Harvard Square but I suspect they sort of overextended (opened second location) at the wrong time though don't really know the story. There's another basically hybrid store--used books are in the basement--but I have to admit I haven't been in there for a while.

That area used to be a cornucopia of book stores generally but that's mostly gone.
by lelanthran | 2025-09-02 11:27:35+00:00
> I think I have about a 50% success rate in typing a multiline message without accidentally sending it early, having to edit / copy and delete the message and finish typing it before the recipient has a chance to read it, confusing both me and them in the process.

That won't change if you had a different dedicated key for "move one line down but don't send `enter` keycode". You'd still accidentally hit `enter` due to muscle memory.

After all, if you could get past muscle memory, you'd simply press Shift while hitting Enter.
by LeifCarrotson | 2025-09-02 11:28:01+00:00
If the floor and ceiling (and walls) were leveled and flattened and brought to plumb with a straightedge scraped in with the three-plate method [1] (Popularized by Whitworth in the 1830s, but the ancients made straight edges and flat plates too), then they were actually not 90 degrees at the corners!

[1] https://ericweinhoffer.com/blog/2017/7/30/the-whitworth-thre...
by celicoo | 2025-09-02 11:28:05+00:00
Reading through all these comments gives me hope. Finally people are speaking up about what we have all been experiencing in isolation — the gradual enshittification of Vercel/Next.js in service of Vercel's business model.

The middleware issues the OP describes are not bugs, they are symptoms. When you can't get basic logging to work, when you can't use WebSockets, when you are forced to deploy on edge runtimes that don't support Node.js APIs — these are all deliberate choices to push you toward Vercel's platform. Guillermo and his team have prioritized their cap table over the open web.

This is why I started https://github.com/openuiai/next.js last month. The web is humanity's greatest collaborative achievement. We are building toward a global, decentralized network that should enable unrestricted computation and storage for everyone. And for that to actually happen, we need frameworks with the power and flexibility that Next.js used to have. But instead we are all watching Vercel carve it up to lock developers into their platform

Next.js used to be great. Now it's a trojan horse for vendor lock-in. The fact that so many developers are comparing it to SharePoint and Lotus Notes should be a wake-up call.

To everyone frustrated: you are not wrong. The framework is ACTIVELY working against you unless you are on Vercel.

I'm working on OpenNext.js every single day — still climbing the learning curve of the massive spaghetti codebase, but fully committed. We are already running OpenUI on a fork with full Node.js middleware support and native WebSockets. These will merge into OpenNext.js once I have properly cleaned out the cruft (their CI/CD alone has cost me $400 just figuring out how to untangle it). But I'm taking the time to do this right.

Guillermo: Vercel/Next.js shouldn't dictate where we can deploy. It should respect the open nature of the web. You know this, but you chose the money instead.
by no_time | 2025-09-02 11:28:56+00:00
Not really a utility per se, but I really really wish that echo {1..n} would run echo n number of times with the current index as the argument instead of expanding to a single string that gets printed.

I know you can do a for loop as a one liner but I somehow never get it right the first time and turns out to be a bit of a PIA.
by Lucasoato | 2025-09-02 11:29:31+00:00
> we of course have no idea what actually happened since the default logging is only enabled during development

Wait, if you have issues with logging, why don’t you set up opentelemetry? It’s really easy to add into a project [1], and if you don’t want to manage it, you can easily find some cost efficient solutions like Grafana Labs [2].

[1]: https://nextjs.org/docs/app/guides/open-telemetry

[2]: https://grafana.com/
by lock1 | 2025-09-02 11:29:50+00:00
Interesting anecdote.

At $DAYJOB, I'm currently migrating a non-performance sensitive system to a functional style, which requires defining basic functional types like Option<> and Result<>. So far I think it works pretty well and certainly improves edge case handling through explicit type declaration.

My current stable incarnation is something like this:

sealed interface Result<T,E> { record Ok<T,E>(T value) implements Result<T,E> {} record Error<T,E>(E error) implements Result<T,E> {} }

Some additional thoughts:

- Using only 1 type parameter in `Result<T>` & `Ok<T>` hides the possible failure state. `Result<Integer>` contain less information in type signature than `Integer throwing() throws CustomException`, leaving you fall back on catching `Exception` and handling them manually. Which kind of defeats the typechecking value of `Result<>`

- A Java developer might find it unusual to see `Ok<T,E>` and realize that the type `E` is never used in `Ok`. It's called "phantom types" in other language. While Java's generic prevents something like C++'s template specialization or due to type erasure, in this case, it helps the type system track which type is which.

- I would suggest removing the type constraint `E extends Exception`, mirroring Rust's Result<> & Haskell's Either. This restriction also prohibits using a sum type `E` for an error.

- In case you want to rethrow type `Result<?,E>` where `E extends CustomException`, maybe use a static function with an appropriate type constraint on `E`

sealed class Result<T,E> { public static <E extends Exception> void throwIfAnyError(Result<?,E>... ); }

- I like the fact that overriding a method with reference type args + functional interface args triggers an "ambiguous type method call" error if you try to use bare null. This behavior is pretty handy to ensure anti-null behavior on `Option.orElse(T)` & `Option.orElse(Supplier<T>)`. Leaving `Option.get()` as a way to "get the nullable value" and a "code smell indicator"
by orthoxerox | 2025-09-02 11:30:17+00:00
> There was always tension between the folks that shipped GPL software and folks that shipped BSD/MIT software, but the dividing line was not whether or not we were “commercial programmers and startup bros”.

> It has always come down to questions of what we believe freedom to mean, how we wanted to contribute utility to the world, and whether we saw the use of our software in commercial projects as a loss to ourselves in a zero sum game.

I remember the shitstorm Zed Shaw caused when he built something on top of MIT/BSD-licensed libraries and released it under GPL. "B-but that's against the spirit of the license!" people said.
by tpm | 2025-09-02 11:30:57+00:00
At this point deflecting to Hamas is pretty poor and worn out strategy, I think Israeli propaganda should pivot to something else, like [0]. Anyway for the sake of clarity:

> If there are militants near a piece of civilian infrastructure

1) Of course we would have to believe the attackers it's the case. But we can't believe them, can we? I could search for facts supporing my view, but these are not isolated incidents, it's a sustained campaign.

2) There seem to be militants everywhere, according to the total devastation: https://www.theguardian.com/world/2025/jan/18/a-visual-guide...

3) You still should not destroy the civilian infrastructure. I mean it's not that hard to understand: you should not kill civilians. Most people do understand that. Israeli army certainly understands that, it just chose to kill civilians and destroy their infrastructure.

[0] https://en.wikipedia.org/wiki/And_you_are_lynching_Negroes
by YuukiRey | 2025-09-02 11:31:00+00:00
It's hard for me to give a blanket answer to this. I tend to mostly work on services that offer GraphQL APIs these days, and not so much on client side rendering. For APIs I stick with Go because it's what I'm most familiar with. But I'd also be happy to work on a Django or FastAPI service. Anything is fine really, as long as it's mostly boring technology.

If I had to create something that has a UI I'd just go with a bog standard server rendered multi page app, built using really boring technology as well. If you like Javascript and friends, go with Express. Nowadays you can run Typescript files directly and the built-in test runner is quite capable.

If a single page application makes sense, then go with vanilla React. For a highly interactive application that's potentially behind a log in anyway, you probably don't need React Server Components.
by darkwater | 2025-09-02 11:31:28+00:00
> I also get "forcibly" (as in: I can't refuse) checked whether I'm legal or not based on how I look, which essentially boils down to spending a minute of my time taking my immigrant card (which shows that I'm legal) out of my wallet, showing it to the police officer (or whatever other government official is asking), and then going my way. This is totally not a problem.

Sounds like you have a mild case of Stockholm syndrome, if you happily accept that you get more attention from law enforcement due to your physical traits.
by mapt | 2025-09-02 11:32:17+00:00
That would require a sensible immigration regulation.

What we have instead is a regulation that almost prohibits immigration, but which has a whole bunch of grey areas, exceptions to the rule that qualify you for some special status, and courts that are overloaded by a factor of ~100 relative to what they would need to do their job, or overloaded by a factor of ~10 relative to what they would need to do a terrible pro forma job. While waiting for a court date (let's say you walk in and claim asylum) you are granted a special status by administrative custom which says that nobody is coming after you until after your status is adjudicated. Deportation is "deferred", and can be rescinded after the fact based on adjudication. Previous administrations have "prioritized violent crimes" for deportation, leaving about 20 million people at a time outside the system of legal permanent residency, and another 40 million of their family members who rely on them with legal status but precarious. Being custom rather than law, when Stephen Miller and his white supremacist posse comes in they can suspend that, and work at odds with the court and the process. They literally wait until these people check in with the courts and black bag them on their way out of the courtroom.

The US agricultural, construction, and food service sectors have come to almost completely rely on this system permitting either nominally illegal cash-under-the-table work, or "I can't actually prove he's illegal" work, or work performed under a green card sought after the delays and deferred prosecutions in that court date permit the immigrant to start a family and see their kids through college.
by aragilar | 2025-09-02 11:32:53+00:00
Decent email is significantly better than slack at the actual asynchronous part, but if you wanted something chat-like zulip is decent though I'd argue the whole chat-like sphere is never any good at asynchronous.

The issue isn't people being in a different timezone in a one-to-one setup (that's easy to do), and if direct answers from a group are needed then it's not too different, but having any kind of sensible asynchronous discussion on slack is basically impossible (having suffered through far too many). Email (and to a lesser extent forums) are far better for this.
by donatj | 2025-09-02 11:33:10+00:00
> And here’s the most modern version of a practice keyboard I know of – itself a small computer.

The author should check out the AlphaSmart line of devices made into the early 2000s, especially the early pre-PalmOS devices! I was kind of surprised not to see any on the list.

My Neo2 is basically a very simple buffer you can type into and dump into a computer later. It transmits to computer by emulating a USB keyboard and dumping the contents keystroke by keystroke into whatever program you happen to have running.

In addition though it has a very simple typing tutor. There's not much to it, it's no true Mavis Beacon alternative but it's a fun little addition to such a simple device.

I actually work with a number of former AlphaSmart employees, which is funny because I bought my Neo2 as a writing aid before I knew any of this. I was telling a coworker about it and he replies "You know I worked on that, right?" No, I did not. Small world.
by pas | 2025-09-02 11:33:19+00:00
trade offs are real. you can't simply claim that regulation on sharp metal sticks is not something that exists. (China and the UK for example)

guns are regulated everywhere, even in places with very lax gun laws.

believe it or not, but ... cars are regulated too!

I agree that we should stop being afraid, and especially we should stop being inconsistent (claiming to protect kids while doing absolutely none of the things that have favorable cost-benefit ratio with regards to actual kid protection outcomes).

I 100% agree with standing up for our rights, functions, features and all that means ownership of computing devices.

And when the chips fall to the ground it means that Google et al. has the right to do whatever the fuck they want with their shit.

And adding all this up leads to the obvious conclusion that we need to put our money where our mind is. (And we need to spend it at places where they are more aligned with our interests.)