Another #Python (or should I say #CPython) 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.
Pora na kolejną okresową przypominajkę, że #GitHub 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".
https://github.com/agronholm/cbor2/issues/171#issuecomment-1703834609
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 😵💫
#cpython #cython #numpy #python
Job Alert: @ThePSF is seeking a full-time CPython Developer in Residence. Learn more about the position and apply now on #OSJobHub https://opensourcejobhub.com/job/8533/deputy-cpython-developer-in-residence/ #jobs #career #PSF #Python #CPython #developer #SoftwareDevelopment #OpenSource #remote
#OSJobHub #jobs #career #psf #python #cpython #developer #softwaredevelopment #opensource #remote
Looking at a #CPython feature request from a few years ago (as one does) for iterating over extended grapheme clusters, and suddenly a wild @manishearth appears 😁
Hey there, #Python310 users. If you're looking for Python 3.10.12 installers for #Windows, look no further.
We've got you covered.
You may download them from our #cpython fork:
Our next #Stockholm #Python meetup will be on 7th, from 5:30pm in the #SUNET office. We will sit down and learn how to build #CPython itself. Hoping to get more people excited about contributing to the language itself.
#stockholm #python #Sunet #cpython #community #upstream
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 🇺🇲🐍
#PyCon #PyConUS #CPython #Python #PythonSpeakingTour
CC @pycon @Microsoft @brettcannon
#pycon #pyconus #cpython #python #pythonspeakingtour
Ł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 ⚡
#Python #GIL #SharedMemory #AsyncIO #CPython #PyCon #PyConUS #PyCon2023 #PyConUS2023 #PythonSpeakingTour
#python #gil #sharedmemory #asyncio #cpython #pycon #pyconus #pycon2023 #pyconus2023 #pythonspeakingtour
@aegilops For a while #IronPython appeared to be "stuck" in 2.7 just like #Jython, but in December they released version 3.4 and they've ported f-strings from #CPython 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.
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.
#sneakpeek #AmbrosinusToolkit #DEV #Grasshopper #csharp #CPython #Python #coding #Rhino #api #design #craftsman #tools #ai #stablediffusion #ControlNET #lucianoambrosini
#sneakpeek #ambrosinustoolkit #dev #grasshopper #csharp #cpython #Python #coding #rhino #API #design #craftsman #tools #ai #StableDiffusion #controlnet #lucianoambrosini
𝗔𝗜 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗶𝗼𝗻-𝗔𝗶𝗱𝗲𝗱 𝗗𝗲𝘀𝗶𝗴𝗻 𝘀𝘁𝗮𝗿𝘁𝘀 𝗳𝗿𝗼𝗺 𝗮𝗻𝘀𝘄𝗲𝗿𝘀 - 𝗢𝗽𝗲𝗻𝗔𝗜 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗶𝗼𝗻 𝗺𝗼𝗱𝗲
-
𝘞𝘪𝘭𝘭𝘪𝘢𝘮 𝘎𝘪𝘣𝘴𝘰𝘯’𝘴 𝘶𝘤𝘩𝘳𝘰𝘯𝘪𝘢 𝘪𝘯 𝘵𝘩𝘦 𝘧𝘪𝘦𝘭𝘥 𝘰𝘧 𝘥𝘦𝘴𝘪𝘨𝘯 𝘪𝘴 𝘢𝘣𝘰𝘶𝘵 𝘵𝘰 𝘩𝘢𝘱𝘱𝘦𝘯?
-
You can read here some shared reflections over a good coffee or tea --> https://lnkd.in/dDjS7cdg
-
Video demo here --> https://lnkd.in/d2u246QW
-
#cyberpunk #openai #gpt3 #davinci #artificialintelligence
#environmentaldesign #AICompletionAidedDesign #AmbrosinusToolkit #DEV #Grasshopper #CPython #coding #rhino #architects #designers #lucianoambrosini
#cyberpunk #openai #gpt3 #davinci #artificialintelligence #environmentaldesign #aicompletionaideddesign #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #architects #designers #lucianoambrosini
𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝘃𝗲𝗿𝘀𝗶𝗼𝗻 𝗼𝗳 𝗢𝗽𝗲𝗻𝗔𝗜 (𝗗𝗔𝗟𝗟-𝗘) 𝗶𝗻𝘀𝗶𝗱𝗲 𝗚𝗿𝗮𝘀𝘀𝗵𝗼𝗽𝗽𝗲𝗿 𝘄𝗶𝘁𝗵 𝗣𝘆𝘁𝗵𝗼𝗻
📣 There are different ways to install and test the new features, so, if you are curious... 🎶
-
✨Have a look here -->https://lnkd.in/dpBbpTiv
-
🎞️ "Edit mode" video highlights here --> https://lnkd.in/dWG_27_r
🎞️ "Variation mode" video highlights here --> https://lnkd.in/d7nG8Pig
-
Enjoy the exploration! ;)
#openai #dalle2 #img2img #AmbrosinusToolkit #DEV #Grasshopper #CPython #coding #rhino #prompt #ai #lucianoambrosini
#openai #DALLE2 #img2img #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #prompt #ai #lucianoambrosini
𝗦𝘁𝗮𝗯𝗶𝗹𝗶𝘁𝘆𝗔𝗜 (𝗦𝘁𝗮𝗯𝗹𝗲 𝗗𝗶𝗳𝗳𝘂𝘀𝗶𝗼𝗻) 𝗶𝗻𝘀𝗶𝗱𝗲 𝗚𝗿𝗮𝘀𝘀𝗵𝗼𝗽𝗽𝗲𝗿 𝘄𝗶𝘁𝗵 𝗣𝘆𝘁𝗵𝗼𝗻
📣 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 -->https://lnkd.in/dTyXPigP
🎞️ Video demo here -->https://lnkd.in/dhmJ7cpN
-
-
#stabilityai #stablediffusion #DreamStudio #AmbrosinusToolkit #DEV #Grasshopper #CPython #coding #rhino #ai #lucianoambrosini
#stabilityai #StableDiffusion #DreamStudio #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #ai #lucianoambrosini
𝗢𝗽𝗲𝗻𝗔𝗜 (𝗗𝗔𝗟𝗟-𝗘) 𝗶𝗻𝘀𝗶𝗱𝗲 𝗚𝗿𝗮𝘀𝘀𝗵𝗼𝗽𝗽𝗲𝗿 𝘄𝗶𝘁𝗵 𝗣𝘆𝘁𝗵𝗼𝗻
📣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 -->https://lnkd.in/dFhTxUDR
-
-
#openai #dalle2 #AmbrosinusToolkit #DEV #Grasshopper #CPython Mahmoud M. Abdelrahman #coding #rhino #prompttoimage #ai #architects #lucianoambrosini
#openai #DALLE2 #ambrosinustoolkit #dev #grasshopper #cpython #coding #rhino #prompttoimage #ai #architects #lucianoambrosini
Perf engineering with Python 3.12
https://www.petermcconnell.com/posts/perf_eng_with_py12/
#flamegraph #performance #perf #cpython #linux #python