skysight-inc/HackerNews huggingface dataset:
Why do all these posts descend into the "I'm so awesome" archetype, describe the damned problem and how it was resolved and for goodness sake stop trying to stroke that ego while you're doing it.
Doesn't this act effectively create a new form of DDoS? A bad actor can sufficiently flood a platform with enough hate content that the moderation team simply cannot keep up. Even if posts default to not show, the backlog could be enough to harm a service.

And of course, it will turn into yet another game of cat and mouse, as bad actors find new creative ways to bypass automatic censors.
Some sorts of goods should be prioritized over some sorts of bads. There would be no terrorism if we locked every human in a box and kept them there, yet you do not support this position, why? I jest, but I think public discourse is an unalloyed good and I would rather we not compromise informal small discourse for the sake of anti-terrorism, anti-CSAM, etc. These things won’t be fully rooted out, they’ll just go to ground. Discourse will be harmed though.
Show HN: Open-source dev agent dev who tackles tech debt
Hi HN,

I built a dev agent to reduce code debt in Python repositories. For now, it does one thing very well: adding docstrings to Python classes and methods. It also adds unit tests, though this feature is still a work in progress.

# Why?

As AI becomes more integrated into development workflows, code debt will only accumulate faster. Refactoring takes time, and no one has time to focus solely on reducing code debt.

# Approach

While there are many developer tools available, our approach combines language models with deterministic tools to minimize the risk of hallucinations.
Specifically, we use:
- LibCST: A reliable parser and serializer for Python, ensuring that Ambrogio always generates a valid Python syntax tree.
- Interrogate: A docstring coverage tool that helps verify improvements and maintain high standards.
- Coverage and Pytest: We identify uncovered lines and test the generated unit tests until they run successfully.

The goal is to make it so robust and stable that it can automatically pick and resolve tech debt tasks.

# Try It

If you have a GitHub open-source repo, you can simply visit https://ambrogio-platform.streamlit.app/ and submit your repository. In a few minutes, you’ll receive a pull request directly on GitHub. (no API key needed or registration)

Installation

- pip install ambrogio

Docstring generation:

ambrogio

Unit tests generation:

ambrogio --mode coverage

It supports all models provided by LiteLLM.

# Feedback & Discussion

I’d love to hear your thoughts on this approach. Do you see pitfalls? What features would be most helpful for you? How do you currently handle tech debt refactoring?

Thanks for any feedback you can provide!

— Raoul Scalise
Much of a leader's job is to visibly perform leadership. It seems silly until the first time you need something big from a team whose managers do it poorly, and you realize that they're incapable of making commitments or setting priorities.

The expectation that leaders will play pretend about a "war" and call everyone into a "war room" is just a part of what it means for an organization to commit that consistent high uptime is a top priority.
The idea that you can have an economically sound career talking about historical colonialism is a bit far-fetched. There are a few authors who probably scrape by a living writing books on this topic, but that's about it (and they don't need a degree to do this). If you get one of the handful of academic jobs where you teach this topic to other students, it is something of a racket, where you are teaching students to get a degree in a field where the only job is teaching other students this topic. There is certainly inherent value in some fields that don't have a direct application, like philosophy, but can still inform other pursuits.

As for the politicization of the field of colonialism studies, generally, these sort of topics are viewed through a pseudo-religious lens today, the religion being utopianism, the idea that there can be survival and satisfaction for all. Under the utopianist worldview, practical concerns are ignored and the topic is judged under a lens of morality and dogma. That makes it an unserious field and marred by activism. Very true for many humanities and social graduate degrees. Might as well go to seminary and spend half a decade learning to be a theologian. The outcome is similar, dogmatic and removed from reality, makes it hard to transfer into a real world setting.
I believe neuromorphic spiking hardware will be the step to truly revolutionize the field of anthropod contagion issues.
Yes and actually this happens often that a project is moved to another language because of maintainability, especially when a key person leaves the company.
Electric vehicle batteries can last almost 40% longer than expected
This reminds me of the kind of tropes you see in SciFi where they break AI with a contradictory logic statement.

