MurphyA/hacker-news huggingface dataset:
by adamchainz | 2026-01-16 20:41:04+00:00
OP here. Thanks.

Yeah, profilers are very varied in Python, and none are super easy. I often use either cProfile + pstats (per this post: https://adamj.eu/tech/2025/05/20/python-quick-cprofile-recip...), cProfile + gprof2dot (per this post: https://adamj.eu/tech/2024/03/23/django-optimizing-system-ch... ) or py-spy. I'm excited for "tachyon", the sampling profiler coming in Python 3.15.
Ask HN: Local media server, receive and send audio?
by thedangler | 2026-01-16 20:41:50+00:00
I'm playing around with an idea.

Before I go and setup a server.

This is just a prototype. Doesn't need to be fancy.

The audio will be coming from a mobile device, so maybe save to stream that is relayed which I can listen to from VLC?

Or maybe I save the files locally every 30 seconds, and add them to a output stream.

I'm new to audio streaming send and receiving.

GITST.
Mobile device sends audio to local server which creates a stream I can connect to and listen.

Thanks
by throwfaraway4 | 2026-01-16 20:42:11+00:00
What The Company Learned About Social Media and Harms to Mental Health from Dozens of Internal Studies
Compiled by Bennett Sippel, Nikolaus Greb, Emma Park, Zach Rausch, and Jonathan Haidt at the Tech and Society Lab at NYU Stern.
Date launched: January 13, 2026. Last updated: January 13, 2026.
by epistasis | 2026-01-16 20:42:55+00:00
A city isn't just for the long-term residents. It must serve short term residents too. Those interests must be represented.

In the US, people get to vote where they live. We used to require silly things like owning land or being male or being white, but that was a really bad idea.

It is not debatable at all if short term residents should had the same voting rights as long term residents. It is very settled constitutional law in the US, and a completely radical idea to suggest changing a principle that has been fundamental for the period of time when the US has been a strong country.

> Per your example, university students would vote against allocating funds toward schools or playgrounds, because they know they're not going to be raising a family there

I think you have very bad intuitions here. In my college town, long term residents get upset that college students vote in favor of school funding, because the long term residents have kids that have already graduated and they don't want to pay for it anymore.

Shorter term residents have significant disadvantages in local politics, as local politics is largely a function of long term relationships and getting the word out on obscure elections where there's almost zero coverage of candidates, and for positions where few know what they do. Depriving short term residents of even using a vote is a huge perversion to the idea of democracy in the US.
by gpm | 2026-01-16 20:43:20+00:00
We're generally against warmongering. We're definitely against invading another country with the purpose being to steal it's resources, and that's what explicitly what the attack was. We're weary of the military of our neighbor violating their own constitution, and their own laws, to invade another country without authorization from the appropriate civilian authorities because that sort of lawlessness doesn't tend to turn out well. We are concerned by the blatant murders and violation of the rules of the sea, and the rules of war that lead up to the invasion including the sinking of ships nowhere near the US posing no threat to the US and the murder of shipwrecked people. I'm sure the list goes on, but those are some headline concerns that come to mind quickly.

The actual operation was a military invasion of another country resulting in 3 figures worth of deaths - not merely a "capture" of someone - though the capture itself is concerning for the aforementioned reasons.
by kjellsbells | 2026-01-16 20:43:45+00:00
I question whether it matters any more. AI chat is clearly going to be the search interface of the future. phones are the channel for users with Chrome/android being one half and iphone being the other. Google just signed up Apple to be the engine for siri. We also know that users rarely change defaults.

so, google would appear to have boxed out openai from the #1 use case, and already have all the pieces in place to monetize it. This move by OAI isnt surprising, but is it too late to matter?
by owenversteeg | 2026-01-16 20:43:58+00:00
In fairness to the US system, it’s certainly better than the European system or pretty much all but a few around the world. Yes, there is corruption, inefficiency and the largest subsidies are often for huge corporations that obtained them by buying politicians, but! The US government still manages to fund the cutting edge in 2026 in countless fields, to fund real American manufacturing, if you want to get grants you have a real shot at real money regardless of who you are, etc. In China you’re not getting a dime without the right political opinions. In Europe you have to be part of a very specific academic-professional class. In the US you can be anyone.

The thing about China is that they’re more strategic with their money and have longer timelines and clear, achievable visions. If you read the Wikipedia page for Made in China 2025 you’ll get the wrong impression that their success is due to more recent pushes; the vision is far more universal and has existed for far longer. You don’t get to the forefront of advanced manufacturing from nothing in ten years. Look at the 5th and 6th Five-Year Plans, into the seventh… you see the groundwork laid for present day China. The US rarely does that sort of long term thinking or planning these days, and it’s not even about the political winds changing or short-termism as much as that we lack one unified vision. Without that unified vision you can’t plan long term and you also can’t correct glaring problems. For example, if we had a unified vision on manufacturing, an obvious issue would be the lack of an American JLCPCB. You could create one with a stick and carrot approach, tariff assembled PCBs, new rule that any imported assembled PCB has to prominently display “electronics made in China”, smart subsidies for US board houses that encourage scaling and cost reduction. But that level of cohesion and vision rarely happens in the US and so we get a chaotic hodgepodge.
by comex | 2026-01-16 20:43:59+00:00
This is still unsound (in both C and Rust), because the compiler can break data dependencies by e.g. replacing a value with a different value known to be equal to it. A compiler barrier doesn't prevent this. (Neither would a hardware barrier, but with a hardware barrier it doesn't matter if data dependencies are broken.) The difficulty of ensuring the compiler will never break data dependencies is why compilers never properly implemented consume. Yet at the same time, this kind of optimization is actually very rare in non-pathological code, which is why Linux has been able to get away with assuming it won't happen.
by cmarschner | 2026-01-16 20:44:01+00:00
It was written with zero human edits. All Claude Code.

