|
🔗 Stories, Tutorials & Articles |
|
|
|
Python Linter Comparison 2022 |
|
|
Pylint vs Pyflakes vs Flake8 vs autopep8 vs Bandit vs Prospector vs Pylama vs Pyroma vs Black vs Mypy vs Radon vs mccabe |
|
|
|
|
|
|
Ten histories of Python, mimicking the writing styles of others |
|
|
The author of this post asked ChatGPT for the history of the Python programming language several times, and each time he got back variations on the same kernels of fact, expressed in ten distinctive literary voices, both contemporary and historical. |
|
|
|
|
|
|
I/O is no longer the bottleneck |
|
|
In 2022, reading from a file is very fast, faster than the processing and parsing of the input. Therefore, the performance bottleneck in a program that counts word frequencies is the processing and parsing of the input and the associated memory allocations, not the I/O. The author provides some examples of time measurements for different stages of the process in both Python and Go, and explains that the optimized Go version is significantly faster than the others. |
|
|
|
|
|
|
When Python can’t thread: a deep-dive into the GIL’s impact |
|
|
Python’s Global Interpreter Lock (GIL) stops threads from running in parallel or concurrently. Learn how to determine impact of the GIL on your code. |
|
|
|
|
|
|
Question Answering System in Python using NLP |
|
|
The article discusses the creation of a simple question-answering system using Python and natural language processing (NLP). The system is trained on a pre-collected corpus of data on specific topics and is able to provide relevant answers to questions within that range. The article explains the steps involved in creating the system, including document and passage retrieval, and provides the code for a sample implementation. |
|
|
|
|