I never thought I’d see it happen in real life.
Surely we accept unary minus as one of our functions? Once we accept one unary function we're just quibbling over details.

I agree that you need to define and agree upon a finite set of allowed operations before playing the game. IMHO, square root, logarithm/exp, floor/round/ceiling, sin/cos/tan ought to be included in the list. But that's just like, my opinion, man.
You immediately see the difference (or similarly) of languages when using words that are very old, such as "iron", or "stone", which are words that have existed from the origins of that language.
As a (barely) recovery grammar festidian I highly recommend checking out this video by Dr Geoff Lindsey [1]

TLDW: some fascinating realignment of perspective from a linguist about such things [^2], and the - frankly moderately mind-blowing - revelation that despite caring about language I've been gleefully pronouncing "covert" 'wrong' my whole life (and will likely continue to do so)

[1]: https://youtu.be/I6duEGj04Mg

[^2]: edit for clarity: such things being the concept of "normal forms" or rules in language.
WIIIIIIIITCH!

Just kidding ;D

I'm actually studying my students' color theme preferences for lecture slides and I'm seeing that while a majority do prefer dark mode, there is noticeable chunk that still prefer light mode. I think some of it may involve time of viewing, but that is another research question I haven't explored quite yet.
A big takeaway for me is that Gemini Flash 2.0 is a great solution to OCR, considering accessibility, cost, accuracy, and speed.

It also has a 1M token context window, though from personal experience it seems to work better the smaller the context window is.

Seems like Google models have been slowly improving. It wasn't so long ago I completely dismissed them.
The repl isn't slow, what are you referring to?
Bookshop.org is new to the ebook business, but seems to be very popular among authors. Books display in their own app for now, but they promise Kobo integration soon. I purchased a book there recently, then visited my friend Anna so I could put it on my Kobo.
IME you often get a response that seeks to turn it into s “conversation.” Keeping everything super vague but something that can be pointed to on s paper trail as “I expressed reservations”

Neither approval, nor disapproval just straight up quagmire.

There’s no silver bullet to getting things done successfully in any large organisation of humans.
Oh man, I always thought it was some kind of joke theme or something like holiday themes that people only put on for a lark. I didn't realize people actually used it as a daily driver theme. How is that even possible? Even in my 20s I thought it was terrible.
It's never the stated purpose of the law, but we might do well to be concerned with what it actually does rather than what the proponents claim it would do.

Recourse doesn't matter for a sole proprietorship. If they have to engage with a lawyer whatsoever, the site is dead or blocked because they don't have the resources for that.
Yes, at least for platforms like Discord, they bear the responsibility based on my non-lawyer reading of the plain English. YMMV, IANAL.
I've bought into that idea (with caveats case by case, i.e. evaluated by judges with discretion), but it only works when those kind of crimes are feeders into social support agencies.
Without effective social support to either rehabilitate behaviour or remove the need for that behaviour you're either going to need to remove the offenders or accept repeated crimes.

The cheapest cost per prisoner in the US is $23,000 per year (Arkansas with other states costing more). That's a lot of support you can give a person before it makes sense to send them to prison, especially if the prison doesn't actively work towards rehabilitation.

Problem is MVP prisons for your criminal population is viewed as needed while spending the money more effectively doesn't really have political consensus.
I'm generally not interested in politicized threads here, but I think discussion of this management tactic is worthy of HN. How well did it work at X, and how well might it work in public bureaucracies?
Definitely, but it's neat nonetheless because more and more things are "structured Markdown" these days. Extremely useful for AI reasoning and outputs.
Call it “stalled” if you like, it’s stable and it’s pure joy. I can just get stuff done with Clojure. And things that may seem inactive, like that lib that you need that hasn’t had a commit in 8 years, turns out that it just works and doesn’t need to change. This is commonplace in Clojure.

