Dr. Larry Gray

1K posts

Dr. Larry Gray

Dr. Larry Gray

@LarryGray

Director of Machine Learning Engineering @KungfuAI Core Contributor @scikit_yb. Loves Reggae and the idea of surfing. Board of Directors @numfocus

Highland, UT Katılım Haziran 2007
490 Takip Edilen310 Takipçiler
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
Did you know? 🌌🎬 Python played a role in creating the visual effects for Movies dating back to the early 90s. #PythonInMovies
English
0
0
1
107
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
🐍💼 Did you know in Python, functions are like VIPs at a concert? 🎤🌟 They're called first-class functions! Why? Because in Python, functions get the red-carpet treatment. 👉 Here's what makes them 'first-class': You can pass them around like party invites 💌 - assign them to variables, or pass them as arguments to other functions. They can return from other functions like a boomerang comes back to you You can modify them on the fly, just like adding a filter to your favorite selfie * Example Time: Let's say we have a function print_greeting that says "Hello!". We can pass this function to another function greet_twice to double the fun! def print_greeting(): print("Hello!") def greet_twice(func): func() func() greet_twice(print_greeting) Output: Hello! Hello! This flexibility makes Python super versatile. It's like having a Swiss Army Knife in your toolkit! Next time you code in Python, remember - functions are not just lines of code, they're the stars of the show! If you like my posts, please follow me for more. #Python #Programming #CodeFun #FirstClassFunctions
English
0
0
0
101
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
⚠️🐍 Attention Pythonistas! 🚀 Ned Batchelder has crafted an insightful note on default values in functions, highlighting how they can sometimes yield surprising results. 🤔💡 Definitely worth a quick read for a deeper understanding. 🔗 Check it out here: Ned Batchelder's Blog on Default Values in Python Functions nedbatchelder.com/blog/202311/sa… If you like my posts and want to see more of them, just follow me. #Python #ProgrammingTips #NedBatchelder #PythonDefaults 📘👨‍💻🔍
English
0
0
0
124
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
Educate: pythonspeed.com/articles/two-t… 🌐 "Exploring Dual Thread Pools in Python for Optimal Performance" by Itamar Turner-Trauring 🚀 🤔 Ever wondered why you need different thread pools for efficient data processing in Python? Let's dive in! 🐍 1️⃣ CPU-bound tasks: Maximize your CPU! If you have 8 cores, use 8 threads to fully utilize them. More than that? You might face slowdowns due to context switching. 🖥️ 2️⃣ Network-bound tasks: Here, CPU cores aren't the focus. It's all about handling multiple network operations concurrently. Async loops like asyncio work well, but sometimes threads are needed. Think requests to a server! 🌍 🔁 Mixing CPU and Network-bound tasks? Don't stick to just one thread pool. Have one for CPU tasks (sized by core number) and another for network tasks (sized by concurrency level). This approach prevents resource limit hits and ensures efficiency. 🔄 🧐 Remember, each application has unique needs. Use these insights as a starting point for optimizing your Python data processing jobs. 💡 Happy coding! 👨‍💻 #Python #ParallelProcessing #ThreadPools #DataProcessing #PerformanceOptimization
English
0
0
0
73
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
Did you know? 🤣 The name 'Python' is inspired not by the snake, but from the British comedy group Monty Python. #FunFact #Python
English
0
0
0
48
Dr. Larry Gray retweetledi
Aisha Belamo
Aisha Belamo@AishaXBello·
The python Africa community has sent an open letter to @ThePSF . We raise concerns over issues that have negatively affected our communities and many of us feel hurt. Please take a moment to understand where we are coming from: pythonafrica.blogspot.com/2023/12/an-ope…
English
27
117
226
56.3K
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
How seasoned are you in Python?
English
0
0
1
55
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
🚀 Exciting Update on "Mastering Python"! 🐍 Hello, X community! I'm thrilled to share that I'm nearing the completion of Chapter 3 of my upcoming book, "Mastering Python". This journey has been incredibly enriching, and I can't wait to bring this comprehensive guide to all of you. But that's not all – once Chapter 4 is finalized and the technical reviews are in, "Mastering Python" will be officially available for pre-order! This is a big milestone, and your support means the world to me. Want to be the first to know when pre-orders go live? Sign up now to get notified! Plus, as a token of my appreciation, early subscribers will receive an exclusive sneak peek at Chapter 1. This is your chance to get a head start on mastering Python. 👉 Sign up here: bit.ly/3QPnAyZ Thank you for being part of this exciting journey. Stay tuned for more updates and get ready to elevate your Python skills with "Mastering Python"! #Python #Programming #BookLaunch #PreOrder #TechCommunity #developer #morioh #programmer #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming #pythonquiz #ai #ml #machinelearning #datascience
English
0
0
0
47
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
🔥🔥 BLACK FRIDAY FIRE SALE! 🔥🔥Attention, aspiring Python programmers! 🐍 Whether you're taking your first steps in coding or looking to solidify your foundation, I've got the perfect deal for you this Black Friday! 🛍️ Grab the FREE deal now! 🛍️ bit.ly/49JNZqF Introducing my FREE Udemy Course: 🎓 "Easy Python Programming for Absolute Beginners" 🎓 For a limited time only, grab this course at an unbeatable price! Dive into the world of Python with clear, step-by-step lessons designed specifically for beginners. Don't miss out on this opportunity to jumpstart your Python journey. Share with friends, colleagues, and anyone who's ever been curious about coding! #BlackFriday #UdemyCourse #PythonProgramming #LearnPython #python #programming #developer #morioh #programmer #softwaredeveloper #computerscience #webdev #webdeveloper #webdevelopment #pythonprogramming #pythonquiz #ai #ml #machinelearning #datascience
English
0
0
0
53
Dr. Larry Gray
Dr. Larry Gray@LarryGray·
The Real Python Podcast – Episode #180: Studying Python Software Architecture & Creating Lambda Expressions loom.ly/QNPLJGE
English
0
0
0
33