@neutrinoceros@fosstodon.org
@neutrinoceros@fosstodon.org avatar

neutrinoceros

@neutrinoceros@fosstodon.org

Freelance open source maintainer, PhD in astrophysicist.
Currently working for the Astropy project. #Python

This profile is from a federated server and may be incomplete. Browse more on the original instance.

cheukting_ho, to rust
@cheukting_ho@fosstodon.org avatar

folks, I will be here today after lunch for the workshop, come to me if you want to learn 👍🏻 experience not required

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@cheukting_ho dang it I missed it. How did it go ?

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@cheukting_ho I can meet you there in 10min !

cheukting_ho, to random
@cheukting_ho@fosstodon.org avatar

Sorry if you didn’t manage to get into the room for @lais_bsc ‘s talk at because it is packed, you should catch up with the video later! It is great!

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@cheukting_ho This talk was on my list but I couldn't make it. I'll make sure to watch the video !

hugovk, to python
@hugovk@mastodon.social avatar

🐍🧪 Python 3.13.0 is due out in October 2024 and work is underway to implement experimental support for PEP 703 "Making the Global Interpreter Lock Optional in CPython".

As the Steering Council noted in their acceptance of the PEP, to succeed it's important to have community support.

I wrote a little guide on how you can help test out the beta in your project, and help us find bugs in CPython:

https://dev.to/hugovk/help-us-test-free-threaded-python-without-the-gil-1hgf

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@hugovk I’m very new to multi-threading, so pardon the naivety of my question, but does testing code without any form of parallelism bring any value ?

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@hugovk I think I found a bug … that is specific to deadsnakes’ build :blobcatsweat:
Any clue where I should report this ?
https://github.com/neutrinoceros/reprod_deadsnakes_3.13b1_math_dunder_file/actions/runs/9114819417/job/25059674701

treyhunner, to random
@treyhunner@mastodon.social avatar

I am SO excited for the new Python REPL for 3.13 that I made the PR branch for this the default Python on my machine today so that I can test it out in the coming weeks.

If you use pyenv and you'd like to do the same, here the (AI-generated but seemingly correct) instructions I used: https://treyhunner.com/2024/05/installing-a-custom-python-build-with-pyenv/

Also listen to the core.py podcast with @ambv and Pablo Galindo Salgado. That's how I found out about this new feature months ago.

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@treyhunner @ambv can it still make it into 3.13 ? The PR is still a draft and there’s only one week day left before the schedule feature freeze. I’m hyped either way, but from afar it looks more like a 3.14 thing now, doesn’t it ?

neutrinoceros, to random
@neutrinoceros@fosstodon.org avatar

@ivory I’d like to mute a hashtag, but the button seems to be disabled unless I also follow the tag ? Am I missing something or is there a problem with the interface here ?

sethmlarson, to random
@sethmlarson@fosstodon.org avatar

While I was away my article on unexpected behavior of "$" in regular expressions hit #1 on Hacker News (and I only discovered this fact by receiving hate mail).

If you missed it and use "$" in Python regular expressions you might be interested:

https://sethmlarson.dev/regex-%24-matches-end-of-string-or-newline

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@sethmlarson @hynek and yet this charming person took several minutes out of their day to write back. How thoughtful ! 🙄

mediapart, (edited ) to random French
@mediapart@mediapart.social avatar

| À la poursuite des neutrinos pour mieux comprendre l’univers

Une gigantesque expérience est en cours de construction dans des cavernes aux États-Unis. Objectif: mieux connaître les , des particules très furtives que les physiciens traquent depuis des décennies. Et comprendre, peut-être, deux des plus grands mystères de la .

https://www.mediapart.fr/journal/ecologie/020324/la-poursuite-des-neutrinos-pour-mieux-comprendre-l-univers

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@mediapart l’article est très bon, joli travail de vulga, mais j’ai du mal à comprendre ce que le hashtag écologie fait là.

neutrinoceros, to python
@neutrinoceros@fosstodon.org avatar

Unexpected benefit from using 3.10’s match/case syntax:
I replaced code that was essentially equivalent to

axes = {  
 CARTESIAN: ("x", "y", "z"),  
 CYLINDRICAL: ("r", "theta", "phi"),  
}[geometry]  

with

match geometry:  
 case CARTESIAN:  
 axes = ("x", "y", "z")  
 case CYLINDRICAL:  
 axes = ("r", "theta", "phi")  

Which is equivalent, right ?
But the coverage is not necessarily so !

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