Spec is still alpha and I’m not sure it will evolve more or if it’ll be something completely different. At least they’re not pushing you down the wrong path. Use/look at Malli instead of spec.
Ofcom need to change the law then.

Unless Ofcom actively say "we will NOT enforce the Online Safety Act against small blogs", the chilling effect is still there. Ofcom need to own this. Either they enforce the bad law, or loudly reject their masters' bidding. None of this "oh i don't want to but i've had to prosecute this crippled blind orphan support forum because one of them insulted islam but ny hands are tied..."
Self-Disruption
Amazon will tell you if a book is DRM-free as well. As with Kobo, you have to scroll to the bottom of the book description.
I keep seeing people point out whether things are legal or illegal.. but my understanding is that the executive branch decides which crimes to prosecute, which makes this point fairly irrelevant save for judicial intervention, which is also tenuous at best when it comes to some of these moves.
> So, we wanted to reassure those smaller services that this is unlikely to be the case

This is the flimsiest paper thin reassurance. They've built a gun with which they can destroy the lives of individuals hosting user generated content, but they've said they're unlikely to use it.
he did say this day one. And despite feelinig like eternity, we're only entering week 5. This would be considered "fast" by any other administraion.

But yes. I remember when Americans used to care about politicians creating American jobs as a populist stance. Those days feel like decades ago now with people celebrating the literal slashing of government jobs (who surprise, is the biggest US employer).
I "grew up" coding in bog-standard light mode decades ago, and I guess it just stayed with me? Still do it that way.

EDIT: If you're gonna be devious, just force people to code with blue font over black background.
My impression is that plastic bags do not last that long. I have found old (perhaps 20 years old) plastic bags in sunless lofts, and others that had been buried (ie varied conditions) and both were very badly degraded. I cannot imagine that these things will last billions of years.
Proof that the mental abuse is the point:

According to OPM’s own Privacy Impact Assessment for Government-Wide Email System (GWES) - February 5, 2025
https://www.opm.gov/media/kfpozkad/gwes-pia.pdf

4.2. What opportunities are available for individuals to consent to uses, decline to provide information, or opt out of the project?

The Employee Response Data is explicitly voluntary. The individual federal government employees can opt out simply by not responding to the email.

4.3. Privacy Impact Analysis: Related to Notice

Privacy Risk: There is a risk that individuals will not realize their response is voluntary.

Mitigation: This risk is mitigated by ensuring that any email sent using GWES is clear, by explicitly stating that the response is voluntary, and by including specific instructions for a response.

Again more action for action's sake. From Umberto Eco’s List of the 14 Common Features of Fascism:

"The cult of action for action’s sake. “Action being beautiful in itself, it must be taken before, or without, any previous reflection. Thinking is a form of emasculation."
https://www.openculture.com/2024/11/umberto-ecos-list-of-the...
Thanks for sharing this Yuval! Thanks as well for using permissive licenses so I can use this at work.
Language can be tricky here. If I revert to an older commit, literally rewriting history to remove newer, bad commits, I think we’d all consider that a rollback. But if I instead add a new commit which undoes the bad commits, is that a rollback or a roll forward?
Solarized Light 4 Life lol

Dark mode always strained my eyes like crazy. White bg is too much. Solarized Light works best for me.
If this type of opinion is getting eviscerated in the comments, maybe the problem is with the opinion itself and not the forum on which it's being expressed.
I'm glad more aspects of Vietnamese culture/history is being looked at and showcased, being a vietnamese-american myself.
You forgot GitHub:

One hamburger menu on the top left, with things related to your account, like repositories or the GitHub marketplace.

One hamburger menu on the top right (using your profile picture instead of the hamburger icon), with things related to your account, like repositories or the GitHub website.

