Python Trending Weekly
ISSUE 76

Implementing BASIC in 50 Lines of Python Code

2024-11-09 Season 3

TL;DR

A BASIC interpreter in 50 lines of Python, GitHub's Octoverse crowning Python the platform's most popular language, and Django Girls celebrating its tenth birthday.

Articles 11 Projects 12
🦄

Articles & Tutorials

× 11
01 Tiny Great Languages: Assembly zserge.com

The author attempts to implement classic small programming languages in about 50 lines of Python code each, including Assembly (one of the oldest programming languages), 1970s BASIC, Forth/MOUSE, Lisp 1.5, APL/K, PL/0, and more. The series of articles introduces the implementation process and main principles.

02 Django Girls Blog — It's our 10th birthday! blog.djangogirls.org

The Django Girls organization started in 2014 and is now celebrating its 10th birthday! Over the past decade, 2,467 volunteers from 109 countries/regions have organized 1,137 free workshops, with over 24,500 women from 593 cities participating in these events.

03 Introducing venvstacks: layered Python virtual environments lmstudio.ai

venvstacks is a venv-based project that divides Python virtual environments into three layers (runtime layer, framework layer, application layer), with each layer independently archived and released. It's suitable for complex projects or situations where dependencies need to be shared between different components. (See also: The Origin of venvstacks)

04 Don't return named tuples in new APIs snarky.ca

The article recommends avoiding named tuples as return values in APIs because they support both index-based and attribute-based data access, adding unnecessary complexity. The recommended approach is to use clearer data structures like data classes or typed dictionaries.

05 Thoughts on Django's Core buttondown.com

Django will turn 20 next year, and the author reflects on various topics about Django, including why it has remained healthy and long-lived, the evolution of the core team, Django's key pillars, challenges in adding new features, major upcoming features, and Django's relationship with its ecosystem.

06 State of Python 3.13 Performance: Free-Threading codspeed.io

How to use the free-threading feature introduced in Python 3.13, and what impact does it have on Python application performance? The article compares the performance of different concurrency models through multi-threaded and multi-process implementations of the PageRank algorithm.

07 A Comprehensive Guide to Python Project Management and Packaging: Concepts Illustrated with uv – Part I reinforcedknowledge.com

A comprehensive guide to Python project management and packaging, demonstrated using the currently popular tool uv, covering topics like using pyproject.toml, entry points, the differences between modules, packages, projects, and libraries, dependencies, dependency groups, dependency object identifiers, locking and synchronization, and more.

08 How to use cProfile and snakeviz to profile Python code jamesg.blog

Introduces how to use cProfile from the standard library to analyze code performance and generate flame graphs for visualization using snakeviz. Explains how to read and understand flame graphs, identify performance bottlenecks through them, and demonstrates performance optimization workflows with examples.

09 Python Tips and Tricks for Efficient Coding medium.com

How to improve Python programming efficiency and productivity? This lengthy article shares 21 Python programming tips and tricks, mostly beginner-level content but with comprehensive examples and explanations.

10 39 Lessons on Building ML Systems, Scaling, Execution, and More eugeneyan.com

The author's reflections from the 2024 Machine Learning Conference on ML systems development, scaling, execution and collaboration, user relationships, conference activities, and more.

11 Octoverse: AI leads Python to top language as the number of global developers surges github.blog

GitHub released this year's Octoverse report, revealing the current state and trends of the global developer community. Driven by the AI boom and machine learning, Python has finally surpassed JavaScript to claim the top spot. (India is projected to become the largest developer community on GitHub by 2028.)

🐿️

Projects & Resources

× 12
01 ranger: A VIM-inspired filemanager for the console github.com

A minimalist file manager in the console that supports directory hierarchy, multi-pane view modes, common file operations, batch renaming, automatic file type detection and execution with appropriate programs, tabs, bookmarks, mouse operations, and more. (15.6K stars)

ranger: A VIM-inspired filemanager for the console
02 libcom: Image composition toolbox github.com

Composites foreground images into background images realistically, eliminating inconsistencies between them, enabling image blending, coordinated drawing, shadow generation, and more. Aims to solve all problems related to image composition.

03 go-python: Write Python in Go - The most intuitive Python wrapper for Golang github.com

Supports calling Python from Go (basic types, modules, functions) and calling Go from Python (exporting Go functions/structs to Python), with basic testing using common libraries (matplotlib, gradio).

04 code-embedder: Keep your code snippets in README up-to-date! github.com

A GitHub Action that automatically updates code snippets in specified sections of Markdown files without manual intervention.

05 toolgit: Git Productivity Toolkit github.com

Contains a series of subcommands that extend Git functionality, making your Git workflow smoother.

06 tinylangs: Real programming languages in 50 lines of code github.com

Implements programming languages like Assembly, BASIC, Lisp, MOUSE, TCL, k/simple interpreter, and PL/0 interpreter in less than 50 lines of Python code each.

07 hertz-dev: first base model for full-duplex conversational audio github.com

Applied to real-time communication scenarios like phone calls, video conferences, and voice chats. (1.2K stars)

08 diagrams: Diagram as Code for prototyping cloud system architectures github.com

Draw cloud system architectures with Python code, enabling prototyping without other design tools. Supports cloud providers like AWS, Azure, GCP, Kubernetes, Alibaba Cloud, Oracle Cloud, and more. (39K stars)

diagrams: Diagram as Code for prototyping cloud system architectures
09 NoteFlow: A lightweight note-taking application github.com

A lightweight, Markdown-based note-taking application with task management features. Converts Markdown files into modern web interfaces, supporting tasks, images, and code snippets.

10 docling: Get your documents ready for gen AI github.com

Reads popular document formats (PDF, DOCX, PPTX, images, HTML, AsciiDoc, Markdown) and exports them as Markdown and JSON. Supports scanned PDFs and PDF document understanding, including page layout, reading order, and tables. (7.3K stars)

11 LibreTranslate: Free and Open Source Machine Translation API github.com

A free and open-source machine translation API, fully self-hosted and supporting offline usage. The translation engine is the open-source Argos Translate library, with no dependency on proprietary providers like Google or Azure. (9.6K stars)

12 docetl: A system for agentic LLM-powered data processing and ETL github.com

A tool for creating and executing data processing pipelines, suitable for complex document processing tasks. It provides a low-code, declarative YAML interface for defining LLM-powered complex data operations. (1.2K stars)

ESC
↑↓ select · ↵ open175 issues