The initial version (dictionary based on a Hash Array Mapped Trie) was done in 2 hours. The second version (5 data structures, including red-black-tree-based sorted map) took 46 commits over the last two weeks, done in between other things. Mostly a little prompt, enter, on to other things.

Almost 10000 lines of code, 300 tests. CI, 3 platforms, publishing to pypi.

Needless to say this would have taken me weeks a year ago.

You can try it out here: https://colab.research.google.com/drive/1LWHEmvKZ-IS2raeg0RJ...

One of the biggest relevations: Claude debugged like a human.

Implementing the red-black tree yielded a lot of segfaults. It first tried to reason about the logic, couldn't find the bug. Then tried to run debuggers and stuff. This also went nowhere. I had to tell it to add printf statement to trace state changes, and write them to a file. This made finding the bug quite easy.
by epistasis | 2026-01-16 20:44:30+00:00
So what? Why does that matter on being able to vote? Shouldn't people bring their values to voting, isn't that the entire point?

Should we deny long term residents the right to vote becuase they aren't voting in the interests of short term residents? I don't understand the principle here, unless you think that short term residents are not residents, or full people, or something.
by yadaeno | 2026-01-16 20:45:10+00:00
> in the US, which also has many examples of large scale human right abuses.

Excuse me? Citation is needed here for present day human rights abuses in the US.

> Canada should just do what's best for its citizen, which is get good trade deals, and ensure that our values don't morph into something unrecognizable. What other countries do in their own borders is largely irrelevant.

It’s extremely relevant, if you believe in personal liberties and democracy you should to do business with societies that uphold personal liberties and democracy it’s that simple.
by roadside_picnic | 2026-01-16 20:45:23+00:00
The apprenticeship was after this was painted. Prior to engaging in formal training he largely ignored school and spend his time painting and seeking out other painters to learn from:

> As a young boy, Michelangelo was sent to the city of Florence to study grammar under the Humanist Francesco da Urbino. Michelangelo showed no interest in his schooling, preferring to copy paintings from churches and seek the company of other painters. [0]

You can search other sources and you'll find the same: prior to apprenticeship he was not formally enrolled in any form of art education.

