@nedbat@hachyderm.io
@nedbat@hachyderm.io avatar

nedbat

@nedbat@hachyderm.io

Python, software, coverage.py, typography, juggling, Boston, autism (dad). Laughing at the world doesn't mean I don't take it seriously. He/him.

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

nedbat, to random
@nedbat@hachyderm.io avatar

Simon Willison's keynote about AI at #PyConUS was full of thoughtful and useful insights: "Imitation intelligence," "Transformative AI," "Don't commit what you don't understand," and "You shouldn't need a CS degree to automate tasks on a computer." If you didn't see it, be sure to get the video when it is available.
@simon

nedbat, to random
@nedbat@hachyderm.io avatar

Juggling starts a little early today: 3:45 in the open space hallway!

nedbat, to random
@nedbat@hachyderm.io avatar
nedbat, to random
@nedbat@hachyderm.io avatar

A first for me I think: no one I know waiting to board the flight to .

nedbat,
@nedbat@hachyderm.io avatar

@sovietfish Hi m' !

nedbat, to random
@nedbat@hachyderm.io avatar

Who's up for a juggling open space at ? Saturday 4PM?

nedbat, to random
@nedbat@hachyderm.io avatar

I'm headed to today, arriving in the middle of the opening reception (if all goes well). I'll be trying to clump together with other dinner-foragers...

nedbat, to random
@nedbat@hachyderm.io avatar

Yes, test freethreading Python!

I added this line to my GitHub Action step to show the environment:

python -c "import sys; print('GIL:', getattr(sys, '_is_gil_enabled', lambda: True)())"

https://mastodon.social/@hugovk/112440452061115479

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

nedbat,
@nedbat@hachyderm.io avatar

@neutrinoceros @hugovk A lot of work has happened that isn't directly related to parallelism (new memory managers, changes to built-in data structures, etc), so testing is very important.

nedbat, to random
@nedbat@hachyderm.io avatar

Pretty polyhedra and a fun interactive tool to explore them:
https://polyhedra.tessera.li/gyroelongated-pentagonal-birotunda/operations

For example: the Gyroelongated pentagonal birotunda

nedbat, to random
@nedbat@hachyderm.io avatar

Here's a PDF of the resulting printable schedule, tweaked to avoid the right-hand cutoff: https://static.nedbat.com/PyCon-US-2024.pdf
Four pages, print two-up to get two sheets.

https://mastodon.social/@hugovk/112422128910004621

Kirkman, to Typography
@Kirkman@mastodon.social avatar

One of my favorite road signs in all of Missouri, seen heading west on Interstate 70 in St. Charles County.

I very seldom drive there, but when I do, I love to startle the rest of my family by saying "Look everyone, we're coming up to Bryan ..." then screaming "ROAD!" at the top of my lungs.

I'm not sure why they decided to make "ROAD" uppercase, but I am forever grateful.

nedbat,
@nedbat@hachyderm.io avatar

@Kirkman Den Rd in Stamford CT is "Dr Ned" backwards :)

nedbat, to random
@nedbat@hachyderm.io avatar

I think I am unreasonably pained when I see an expert not able to communicate well with non-experts. Case in point:
N-E: "What's the difference between wifi and bluetooth?"
E: "Well, they use the same frequencies, but wifi is more powerful."

I don't think that gets at the N-E's perspective at all. :(

nedbat, to python
@nedbat@hachyderm.io avatar

Remember that dicts can have tuples as keys! Consider a dict with (x,y) keys instead of nested lists for a grid. It simplifies sparse grids, "resizes" are automatic, it doesn't matter where (0,0) is, and you can use negative positions:

Adding more to the board in flexible ways. https://gist.github.com/nedbat/f22b03f70ceb9686881c4bcd442fad11

nedbat,
@nedbat@hachyderm.io avatar

@freeradical Complex numbers are hashable, and so can be used as dict keys. I never liked that technique though, because it doesn't generalize to more dimensions.

nedbat,
@nedbat@hachyderm.io avatar

@thcrt @glyph If your grid isn't sparse, it could use more memory than other representations.

edrogers, to madisonwi
@edrogers@fosstodon.org avatar

@nedbat Here in , we were very fortunate to have Sydney Runkle, leading contributor to @pydantic, give a talk at our most recent @madpy meetup. It was a great walk-through of how Pydantic works, and brought out a huge audience of people excited to discuss it

I mention it because she's moving to Boston next week 😢 Wisconsin's loss can be 's gain. I highly recommend recruiting her for a talk!

https://madpy.com/meetups/2024/5/9/20240509-mastering-pythonic-data-validation-and-transformation-with-pydantic/

nedbat,
@nedbat@hachyderm.io avatar

@edrogers @pydantic @madpy Thanks for the tip! <3

nedbat, to random
@nedbat@hachyderm.io avatar

People in this thread are suggesting other terms besides "slop", but slop works really well because of the parallel to the existing meaning: food that used to be fit for human consumption, but now is just leftover pieces mixed and mashed indiscriminately so that it's used to feed pigs.

https://fedi.simonwillison.net/@simon/112406874796870923

nedbat, to python
@nedbat@hachyderm.io avatar

You can use Unicode characters in identifiers if they are classified as letter-like, but that doesn't mean that you should!

(Full rules at https://docs.python.org/3/reference/lexical_analysis.html#identifiers)

nedbat,
@nedbat@hachyderm.io avatar

@waltertross It happened to look better in my font. You shouldn't use either!! :D

nedbat,
@nedbat@hachyderm.io avatar

@FriendlyPossum @TheRealPomax It is not possible to say everything important about a function in its name.

nedbat,
@nedbat@hachyderm.io avatar

@TheRealPomax @FriendlyPossum OK, now I understand :D ... satire ...

nedbat, to random
@nedbat@hachyderm.io avatar

Week after next is , and we will of course be juggling there!

https://mstdn.social/@RobLudwick/112390675286786576

nedbat, to python
@nedbat@hachyderm.io avatar

Another sorting tidbit: the key= function can return a tuple. Tuples are sorted lexicographically: by first element and where firsts are equal, by second element, etc.

shac, to python
@shac@ioc.exchange avatar

If 🔥 can fix ’s stupid versioning problems then it wins by default.

nedbat,
@nedbat@hachyderm.io avatar

@shac @rcelectron I'm trying to understand what changes would cause that. The core devs seem to take care to prevent breakage, so I'm trying to see where the theory and the practice are colliding.

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