Readit News logoReadit News
xen0 commented on A “frozen” dictionary for Python   lwn.net/SubscriberLink/10... · Posted by u/jwilk
no_wizard · 9 days ago
Thinking about this upfront for me, I am actually wondering why this is useful outside of equality comparisons.

Granted, I live and work in TypeScript, where I can't `===` two objects but I could see this deterministic behavior making it easier for a language to compare two objects, especially if equality comparison is dependent on a generated hash.

The other is guaranteed iteration order, if you are reliant on the index-contents relationship of an iterable, but we're talking about Dicts which are keyed, but extending this idea to List, I see this usefulness in some scenarios.

Beyond that, I'm not sure it matters, but I also realize I could simply not have enough imagination at the moment to think of other benefits

xen0 · 9 days ago
I work on a build system (Bazel), so perhaps I care more than most.

But maybe it does all just come down to equality comparisons. Just not always within your own code.

xen0 commented on A “frozen” dictionary for Python   lwn.net/SubscriberLink/10... · Posted by u/jwilk
zahlman · 9 days ago
> Ordering, like stability in sorting, is an incredibly useful property.

I can't say I've noticed any good reasons to rely on it. Didn't reach for `OrderedDict` often back in the day either. I've had more use for actual sorting than for preserving the insertion order.

xen0 · 9 days ago
It's sometimes nice to be deterministic.

I don't often care about a specific order, only that I get the same order every time.

xen0 commented on Migrating to Bazel symbolic macros   tweag.io/blog/2025-11-20-... · Posted by u/todsacerdoti
tannhaeuser · 25 days ago
Is anyone really using bazel outside Google in any meaningful capacity? There used to be a number of really popular and widely used projects such as closure compiler, gwt/j2cl, guava and other Java libs, and supposedly lots of golang stuff (not to speak of k8s where people seem to be satisfied it's a black box) that are dying behind bazel walls.
xen0 · 25 days ago
Open source projects? Maybe less so.

But there are definitely companies that use Bazel in a major way.

xen0 commented on French ex-president Sarkozy begins jail sentence   bbc.com/news/articles/cvg... · Posted by u/begueradj
Demiurge · 2 months ago
This is slightly off-topic, but is it "jail" or "prison"? I see this switch all the time, and French does not make a difference. But, in English, and many other languages, jail is more specific than prison, and is usually for short term or pre-sentencing holding. If someone is sentenced, it's usually a different facility called "prison". Is BBC making a mistake, or are they actually saying Sarkozy will be held in in an actual jail?
xen0 · 2 months ago
At least in British English usage, there is no distinction between Jail, Gaol, and Prison other than at least one of these is a dated word.

I believe only the US has a strong distinction between Prison and Jail.

xen0 commented on Life, Work, Death and the Peasant, Part V: Life in Cycles   acoup.blog/2025/10/17/col... · Posted by u/bell-cot
jstanley · 2 months ago
> the heavy extraction regime they operate under

It might be interesting to quantify this. How does it compare to typical tax rates today?

xen0 · 2 months ago
Part 4c (this is quite a long series) goes into some detail here. https://acoup.blog/2025/09/12/collections-life-work-death-an...

My own interpretation is that it's difficult to precisely compare how peasants were exploited to modern taxation regimes in the developed world. Perhaps more as an unfavorable relationship with the only employer in town?

xen0 commented on My Deus Ex lipsyncing fix mod   joewintergreen.com/my-deu... · Posted by u/jonny_eh
LarsDu88 · 3 months ago
This explains the totally janky behavior of the stun prod and baton in the 5 playthroughs of this game I've done over the past 25 years
xen0 · 3 months ago
This may be because the 'headshot' multiplier is lower than the regular multiplier (1x vs 2x) for the prod and baton. For most weapons the headshot multiplier is 8x (or something).

So torso hits from behind are the way to go.

xen0 commented on Malicious compliance by booking an available meeting room   clientserver.dev/p/malici... · Posted by u/jakevoytko
esnard · 7 months ago
It's actually 100 microyears!
xen0 · 7 months ago
Erm, yes. Yes it is...
xen0 commented on Malicious compliance by booking an available meeting room   clientserver.dev/p/malici... · Posted by u/jakevoytko
saubeidl · 7 months ago
Microcentury sounds like somebody didn't reduce their fractions. I propose centiyear.
xen0 · 7 months ago
Those are not the same; one is a bit less than an hour, another is 3 and a half days.

A microcentury is 100 nanoyears if you prefer that.

xen0 commented on What makes code hard to read: Visual patterns of complexity (2023)   seeinglogic.com/posts/vis... · Posted by u/homarp
davidw · 9 months ago
Without syntax highlighting, "book.author for book in books if book.page_count > 1000" requires a lot more effort to parse because white space like newlines is not being used to separate things out.
xen0 · 9 months ago
Set comprehensions are normal in mathematics and, barring very long complex ones, I find them the easiest to parse because they are so natural.

They're just a tad more verbose in Python than mathematics because it uses words like 'for' and 'in' instead of symbols.

xen0 commented on I have made the decision to disband Hindenburg Research   hindenburgresearch.com/gr... · Posted by u/toomuchtodo
kortilla · a year ago
What you described is how you bet against retail traders. The bet is that they have no edge so it’s safe to run tight spreads and nice pure market making algos that assume random behavior at volume.
xen0 · a year ago
Feels weird to call it a 'bet against' when the other side can (potentially) benefit from the tighter spread you offer.

But yes, the market maker doesn't run the risk of trading with someone with knowledge and a lot of capital to apply it.

u/xen0

KarmaCake day539February 19, 2020View Original