And between those two menus there's no-man's-land.
Though it might look like the effect of new gov, actually all this is just the wave of AI and excess technologies poisoning the very birth places of those technologies and science. The effect takes many forms and appears to be associated with other cause, but overall trend is clear. Humans don't need places of learning any more. Universities are heading into their ruins.
He was actually going through a depression and drug addiction, and then he started making YouTube videos where he solved leetcode problems and eventually he got a job at Google and then he quit that job.
I hate that it’s being used on the desktop, where there is plenty of space, resulting in a smaller hit target and often an additional click for items that would normally be top-level. Even on mobile, there would often be sufficient space to show a word like “Menu”.
I read the damn interesting post back when it came out and seeing the title of the post immediately led me to thinking of Thompson's post as well.
That data sharing thing goes pretty far. Am I reading that correctly? Anything that is hosted in the EU, or sells to EU citizens, has to share _all (generated by activity, personal and non-personal, including meta-) data_ that the service itself can use (i.e. backup tapes are excluded), upon request, free of charge, without any obfuscation, and without much of a delay. For B2B and B2C.

Almost sounds too good to be true. As far as I can tell:

* There is no clause for restricting this if it's hard to do. If it's _a lot_ of data, you still have to provide it.

* There is no clause indicating you can charge a fee for the sharing of the data (this seems fair to me; the prep and transfer costs, assuming you automate the process, are incredibly low unless it's, I dunno, some 'permanently live stream my entire life in 4k' service). Easier to just eliminate any attempt at malicious compliance by interpreting 'reasonable' unreasonably.
This collection is dehumanizing, not my comment. There is much much more to Vietnamese design and art than what is shown here. There is also a modern design culture from the diaspora that is not reflected here. This is an overwhelmingly political body of work, dominated by state control. By definition it is not from individual creative expression. I completely stand by my original statement.
Is Hacker News also affected by this act?
The Canadian government did the same thing when they accidentally outlawed certain shotguns by restricting bore diameter without specifying it was for rifles.

A minister tweeted that it didn’t apply to shotguns, as if that’s legally binding as opposed to you know, the law as written.
https://www.theregister.com/2021/03/10/ovh/
Fifty Years Progress Map
You are right ! Most of the Kerguelen plateau is actually out of the French Maritime Space. That is a good idea.

Reference:
https://limitesmaritimes.gouv.fr/thematiques/espaces-maritim...
Can you help verify some of the translations? I’m getting different results using GTranslate.
Glad you made this - whether it needs to exist or not seems far from relevant as reworking and rethinking things is why we have most of the coolest tools we take for granted :)

Did you discover anything interesting in the process of building it?
Lidl?

