News for hackers. Stuff that matters.
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by VWWHFSfQ on Saturday July 08, 2023 @12:29PM (#36645936)
I'm not sure what "codemods" means. Just static analysis code changer? Python is so highly runtime dynamic I'm not sure a tool is even possible to upgrade behavior, preserving correctness and intent (bugs and all).
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by twosdai on Saturday July 08, 2023 @12:48PM (#36646160)
Not the poster of the question,

But I think they're referencing the litany of transpilers and repackagers which exist for js. So you can add new features and then still have it run on really old systems like internet explorer 9 if you need to.

This has problems obviously and in my opinion for python it would be preferable.

My reasoning being that if you need your code to work on an older system being able to write and use current syntax is preferable to not, and the hard bifurcation that python did with 2 to 3 and now potentially with 3 to nogil seems to me just to break apart the ecosystem more.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by kkirsche on Saturday July 08, 2023 @08:59PM (#36650347)
That differs but is a reasonable understanding. I’m instead referring to automations that perform large scale refactoring as handled by Facebook, who would be contributing to this effort.

https://github.com/facebookarchive/codemod

It sounds like what you are describing is what’s known as poly fills which convert code into a variant that maximizes function across implementations which isn’t really applicable here.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by kkirsche on Saturday July 08, 2023 @08:54PM (#36650324)
https://github.com/facebookarchive/codemod

Ironically this is also from Meta which would be contributing to this space increasing the expertise of achieving this result.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by VWWHFSfQ on Saturday July 08, 2023 @10:55PM (#36651061)
what on earth is this thing. Just a regex replacer called "codemod"? This does nothing.