News for hackers. Stuff that matters.

borntyping

The PSF withdrew their application for the grant from the US government after being presented with terms that included "do not, and will not during the term of this financial assistance award, operate any programs that advance or promote DEI, or discriminatory equity ideology in violation of Federal anti-discrimination laws", which conflicts with their mission statement: "The mission of the Python Software Foundation is to promote, protect, and advance the Python programming language, and to support and facilitate the growth of a diverse and international community of Python programmers."

[1]: https://pyfound.blogspot.com/2025/10/NSF-funding-statement.h...

Re:At the end you use Git bisect on Sunday November 02, 2025 @01:43PM (#45792410)
> Can someone explain why anyone would want non-squashed PRs? > > For the 5% of engineers that diligently split each PR into nice semantic changes, I suppose that's nice. But the vast majority of engineers don't do this.

I think cause and effect are the other way around here. You write and keep work-in-progress commits without caring about changes because the history will be discarded and the team will only look at pull requests as a single unit, and write tidy distinct commits because the history will be kept and individual commits will be reviewed.

I've done both, and getting everyone to do commits properly is much nicer, though GitHub and similar tools don't really support or encourage it. If you work with repository history a lot (for example, you have important repositories that aren't frequently committed to, or maintain many different versions of the project) it's invaluable. Most projects don't really care about the history—only the latest changes—and work with pull-requests, which is why they tend to use the squashed pull request approach.

Re:Wheels for free-threaded Python now available for psutil on Friday October 31, 2025 @04:27PM (#45776340)
It doesn't mean anything useful in this context. It's a leftover from when PyPI was called "the cheeseshop", which in turn was a reference to a Monty Python sketch.
Re:Nearly All Binary Searches and Mergesorts Are Broken on Saturday January 11, 2025 @06:53AM (#42665268)
Nearly all binary searches and mergesorts are broken in languages with bounded integers.
I've been looking for something exactly like this for a while — a small Python library for generating HTML that isn't prescriptive about framework and doesn't introduce any particually weird syntax. Jinja2 macros are... not great when you want to turn your HTML into lots of smaller functions.
I'd suggest there's a correlation between the size of those package repositories and how much they get talked about. npm has several times the package count of PyPI and RubyGems together, and I don't think that can be accounted for just because it's common to make "micro" JavaScript packages.
Re:Scientists, Not Doing Science on Monday August 29, 2022 @04:36PM (#32643218)
> This is not doing science. It is “publishing articles written by scientists that you happen to find emotionally appealing”.

Have scientific journals ever _not_ worked this way? They're generally curated by an editor who curates the articles the journal peer-reviews and publishes.

Re:YAML: Probably not so great after all on Sunday August 18, 2019 @03:52PM (#20732416)
The first example (i.e. `yaml.load()` in Python) doesn't work with the current version of PyYAML.

Function application was disabled some time ago, and `yaml.load()` logs a noisy deprecation warning telling users to use `yaml.safe_load()` instead [1].

[1]: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-...

Because package managers are used for more than just source code - many packages want or need to distribute intermediate or compiled artifacts.
"Just block ads" isn't a useful answer here - this is about being able to see who is advertising to the people who aren't using ad-blockers (which is most users on the internet), and being able to do research into who is paying for advert and who they are targeting. As long as the advertising industry still has a presence on the internet, this information will be important.
Re:A faster, more efficient cryptocurrency on Monday February 18, 2019 @05:08PM (#19194922)
Bitcoin is currently estimated to be responsible for ~0.21%, more than either Hong Kong or Iraq use [1]. Criticisms of Bitcoin have been around as long as the hype - cryptocurrencies were never going to save the world.

[1]: https://digiconomist.net/bitcoin-energy-consumption

Re:Show HN: Retool – build internal tools faster on Friday August 10, 2018 @02:47AM (#17731206)
Definitely impressive. The short description seems a little vague or misleading to me though. "Internal tools" can mean a lot of different things - deployment tools, testing tools, data management, etc - so I expected something more generic by the title.
Re:Compile Time Prevention of SQL-Injections in Rust on Tuesday May 22, 2018 @09:04AM (#17125577)
The second function only accepts strings defined at compile time, meaning it can't be called with strings created at runtime (i.e. any string containing user input).
I'm sure I've something similar come up a few times recently, but never with any source discussing the health insurance plans that supposedly collect this data.

Has anyone come across anything on these insurance plans? I'm sure it's something many companies would love to do but I remain skeptical.

Re:Why Tesla is having a harder time than SpaceX on Saturday April 14, 2018 @07:37AM (#16836908)
There are millions of working, reusable electric cars; and tens of working, reusable rockets (maybe even less than that). Tesla is having problems building factories, but that certainly doesn't mean electric cars are hard to make.
Slack's inclusion feels a little odd, since the customer in their case is the business paying for the service, not the individual. They do claim deleting a workspace cannot be undone.
Re:Overconfident Students, Dubious Employers on Sunday February 25, 2018 @06:12AM (#16458380)
This means almost nothing without a baseline to compare it to. I'd suggest it's very likely that you'd get similar results if you surveyed any other age group - that individuals give higher estimates of their ability than someone else would is hardly surprising.
Re:Many packages suddenly disappeared on Saturday January 06, 2018 @05:57PM (#16087968)
> If everything is a house of cards, then why don't i hear the same stories about PyPI or gems or crates?

npm is roughly twice as big as PyPI, RubyGems and crates.io together.

Re:Many packages suddenly disappeared on Saturday January 06, 2018 @05:54PM (#16087949)
The npm repository is the largest package repository in the world. A lot of the major incidents they've could have happened to other ecosystems (e.g. PyPi allows a user to delete packages that other packages depend on), but they've either not happened or haven't had as large an impact. When npm breaks, everyone notices, because everyone either uses npm or knows someone who does.
Re:“Hey”, an interruption tracker written in Scheme on Wednesday November 29, 2017 @06:38AM (#15806083)
The purpose is tracking who is interrupting and why, not stopping interruptions, with the aim of finding patterns.

In previous places I worked, it might have been quite useful if I kept a record of what questions people interrupted me to ask, so I could look back on that and work out parts of my software than needed to be made easier to use or have documentation added. If I was using OP's tool to track this, I'd probably include "interruptions" where someone sent an email or slack message as well as those where someone came over in person.

Re:Ellen Pao: My lawsuit failed. Others won’t on Monday August 21, 2017 @05:10AM (#15063062)
"Don't ask, don't tell" meant something very different in the US military - barring openly LGBT people from service, but allowing "closeted" LGBT people to serve.
Re:Ask HN: What tasks do you automate? on Sunday July 16, 2017 @03:28PM (#14783723)
Anything I have to do more than once. If I have to do it a second time, I'll probably have to do it a third..
Re:C++ named operators on Monday February 02, 2015 @08:47AM (#8984091)
I did much the same thing in Python a while ago: https://github.com/borntyping/python-infix
Looks very similar to https://slack.com/
Re:Show HN: pkgname, choosing good package names on Sunday May 18, 2014 @03:17AM (#7762445)
Seems to be broken, the list of reasons for a bad package name are blank: http://i.imgur.com/0U06IGS.png
Re:Ask HN: What source code is worth studying? on Thursday April 17, 2014 @05:55AM (#7602749)
Python: Flask (and related projects)
Re:Why Puppet, Chef, Ansible aren't good enough on Tuesday March 11, 2014 @10:21AM (#7379311)
And most of these would not be solved by the package manager described in the article.
It's also the name of a well known Python debugging tool[1]. Name conflicts will happen when you pick a name for shortness, not clarity.

[1] https://pypi.python.org/pypi/q

Re:What Lua scripting means for Wikimedia and open source on Monday March 25, 2013 @09:53AM (#5436933)
> Sounds like someone had a Lua hammer, so everything looked like a Lua nail.

Same could be said for most of the JS proponents in the thread.

Re:A static website generator in Python on Saturday December 01, 2012 @09:17PM (#4859829)
I've been looking for a static site generator that used jinga for a while! :)

Older »