0. https://en.wikipedia.org/wiki/Michelangelo
by pcj-github | 2026-01-16 20:45:27+00:00
Why now?

I mean, they certainly know that introducing ads with be a huge motivation for consumers to seek other options.

The primary differentiator of OpenAI is first mover advantage; the product itself is not particularly unique anymore.

IMHO consumers will quickly realize that switching to an alternative AI provider is easy and probably fun.

This seems premature to give up their moat in the name of revenue. Are they feeling real financial pressure all of the sudden? Maybe I'm missing something. Looks like a big win for Google and Anthropic.
by maerF0x0 | 2026-01-16 20:45:33+00:00
From the Article:

> Olive oil, wasabi, saffron, vanilla, Wagyu, honey, champagne, and truffle,...reality TV

from AI:

> lobster was once considered "garbage meat," so abundant in colonial America that it was fed to prisoners, slaves, and servants, sometimes leading to complaints and even laws limiting its servings

The decision that something is slop or good is subjective and ever changing.
by semilin | 2026-01-16 20:45:39+00:00
As it stands I don't know what this poll means. Does "No AI" mean that generative AI should never be used or offered? Does "Yes AI" mean that generative AI should be used for everything all the time?

One might accuse me of being intentionally daft, asserting this to be a simple sentiment poll, but I genuinely can't tell. If it were the case, this should ask "do you overall like or dislike generative AI?" Either way this encourages a lack of nuanced thinking on the subject which both tech bro shills and instinctual AI-luddites oft suffer from. The results of this poll are uninterpretable and the effects on the quality of discourse can only be negative.
by jszymborski | 2026-01-16 20:46:02+00:00
> Also what's up with the people hiking (by themselves) with a bluetooth speaker. You're by yourself, in nature. If you want to listen to music wear headphones!!

I've not done this, and I don't think I would ever do this, but I can sympathize with having the idea that they don't want to be so isolated from nature so as to have headphones blocking out the sounds of the world around them dampened, but also feel like it would be super sweet if they could listen to Bowie right now.

It's also been shown that having music reduces the feeling of loneliness, having similar effects to having had a conversation recently, so if a person is hiking along perhaps it offers them companionship?

