MurphyA/hacker-news huggingface dataset:
by mindwok | 2025-07-03 01:52:50+00:00
I use AI for coding - most of the projects I've built have been fun toys (chore tracking apps, Flutter apps to help my parents), but I've also built one commercial money making app.

I do agree - the models have good taste and often do things that delight me, but there's always room for me to inject my taste. For example, I don't want the AI to choose what state management solution I use for my Flutter app because I have strong opinions about that.
by PaulHoule | 2025-07-03 01:52:53+00:00
I came to the conclusion that a List<X> is a good generic data structure, for instance in cases where the cardinality is supposed to be 0..1 it is often less trouble than a nullable scalar or an Optional<X> and you have cases where you’re going to get a list anyway such as if you are querying a relational database. (Often people write awkward code to turn that result into a nullable/Optional and then more awkward code to turn it back to a list later) Lists work almost exactly the same in most languages whereas there is often something weird about null, there might not be Optional, it might have something weird about it, etc.

For multi-language distributed processing, particular if JSON is involved it’s worth a try.

To be fair I write a lot of Java where Optional is a train wreck in so many ways not least it could be null anyway, you are allocating objects needlessly, and I just see people get hypnotized by awkward code also they write bugs or scan right past them.
by jrflowers | 2025-07-03 01:53:33+00:00
>it’s not the real issue here

I like this reasoning. “Trolling” is when people post things to irritate or offend people, so if you see something that’s both racist and offensive then it’s not really racist. If you see somebody posting intentionally offensive racist stuff, and you have no other information about them, you should assume that the offensiveness of their post is an indicator of how not racist they are.

Really if you think about it, it’s like a graph where as offensiveness goes up the racism goes down becau
by HexDecOctBin | 2025-07-03 01:54:22+00:00
Thank you so very much. This is the first time monads have made sense to me, and now its clear why. People who try to explain them usually end up adding all kinds of Haskell minutia (the top post is another example), rather than actually explain the concept and why we need it. Your comment is the first time I actually understand what it is, and why it might be useful.
by wpm | 2025-07-03 01:55:21+00:00
> army of experienced UX designers

They do, which means they have an army's worth of officers all trying to jockey for influence and power and position with little pet projects and "suggestions" and so on.

Apple's best years in UX were well before the army arrived, when they had a single man with great taste ultimately green-lighting every decision.

Apple's air of "design excellence" is stale, and is purely marketing now, i.e., a lie.
by flebron | 2025-07-03 01:55:30+00:00
I think the point is that a monad is a useful concept _purely_ because of what it _allows_ you to do, and _not_ because of anything syntactical. Those rules that you're obviating there, the commutative squares, are precisely what then lets us have powerful intuitions about these objects. The type signatures matter a lot less. If, for example, you don't have functoriality (which is false for `std::vector`, for instance, since `std::vector<bool>` is special-cased) you lose the ability to reason powerfully about abstract algorithms.

Thus, explaining the syntax and where the type variables go is explaining the least relevant thing about monads to their power and importance. It's certainly easy to showcase both the syntax and the list and maybe monads, that's part of the "monad tutorial fallacy". Gaining intuition for how to think about monads _in general_ is a lot harder and requires practice. Like, yes, list and maybe are "containers", but is `(->) t` a container? Is `IO`? How do these compose, if at all? What is this about "effect" semantics, "I thought monads were just burritos/containers"? etc. These are the hard, both conceptually and pedagogically, questions. Yes you need to know the syntax to use it in any given programming language, but knowing what scabbard your knife fits in doesn't give you the skills of how to use knife :)
by trollbridge | 2025-07-03 01:56:10+00:00
I use Cloudflare and edge caching, so it doesn’t really affect me, but the amount of LLM scraping of various static assets for apps I host is ridiculous.