In fact one of my supported cases was never tested (and, of course, broken), but I would never have figured it out with the old code: all lines were being hit when the dictionary was initialised !

Initially I was motivated to switch to newer syntax because it supposedly will help catching missing cases in the future (combining enums and typing.assert_never), but I didn't except to find an existing bug !

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@dabeaz I completely forgot about this, thanks for reminding me !
However, in the real life case I simplified here, there’s a case _: assert_never(…) default branch, which was actually my main motivation for refactoring. If I understand correctly, it protects against these side effects of pattern matching, since you can’t leave the match block with a different value than what you had when you entered it. Isn’t it the case ?

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@dabeaz does it also bind if I match against enum members (which is what I’m actually doing in my code) ?

neutrinoceros, to foss
@neutrinoceros@fosstodon.org avatar

Saying "no" to pull requests that just add functionality that hasn't been previously discussed or identified as needed may be my least favourite thing about maintaining code...
I think it's necessary to raise awareness in fly-by contributors that these create long term workload for other people. Though, no matter how much I sugar-coat my "no", I always feel like I'm being the vilain of someone else's story...

neutrinoceros, to random
@neutrinoceros@fosstodon.org avatar

New bio !
This week was my last as a researcher, and starting tomorrow I'll work as a contractual research software engineer for the #Astropy project !
I am thrilled about onboarding this thriving community and excited that fixing bugs is now my job instead a distraction from it !

hynek, to random
@hynek@mastodon.social avatar

i humbly propose to rename OmniFocus 4 to OmniFocus Forever

neutrinoceros,
@neutrinoceros@fosstodon.org avatar

@hynek shouldn’t it be OmniFocus and Robin ?

jaztrophysicist, to random
@jaztrophysicist@astrodon.social avatar

deleted_by_author

  • Loading...
  • neutrinoceros,
    @neutrinoceros@fosstodon.org avatar

    @jaztrophysicist s’agit il d’un irréductible canin ?

    neutrinoceros,
    @neutrinoceros@fosstodon.org avatar

    @jaztrophysicist ouaip, le chef a fait une annonce sur la place du village ! J'ai hâte de voir ce que tu veux faire de le molosse, et surtout comment tu comptes t'y prendre. J'ai eu des échos mais pour le moment c'est encore assez mystique pour moi.

    neutrinoceros, to random
    @neutrinoceros@fosstodon.org avatar

    Rebuilding #SymPy ‘s internals from the ground up, towards a faster and more flexible implementation https://oscarbenjamin.github.io/blog/czi/post1.html

    Heliograph, to random
    @Heliograph@mastodon.au avatar

    the - how it really happened 🌝

    neutrinoceros,
    @neutrinoceros@fosstodon.org avatar

    @jaztrophysicist @Heliograph un peu de douceur de ce monde de grand bombardements tardifs.

    neutrinoceros, to python
    @neutrinoceros@fosstodon.org avatar

    This year is very intensive in terms of migrations for scientific Python maintainers:

    • a new #CPython (3.12) in October
    • a major version of #Cython (3.0) announced for this summer
    • a major version of #Numpy (2.0) scheduled for the end of the year

    All of which will require careful testing and probably take some time to propagate through the giant mess that are dependency trees in scientific #Python 😵‍💫

    hugovk, to programming
    @hugovk@mastodon.social avatar

    The first #Python 3.12 #beta has been postponed for a couple of weeks because there's so many exciting things still being worked on (PEPs 684, 687, 688, 695, 697 at least) and still being decided on by the steering council (PEPs 649, 702 and 709).

    Now set for Monday 22nd May:

    https://discuss.python.org/t/postponing-3-12-beta-1-feature-freeze/26406/11?u=hugovk

    All other release dates remain as planned:

    https://peps.python.org/pep-0693/

    PS https://github.com/hugovk/pepotron is my CLI for PEPs! For example:
    pip install pepotron && pep 3.12

    neutrinoceros,
    @neutrinoceros@fosstodon.org avatar

    @hugovk such a cool tool, thank you !

  • All
  • Subscribed
  • Moderated
  • Favorites
  • normalnudes
  • Durango
  • kavyap
  • thenastyranch
  • everett
  • osvaldo12
  • rosin
  • mdbf
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • InstantRegret
  • Youngstown
  • slotface
  • JUstTest
  • Leos
  • ngwrru68w68
  • modclub
  • anitta
  • tacticalgear
  • ethstaker
  • GTA5RPClips
  • cubers
  • megavids
  • provamag3
  • cisconetworking
  • tester
  • lostlight
  • All magazines