_If_ I ever did this (I wouldn't) I'd probably have it down to a whisper such that you would hardly be able to make it out unless you were right beside me.
by kiba | 2026-01-16 20:46:12+00:00
The scarcity is in the originality and creativity.

Once you watch LotR, you watched like 20 percent guesstimate of all fantasy content because every fantasy stories involved elves and dwarves often enough.

Which is why sometime when I wonder why there's nothing to watch on YouTube despite the sheer abundance, it's time to work on something.
by minimaxir | 2026-01-16 20:46:19+00:00
Another aspect of internet polls as a marketing technique (and a poor source of representative opinion) is to implicitly encourage voters to brigade a certain option, which just increases visibility to the poll especially if it's a contentious topic.

Case in point: https://bsky.app/profile/lexfeathers.ca/post/3mckp3y57d52b
by bakkoting | 2026-01-16 20:48:43+00:00
You're thinking of a previous report from a month ago, #897 or #481, or the one from two weeks ago, #728. There's a new one from a week ago, #205, which is genuinely novel, although it is still a relatively "shallow" result.

Terence Tao maintains a list [1] of AI attempts (successful and otherwise). #205 is currently the only success in section 1, the "full solution for which subsequent literature review did not find new relevant prior partial or full solutions" section - but it is in that section.

As to speed, as far as I know the recent results are all due to GPT 5.2, which is barely a month old, or Aristotle, which is a system built on top of some frontier LLMs and which has only been accessible to the public for a month or two. I have seen multiple mathematicians report that GPT-5.2 is a major improvement in proof-writing, e.g. [2]

[1] https://github.com/teorth/erdosproblems/wiki/AI-contribution...

[2] https://x.com/AcerFur/status/1999314476320063546
by pamcake | 2026-01-16 20:49:43+00:00
Did they really have to geo-block entire countries? I think the blocks of unrelated users is what's really affecting normal folks and that's the choice of operators.

It's like if you had incidents with a few violent drunk Brovanians in your town, then saying it's those few peoples fault that Brovanians are now being discriminated against and are being banned from enter shops just because they come from the same place as those people.

Site operators arbitrarily blocking entire countries due to a few botters (albeit with a lot of bots) causing issues aren't without responsibility in the loss of an open web.

You have a choice in how to respond and where to draw lines. We can't just throw up our hands and blame the botters.
by mrexroad | 2026-01-16 20:49:47+00:00
Huh? I’ve never met anyone in the backcountry that played music to keep predators away. Even when forced to hike at dusk, the primary risk is quietly stumbling on a predator out stalking, or worse, a predator’s offspring. At most you clap every so often, maybe talk/sing to yourself, or dangle some stuff from your pack at higher risk times. Animals will do the hard work of avoiding you When you’re nearby, but its quite unnecessary to notify everything with in a 1km radius of your presence.
by galaxyLogic | 2026-01-16 20:49:48+00:00
I wonder if the same problem exists with AI based code-development more specifically.

To produce an application you should have some good unit-tests. So AI produces some unit-tests for us. Then we ask it again, and the unit-tests will be different. Where does that leave us? Can we be confident that the generated unit-tests are in some sense "correct"? How can they be correct if they are different every time we ask??
by akst | 2026-01-16 20:50:06+00:00
People have pointed out to what’s
Obviously wrong with the JS tooling but I had more problems with CSS style sheets generated at runtime or web components attached stylesheets

They all work is just editing their styles that seems to be a pain, you straight up cannot edit a shared stylesheet attached to an web components elements shadow dom.

If you generate enough styles in JS you may not be to edit them correctly (as in it shed you the wrong styles for the element)
by buu700 | 2026-01-16 20:50:09+00:00
Here's a trivial example: https://supremecommander.ai. Implementing my blog's logo with raw CSS animations would have been a pain to build and maintain, but with Astro the code is relatively straightforward JS that becomes pure HTML/CSS at build-time.

The other nice thing is that you can throw all kinds of preexisting components from React/whatever into your site, and it will ship zero JS to the client until you explicitly flag a specific JS resource as an "island".

The only special thing about "islands" is that they're an escape hatch from the default behavior of JS being strictly build-time-evaluated. I found the terminology and description a little confusing at first too, because it makes it sound more special than it is. But the concept makes sense when you understand the context of Astro's intentional default behavior.
by friedtofu | 2026-01-16 20:50:19+00:00
Hey HN! Check out this vibe-coded shell script that Claude Opus one-shot that does the same thing(Pretty CrAzY!!!).

This is a fish shell function but you can probably get claude code to convert it to bash or zsh

function STFU

#alsa records incoming audio from the default input device for 2 seconds

arecord --duration 2 echo.wav

#alsa plays back the echo.wav of the recorded audio file

aplay echo.wav

#Ctrl+C when the target looks your way!!!
end

STFU

Guess I should create a git repo for this now and add an MIT license like OP, amirite?

(Yes this is post is entirely sarcasm, except that I do use fish as my default shell.)
by n8cpdx | 2026-01-16 20:50:26+00:00
TickTick gives me reminders to do some of these things - daily reflection is a “habit” and weekly reflection is a recurring task. That helps me not forget. There’s still value in doing the daily plan regardless of whether I do it right after I wake up (things are going well) or if I do it many hours later when I realize my day has not gone well and I want to get back on track.

The calendars and checklists really help with not forgetting things, and getting back on task once distracted. I can have 100 adhd moments; the system can’t prevent that, but it can help me find my way back to shore when I’m lost at sea.

I don’t really struggle with kitchen cleaning, but sometimes I do set out to clean the kitchen and end up folding laundry or scrolling instead. I can do that but if I haven’t checked off “clean the kitchen”, I know to come back to it.

The weekly reflection is a chore but I set aside time for it, and I keep doing it because it works. I can spend an hour doing deep reflection, or I can rush through it, there is value either way. It is really just a check list, and check lists are very ADHD friendly.

Separately, I find that physical and mental health improve performance regardless - so a system that improves these factors _is_ a system that helps with ADHD. Getting to bed on time, and building the system that produces that outcome, is an ADHD-friendly system. I struggle with this, but I try to get better over time by experimenting and adjusting.

The reality is that the system will not solve ADHD problems, the system is just a tool - you still have to do the work. Same for the app that is being shared.
by magicmicah85 | 2026-01-16 20:50:28+00:00
The people who react angrily to someone asking them to keep their noise down are very likely the same people who react angrily to someone interrupting their call or entertainment with loud noises, especially noises that just repeat what they're saying or watching. I agree social pressure is a real thing, but if you don't have the courage to ask them to kindly keep the volume down, how would you have the courage to do this?
by pocket | 2026-01-16 20:50:52+00:00
Hmm… 1 in 20 individuals are affected… I get the idea being 2 adults per family, one of them affected, hence 1 in 10 families, but I think its incorrect/misleading (potentially in either direction) to say 1 in 10 families. I haven't looked at the data about how many families are single parent (which could increase the impact per family) OR how many of those 5% identified as working multiple jobs are married (I wouldn't be surprised if more of them are unmarried, since a two parent family with both working one job might be expected to not need the additional jobs).
by elicash | 2026-01-16 20:52:10+00:00
> But they'll clearly build detailed profiles on every preference or product you mention, your age, your location, etc. so they know what ads to show you?