We’re talking a JavaScript file of strings to respond like “login failed”, “reset your password” just over and over again. Hundreds of fetches a day, often from what appears to be the same system.
by kccqzy | 2025-07-03 01:56:29+00:00
The aphorism "everything in moderation" is useful only because it doesn't specify what amount would be acceptable as moderation. Is having a slice of bread a day considered moderation? What about five slices? Is having 10 grams of sugar a day moderation? What about 50 grams? The meaning of "moderation" is conveniently unclear.
by resters | 2025-07-03 01:58:41+00:00
I think the "advertising" was the billions spent on what were effectively anti-brown ads to help sell the Iraq/Afghan wars. Meanwhile in the 2000s the GSEs did not disclose their financials bc if they had perhaps the people would have felt the wars had a cost.

Since then it's been gradual attacks on press freedom (WL exposed fraud/propaganda in the Iraq/Afghan wars) and massive profits by the defense industry, resulting in dramatically more lobbying money. Not to mention the US automotive industry and major banks getting bailed out and preventing many small economic corrections that should have occurred.

Then 20 years after 9/11 when the US has spent 10s of TRILLIONS on wars and virtually nothing on infrastructure, industrial policy, etc., everyone wonders why China appears to be close to leapfrogging. The anti-brown propaganda and "USA USA" jingoism back in the early 2000s is still fresh, benefitting candidates with xenophobic and jingoistic messages. Many feel real economic pain but don't understand that you don't spend $20T without consequences -- plus scapegoating the weakest members of society is apparently more emotionally satisfying.

By the time we got the pandemic both parties realized that they had more to gain from fiscal irresponsibility, and the tribalism of the government's anti-brown propaganda combined with the "multicultural solidarity" focus over class warfare by Dems, led to increasing tribalism and tribe-focused media. Now a large percentage of the population lives in a complete information bubble and is close to worshiping its political favorites as though they are religious icons.

Thus now regardless of which party is in power, there will be a shift to censor and suppress information that is viewed as harmful to society. I honestly blame both parties for their share of this, but the ultimate culprit is feed algorithms that are optimized for emotionally potent content that creates engagement (and ad dollars) and nothing more.

What is actually fascinating about the orignal TikTok is that the algorithm was so much more useful at showing interesting/appealing content that it pretty much overtook Insta, YouTube, and Netflix and required government intervention to stop its growth. This shows us clearly how the major social media platforms were not just wrong about how to maximize profits but wrong on how to entertain and engage people, mistakes that are only possible when there is really not much competition, which is how we now do capitalism in the US -- and by the way if you win you get nationalized.
by triceratops | 2025-07-03 01:59:02+00:00
> Several EU countries have mandatory temperature limits for air conditioning in public buildings. Spain, Italy, and Greece have all announced that A/C in public buildings cannot be set lower than 27C (80F) in summer

How does that make it "hard" to get A/C in private homes? And are there a lot of heat-related deaths at 27C?

> The EU's F-Gas Regulation creates significant restrictions on refrigerants used in air conditioning

You should maybe look into why those exist. Air conditioning refrigerants are themselves major greenhouse gases and many deplete the ozone layer. Try also comparing those regulations to American ones. They're likely not very different.

> 90% of US homes have AC while only 20% of European homes have it

The US is richer and hotter. There's nothing like Florida or south Texas or Las Vegas or Phoenix in Europe.

> There's significant red tape when installing AC due to building regulations

Do tell...

> some EU countries even have laws telling you how much you can open your windows! In the UK...

