MurphyA/hacker-news huggingface dataset:
by vidarh | 2026-01-07 18:01:03+00:00
With this:

E = Struct.new(:name, :size, :type)
def ls = Dir.children('.').map{ s=File::Stat.new(_1); E.new(_1, s.size, s.file? ? 'file' : 'dir') }

This becomes valid Ruby:

ls.find_all{_1.type == 'file'}.sort_by(&:size).take(4).map{ {n: _1.name, s: _1.size } }.each { puts JSON.pretty_generate(_1) }

(drops your size formatting, so not strictly equivalent)

Which isn't meant to "compete" - nushell looks nice -, but to show that the lower-threshold option for those of us who don't want to switch shells is to throw together a few helpers in a language... (you can get much closer to your example with another helper or two and a few more "evil" abuses of Ruby's darker corners, but I'm not sure it'd be worth it; I might a wrapper for the above in my bin/ though)
by alephnerd | 2026-01-07 18:01:03+00:00
> To me, the fact that crêpes were sold at 20$ and cans of coke at 10$ at the event was a shame...

They can price as such because such purchases tend to be expensable during business travel. Corporate conferences like GDC, RSA, etc aren't targeted at ICs - they're meant to essentially be a "safe space" for vendors to meet with prospective clients.
by add-sub-mul-div | 2026-01-07 18:01:12+00:00
This is really disingenuous and doesn't debunk anything. Who claimed that wages going up 20% would raise the overall price of the product 20%? I'm sure you can find someone on Twitter who said that because you can find any dumb thing on Twitter, but it's not a main argument.

It's obvious to everyone that labor is just one cost to the seller. People only care that the price went up $6, not how that $6 happens to break down for the seller.
by CamperBob2 | 2026-01-07 18:01:18+00:00
And sometimes a healthy dose of expressing frustration or anger (cursing, berating, threatening) also gets them to STFU and do the thing. As in literally: "I don't give a fuck about your stupid fucking opinions on the matter. Do it exactly as I specified"

Last time I bawled out an LLM and forced it to change its mind, I later realized that the LLM was right the first time.

One of those "Who am I and how did I end up in this hole in the ground, and where did all these carrots and brightly-colored eggs come from?" moments, of the sort that seem to be coming more and more frequently lately.
by doctorpangloss | 2026-01-07 18:01:19+00:00
It’s not complicated. We also imported a lot of really cheap, high quality food from China. And now we don’t. Even if you personally were not buying Chinese tomatoes rebadged as Mexican in Grocery Outlet, the fact that they were one tenth the cost lowered prices on the produce you’ve been buying from Costco and Whole Foods. Indeed, the giant corporations have been litigating the tariffs issue as the single greatest cause. I think people just don’t comprehend that everything was imported, not just clothes and technology.
by soulofmischief | 2026-01-07 18:01:25+00:00
There are an incredible amount of contaminants and disruptions in today's society. There are far too many possible causes for us to be sure, without process of elimination, that lack of fat of all things is the central cause of the problems you have listed.

Also, I'm not sure if a vegan hurt you or something, but yes in fact there are many of us who believe today's meat farming industry is nothing short of barbaric and extremely damaging to the environment. But believe it or not, most vegans understand protein better than the average person, and make sure to get fats and complete proteins from a variety of sources which don't require industrial-scale torture of helpless animals.
by ChrisArchitect | 2026-01-07 18:01:28+00:00
Related:

There were BGP anomalies during the Venezuela blackout

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

The 'Growler' Signal-Jamming Jet That Helped Capture Nicolás Maduro

https://news.ycombinator.com/item?id=46522955
by ggregoire | 2026-01-07 18:01:50+00:00
I'm always surprised to never see any comments in those discussions from people who just like coding, learning, solving problems… I mean, it's amazing that LLMs can build an image converter or whatever you dream of, in a language you don't know, in a field you are not familiar with, in 1 hour, for 30 cents… I'm sure your boss and shareholders love it. But where is the fun in that? For me it kills any interest in doing what I'm doing. I'm lucky enough to work in a place where using LLMs is not mandatory (yet), I don't know how people can make it through the day just writing prompts and reviewing AI slop.
by BeetleB | 2026-01-07 18:01:55+00:00
Just Google "seed oils health" and look at the reputable results (Cleveland Clinic, various universities, Mayo Clinic, etc), and you'll see opinions across the board. Some say "Bad". Some say "Not bad". Some say "Unsure".

Jury is still out on this one.

And I think lumping all seed oils into one category isn't helping. Maybe canola oil is OK and sesame oil is not. Or vice versa.
by jquaint | 2026-01-07 18:01:56+00:00
From the paper:

The experiment is conducted with 11 subjects diagnosed with ADHD by pediatricians and psychiatrists. Binaural Beats (10 Hz via wired earphones, sine waves) are used for audio, and pulses of light (10 Hz via VR device) are used for visual entrainment. This audio-visual entrainment is done for 20 days with 15 minutes of entrainment per day. EEG was recorded pre and post entrainment sessions using an Emotiv Epoc X device. The analysis revealed an improvement in 8 subjects out of 11 subjects in terms of attention and spatial learning. [0]

[0] https://www.tandfonline.com/doi/full/10.1080/21622965.2025.2...

In my own experience, I find VR helpful for ADHD. Curious if this applies to more than Binaural Beats and 10z flashes.
by linguae | 2026-01-07 18:02:02+00:00
I quit eating out in the Bay Area over a year ago (except for socializing) because the prices feel painfully expensive to me while my pay hasn’t increased anywhere near the rate of restaurant price hikes. $14 for a burrito that cost roughly half as much a decade ago is painful, while my salary hasn’t doubled (I’m not a FAANG engineer). It’s not just burritos; it’s $10+ fast food combo meals, $15 deli sandwiches, etc. Prices steadily increased before COVID-19, but I didn’t feel priced out of eating out until sometime around 2022-23, when prices seemed to have exploded.

I make six figures but I have resorted to making eating out a rare treat in order for me to maintain my financial goals. This harkens back to my childhood in a low-income family, though I do remember my parents taking advantage of fast food deals in the 1990s and 2000s. I pack lunches and dinners to work, and I regularly cook, sometimes resorting to frozen meals for convenience’s sake. Eating out is reserved for social gatherings and for travel.

What’s interesting is the situation isn’t that much better in Sacramento, my hometown and where I visit family members. While Sacramento has lower housing prices, eating out isn’t substantially cheaper.

On the flipside, I’m in Tokyo now on a trip, where eating out feels cheap. $10 in the Bay Area or even Sacramento doesn’t get a satisfying meal these days (it’s not even enough for a fast food combo meal in many cases), but ¥1,500 (roughly $10) in Tokyo can buy a satisfying meal. Even ¥750 can buy a satisfying meal if one looks harder.

The situation in the Bay Area is demoralizing. I’m still in the Bay because of my career and because of social ties. It’s one thing to be priced out of buying a house, but it’s another thing to feel priced out of eating out. I don’t know if the situation is better in other parts of the United States, though; I’ve heard of people in other states complain about the high price of eating out these days.
by ffsm8 | 2026-01-07 18:02:03+00:00
You left out the context. It's not an issue at an individual level. I very explicitly stated that I was talking about societal level.

That means that the society is worse of if everyone does it

And importing goods is a good example why the scale matters. People usually import items worth maybe some small fraction of their yearly income, whereas some immigrants are known to sent back more then they spent locally.

Which is fine if they're actually world class talent, because then there will be very few people doing so, and their intellectual contributions likely offset any other issues. However, as you scale up the immigration percentage, it eventually does become a societal problem.

And the governments job is explicitly to look at the well being if the society - at least ideally. How much they actually do (vs just trying to siphon as much tax payer money as they can get away with) is another question I'm unqualified to say wrt the USA
by optionalsquid | 2026-01-07 18:02:18+00:00
According to eurostat [1],

> In 2020, 70% of the population in the EU lived in a household owning their home, while the remaining 30% lived in rented housing.

So it does not seem like the price situation is as dire as you suggest, though Germany is on the lower end of the ownership scale.

Personally, I had a flatmate (rented a room) for one year during my studies, but I don't know anyone currently living with flatmates. Plus, it's not like you have to live in the middle of the capital, thanks to extensive public transport

[1] https://ec.europa.eu/eurostat/web/products-eurostat-news/-/w...
by geon | 2026-01-07 18:02:29+00:00
> the strong aversion people have for things not being "proven" by western science

What does “western” have to do with anything? There is plenty of pseudoscience, snake oil and magical thinking in the west. I’d wish people were much more skeptical of anything not scientifically proven.

Or do you imply there is a racist component to it? That could certainly be true.
by ndsipa_pomu | 2026-01-07 18:02:36+00:00
The example FOR loop in BASH is missing a trick to make it easier to read:

for i in {1..10}; do
echo $i
done

(Though I prefer using printf than echo as it's more capable and POSIX compliant)

I write far too much stuff in BASH, but for me it's just not worth moving to using a different shell due to its ubiquity. There's also the question of "will this still run easily in 20 years". Of course, BASH is a nightmare for bugs and foot-guns unless you make a point of defensive coding (e.g. surround variables with double-quotes and using Shellcheck to point out common errors).

By the way, the article goes on to mention the large number of options to "ls". Don't try to parse the output of "ls" in scripts as there's better ways to do things: https://mywiki.wooledge.org/ParsingLs
by GZGavinZhao | 2026-01-07 18:02:57+00:00
> There is third approach, established by a group in Minnesota [1], which is to design languages and tools which are modular and extensible from the get-go, so that extensions are more interoperable. They do research on how to make this work using attribute grammars.

MLIR [1] has entered the chat :P

I know I know MLIR is an IR and not a programming language, but MLIR does give me the feeling of "an IR to rule them all" (as long as you're ok with SSA representation), and the IR itself is quite high-level to the point it almost feels like an actual programming language, e.g. you can write a MLIR program that compiles to C using the EmitC dialect that feels a lot like writing C.

[1]: https://mlir.llvm.org
by codyb | 2026-01-07 18:03:00+00:00
There's a really interesting story I read somewhere about some application which used neural nets to optimize for a goal (this was a while ago, it could have been merkel trees or something, who knows, not super important)

And everything worked really well until they switched chip set.

At which point the same model failed entirely. Upon inspection it turned out the AI model had learned that overloading particular registers would cause such an electrical charge buildup that transistors on other pathways would be flipped.

And it was doing this in a coordinated manner in order to get the results it wanted lol.

I can't find any references in my very cursory searches, but your comment reminded me of the story
by lossolo | 2026-01-07 18:03:04+00:00
You're arguing about whether it makes sense for China to invade Taiwan. I agree it doesn't right now, but that's not the topic here.
The topic is the claim that Taiwan has explosives around TSMC factories, which is ridiculous. So what exactly is your point?

PS. Rozwiń? Nie o tym jest dyskusja "czy Chiny to zrobią", tylko o tym czy Taiwan zrobił to co powtarzane tutaj bezsensowne plotki mówią. To są dwie zupełnie różne sprawy, mimo że mogą się wydawać tożsame.
by 9x39 | 2026-01-07 18:03:22+00:00
And when you take cards or things like tap to pay, you pay higher rates as a biz which gets factored into overall prices. But...good luck being cash only in a lot of places.

I still carry cash because services like massage and housecleaning and some restaurants are happy to give good price breaks for cash payment, but I also love Apple Pay as a consumer.
by wubrr | 2026-01-07 18:03:54+00:00
That's every single unprovable religion/cult though - it's all based on subjective feeling/faith, which is not very different from a placebo effect and/or delusion.

This is kinda equivalent to an evangelical christian saying 'look into yourself and you'll find god' , 'have faith and you will see', 'pray and you will be heard', etc. Like okay, sure, you say you can see/feel <thing> in your mind - I can think I'm feeling certain things, or convince myself I'm feeling something, or convince myself that prayer will solve my problems as well - doesn't mean the thing actually exists/helps at all.
by aldarion | 2026-01-07 18:04:00+00:00
"generally people tend to think that macronutrients work independently of each other"

Well, that is obviously the wrong idea. Even basic logic speaks against it: people lose weight on keto diet, people lose weight on vegan diet... so neither protein, fat nor carbs can be causing obesity. But what do foods that we know are obesogenic have in common? 1) They are highly processed and/or 2) they combine fats and carbs into single package.

But it is true that we don't know for certain. What we do know is that this dietary experiment we have had going since 1970s at the latest has failed completely. As I tend to say: paleo diet should be the basis of any diet, and then you further adjust it based on how your body responds.
by hollowturtle | 2026-01-07 18:04:05+00:00
Faster, faster, faster. All to release something that is slower, by people that now know lesser, with bloat that explodes. All for a yet another useless saas that nobody or fee people wants and a chance to virtue signaling your vibe coded product on HN. Real world successfull products are orthogonal to this approach, it doesnt work anymore in today's world
by nix0n | 2026-01-07 18:04:18+00:00
The average answer writer on SO is not actually that toxic: really it's the voters.

The top answer will almost always be an explanation of why the asker is wrong to want to do the thing they want to do. But that's not most answers, or most answerers, just the top ones.

The bottom answer will almost always be an honest attempt to write code that answers the question. Sometimes the code doesn't work, or needs explanation: these problems will be solved a couple answers up from the bottom.

My technique for years has been to click the SO link in search results, then hit End on my keyboard to jump to the bottom of the page. This a little slower than reading a cached LLM answer, but faster than waiting for the LLMs to generate something.
by mattacular | 2026-01-07 18:04:27+00:00
I see them as conflicting viewpoints because as a general rule companies do not focus on

> Long term financial interests, mostly.

It's great that you as an individual feel otherwise (I do too), but there are larger macro forces at work which compel firms to act the way they do: pursue short term growth at all costs. The counter-balance to this is either a strong regulatory environment, or a hope and prayer that a majority of companies suddenly gain a strong CEO who feels otherwise and is not obligated to satisfy shareholders who don't. Only a few such CEOs come to mind, and they're looking increasingly short for this world.
by tracker1 | 2026-01-07 18:04:33+00:00
Beyond the protein insulin response... when you have protein with sufficient fat, the insulin effect is much, much lower still. I tend to suggest that people try to get about 0.5g fat to 1g protein (which is slightly more calories from fat than protein). I think the aversion to fat is problematic and likely a lack of sufficient well rounded fat intake is likely a factor in the fertility and other hormonal issues in western society today.
by llm_nerd | 2026-01-07 18:04:47+00:00
>which literally remove the fats and replace them with sugar.

This is not accurate.

No they didn't "replace" the fats with sugar. There is a chocolate milk option, just as there was before, but all options need to be 1% or low M.F., which nutrition and medical science overwhelmingly supports.

Is chocolate milk not ideal? Of course. We all know that. They shouldn't serve it either.
by NickC25 | 2026-01-07 18:04:50+00:00
I own and run a CPG beverage company.

This is a good start. A start. The folks at the top, including RFK Jr. are still captured by big industry.

We need to get off of corn syrup, artificial ingredients, and harmful preservatives.

That said, food deserts still exist, and real whole food is expensive, especially in a time of dire economic stress. I thought that's what subsidies were for, but apparently they are for enriching Big Food / Big Ag executives, their lobbyists, and their bought-and-paid-for congresscritters.

We also need to realize we've been duped for generations into liking things that are overly sweet. Sweet is fine, but we don't need to add stevia or sugar to everything. One of my biggest walls of resistance that I see regularly with my own products is that people have been conditioned to expect that everything in my vertical is super sweet. Just last week I had a parent complain at a sampling that my drink wasn't as sweet as Prime, and thus it's shit. Prime has over an ounce of added sugar in its bottles. I'm marketing to an entirely different set of consumer, too. I offered her a million USD in cash if I could name 10 ingredients on a Prime bottle, and she'd tell me what the ingredient was for, why it helped her son, and the natural origin of the ingredient. She accepted, couldn't get past 1, and then told me that it didn't matter - her son liked what he liked and that's what she was going to buy. We've spoiled generations of people into accepting super sweet things with no idea of why something is or isn't sweet.

One thing I also do is that (i have the luxury of time to do this, which I recognize is something not everyone has) if i want something really sweet and it's not a fruit, I generally make it myself. If I am having a birthday party, I'll make the cake myself. If my nephew wants to leave christmas cookies out for Santa, I'll make them myself. If I want ice cream, I have an ice cream machine and I'll make it myself.
by zelon88 | 2026-01-07 18:04:52+00:00
Could you please name one non-food product in America that a typical consumer could buy that doesn't subsidize corporate shareholders? Name one thing the average American can buy that contributes to gainful employment at the expense of corporate profit.

Where I'm sitting, the only manufacturing that exists in the USA is, for subassemblies or components that are purchased by larger companies on a contract basis, and manufactured by lower-middle class citizens. Boeing and GE is an example. And the reason Boeing buys domestically is only because they have to in order to limit their liability, reduce labor costs, and protect their IP. If the America you're looking for existed, Boeing would happily pay twice as much for labor to make components in house. If that America existed your television would be made here too, by people who weren't being subsidized themselves by Food Stamps.

There are no consumer commodity manufacturers in the USA who provide gainful employment without significant consideration towards corporate profit. There is basically nothing at Wal-Mart that you can buy that is made in the USA by people who are living in financial comfort. That's just not how late stage capitalism works.
by kevin42 | 2026-01-07 18:05:27+00:00
This isn't meant as a criticism, or to doubt your experience, but I've talked to a few people who had experiences like this. But, I helped them get Claude code setup, analyze the codebase and document the architecture into markdown (edit as needed after), create an agent for the architecture, and prompt it in an incremental way. Maybe 15-30 minutes of prep. Everyone I helped with this responded with things like "This is amazing", "Wow!", etc.

For some things you can fire up Claude and have it generate great code from scratch. But for bigger code bases and more complex architecture, you need to break it down ahead of time so it can just read about the architecture rather than analyze it every time.
by pengaru | 2026-01-07 18:05:30+00:00
The irony is everyone already seems obsessed with protein these days, which I guess plays nicely with meat lovers / producers. The last thing Americans need is more encouragement on the protein front IMO. Suddenly everyone thinks they're a body builder when it comes to food.

The few friends I've known were attempting ketogenic diets over the years kept focusing on the protein side when the actual diet is supposed to be dominated by fat. They've all experienced kidney problems of one sort or another, surprise surprise!
by trinix912 | 2026-01-07 18:05:35+00:00
> A huge part of our power was that we were safe and predictable and that's gone forever.

That is a big deal. The US has for a long time been seen as a stable economy that's easy to trade with because policy changes would take a long time to come into effect by which everyone had had the time to adjust.

Compared to the various stuff that was happening in Europe in the previous decades (at least here in the east) the US were a stable safe heaven where you could trust things wouldn't drastically change overnight.
by williamcotton | 2026-01-07 18:05:43+00:00
> If none of these options work, the last resort is to start from tabula rasa and write your own parser, compiler, and developer tools. This offers the most flexibility, but requires an enormous amount of engineering, and generally is not recommended in 2026.

You mean like this?

https://github.com/williamcotton/webpipe

https://github.com/williamcotton/webpipe-lsp

https://github.com/williamcotton/webpipe-js

It's less effort if you, well, you know where I'm going with this...
by tjchear | 2026-01-07 18:05:49+00:00
The author makes a good point about language capabilities enabling certain libraries to be written, just as DSL makes it easier to reason about problems and implement solutions with the right kind of abstractions and language ergonomics (usually at the expense of expressivity and flexibility).

There’s a time in my life where I designed languages and wrote compilers. One type of language I’ve always thought about that could be made more approachable to non technical users is an outline-liked language with English like syntaxes and being a DSL, the shape of the outline would be very much fixed and on a guardrail, and can’t express arbitrary instructions like normal programming languages, but an escape hatch (to more expressive language) for advanced users can be provided. An area where this DSL can be used would be common portal admin app generation and workflow automation.

That said, with the advent of AI assistants, I’m not sure if there is still room for my DSL idea.
by BizarroLand | 2026-01-07 18:05:52+00:00
But, if Americans ate more meat then the people who grow and sell that meat would make more money, and they would spend more of that money to lobby congresspeople to convince the populace to eat more meat so they would make more money so they would have more money to spend lobbying the congresspeople to convince the populace to eat more meat so they would make more money