I'd guess an advertiser can ask OpenAI "show this ad to people between 18-34?", and then certainly anyone who clicks and then buys they'd know is 18-34 since they knew they came from the ad. But that there's no way for advertisers to directly buy a list of folks who are 18-34 but don't buy something from their website.

That's how it often works and seems in the spirit of the sentence you quoted.
by josephg | 2026-01-16 20:52:21+00:00
I want spotlight to open applications and system settings. But full disk indexing makes spotlight basically useless for that, because its index is filled with crap. Instead of opening zed I accidentally open some random header file that’s sitting around in Xcode. It’s worse than useless. And that says nothing of the grotesque amount of cpu time spotlight wants to spend indexing all my files.

A feature I never wanted has ruined a feature I do want. It’s a complete own goal. In frustration I turned spotlight off completely a few months ago. Rip.
by asadotzler | 2026-01-16 20:52:36+00:00
In all sincerity, this question is almost identical to "what's the most difficult thing about building an operating system" as a modern browser is tens of millions of lines of code that can run sophisticated applications. It has a network stack, half a dozen parsers, frame construction and reflow modules, composite, render and paint components, front end UI components, an extensibility framework, and more. Each one of these must enable supporting backward compatibility for 30 year old content as well as ridiculously complex contemporary web apps. And it has to load and render sites that a completely programming illiterate fool like me wrote. It must do this all in a performant and secure way using minimal system resources. Also, it probably also must run on Mac, Windows, Linux, Android, iOS, and maybe more.
by kenjackson | 2026-01-16 20:52:55+00:00
My point isn't that edge cases exist or not. It's that what's an edge case to you may not be to others. The culture will dictate what is extreme or not. Now you can argue that this can result in some mob mentality taking down people who aren't deserving. True, but in society we see that we've tended to get better over time at making this determination, even if there are blips along the way. To quote Theodore Parker, "The arc of the moral universe is long, but it bends toward justice."

Now, it's our job, when we see the arc not bending the right way (or fast enough) to do something, but I think to avoid allowing the arc to have levers is not doing ourselves any favors.

And with all the talk of cancel culture (not government action, but just all private citizen action), I've actually seen very few examples of it resulting in something that I consider unacceptable. Note, I'd consider physical threats outside the bounds of cancel culture -- those are just physical threats.
by weinzierl | 2026-01-16 20:53:43+00:00
"What I understood the requirements to be"

That is a way to get your changed approved quickly, so it is good for you. It is terrible for a project that values quality.

A tremendous value of a QA team is that they interpret the requirements independently and if in the end they approve you can be pretty confident you implemented something that conforms to the commonly understood meaning of requirements and not your developer biased view.