Rick Wong – Tech & code  · @ryguw
170 followers · 229 posts · Server fosstodon.org

Another (or should I say ) micro-optimization: Instead of using "is" / "is not" comparison in a hot loop over a collection of objects, use index integer comparisons if possible "y == other_y" / "x != other_x". Of course this is only possible in a numeric loop. But yeah apparently "is" and "Is not" perform worse.

Running on CPython 3.12rc2 on macOS 14.0 beta.

#python #cpython

Last updated 1 year ago

Michał Górny · @mgorny
200 followers · 1042 posts · Server pol.social

Pora na kolejną okresową przypominajkę, że Actions, podobnie jak inne systemy CI, o których mi wiadomo, oraz dystrybucje Linuksa (w standardowej konfiguracji) instalują Pythona z wyłączonymi asercjami.

Oznacza to, że ta domyślna konfiguracja *absolutnie nie nadaje się* do testowania, czy twój kod nie łamie konwencji API CPythona. Albo musisz zbudować CPythona z `--with-assertions`, albo skompilować swoje rozszerzenie z `-UNDEBUG`, by obejść to (to drugie rozwiązanie nie wychwyci wszystkich błędów).

A jeśli ktoś włoży wysiłek, by zgłosić złamaną asercję i wyraźnie opisze, w jaki sposób odtworzyć problem, to ten ktoś naprawdę będzie wdzięczny, jeśli nie zamkniesz zgłoszenia, bo "na GHA przeszło".

github.com/agronholm/cbor2/iss

#cpython #python #github

Last updated 1 year ago

Nicolas Fränkel · @frankel
843 followers · 1029 posts · Server mastodon.top
GeekLinks · @geeklinks
1 followers · 27 posts · Server social.exo.icu
Clément Robert · @neutrinoceros
104 followers · 209 posts · Server fosstodon.org

This year is very intensive in terms of migrations for scientific Python maintainers:
- a new (3.12) in October
- a major version of (3.0) announced for this summer
- a major version of (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 😵‍💫

#cpython #cython #numpy #python

Last updated 1 year ago

Open Source JobHub · @osjobhub
577 followers · 137 posts · Server fosstodon.org
SnoopJ :python_logo:🫠 · @SnoopJ
363 followers · 3426 posts · Server hachyderm.io

Looking at a feature request from a few years ago (as one does) for iterating over extended grapheme clusters, and suddenly a wild @manishearth appears 😁

github.com/python/cpython/issu

#cpython

Last updated 1 year ago

__coatldev__ · @__coatldev__
1 followers · 14 posts · Server fosstodon.org

Hey there, users. If you're looking for Python 3.10.12 installers for , look no further.

We've got you covered.

You may download them from our fork:

github.com/coatl-dev/cpython/r

#Python310 #windows #cpython

Last updated 1 year ago

Kushal Das :python: :tor: · @kushal
2305 followers · 7185 posts · Server toots.dgplug.org

Our next meetup will be on 7th, from 5:30pm in the office. We will sit down and learn how to build itself. Hoping to get more people excited about contributing to the language itself.

meetup.com/pysthlm/events/2939

#stockholm #python #Sunet #cpython #community #upstream

Last updated 1 year ago

Paolo Melchiorre #PyConDE 2023 · @paulox
948 followers · 1303 posts · Server fosstodon.org

Brett Cannon, developer manager at Microsoft and Python core developer, is giving the talk "Python's syntactic sugar" at PyCon US 2023 in Salt Lake City 🇺🇲🐍

CC @pycon @Microsoft @brettcannon

#pycon #pyconus #cpython #python #pythonspeakingtour

Last updated 1 year ago

Paolo Melchiorre #PyConDE 2023 · @paulox
939 followers · 1293 posts · Server fosstodon.org

Łukasz Langa, the CPython Developer in Residence, is speaking about "Working Around the GIL with asyncio" at PyCon US 2023 in Salt Lake City 🇺🇲🐍

He's going through two examples of data processing with Python 3.11 and how asyncio with shared memory helps speed things up ⚡

CC @pycon @PyConUS @ambv

#python #gil #sharedmemory #asyncio #cpython #pycon #pyconus #pycon2023 #pyconus2023 #pythonspeakingtour

Last updated 1 year ago

SnoopJ :python_logo:🫠 · @SnoopJ
327 followers · 2268 posts · Server hachyderm.io

oooh, there is now a lovely chart of versions and support dates in the Developer's Guide to go along with the table maintained there

devguide.python.org/versions/

#python #cpython

Last updated 1 year ago

Paolo Melchiorre · @paulox
918 followers · 1254 posts · Server fosstodon.org

I'm attending the talk "The CPU in your browser: WebAssembly demystified" by Antonio Cuni from Anaconda at PyCon DE 2023 in Berlin 🇩🇪🐍

CC @pyconde @conda

#pyconde #pycon #webassembly #python #pyodide #cpython #wasm #Pyscript

Last updated 1 year ago

César Román :python: · @thecesrom
5 followers · 14 posts · Server fosstodon.org

@aegilops For a while appeared to be "stuck" in 2.7 just like , but in December they released version 3.4 and they've ported f-strings from 3.6.

I cannot imagine what goes into implementing Python in other programming languages, and for that they deserve my admiration. But it is indeed a shame Jython has not moved past 2.7 in almost eight years.

Maybe Inductive Automation will open their platform to other scripting languages, but until then I'm stuck in 2.7 too.

#IronPython #jython #cpython

Last updated 1 year ago

Ambrosinus · @lucianoambrosini
0 followers · 9 posts · Server sigmoid.social

AI as Render Engine?
🤔 The way is long, but I still wonder why pay for something that is already free or even could be not so expensive?

Below is the first personal attempt to achieve at least one of the abovementioned aims. 😉 my goal, as always, is to extend design possibilities to everyone.

youtu.be/-LGCvGVfWnA

#sneakpeek #ambrosinustoolkit #dev #grasshopper #csharp #cpython #Python #coding #rhino #API #design #craftsman #tools #ai #StableDiffusion #controlnet #lucianoambrosini

Last updated 1 year ago

Ambrosinus · @lucianoambrosini
0 followers · 5 posts · Server sigmoid.social

𝗔𝗜 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗶𝗼𝗻-𝗔𝗶𝗱𝗲𝗱 𝗗𝗲𝘀𝗶𝗴𝗻 𝘀𝘁𝗮𝗿𝘁𝘀 𝗳𝗿𝗼𝗺 𝗮𝗻𝘀𝘄𝗲𝗿𝘀 - 𝗢𝗽𝗲𝗻𝗔𝗜 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗶𝗼𝗻 𝗺𝗼𝗱𝗲
-
𝘞𝘪𝘭𝘭𝘪𝘢𝘮 𝘎𝘪𝘣𝘴𝘰𝘯’𝘴 𝘶𝘤𝘩𝘳𝘰𝘯𝘪𝘢 𝘪𝘯 𝘵𝘩𝘦 𝘧𝘪𝘦𝘭𝘥 𝘰𝘧 𝘥𝘦𝘴𝘪𝘨𝘯 𝘪𝘴 𝘢𝘣𝘰𝘶𝘵 𝘵𝘰 𝘩𝘢𝘱𝘱𝘦𝘯?
-
You can read here some shared reflections over a good coffee or tea --> lnkd.in/dDjS7cdg
-
Video demo here --> lnkd.in/d2u246QW
-

#cyberpunk #openai #gpt3 #davinci #artificialintelligence #environmentaldesign #aicompletionaideddesign #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #architects #designers #lucianoambrosini

Last updated 1 year ago

Ambrosinus · @lucianoambrosini
0 followers · 3 posts · Server sigmoid.social

𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝘃𝗲𝗿𝘀𝗶𝗼𝗻 𝗼𝗳 𝗢𝗽𝗲𝗻𝗔𝗜 (𝗗𝗔𝗟𝗟-𝗘) 𝗶𝗻𝘀𝗶𝗱𝗲 𝗚𝗿𝗮𝘀𝘀𝗵𝗼𝗽𝗽𝗲𝗿 𝘄𝗶𝘁𝗵 𝗣𝘆𝘁𝗵𝗼𝗻
📣 There are different ways to install and test the new features, so, if you are curious... 🎶
-
✨Have a look here -->lnkd.in/dpBbpTiv
-
🎞️ "Edit mode" video highlights here --> lnkd.in/dWG_27_r
🎞️ "Variation mode" video highlights here --> lnkd.in/d7nG8Pig
-
Enjoy the exploration! ;)

