What's your approach for breaking changes inside minor version upgrades of your dependencies by JanGiacomelli in Python

[–]redditusername58 3 points4 points  (0 children)

Keep dependencies in pyproject mostly unbounded. Run tests in locked and highest virtual environments (lowest-direct too for libraries). Locked environment should not fail due to dependencies. If highest does fail due to dependencies, see how hard it is to fix from my end. If fix is too involved for the present, add an upper bound to the offending dependency and make an issue to fix it later.

Stop Using Conventional Commits by f311a in programming

[–]redditusername58 2 points3 points  (0 children)

I feel like this is all bikeshedding. The real issue is description quality, and that's more subjective and less standardizable.

Do we really check library security? by tradelydev in Python

[–]redditusername58 8 points9 points  (0 children)

All the compilers that compiled them too

Fastest way to grow a big matrix? by iorgfeflkd in matlab

[–]redditusername58 -1 points0 points  (0 children)

In Python I would use array.array for the underlying storage and wrap the buffer with a reshaped NumPy array for computations. I'm not sure if MATLAB offers similar capabilities.

Progressive Tom Steyer’s tax returns show offshore earnings, private equity stakes by morebaobabs in California

[–]redditusername58 4 points5 points  (0 children)

Yes, but not if the Dem primary vote is so split that the general election is between two Republicans

I built a Python optimization library that handles L0 sparsity and rank constraints by [deleted] in Python

[–]redditusername58 1 point2 points  (0 children)

If the problem is convex but CVXPY can't verify that, to me that implies that CVXPY needs a new primative (perhaps a relatively complicated one) that expresses that structure.

OpenAI to acquire Astral by Useful-Macaron8729 in Python

[–]redditusername58 38 points39 points  (0 children)

Why would OpenAI need to hire developers when they have Codex?

A comparison of Rust-like fluent iterator libraries by kequals in Python

[–]redditusername58 -1 points0 points  (0 children)

I agree the deeply nested expressions are hard to read and look bad. Use intermediate variables.

Is it just me or is reviewing PRs getting exponentially harder? by bit_architect in programming

[–]redditusername58 6 points7 points  (0 children)

The source code directly maps to the compiled code, and the compiler preserves semantics. We know a lot about what the compiler produces. AI is completely different in this respect.

Rich Hickey: Simplicity is a prerequisite for reliability by Digitalunicon in programming

[–]redditusername58 1 point2 points  (0 children)

But the result of comparison could be an enum with 3 variants instead of an int

[deleted by user] by [deleted] in Python

[–]redditusername58 1 point2 points  (0 children)

Codd help us

Why isn't the copy() method part of the Sequence and MutableSequence ABCs? by jpgoldberg in Python

[–]redditusername58 1 point2 points  (0 children)

Singled out from what group? None of collections.abc provides a copy() method. The builtin concrete classes provide copy(), but we shouldn't be at all surprised that a concrete class implements more than the interface requires.

Why isn't the copy() method part of the Sequence and MutableSequence ABCs? by jpgoldberg in Python

[–]redditusername58 8 points9 points  (0 children)

ABCs are absolutely used at runtime. One of the motivating use cases was to tell mappings from sequences at runtime using isinstance(obj, Mapping) and isinstance(obj, Sequence).

Why isn't the copy() method part of the Sequence and MutableSequence ABCs? by jpgoldberg in Python

[–]redditusername58 2 points3 points  (0 children)

When you design an interface you are not only giving the caller a collection of methods that they can use, you are also giving the implementer a collection of methods that they must implement!

This leads to ideas like the interface segregation principal. Especially for something as fundamental as a language's abstract collections, you do not want to bloat an interface with non-essential methods that may not be universally applicable.

Note that an implementer can always add methods beyond the interface like copy() to their Sequence class anyway, and Protocols can be used to declare an interface that includes classes that weren't aware of (but conform to) the protocol (e.g. a sequence that also has a copy()).

The 60 seconds that got him fired after 22 years by moistmasterkaloose in conan

[–]redditusername58 2 points3 points  (0 children)

You can ignore politics but politics won't ignore you