:/
I am referring to how some window buttons not rendering macOS style in some linux applications.
AI's Impact on Literacy: Transforming How Kids Learn to Read and Write
Probably referring to startup time. Larger apps solve this with the “reloaded” type of workflow (https://www.cognitect.com/blog/2013/06/04/clojure-workflow-r...)
Perhaps defining the language in lambda calculus and generating a more realistic implementation from that could work...
the administration we address is an exiled government, and population, of China and its still in the name.

nice try.
In my universe, the only permitted background colors for programming editors are NeXT white, SGI pastel yellow, and Turbo Pascal blue.
Exactly. Light mode for coding in the sun. Dark mode for late night hacking.
Yeah, regarding small forums, it only works if everyone participates at once. This situation is a classic prisoner's dilemma.
Even in the latter case, different approaches are often required. For an 8x8 byte block difference, SSE2 prefers horizontal accumulation (PSADBW) while ARM64 prefers vertical (UABAL). It's noticeably suboptimal if you try abstracting across these with generic primitives.
Will the members truly be willing to goto war (even nuclear war) to enforce the agreement? Unless the entire planet believes that whole heartedly the pact is meaningless.

I have my doubts, without the US NATO is largely toothless IMO.
> because you could use regular find/grep to analyze it

They were meant to be analyzable in some ways. Count lines, extract headers, maybe sed-replace some words. But being able to operate/analyze over multiline strings was never a strong point of unix tools.
I'm working on a gateway called Zuplo that is Openapi-native and can synchronize with your generated OpenAPI docs too
The complete guide to spinning out of academia
I agree, that neutrinoless double beta decay would be incredibly interesting, but it is very speculative (and depending on the neutrino mass hierarchy not really falsifiable).

My original point was just that lepton number is not a good symmetry as it is broken by rhe chiral anomaly, which is not speculative at all. Of course, the sphaleron effects are negligible in collider settings, but for cosmology they are crucial and might be indirectly observable.
> Yes, indeed, although the exact reference escapes me for the moment.

It's mentioned in a sister comment: https://www.damninteresting.com/on-the-origin-of-circuits/
Ask HN: How do you leverage BigQuery for data analytics in your SaaS?
I'm a data scientist and my partner and I have built a front end analytics platform on top of GCP/BigQuery with the intention to make data engineering/analytics/science more accessible to every layer of an organization.

I am hoping to meet with SaaS leaders (founders and data teams) using BigQuery & GCP to learn more about their current analytical processes and where there are opportunities to make data more accessible to other leaders and frontline employees.

My goal is to meet with 8 leaders for 30 minutes each over the next 1-2 weeks. All conversations will be kept confidential and participants will receive a $25 Amazon gift card as a token of gratitude!

If interested, please DM me with a short intro to your role in your company.

Disclaimer: this is not a sales pitch--my goal is to meet real people and learn from their experience. Thanks in advance to the HN community for your support!
Spec isn't really essential to Clojure, and most people use Malli nowadays which is very actively developed https://github.com/metosin/malli

I see the fact that there isn't much happening with the language as a positive myself. I want the core language to be small and stable. The big difference with Clojure and most languages is that it makes it far easier to implement new semantics in user space. It has a powerful macro system and new ideas can be expressed using libraries instead of having to be baked into the core language itself.

Most language grow through accretion as usage patterns change over time. New end up features end up getting bolted on to facilitate that, and the language keeps growing. The problem here is that the scope of things people have to know keeps growing as a result.

Meanwhile, Clojure managed to stay small and focused, while different kinds of ideas are expressed using libraries. When a new idea comes along people can just use a new library, and they don't have to learn about all the previous libraries that worked differently. I think this is a huge benefit from user perspective.
I reviewed my email exchange with them (I am an email hoarder I guess) and it isn't as bad as I made it sound. I added my email to my HN profile, feel free to reach out and I'd be happy to provide you a copy of the email exchange.
Don't allow untrusted input to determine the bounds of recursion implicitly*.

And as usual, this is padded out with ill-fitting AI-generated stuff following textbook AI patterns. The only insight here is to add an explicit recursion depth guard - which follows automatically from an understanding of the issue. But the identified problem is crashing the process, which would be equally well dealt with by just handling the exception. (There's also a weird reference to the C++ API documentation despite that everything else shown is about Java.)

The overall structure is rigid, and yet the plot wanders. The introduction promises: "Read on to learn about how we discovered these issues and how to prevent them" - but nothing else in the article is actually about the discovery process (how did they develop and run the CodeQL query? How did they obtain data for it?); it just shows the general form of the vulernability, a single detailed case study and then one of the standard mitigations.

Oh, and of course: why on Earth would it be necessary to use a bullet-point list - consisting of two bullet points, where one of them is "audit your code" - to explain the fix?
Same here. I looked it up after I saw this. This collection is only from approved art by the communist regime formed after WW II.
America has been a plutocracy for decades; Trump 2.0 isn't new in that sense.

I think beneath Musk's buffoonery there is a political pivot happening. Part of me wonders if he is a heel to make Trump seem more normal.
I hear you; the current events are pretty depressing, but it's still important to be aware of them and the direction things are headed, because they are so impactful not only in the US but worldwide. Sure you can find it elsewhere, but HN does tend to have more nuanced discussions, links to other relevant information, etc. So I for one am glad these items are being posted and that the auto-flagging seems to have subsided.
Many governments do things that are economically inefficient, for example imposing tariffs to protect industries.
You mean Slavical? :)

Seriously, our worst enemy are probably the articles.