@sirJimmy · Post #28902 · 02.05.2022 г., 16:04
A moment of patience in a moment of anger, prevents thousands of moments of regret. #truewisdom #selfmotivation #sirjimmy #teamjimmy
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #396 · 9 окт.
7.09.2025 состоялся релизPithon 3.14! На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками. Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный. Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0 Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает: ▫️ соберет релизный Python 3.14 в новый Docker-образ ▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter) ▫️ распечатает результаты Тест очень простой, усложняйте сами) Вот какие результаты у меня: === Running ThreadPoolExecutor GIL ON TOTAL TIME: 45.48 seconds === Running ThreadPoolExecutor GIL OFF TOTAL TIME: 6.14 seconds === Running basic Thread GIL ON TOTAL TIME: 45.54 seconds === Running basic Thread GIL OFF TOTAL TIME: 4.74 seconds === Running with Multi Interpreter TOTAL TIME: 18.30 seconds Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами. Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵💫, нас учили не так! Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL. Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется. Отдельно я затестил память и вот что вышло на 32 потока: ThreadPoolExecutor GIL ON 305.228 MB ThreadPoolExecutor GIL OFF 500.176 MB basic Thread GIL ON 90.668 MB basic Thread GIL OFF 472.444 MB with Multi Interpreter 1267.788 MB Пока не знаю как к этому относиться) В целом - радует направление развития! #release
Hashtags
Пребарај: #truewisdom
@sirJimmy · Post #28902 · 02.05.2022 г., 16:04
A moment of patience in a moment of anger, prevents thousands of moments of regret. #truewisdom #selfmotivation #sirjimmy #teamjimmy
@englishmeta1 · Post #250 · 26.06.2024 г., 10:40
Question ppl ask me often How can I improve my writing skills? Here is my reply Improving your writing skills is a valuable endeavor that can benefit you in many areas of life. Here are several strategies you can use to become a better writer: 1. Read Regularly: - Diverse Materials: Read a variety of genres, including fiction, non-fiction, journalism, and academic papers. This exposes you to different styles and vocabularies. - Analyzing: Pay attention to how authors construct sentences, develop ideas, and build arguments. Reflect on what makes their writing effective or ineffective. 2. Write Daily: - Journaling: Keep a daily journal to practice writing regularly. It doesn’t have to be formal; the goal is to make writing a habit. - Prompts: Use writing prompts to challenge yourself and spark creativity. Websites and books often offer daily prompts. 3. Learn the Basics: - Grammar and Syntax: Brush up on grammar and syntax rules. Resources like "The Elements of Style" by Strunk and White can be very useful. - Vocabulary: Expand your vocabulary through reading and using tools like a thesaurus. 4. Seek Feedback: - Peer Review: Share your writing with friends, colleagues, or writing groups to get constructive feedback. - Professional Feedback: Consider hiring a writing coach or taking a writing course. 5. Revise and Edit: - Multiple Drafts: Don’t be afraid to write multiple drafts. Revision is a crucial part of the writing process. - Editing: Learn to edit your work critically. Look for clarity, coherence, conciseness, and correctness. 6. Study Writing Techniques: - Workshops and Courses: Enroll in writing workshops or online courses. Websites like Coursera, Udemy, and edX offer courses on various aspects of writing. - Books on Writing: Read books about writing, such as "On Writing" by Stephen King or "Bird by Bird" by Anne Lamott. 7. Practice Different Styles: - Genres: Experiment with different genres (e.g., poetry, essays, short stories, technical writing) to find your strengths and preferences. - Perspectives: Write from different perspectives and in various voices to develop versatility. 8. Use Writing Tools: - Software: Use tools like Grammarly, Hemingway Editor, or ProWritingAid to help with grammar and style. - Outlining: Use outlining tools to organize your thoughts before you start writing. 9. Stay Motivated: - Set Goals: Set specific, achievable writing goals (e.g., write 500 words a day, complete a short story in a month). - Celebrate Progress: Acknowledge and celebrate your progress to stay motivated. 10. Read Aloud: - Hearing Your Writing: Reading your work aloud can help you catch errors and awkward phrasing that you might miss when reading silently. Improving your writing skills is a continuous process, and persistence is key. By integrating these strategies into your routine, you'll gradually become a more confident and effective writer. #sirjimmy#teamjimmy#writingskills#englishmadeeasy#truewisdom
@sirjimmy · Post #31107 · 26.06.2024 г., 08:19
Question ppl ask me often How can I improve my writing skills? Here is my reply Improving your writing skills is a valuable endeavor that can benefit you in many areas of life. Here are several strategies you can use to become a better writer: 1. Read Regularly: - Diverse Materials: Read a variety of genres, including fiction, non-fiction, journalism, and academic papers. This exposes you to different styles and vocabularies. - Analyzing: Pay attention to how authors construct sentences, develop ideas, and build arguments. Reflect on what makes their writing effective or ineffective. 2. Write Daily: - Journaling: Keep a daily journal to practice writing regularly. It doesn’t have to be formal; the goal is to make writing a habit. - Prompts: Use writing prompts to challenge yourself and spark creativity. Websites and books often offer daily prompts. 3. Learn the Basics: - Grammar and Syntax: Brush up on grammar and syntax rules. Resources like "The Elements of Style" by Strunk and White can be very useful. - Vocabulary: Expand your vocabulary through reading and using tools like a thesaurus. 4. Seek Feedback: - Peer Review: Share your writing with friends, colleagues, or writing groups to get constructive feedback. - Professional Feedback: Consider hiring a writing coach or taking a writing course. 5. Revise and Edit: - Multiple Drafts: Don’t be afraid to write multiple drafts. Revision is a crucial part of the writing process. - Editing: Learn to edit your work critically. Look for clarity, coherence, conciseness, and correctness. 6. Study Writing Techniques: - Workshops and Courses: Enroll in writing workshops or online courses. Websites like Coursera, Udemy, and edX offer courses on various aspects of writing. - Books on Writing: Read books about writing, such as "On Writing" by Stephen King or "Bird by Bird" by Anne Lamott. 7. Practice Different Styles: - Genres: Experiment with different genres (e.g., poetry, essays, short stories, technical writing) to find your strengths and preferences. - Perspectives: Write from different perspectives and in various voices to develop versatility. 8. Use Writing Tools: - Software: Use tools like Grammarly, Hemingway Editor, or ProWritingAid to help with grammar and style. - Outlining: Use outlining tools to organize your thoughts before you start writing. 9. Stay Motivated: - Set Goals: Set specific, achievable writing goals (e.g., write 500 words a day, complete a short story in a month). - Celebrate Progress: Acknowledge and celebrate your progress to stay motivated. 10. Read Aloud: - Hearing Your Writing: Reading your work aloud can help you catch errors and awkward phrasing that you might miss when reading silently. Improving your writing skills is a continuous process, and persistence is key. By integrating these strategies into your routine, you'll gradually become a more confident and effective writer. #sirjimmy#teamjimmy#writingskills#englishmadeeasy#truewisdom