Hacker Newsnew | past | comments | ask | show | jobs | submit | nicolasp's commentslogin

Key features include:

* Zero-overhead profiling: Attach to any running Python process without affecting its performance

* No code modification required: Profile existing applications without restart

* Real-time statistics: Monitor sampling quality during data collection

* Multiple output formats: Generate both detailed statistics and flamegraph data

* Thread-aware profiling: Option to profile all threads or just the main thread


Wait times are in the order of tens of milliseconds instead of seconds. That makes a massive difference in how nice uv is to use vs pip.


That’s just the same “my pip is too slow” problem which some people don’t have.

I work in a place with 200 developers, and 99% of pip usage is in automated jobs that last an hour. Shaving a couple seconds off that will not provide any tangible benefit. However moving 200 people from a tool they know to one they don’t comes at a rather significant cost.


> Shaving a couple seconds off that will not provide any tangible benefit.

It could be more than that.

I switched from pip to uv today in a Dockerized project with 45 total dependencies (top level + sub-dependencies included).

pip takes 38 seconds and uv takes 3 seconds, both uncached. A 10x+ difference is massive and if uv happens to be better suited to run on multiple cores it could be even more because my machine is a quad core i5 3.20ghz from 10 years ago.

> I work in a place with 200 developers

In your case, if you have 200 developers spending an hour on builds that could in theory be reduced down to 5 minutes per build. That's 11,000 minutes or 183 hours of dev time saved per 1 build. I know you say it's automated but someone is almost always waiting for something right?


For what it's worth uv is fully compatible with pip. just replace 'pip --foo bar' with 'uv pip --foo bar'. One project I'm working on is 100% 'classic' pip based with no plans of moving, but I still use uv when working on it as it is completely transparent. Uv manages my venvs and python versions and makes things like switching between different versions of python and libraries much smoother, and I can still use the same pip commands as everybody else, it's just that all my pip commands run faster.


> For what it's worth uv is fully compatible with pip

Depends what you mean by "fully": https://docs.astral.sh/uv/pip/compatibility/

There's a number of places pip and uv diverge:

* uv makes some design choices that aren't always strictly compatible with the spec

* uv correctly implements the spec and it turns out pip, or the underlying library, didn't (I have worked on fixing a couple of these on the pip side)

* uv doesn't support legacy features still in pip

* Tool specific features or exact output diverge

This is not a criticism, but I've seen some users get irate with uv because they were under the impression that it was making much stronger compatibility guarantees.


You can put these options in a config file and they will become the default: https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#configur...


