Home / Companies / Datadog / Blog / Post Details
Content Deep Dive

Cgo and Python

Blog post from Datadog

Post Details
Company
Date Published
Author
Massimiliano Pippi
Word Count
2,452
Company Posts That Month
18
Language
English
Hacker News Points
3
Post removed?
No
Summary

The new Datadog Agent is written in Go, with Python used for checks. This is possible because the Datadog Agent embeds a CPython interpreter that can be called whenever it needs to execute Python code. Embedding Python in a Go application has several benefits, such as gradually moving portions of an existing Python project to a new language without losing any functionality during the process and reusing existing Python software or libraries without re-implementing them in the new language. The Global Interpreter Lock (GIL) poses a challenge when it comes to embedding Python, but solutions like explicitly invoking the GIL and using the LockOSThread function from the runtime package can help manage this issue.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 8 25 9 8 +525%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.