HNHacker News
TopNewBestAskShowJobs

collinmanderson

2,545 karma · joined September 26, 2014

submissionscomments
collinmanderson··on uv: An extremely fast Python package and project manager, written in Rust
You don't know what you're missing if you haven't spent 5 minutes trying out uv.

If you're intentionally not trying it simply because you don't want to get addicted like everyone else clearly is, I could see that as a valid reason to never try it in the first place.

I usually avoid jumping on bandwagons, so I've always stuck with vanilla pip/venv, but at this point it really is clear to me that uv really is the "One True (tm) python package management solution", and probably will be for the next 10 years.

collinmanderson··on uv: An extremely fast Python package and project manager, written in Rust
There's an open issue for "Upgrade dependencies in pyproject.toml (uv upgrade)":

https://github.com/astral-sh/uv/issues/6794

collinmanderson··on uv: An extremely fast Python package and project manager, written in Rust
It looks like there's already a pyproject.toml no-binary option?

   [tool.uv]
   no-binary = true
Or for a specific package:

    [tool.uv]
    no-binary-package = ["ruff"]
https://docs.astral.sh/uv/reference/settings/#no-binary
collinmanderson··on uv: An extremely fast Python package and project manager, written in Rust
See also this comment which has more information from an interview with their founder.

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

collinmanderson··on uv: An extremely fast Python package and project manager, written in Rust
I consider JSON's very limited data types to be part of what makes it so good.
collinmanderson··on uv: An extremely fast Python package and project manager, written in Rust
Worth noting uv-specific implementation has more features than that standard PEP 751 lockfiles, so uv plans to keep using its own implementation by default. https://github.com/astral-sh/uv/issues/12584
collinmanderson··on uv: An extremely fast Python package and project manager, written in Rust
I agree there are lot of big wins in uv that tools written in python could take advantage of, and ultimately I think uv is fast because they're obsessed with making it fast, which is why they chose to use rust. I don't see that same level speed obsession with the other tools.

Instead of "It's fast because it's in rust", I'd say: "It's fast because they chose to use rust for their python tool, which means they care a lot about speed."

collinmanderson··on First American pope elected and will be known as Pope Leo XIV
https://en.wikipedia.org/wiki/Pope_Leo_XIV
collinmanderson··on Ty: A fast Python type checker and language server
I also mentioned this up-thread, but https://pypi.org/project/django-types/ is compatible with pyright without plugins, so it should theoretically work with ty. It's not quite as good as the mypy-django plugin but it still catches a lot.
collinmanderson··on Ty: A fast Python type checker and language server
https://pypi.org/project/django-types/ is compatible with pyright without plugins, so it should theoretically work with ty. It might not check as much as mypy though especially with values() querysets.
collinmanderson··on All four major web browsers are about to lose 80% of their funding
Edge depends on Chromium which depends on Google funding.
collinmanderson··on Trump temporarily drops tariffs to 10% for most countries
The main point is during every recession for the last 50 years, the US government has never missed a loan payment on its debt, even during recessions. It has a near perfect credit score.
collinmanderson··on A love letter to the CSV format
This is the way. jsonl where each row is a json list. It has well-defined standard quoting.

Just like csv you don't actually need the header row either, as long as there's convention about field ordering. Similar to proto bufs, where the field names are not included in the file itself.

collinmanderson··on A year of uv: pros, cons, and should you migrate
python had momentum until the 2->3 transition put a huge damper on it around 2012-2016.

Python got lucky with the machine learning community using Python. (Thank you TensorFlow and PyTorch, and the SciPy community for saving Python.)

collinmanderson··on VSCode’s SSH agent is bananas
> 1., I set a motd on our class servers asking the students not to use the VSCode remote server plugin. ...When students inevitably ignored the motd...

VSCode doesn't show the motd :/

collinmanderson··on Payments crisis of 2025: Not “read only” access anymore
The way I see it: It often takes him 6+ years to eventually be successful in an endeavor, and he learns by making a whole bunch of mistakes a long the way. That may be ok in a company, but probably not a good way to handle a 4-year federal government term.
collinmanderson··on JavaScript Temporal is coming
> Does this mean we can finally stop downloading and running a third of a MB of js on every website? moment.js, luxon, date-fns, are all obsolete? https://bundlephobia.com/package/moment@2.30.1

In reality, it probably means adding yet another polyfill to the list.

collinmanderson··on New speculative attacks on Apple CPUs
> The amount of obscure APIs being added just boosts the surface area for vulnerabilities

It’s often the ancient APIs from around 1995-2001 that are the most vulnerable ones, with information leaking across origins (like todays) needing hacky fixes to stay secure and compatible.

window.open(), target=_blank, cross site request forgery, etc.

IE6 from 2001 had a ton of these modern security issues, and Netscape before it probably had them too.

At that time there were tons of buffer overflow security holes so no on cared about side-channel attacks.

collinmanderson··on M4 Mac mini's efficiency
> - I'd love to see better Linux support. (As far as I know, Asahi Linux only covers the M1 and M2 lines, and as amazing of a project as it is, last I looked, it's neither upstreamed nor exactly what one might consider first class. Maybe it's getting there now, though...)

As I understand it M3 is not supported because there's no M3 Mini to run the continuous integration

There is now an M4 Mini, so there might be a chance Asahi Linux will eventually support M4.

https://social.treehouse.systems/@marcan/112277289414246878