The "Restore previous session" checkbox is the first setting in the preferences for me (wording may differ a little as I'm not on the English version though). Doesn't that work for you?


I'm very ambivalent about Greenwald. One the one hand he produced essential work with the Snowden revelations and his exposure of corruption in Brazil. He also makes good points about the moral evil of the Bush/Cheney administrations and Obama's continuation of the war on terror.

But on the other hand it feels like he spends a lot of time attacking strawmen just for the sake of being contrarian. Saying that journalists are authoritarians who want to protect the secrets of the powerful [1] and control access to platforms [2] has a tiny grain of truth in it but is mainly a massive oversimplification that paints a group of thousands of professionals who have a myriad of varying incentives with an incredibly broad brush. He seems to be incapable of nuance in his critique of the journalistic profession, and that renders his message mostly inaudible to me because it feels like it's coming from some form of resentment rather than reasoned arguments.

[1] "Journalists view the dissemination of information about what powerful people are doing in the dark not as their principal function and purpose—which is what it ought to be if we had a healthy media—but as something to be denounced and condemned."

[2] "[Facebook and Google and Twitter, and Silicon Valley in general] began to censor because journalists demanded they do so, in part because journalists are authoritarians who believe that the modes of information [should be] regulated by them and by others.


What bothers me are the hundreds or even thousands of journalists that spout corporate lines, propaganda, and outright lies everyday, and not much is said about them, but with principled journalists like Greenwald, you get these nitpicky judgemental critiques that seem aimed at deriding them.

Yes, Greenwald is not perfect, but he is more objective, honest, and brave than the great majority of journalists out there. It has the flavor of an inorganic smear campaign that has been absorbed repeatedly and unconsciously across social media. It's a common pattern for a post about an anti-establishemt figure to have some positive comments about them, but then some critique inevitably bubbles to the top of thread every time.


I think it's clear enough that he's talking about specific journalists in specific enumerated publications and not literally all journalists everywhere. He is, after all, one himself.


I'm not convinced that's true. He didn't refer to any specific institutions or subsets of journalists in the quotes I included. Even assuming that he meant to, the examples he cites are CNN, NBC, NYT and WaPo. He also accused editors at The Intercept of censoring him over Hunter Biden stories. That's already a very large group of people to generalize.

He clearly views himself and a handful of others as outsiders, in a crusade against a journalistic profession that he views has wholly corrupted by corporate interests.


> That's already a very large group of people to generalize.

On the other hand, it's not that large a number of entities. And the people who work there are constrained by their employers in particular ways, and choose to remain. Here's the article Greenwald quit The Intercept over:

https://greenwald.substack.com/p/article-on-joe-and-hunter-b...

To the best of my knowledge nothing in it is untruthful. The Intercept demonstrably wouldn't publish it. Which of the other institutions listed do you expect would have? Is there an instance of any of them publishing anything substantively equivalent before the election?

He quotes the NYT there in several places but the articles the quotes are from are minimizing the story and even then the authors became the targets of attack for even discussing it.


There are many conservative and international reporting outlets, so where’s the Hunter Biden story already? Is Tucker Carlson secretly owned by the Bidens? What happened to his secret laptop files?

It looks like Glenn Greenwald’s business partners choose not to bet recklessly with the credibility of the publication, and in retrospect they may have choose wisely. The story was entirely under the control of Tucker Carlson and friends, and so would have been The Intercept’s brand credibility. The Intercept is far more vulnerable to missteps than Fox.

First Tucker Carlson kind of lost the files, and now he won’t show anyone the secret computer files because he thinks Hunter Biden is down on his luck, and Mr Carlson just feels so sad about it.


You need more hands! I have one telling me that the problem is not all the journos going along to get along so much as the very few companies in charge of the media. And another telling me that those journos have agency thus culpability. And yet another arm reaching for the popcorn and wondering how long this thread can last.


If you read it as a systemic commentary rather than an individual commentary it makes more sense. Journalists as a system might have a behavior that most journalists done engage in. Nobody consciously thinks “let’s be authoritarian” but they create systems and structures that lead that way anyways. The same way any attack of “group X is Y” could be read as a massive oversimplification painting a huge diverse group with a broad brush. The individuals can create and enable a system of Y entirely unconsciously.

And yeah he totally lacks nuance, but at this point I can’t really care. I’m personally sick of unnuanced comments from “our” side benefitting from reading between the lines while near identical comments from Others with an equal lack of nuance get attacked for it. It would be great if we all were nuanced, but that appears impossible so reading things you disagree with charitably is just a necessity now. This comes to mind https://www.smbc-comics.com/comic/bad-things


It isn't that journalist see social media as a threat but so do the politicians they report on. Prior to the rise of social media, this should not be simply considered Facebook, Twitter, and like, but all the internet as a whole, we relied on the idea that the press, print, radio, and televised, told us the truth.

However the internet showed this was never true. Yes elements of the media did report the truth but they also produced some stories that were outright fabrications or purposefully did not include information that did not support the narrative; three very big stories that fall under this are the GM pickup fires which were assisted in catching fire, that chemical and biological weapons were widespread in Iraq, and of course Dan Rather's fake National Guard document.

Both the media and the political class help each other. One does it to gain favor and the other does it control the message. The internet took the ability to control the message, the narrative, away from the established media and politicians. It put it back into the hands of everyone.

So Greenwald's assertion is true in many ways. A return to where politicians used the media to control the message is a return to a system which allowed the Iraq war to come to fruition. The claim he makes that the press holds the office of the Presidency to different standards based on the party that controls it is easily provable as well. We never saw a level of press persecution before that occurred under Obama yet all of Trump's rambling diatribe was considered worse? On what planet?

Hell this site is guilty of the same as well. We have people here cheering on the FBI, likely the same that screamed when the same agencies trampled on people they liked. This is the society the old media and politicians gave us, putting us at each others throats and taught to revel in it


I mostly agree with you. I just want to point out that the reason Trump was held to a different standard than previous presidents is simply that he lied so much from the start. Journalists from "mainstream media" rightly perceived him as a threat because when called out on his lies he overtly attacked them and encouraged violence against them (arguably resulting in casualties in the Capital Gazette shooting).


As a student I learned C and how OSS projects work through hacking Rockbox to add features to my iRiver H320. Fond memories and a very valuable learning experience.


Oh, I have fond memories of the H320 (it was released right around the time of the click-wheel iPod with the grayscale screen). I could watch movies on my portable music player in colour! My friends' minds were blown.


I still have my H320, though I haven't powered it on in years. I even replaced the battery (with an iPod battery, with the wires swapped on the connector), and I replaced the hard drive with a 30GB model. I also got some accessories for it: a dock for your desk, and also a remote control. It was great for listening to music on airplanes.

I'm planning to try selling it on Ebay now, since I just use my phone now.


That brings back memories! Installing Rockbox, switching the battery… I also found out later that you could get a ATA-to-CF Adapter and basically switch it to an SSD.


The great thing about the Iriver H340 (I had the 40 GB version) was that it could play MP3 and Ogg Vorbis. Also, everyone was running around with iPod with a few GB. I was laughing my ass off. RockBox was a little bit more friendly on the battery. I still use the USB OTG cable which came with my Iriver H340 (I gave the device itself away in 2008).


The standard plan is $5 per user per month, so for 5 users that's $25/mo.


The basic is $3 though. I have migrated all my private emails I've ever sent or received (some tens of thousands, starting from 90s) to Fastmail. Still well under the 2GB limit of the basic plan.


> Is there a way to make a previously hidden iTerm window show without also bringing any other iTerm windows to the front?

HyperDock[1] Lets you do that.

[1] https://bahoom.com/hyperdock/


Even so, it should still be their responsibility. They're the ones selling the finished product to the consumer.


I dont disagree. To me its a game of blame passing, but I think that is the reality of the car biz. Brands usually design the look and most of the time the engine. Suppliers do the rest.


What? You can definitely hail a taxi in France. It can sometimes be very hard to find one that is free, but there's no law that says you have to either call for them or go to a taxi stop.


I stand corrected. I don't remember what persuaded me to the contrary. It's nevertheless a daunting task compared to the experience you get as a user in many other countries.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: