Posts by mgorny@fosstodon.org
(DIR) Post #AWZU2Xa5IC7aFAmqYq by mgorny@fosstodon.org
2023-06-11T04:57:57Z
1 likes, 0 repeats
Unpopular opinion: big individual cars (SUVs) are not about families. They're about bad drivers who want to focus the damage from accidents on other parties.#CarFree
(DIR) Post #AWcMf1TSiaAcliZ6q8 by mgorny@fosstodon.org
2023-06-12T14:19:51Z
0 likes, 1 repeats
I'm looking for an example of "non-obvious" timeout-related test failure in a #Python package. That is, something that initially doesn't look like a timeout at all but after deeper investigation turns out to be caused by some operation taking longer than expected.This is for my blog post about test suite problems. You can preview the current draft at: https://blogs.gentoo.org/mgorny/?p=1820&preview=1&_ppp=86101899b6#OpenSource #Gentoo #test
(DIR) Post #AWdmMGZ3BHuQ2Ar7Vg by mgorny@fosstodon.org
2023-06-13T06:42:37Z
1 likes, 0 repeats
As #pypi.eclass became more commonly used in #Gentoo, its performance started being important. Subshells in #bash are never a good thing.I've prepared a patchset that eliminates all subshells from the most common use cases, making it 16 times faster! Yep, my poor man's benchmark noted a change from roughly 3.1 s for a 1000 runs to 0.19 s, or from 320 runs a second to 5300 runs a second.The biggest speedup is thanks to Eli Schwartz's idea. Thanks!https://github.com/gentoo/gentoo/pull/31404
(DIR) Post #AWgSzhxXqTVcgPirgG by mgorny@fosstodon.org
2023-06-14T13:51:39Z
1 likes, 0 repeats
#LLVM 16.0.6 is out and in #Gentoo now. We've made some extra backports from 17.x too.To be honest, I don't really comprehend the stable release backports process anymore. Important-ish fixes are hanging for 2 weeks on PR tracker with no reply, then 16.0.6 is suddenly released with literally one commit, that happens to be in LLD (and everything else is rebuilt with no changes, thanks to monolithic projects).
(DIR) Post #AWgvRwZTuSj0pGieq8 by mgorny@fosstodon.org
2023-06-14T19:10:16Z
2 likes, 0 repeats
cargo.eclass in #Gentoo provides a great example of #bash misoptimization.The eclass needs to handle 3 cases of GIT_CRATES: an array, anything else or undeclared.The author decided to cache the result of `declare -p` check in a variable to avoid calling it twice:https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/cargo.eclass?id=681ca5418e6a79fdf0e5213e672b568c055ba83a#n193However, the resulting subshell makes the code over 20 times slower than calling `declare -p` twice, like python-utils-r1 does:https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/python-utils-r1.eclass?id=681ca5418e6a79fdf0e5213e672b568c055ba83a#n117
(DIR) Post #AWiehqNaDZSPFWuj2m by mgorny@fosstodon.org
2023-06-15T15:09:08Z
1 likes, 0 repeats
I have praised python-utils-r1 code prematurely. While it would definitely optimize the cargo case since GIT_CRATES are almost never set, it's suboptimal for the PYTHON_COMPAT case since it's set all the time.So I've made a pull request to use a faster check using `${PYTHON_COMPAT@a}` variable substitution in bash-5. It's not like it saves a lot — according to pkgcraft, roughly 3 s for the whole `dev-python/*` (out of 57 s total) but I suppose it's still worth it.#bash
(DIR) Post #AWiiOPYY7ZOCNE2544 by mgorny@fosstodon.org
2023-06-15T15:48:05Z
1 likes, 0 repeats
So following @thesamesam's complaint that cargo.eclass is slowing `dev-python/*` down (sigh), I've proposed a few changes to speed it up. Notably:1. Variable-based API instead of $(cargo_crate_uris), like python-r1 does.2. Slash-separated CRATES that can be interpreted without resorting to regular expressions.I sure did recall complaining about #regex there before. Now generating the crate list for cryptography is 3 times as fast as the original!https://github.com/gentoo/gentoo/pull/31456#bash #Gentoo
(DIR) Post #AWn9ABi2HXEKlhkffE by mgorny@fosstodon.org
2023-06-17T19:09:19Z
0 likes, 0 repeats
I am full of contradictions.I love nature but I have bad allergies.I love mountains but I have acrophobia.I am attracted to ships but I can't swim.I love sweets but I have diabetes.I need people but I am an introvert.I hate capitalism but I need money to survive.I hate computers but I can't figure out any other way to live.
(DIR) Post #AWo16OnP4yuxipu9g0 by mgorny@fosstodon.org
2023-06-18T03:26:41Z
1 likes, 1 repeats
Do you use clocks that don't synchronize automatically?#FediPoll
(DIR) Post #AWodPQuDFuvU1faozY by mgorny@fosstodon.org
2023-06-18T12:04:57Z
1 likes, 0 repeats
I've marked #pdm-#pep517 package deprecated in #Gentoo. Some of the remaining revdeps have already been migrated away in their VCS repositories, one has pull request open, and I've filed pull requests to migrate the remaining three to pdm-backend:https://github.com/abersheeran/a2wsgi/pull/35https://github.com/gazpachoking/jsonref/pull/55https://github.com/mkdocstrings/autorefs/pull/26#Python
(DIR) Post #AWq4OOI6NpknY0SEJE by mgorny@fosstodon.org
2023-06-19T04:25:46Z
1 likes, 0 repeats
There are projects that remove old methods without a prior warnings.Then, there are projects that warn you that they will deprecate something in a future release.https://github.com/pyparsing/pyparsing/releases/tag/3.1.0#OpenSource #Python #Gentoo
(DIR) Post #AWshnHyPIJXFio1cy8 by mgorny@fosstodon.org
2023-06-20T11:32:39Z
0 likes, 0 repeats
#Gentoo mailing list archives are broken for almost 3 months now. While marc.info is advocated as a stop-gap solution, it doesn't cover all our mailing lists (I don't think any of the third-party archives do). We really need someone to fix this.https://infra-status.gentoo.org/notice/20230404-archives#ElasticSearch
(DIR) Post #AWt1bksXzrl4yk3ugi by mgorny@fosstodon.org
2023-06-20T14:03:20Z
0 likes, 0 repeats
#Python language lawyers, we're seeing some interesting issue with #PyPy / ijson.ijson is calling the async function's __wait__() method and iterating over the results until it gets StopIteration exception, and it uses it to get the return value. This works in Python both in CPython and PyPy but within C API, CPython tp_iternext() raises StopIteration while in PyPy it does not — is that a bug or is there some other way to get the return value?https://github.com/ICRAR/ijson/issues/101https://foss.heptapod.net/pypy/pypy/-/issues/3956
(DIR) Post #AWvOMHe35krDEInAY4 by mgorny@fosstodon.org
2023-06-21T18:39:53Z
1 likes, 0 repeats
Can you imagine driving a car over a town where every road crossing is a roundabout? Right-left-right-straight-right-left-right-straight…This is pretty much the reality pedestrians are facing in many towns, when the zebra crossings are not in straight line with sidewalks but moved a meter or two to the side on *every single crossing*.Planning for "safety", i.e. drivers' convenience.#CarFree
(DIR) Post #AWxR65V59rdztJQv7g by mgorny@fosstodon.org
2023-06-22T18:17:17Z
0 likes, 0 repeats
If I didn't have reason enough to hate cars, some people started mounting "ultrasonic" pest repellers in their cars.Well, I don't know if I'm a pest (probably I am) but I definitely hear it and it makes my head explode. The worst part is, they're leaving these cars parked in random spots like train stations where I can't simply move away from them.Somewhat reminds me of some movie I watched a long time ago… maybe it was #Noise (2007)?Perhaps I should get a sledgehammer.#CarFree
(DIR) Post #AWxZzWu1mH6URF3680 by mgorny@fosstodon.org
2023-06-22T19:17:08Z
1 likes, 0 repeats
#Cargo permits inheriting package metadata from workspaces. In order to do that, you specify the respective metadata key "foo" as "foo.workspace = true".What they basically have done is change the spec for "foo" from a string to "either a string, or a table with a single 'workspace = true' key". Makes sense, right?#RustLang #TOML
(DIR) Post #AX11GJXzxx1MB2qvrc by mgorny@fosstodon.org
2023-06-24T11:50:07Z
1 likes, 0 repeats
#RFC6761 is so cool.Do you need to make sure that the test suite won't be able to accidentally connect to anything on any* system? Use .invalid domain that is guaranteed not to resolve to anything.https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/pymongo/pymongo-4.4.0.ebuild?id=20230490139219be66382115c9f1d0b614d8dad7#n75* yes, I know someone will surely have a misconfigured DNS server that will resolve *.invalid to something
(DIR) Post #AX1MRFL832N1Lmt4Ea by mgorny@fosstodon.org
2023-06-24T15:46:33Z
1 likes, 0 repeats
Is there a tool that would tell me if I'm going to lose any followers/follows when migrating to another #Mastodon server? In other words, basically something that would check if the destination server doesn't defederate any of their servers.
(DIR) Post #AX1dFPJoorpY2rDNrc by mgorny@fosstodon.org
2023-06-24T18:50:34Z
1 likes, 0 repeats
We want honest pay for honest work, and mutual respect between employer and employee.In reality, employers are trying to squeeze as much as possible out of their employees for minimal pay. Some employees counter this by slacking, cheating and/or looking for other opportunities. Employers cut staff or replace with cheaper labor.Even if they want to be good, the competition on the market forces them to comply or go bankrupt.#AntiCapitalism #labor
(DIR) Post #AXDYyhrN305clbsnhI by mgorny@fosstodon.org
2023-06-30T13:00:43Z
2 likes, 0 repeats
FYI, I'm moving over to https://social.treehouse.systems/@mgornyHopefully, everything will work fine and all my followers will be transitioned.