Edit: Turns out the lack of Mini isn't really a huge issue and it's more just that there were significant changes between M2 and M3.

https://www.reddit.com/r/AsahiLinux/comments/1g07jui/mac_min...

collinmanderson··on Touchscreens are out, and tactile controls are back
> The screen was going to be there anyways due to backup camera requirements

This. Backup camera requires a large screen leaving little room for buttons.

collinmanderson··on Australia/Lord_Howe is the weirdest timezone
Part of the issue with DST is that it makes it hard to have a consistent repeating weekly meeting time across multiple time zones that switch at different times (US vs Europe for example).

It would mean that the repeating meeting time would be at a slightly different local time every week.

collinmanderson··on Australia/Lord_Howe is the weirdest timezone
> Earlier this year I had to write a function to find the current local time given a US address.

I also did something similar earlier this year, though I used a geolocation service to translate address to lat/long coords, and then used lat/long to translate to timezone. (With shortcuts single-timezone states)

I ended up using this python library for lat/long -> timezone converstion:

https://github.com/jannikmi/timezonefinder

Which sources its data from here, which seems like a pretty high quality source:

https://github.com/evansiroky/timezone-boundary-builder/rele...

collinmanderson··on New Mac Mini with M4
If we truly want to achieve zero emissions globally we need to take seriously all sources of CO2 emissions, the full carbon footprint of companies. Not just energy use.

It's not entirely unreasonable to ask companies to be responsible for carbon capture or in the short term an offset for their employees breathing on the clock, as funny as that sounds.

We need to take all sources of carbon emissions seriously. This shouldn't be downvoted.

collinmanderson··on New Mac Mini with M4
I don't know why you're getting downvoted. I think it's a fair question.

The fine print says:

> Carbon reductions are calculated against a business-as-usual baseline scenario: No use of clean electricity for manufacturing or product use, beyond what is already available on the latest modeled grid; Apple’s carbon intensity of key materials as of 2015; and Apple’s average mix of transportation modes by product line across three years. Learn more at apple.com/2030.

https://www.apple.com/2030 which mostly seems to focus on the goal of being 100% carbon neutral in energy use.

It sounds like they're generally only looking at carbon emissions from _energy_ use in transportation and manufacturing, and they're probably using some sort of carbon offset to achieve that "net zero". They're probably also not counting carbon emissions from building construction and they're probably not counting carbon emissions from meat served at corporate events, etc.

Update: I found a breakdown for the Mac Mini (linked from the apple.com/2030 page).

https://www.apple.com/environment/pdf/products/desktops/Mac_...

> 100 percent of manufacturing electricity is sourced from renewable energy

> For Mac mini, we are matching 100 percent of expected customer product use electricity with electricity from low-carbon sources.

They are counting transportation in the "100 percent", but are offsetting it with carbon credits.

collinmanderson··on Starship Flight 5: Launch and booster catch [video]
It’s a lot easier to model and simulate too.
collinmanderson··on The Copenhagen Book: general guideline on implementing auth in web applications
> handling case insensitivity in Unicode bug for bug compatible with email providers.

The official email standards basically say to treat email addresses as a binary format. You aren't even allowed to do NFC / NFD / NFKC etc normalization.

https://github.com/whatwg/html/issues/4562#issuecomment-2096...

Unicode has some standards which are slightly better, but they're only for email providers to restrict registering new email addresses, and it still doesn't suggest case-insensitivity.

https://www.unicode.org/reports/tr39/#Email_Security_Profile...

I'm tempted to write an email standard called "Sane Email" that allows providers to opt into unicode normalization, case insensitivity (in a well-defined way), and sane character restrictions (like Unicode's UTS #39).

Currently the standards allow for pretty much _any_ unicode characters, including unbalanced right-to-left control characters, and possibly even surrogates.

Websites are supposed to store email addresses as opaque binary strings.

I think the overly permissive standards are what are holding back unicode email addresses.

collinmanderson··on Getting my daily news from a dot matrix printer
See also https://www.frontpages.com/

https://www.frontpages.com/us-newspapers/

collinmanderson··on Xkcd 1425 (Tasks) turns ten years old today
One of the key things that started the AI revolution was realizing that GPUs were really useful for Machine Learning, which happened a 2 years before the XKCD, gradually starting around 2010, but really getting popular in 2012 (12 years ago today) with "AlexNet" using multiple GPUs: "ImageNet Classification with Deep Convolutional Neural Networks".

https://www.turingpost.com/p/cvhistory6

collinmanderson··on NotebookLM's automatically generated podcasts are surprisingly effective
Yes, LLMs are probably inherently limited, but the AI field in general is not necessarily limited, and possibly has the potential to be more genuinely creative than even most exceptional creative humans.
collinmanderson··on WordPress.org bans WP Engine
I can confirm WordPress felt like it was fundamentally flawed in 2009, yet it amazingly continues to grow in market share.

I think they’ve succeeded by staying stable with minimal large changes for 20 years and maintaining strong backward compatibility. Meanwhile the rest of the web chases the latest technology cycles, where everything needs to be redone every 5 years because there’s a new way to do things.

The developers who make WordPress understand and are pretty empathetic to their audience / user base, and don’t expect them to put in much work to install and maintain their website.

Other technologies seem to almost intentionally create backwards compatibilities in order to set user expectations that, yes you need to put in work to continue use our framework.

← PreviousPage 5 of 32Next →