Did you write this with an LLM or something? The third link you provided says nothing of the sort. It's about tint regulations on automobile windows FFS.
by ivraatiems | 2025-07-03 01:59:04+00:00
The way that LLMs are used/are encouraged by business right now is evidence that they are mostly being pushed by people who don't understand software. I don't know very many actual software engineers who advocate for vibe-coding or using LLMs this way. I know ton of engineers who advocate using them as helpful tools, myself included (in fact I changed my opinion on it as their capabilities grew, and I'll continue to do so).

Every tool is just a tool. No tool is a solution. Until and unless we hit AGI, only the human brain is that.
by jauntywundrkind | 2025-07-03 01:59:09+00:00
https://xeiaso.net/blog/2025/anubis/ links to https://pod.geraspora.de/posts/17342163 which says:

> If you try to rate-limit them, they'll just switch to other IPs all the time. If you try to block them by User Agent string, they'll just switch to a non-bot UA string (no, really). This is literally a DDoS on the entire internet.

My gut is that the switch between IP addresses can't be that hard to follow. That the access pattern it pretty obvious to follow across identities.

But it would be non trivial, it would entail crafting new systems and doing new work per request (when traffic starts to be elevated, as a first gate).

Just making the client run through some math gauntlet is an obvious win that aggressors probably can't break. But I still think there's probably some really good hanging fruit for identifying and rate limiting even these somewhat rather more annoying traffic patterns, that the behavior itself leaves a figure print that can't be hidden and which can absolutely be rate limited. And I'd like to see that area explored.

Edit: oh heck yes, new submission with 1.7tb logs of what AI crawlers do. Now we can machine learn some better rate limiting techniques! https://news.ycombinator.com/item?id=44450352 https://huggingface.co/datasets/lee101/webfiddle-internet-ra...
by lmm | 2025-07-03 01:59:17+00:00
> From an OOP perspective, they have some properties that make them, in some sense, sorta like containers, e.g., they contain a value like the Maybe monad.

Not always! I find this is a big source of confusion; not all monads contain values, sometimes beginners think they can or should "get the value out" of a monad and that tends to lead to writing the wrong kind of code.
by trollbridge | 2025-07-03 01:59:26+00:00
There’s a few instances of things I stated (about historical topics or very narrow topics in sociology) that were incorrect. LLMs scraped these off of web forums or other places, and now these bogus “facts” are permanently embedded into LLM models, because nobody else ever really talked about the specific topic.

Most amusingly, someone cited LLM generated output about this telling me how this “fact” is true when I was telling them it’s not true.
by jmye | 2025-07-03 01:59:29+00:00
OBs, all mid-levels (for different but similar reasons), specialties… the list goes on. Reimbursements hurt, but none of these people are signing up to work in middle of nowhere OK and MO, when they can find work easily (and get paid better) in desirable places, that aren’t fully populated by people who hate them.

Blaming United or whatever is memeworthy, but it’s also the easy and only partially correct answer.
by MikeShah | 2025-07-03 01:59:46+00:00
This is a rerecording of a recent talk I gave at the New Jersey Programming Language Seminar on the D programming language. It's a brief tour of the D programming language, why I enjoy the language(i.e. my 'sales pitch'), and also why I think there's more to choosing a programming language than a single dimension (which we often do). In any case, I encourage folks to try as many programming languages and tools as you can, and see which ones you like and find which language may be your competitive advantage -- maybe it will be the D language!
by felipeerias | 2025-07-03 01:59:59+00:00
It can be enlightening to look at well-known Biblical stories from a different point of view. For example, you might be familiar with the Book of Job: the story of a good man who loses everything—his wealth, children, and health—despite doing nothing wrong.

At the same time, a koan is a paradoxical question or story used in Zen Buddhism to break logical thinking and provoke a deeper understanding beyond words and concepts.

Even though both are separated by an immense span of time and distance, the story of Job functions surprisingly well like a koan because it presents an apparently impossible paradox: if God is just, why do bad things happen to a good person?

This question has no logical answer, and when God finally speaks to Job, He doesn't explain the suffering but instead shows Job the overwhelming mystery of creation. Job's response isn't intellectual understanding but a transformative experience.

Just like a koan, Job's story seeks to break through logical thinking to produce spiritual enlightenment.
by dotnet00 | 2025-07-03 02:00:51+00:00
It's worth considering that there's still a chance that the cuts end up being more limited than proposed.

Kind of like the tariffs or the Tiktok ban that's totally going to go into effect after the most recent extended grace period ends.

So it makes sense that the current raises aren't big enough to make up the shortfall. They're aniticipatory in nature, with the assumption that the actual cuts will be a lot less crazy, and increases to take advantage of a talent exodus will take some time to ramp up.
by roarcher | 2025-07-03 02:02:01+00:00
> One can defend oneself and others in a myriad of ways that do not involve murder.

As we used to say in the military, "the enemy gets a vote, too". You may find that your non-lethal methods of self defense come up short when the enemy is equipped with a knife or gun. Or at the state level, perhaps a ballistic missile. There have been plenty of victims of those in the media recently. What non-lethal methods would you recommend they use to protect themselves?

If you want your society (and by extension your belief system) to survive, there must be a segment of that society that is at least willing to engage in lethal violence, if only as a last resort. You do not get to hide behind others who are willing to do your moral dirty work and declare yourself morally superior to them. That's like a meat eater looking down on slaughterhouse workers because he bought his meat at the store (I say this as a meat eater myself).
Show HN: I made a Chrome extension to export web element to code
by Graxi | 2025-07-03 02:02:54+00:00
Recently I'm working on CopyUI which is an extension to copy UI element from websites and export html(or jsx) and css(or tailwind). I'm building this tool in order to create better landing pages because I'm really not good at layout and colors. So I hope to learn from others' design and innovate later, not to simply replicate.
by lmm | 2025-07-03 02:03:14+00:00
> I am 16 years into a successful software engineering career without learning what a monad is an it never held me back.

How would you know? That's the classic Blub Paradox.

Being able to write a custom monad and then leverage the vast array of libraries that already exist has helped me deliver functionality to end users quicker, more maintainably, and with lower defect rates. They don't let you do anything that you couldn't do by writing it out longhand. But just like using generic container libraries instead of writing a specific container for every type you want to handle collections of, they're extremely helpful.
by simplify | 2025-07-03 02:04:24+00:00
Even though the conscious brain doesn't always directly control motor skills, I wouldn't call it "merely an observer". It's your consciousness that decides your goals and beliefs; the rest of the body "learns" those things and is then preconditioned to react accordingly.

But they are separate systems. Harsh experiences (traumas) can teach your body some bad lessons in such a way that not even your conscious mind can overcome. In these situations, you can't "think your way out" of these traumatic consequences in, say, a talk therapy session; you need to deal with the body directly/somatically to recover instead.
by chriswarbo | 2025-07-03 02:04:46+00:00
> a “map” operation that unwraps a monad value, applies a function to it, and wraps the result

It can be misleading to think of "unwrapping" a monadic value, since the monad interface does not support it. For example, there's no way to implement a function `List<T> -> T` using monad operations; it requires something entirely separate (e.g. indexing into a List, in this case).

What monads do provide is `join`, which turns nested monadic values into flat ones, like `List<List<T>> -> List<T>`. Even this seemingly trivial example is interesting though, since there are many ways to "flatten" a List<List<T>> into a List<T>: we could concatenate (e.g. depth-first), interleave (e.g. breadth-first), diagonalise (to support infinite lists), operate on chunks at a time (e.g. iterative deepening), etc.
by david-gpu | 2025-07-03 02:05:45+00:00
It is helpful to communicate in advance what is the specific agenda of each meeting, so that people can make an informed decision on whether to attend.

Also, it may be helpful to have the meeting organizer send meeting notes after every meeting, including action items assigned to specific people. The notes don't need to be extensive, but there better be an executive summary of what decisions were made, if any, and any unexpected roadblocks that were found.

That's how things were done at one of the mega corps where I was employed and it worked great.
by II2II | 2025-07-03 02:05:54+00:00
Something to keep in mind is that a modern web page would be virtually unusable by the standards of 2002 and a 1995 web page would have been virtually unusable without the "click here" links. Conventions have to be established. While those blue underlined links may have had some precedent among some computer users (e.g. many help systems of the era used colored text to highlight hyperlinks), they would have little meaning to someone who bought their first computer to get on that newfangled Internet thingy. So while I agree that they were a bad thing over all, they were a necessary stopgap.
by Yiling-J | 2025-07-03 02:06:00+00:00
I'm the author of Theine (both Go and Python). I actually started with the Python version, using Ristretto as a reference implementation, including its hit ratio benchmarks. Naturally, I had to run Ristretto's benchmark first to ensure it was working correctly, which is how I discovered the issue in the first place. After completing the Python version, I moved on to develop the Go version of Theine, which focus on better hit ratio than Ristretto.

Recently, I refactored both the Go and Python versions to adopt Caffeine’s adaptive algorithm for improved hit ratio performance. But now that Otter v2 has switched to adaptive W-TinyLFU approach and more closely aligned with Caffeine’s implementation, I’m considering focusing more on the Python version.

This feels like a good time to do so: the Python community is actively working toward free-threading, and once the GIL is no longer a bottleneck, larger machines and multi-threads will become more viable. Then a high-performance, free-threading compatible caching libraries in Python will be important.
by anitil | 2025-07-03 02:08:06+00:00
A question as a non-American that I hope will be taken in the spirit of enquiry.

I am hearing a lot more about ICE raids, particularly on reddit. Is this an artefact of more attention to raids that have been going on for years, or is there an increase in the number or impact of the raids? I find it hard to tell as I'm in somewhat of a bubble in terms of the US news I come across.
by Mars008 | 2025-07-03 02:08:24+00:00
> The rest of us non-AI-whizzes combined literally wrote 100% of the functioning open source code that the AI-whizzes steal

Open source is hard to steal. It's intended to be taken for free with some license limitations. Second, most giants are already dead. Their work was used for free and that was/is considered normal. Third, many 'AI-whizzes' contributed to open source for long time.

In any case AI will be used on open source. For example to find bugs and backdoors at scale.
by fuball63 | 2025-07-03 02:08:44+00:00
SEEKING WORK, Senior Devops Engineer, Remote

Devops Engineer with a software quality focus. Well rounded in AWS. Jenkins and Github Actions CI/CD. Ansible, Terraform infrastructure as code. Large scale Apache Airflow installations. Experienced Python dev for scripting, web applications, and FaaS. Well versed in QA: test strategy, automated testing, automated infrastructure sandboxes.

Resume: https://sauertek.net/resume.xhtml
by mbreese | 2025-07-03 02:08:45+00:00
Could you add a bit more to the “distributed cache” concept without a “network endpoint”? Would this mean running multiple processes of the same binary with a shared memory cache on a single system?

If so, that’s not how I’d normally think of a distributed cache. When I think of a distributed cache, I’m thinking of multiple instances, likely (but not necessarily) running on multiple nodes. So, I’m having a bit of a disconnect…
by dotnet00 | 2025-07-03 02:08:53+00:00
There's a lot of overlap between science and engineering, a lot of the things being affected by the cuts would be engineering by your definition.

E.g. designing scientific instruments. The fundamental physics and chemistry can be well understood, and yet you need a strong overlap of scientists and engineers to produce and run something that actually collects useful data, especially at the cutting edge, where new things actively need to be discovered and built to achieve the desired capability. Another growing one is using AI to drive scientific discovery (e.g. sifting through the terabytes of data being generated everyday and identifying things of potential interest), it isn't strictly an engineering problem, as the entire point is that you don't fully know what you are/are not looking for.

There's a reason most of the things I mentioned also hire plenty of physicists.
by Marsymars | 2025-07-03 02:09:16+00:00
On a per-mile basis, depreciation is a real killer.

I just (like an hour ago) sold the car that I’ve been driving for the past 12 years. I paid $11k in cash for it, and sold it for $3k. Unless you do a lot of driving, it’s tough for an EV to make up that kind of difference based on cheaper fuel.
by bigyabai | 2025-07-03 02:09:55+00:00
There's a search box at the bottom of the page, you can see for yourself:

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

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

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

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

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

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