#openai #DALLE2 #img2img #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #prompt #ai #lucianoambrosini

Last updated 1 year ago

Ambrosinus · @lucianoambrosini
0 followers · 2 posts · Server sigmoid.social

𝗦𝘁𝗮𝗯𝗶𝗹𝗶𝘁𝘆𝗔𝗜 (𝗦𝘁𝗮𝗯𝗹𝗲 𝗗𝗶𝗳𝗳𝘂𝘀𝗶𝗼𝗻) 𝗶𝗻𝘀𝗶𝗱𝗲 𝗚𝗿𝗮𝘀𝘀𝗵𝗼𝗽𝗽𝗲𝗿 𝘄𝗶𝘁𝗵 𝗣𝘆𝘁𝗵𝗼𝗻
📣 Thanks to Stability-AI API documentation for Stable Diffusion (v 1.5) by DreamStudio it is possible to integrate into Grasshopper our "prompts to image" process throughout my component "LA_StabilityAI-GH"
-
✨ Have a look here -->lnkd.in/dTyXPigP
🎞️ Video demo here -->lnkd.in/dhmJ7cpN
-
-

#stabilityai #StableDiffusion #DreamStudio #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #ai #lucianoambrosini

Last updated 1 year ago

Ambrosinus · @lucianoambrosini
0 followers · 1 posts · Server sigmoid.social

𝗢𝗽𝗲𝗻𝗔𝗜 (𝗗𝗔𝗟𝗟-𝗘) 𝗶𝗻𝘀𝗶𝗱𝗲 𝗚𝗿𝗮𝘀𝘀𝗵𝗼𝗽𝗽𝗲𝗿 𝘄𝗶𝘁𝗵 𝗣𝘆𝘁𝗵𝗼𝗻

📣Thanks to Open AI API documentation for DALL-E is it possible to integrate into Grasshopper our "prompts to image" process throughout my component "LA_OpenAI-GH" (I am going to update it in my Ambrosinus-Toolkit soon!) - I am still in WIP but... 🎶
-
✨Have a look here -->lnkd.in/dFhTxUDR
-
-
Mahmoud M. Abdelrahman

#openai #DALLE2 #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #prompttoimage #ai #architects #lucianoambrosini

Last updated 1 year ago

Vincent-Xavier · @vincentxavier
852 followers · 4950 posts · Server pouet.chapril.org