<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Miki Tebeka on</title><link>https://www.ardanlabs.com/authors/miki-tebeka/</link><description>Recent content in Miki Tebeka on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 20 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.ardanlabs.com/authors/miki-tebeka/index.xml" rel="self" type="application/rss+xml"/><item><title>RAG in Go: A Vulnerability Research Tool</title><link>https://www.ardanlabs.com/blog/2026/04/rag-in-go-a-vulnerability-research-tool/</link><pubDate>Mon, 20 Apr 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2026/04/rag-in-go-a-vulnerability-research-tool/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;&#10;&lt;p&gt;In &lt;a href="https://www.ardanlabs.com/blog/2026/03/using-tools-a-meeting-scheduler/"&gt;the previous post&lt;/a&gt;, you saw how you can use tools to add information to an LLM query. In this post, we&amp;rsquo;ll see another method of adding information to an LLM called &lt;a href="https://en.wikipedia.org/wiki/Retrieval-augmented_generation"&gt;RAG&lt;/a&gt;, or Retrieval-Augmented Generation.&lt;/p&gt;&#10;&lt;p&gt;The idea of RAG is that you want the LLM to have access to information that wasn&amp;rsquo;t available to it when it was initially trained. You do it by storing documents in your own database along with their &lt;a href="https://en.wikipedia.org/wiki/Embedding_(machine_learning)"&gt;embedding&lt;/a&gt;. I won&amp;rsquo;t go into the technical details of embedding, but think of it as a way to convert a piece of text into a &lt;a href="https://en.wikipedia.org/wiki/Vector"&gt;vector&lt;/a&gt;. The magic is that if two pieces of text have similar meaning, an embedding model can create vectors that mathematically show they are similar.&lt;/p&gt;</description></item><item><title>Using Tools: A Meeting Scheduler</title><link>https://www.ardanlabs.com/blog/2026/03/using-tools-a-meeting-scheduler/</link><pubDate>Mon, 16 Mar 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2026/03/using-tools-a-meeting-scheduler/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;LLMs are great, but they are trained on public data sets. In some cases, you need the LLM to use data that&amp;rsquo;s not publicly available or that&amp;rsquo;s frequently changing. There are several ways to make such data available to LLMs:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Tool/function calls&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Retrieval-augmented_generation"&gt;Retrieval-augmented generation&lt;/a&gt; (aka RAG)&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Model_Context_Protocol"&gt;MCP&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;In coding agents, you can also add skills.&lt;/p&gt;&#10;&lt;p&gt;In this post we&amp;rsquo;ll focus on function calling.&lt;/p&gt;&#10;&lt;h3 id="how-does-it-work"&gt;How Does It Work?&lt;/h3&gt;&#10;&lt;p&gt;When interacting with an LLM, you can provide a description of available tools if the model supports tool calling.&#10;If the LLM reasons that the best answer is to use one of the tools, it will return a reply that contains a tool call with the parameters to use. Then you make the function call and return the answer back to the LLM.&lt;/p&gt;</description></item><item><title>Range-Over Functions in Go</title><link>https://www.ardanlabs.com/blog/2024/04/range-over-functions-in-go.html</link><pubDate>Mon, 16 Feb 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/04/range-over-functions-in-go.html</guid><description>&lt;p&gt;Iteration has long been one of the more fragmented areas of Go, with developers relying on ad hoc patterns to traverse custom data structures. This article explores the range-over-functions experiment, a proposed evolution of the language that introduces a standardized iterator model while preserving Go&amp;rsquo;s familiar for range syntax. Using the new iter package and sequence abstractions, it shows how iteration logic can be expressed more clearly, flexibly, and idiomatically. Originally published in April 2024, the concepts remain highly relevant as Go continues to evolve toward more expressive yet simple language features.&lt;/p&gt;</description></item><item><title>Query Database Using Plain English</title><link>https://www.ardanlabs.com/blog/2026/02/query-database-using-plain-english/</link><pubDate>Wed, 11 Feb 2026 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2026/02/query-database-using-plain-english/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In this post you&amp;rsquo;ll see how you can create a system that allows users to query a relational database using plain English. This allows users not familiar with SQL or business intelligence systems to get insights from data.&lt;/p&gt;&#10;&lt;h3 id="setting-up"&gt;Setting Up&lt;/h3&gt;&#10;&lt;p&gt;If you want to follow along, you&amp;rsquo;ll need to clone the code from &lt;a href="https://github.com/353words/llm-sql"&gt;the GitHub repo&lt;/a&gt;. This will download the code, and the database file containing the data (&lt;code&gt;bikes.ddb&lt;/code&gt;)&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Note: The data is from the &lt;a href="https://www.kaggle.com/datasets/jboysen/austin-bike"&gt;Austin Bike Share dataset&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Getting Friendly With CPU Caches</title><link>https://www.ardanlabs.com/blog/2023/07/getting-friendly-with-cpu-caches.html</link><pubDate>Tue, 21 Oct 2025 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2023/07/getting-friendly-with-cpu-caches.html</guid><description>&lt;p&gt;Understanding how your data structures interact with hardware is one of the most powerful ways to improve application performance. This blogpost explores how CPU caches influence speed and how thoughtful struct design in Go can yield massive gains. Through a real-world case study, it shows how replacing a large embedded array with a slice improved performance by more than 40 times by reducing cache misses and improving data locality. Originally published in July 2023, its lessons remain highly relevant today for developers optimizing for memory efficiency and cache-aware programming.&lt;/p&gt;</description></item><item><title>JSON - The Fine Print: Part 3 - Zero vs Missing Values</title><link>https://www.ardanlabs.com/blog/2025/05/json-the-fine-print-part-3.html</link><pubDate>Mon, 19 May 2025 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2025/05/json-the-fine-print-part-3.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In &lt;a href="https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-1.html"&gt;part 1&lt;/a&gt; we took a higher level view on serialization in general and JSON in specific.&#10;In &lt;a href="https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-2.html"&gt;part 2&lt;/a&gt; we looked at emitting JSON.&lt;/p&gt;&#10;&lt;p&gt;In part 3, we&amp;rsquo;ll look at an issue you might encounter when consuming JSON, Zero vs NULL field values. To clarify the definition of NULL, this means the absence of value.&lt;/p&gt;&#10;&lt;p&gt;So here is the question:&lt;/p&gt;&#10;&lt;p&gt;Given a field in a Go struct set to its zero value, how do you know that zero value was set by the user or it&amp;rsquo;s zero because it was never provided?&lt;/p&gt;</description></item><item><title>JSON - The Fine Print: Part 2 - Emitting JSON</title><link>https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-2.html</link><pubDate>Tue, 04 Feb 2025 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-2.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In &lt;a href="https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-1.html"&gt;part 1&lt;/a&gt; we took a high-level view on serialization and JSON. In this part, we&amp;rsquo;ll roll our sleeves and start working with JSON, focused on emitting JSON. You might think this is a basic topic, but there is much more to it than just calling &lt;code&gt;json.Marshal&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h3 id="jsonmarshal-vs-jsonencoder"&gt;&lt;code&gt;json.Marshal&lt;/code&gt; vs &lt;code&gt;json.Encoder&lt;/code&gt;&lt;/h3&gt;&#10;&lt;p&gt;The &lt;code&gt;encoding/json&lt;/code&gt; package has two main APIs: &lt;code&gt;Marshal&lt;/code&gt; and &lt;code&gt;NewEncoder&lt;/code&gt;. The &lt;code&gt;Marshal&lt;/code&gt; function returns a &lt;code&gt;[]byte&lt;/code&gt; while the &lt;code&gt;NewEncoder&lt;/code&gt; function will write to an &lt;code&gt;io.Writer&lt;/code&gt;. The question is: When should you use one API over the other?&lt;/p&gt;</description></item><item><title>JSON - The Fine Print: Part 1</title><link>https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-1.html</link><pubDate>Wed, 23 Oct 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-1.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;Everybody knows &lt;a href="https://www.json.org/"&gt;JSON&lt;/a&gt;, it&amp;rsquo;s a simple serialization format and the default format for REST APIs. Like many other topics, there are fine points you should know in order to work with JSON more effectively and avoid common mistakes.&lt;/p&gt;&#10;&lt;p&gt;In this article we&amp;rsquo;ll explore some big picture aspects and some low level details of using JSON.&lt;/p&gt;&#10;&lt;h3 id="serialization"&gt;Serialization&lt;/h3&gt;&#10;&lt;p&gt;Before diving into JSON, I&amp;rsquo;d like to take a look at serialization in general and discuss common mistakes I&amp;rsquo;ve seen my customers make.&lt;/p&gt;</description></item><item><title>For Loops and More in Go</title><link>https://www.ardanlabs.com/blog/2024/03/for-loops-and-more-in-go.html</link><pubDate>Tue, 12 Mar 2024 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2024/03/for-loops-and-more-in-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;Looping seems like a basic topic: Write a &lt;code&gt;for&lt;/code&gt; loop with a termination condition, and you&amp;rsquo;re done. However there&amp;rsquo;s a lot of ways you can write a &lt;code&gt;for&lt;/code&gt; loop in Go. Knowing more about the different versions of &lt;code&gt;for&lt;/code&gt; will help you choose the best option to accomplish your tasks and it will help you prevent some bugs.&lt;/p&gt;&#10;&lt;h3 id="some-assembly-required"&gt;Some Assembly Required&lt;/h3&gt;&#10;&lt;p&gt;What kind of code is generated by the compiler for a &lt;code&gt;for&lt;/code&gt; loop? To keep things simple, I will produce the assembly for an empty loop:&lt;/p&gt;</description></item><item><title>Visualizing Map Data with Go and Leaflet JS</title><link>https://www.ardanlabs.com/blog/2023/11/visualizing-map-data-go.html</link><pubDate>Thu, 23 Nov 2023 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2023/11/visualizing-map-data-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;This year I set a personal goal of walking for a total of 1,000 kilometers and I’m proud to say I’m close to hitting that goal. I’ve been tracking all the different routes I take in an app named &lt;a href="https://www.strava.com/dashboard"&gt;Strava&lt;/a&gt;. One nice feature of Strava is that the app provides access to the raw data in a format called &lt;a href="https://en.wikipedia.org/wiki/GPS_Exchange_Format"&gt;GPX&lt;/a&gt;. Starva can visualize the route in their app, but I wanted to try and perform my own visualization. That brought me to this blog post about using &lt;a href="https://leafletjs.com"&gt;Leaflet JS&lt;/a&gt; to plot one of my walks on a map.&lt;/p&gt;</description></item><item><title>Calculating Download MD5 Hash</title><link>https://www.ardanlabs.com/blog/2023/03/calculating-download-md5-in-go.html</link><pubDate>Thu, 09 Mar 2023 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2023/03/calculating-download-md5-in-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;One of the exercises I give to students is to download a single big file over HTTP concurrently using several goroutines using &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests"&gt;HTTP Range&lt;/a&gt; requests. An extra part of the exercise is to validate the downloaded file from a known MD5 signature. This extra part turns out to be interesting, let&amp;rsquo;s have a look.&lt;/p&gt;&#10;&lt;h3 id="getting-download-information"&gt;Getting Download Information&lt;/h3&gt;&#10;&lt;p&gt;Let&amp;rsquo;s make an HTTP HEAD request to get information about a file located in a public dataset stored on Google Cloud Storage (GCS).&lt;/p&gt;</description></item><item><title>Visualization in Go - Plotting Stock Information</title><link>https://www.ardanlabs.com/blog/2022/01/visualizations-in-go.html</link><pubDate>Mon, 17 Jan 2022 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2022/01/visualizations-in-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;You&amp;rsquo;d like to visualize some stock data using Go, but after looking at the Go ecosystem you see very little in charting. You find &lt;a href="https://github.com/gonum/plot"&gt;gonum&lt;/a&gt;, which has some plotting capabilities, but it generates static charts. It&amp;rsquo;s 2022, and you&amp;rsquo;d like to have interactive features such as zooming, panning, and more. You turn to the HTML landscape, and see many more options and decide to take this path. After a short survey, you decide to use &lt;a href="https://plotly.com/javascript/"&gt;plotly&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>GIS in Go</title><link>https://www.ardanlabs.com/blog/2021/11/gis-in-go.html</link><pubDate>Mon, 01 Nov 2021 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2021/11/gis-in-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;You are jogging and want to show off your route to your friends. Let’s imagine the data you have for your route is a CSV file in the following format:&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Listing 1: track.csv&lt;/strong&gt;&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;time,lat,lng,height&#10;2015-08-20 03:48:07.235,32.519585,35.015021,136.1999969482422&#10;2015-08-20 03:48:24.734,32.519606,35.014954,126.5999984741211&#10;2015-08-20 03:48:25.660,32.519612,35.014871,123.0&#10;2015-08-20 03:48:26.819,32.519654,35.014824,120.5&#10;2015-08-20 03:48:27.828,32.519689,35.014776,118.9000015258789&#10;2015-08-20 03:48:29.720,32.519691,35.014704,119.9000015258789&#10;2015-08-20 03:48:30.669,32.519734,35.014657,120.9000015258789&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Listing 1 shows the first few lines of &lt;code&gt;track.csv&lt;/code&gt;. Each line contains a time stamp in &lt;a href="https://en.wikipedia.org/wiki/Coordinated_Universal_Time"&gt;UTC&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/Latitude"&gt;latitude&lt;/a&gt;, &lt;a href="https://en.wikipedia.org/wiki/Longitude"&gt;longitude&lt;/a&gt; and height above sea level in meters.&lt;/p&gt;</description></item><item><title>Extract, Transform, and Load in Go</title><link>https://www.ardanlabs.com/blog/2021/09/extract-transform-load-in-go.html</link><pubDate>Mon, 13 Sep 2021 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2021/09/extract-transform-load-in-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;You are about to visit Boston, and would like to taste some good food. You ask your friend who lives there what are good places to eat. They reply with &amp;ldquo;Everything is good, you can&amp;rsquo;t go wrong&amp;rdquo;. Which makes you think, maybe I should check where &lt;em&gt;not&lt;/em&gt; to eat.&lt;/p&gt;&#10;&lt;p&gt;The data geek in you arises, and you find out that the city of Boson has a &lt;a href="https://data.boston.gov/dataset/food-establishment-inspections"&gt;dataset of food violations&lt;/a&gt;. You download it and decide to have a look.&lt;/p&gt;</description></item><item><title>Data Science in Go: How Much To Tip</title><link>https://www.ardanlabs.com/blog/2021/07/go-data-science-how-much-tip.html</link><pubDate>Tue, 27 Jul 2021 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2021/07/go-data-science-how-much-tip.html</guid><description>&lt;h3 id="the-question"&gt;The Question&lt;/h3&gt;&#10;&lt;p&gt;When you work on data science problems, you always start with a question you&amp;rsquo;re trying to answer. This question will affect the data you pick, your exploration process, and how you interpret the results.&lt;/p&gt;&#10;&lt;p&gt;The question for this article is: How much (in percentage) should you tip your taxi driver?&lt;/p&gt;&#10;&lt;p&gt;To answer the question, we&amp;rsquo;ll use a portion of the &lt;a href="https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page"&gt;NYC Taxi dataset&lt;/a&gt;. The data file we&amp;rsquo;ll be using is &lt;a href="https://github.com/353words/taxi/raw/master/taxi-01-2020-sample.csv.bz2"&gt;taxi-01-2020-sample.csv.bz2&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Using Bitmasks In Go</title><link>https://www.ardanlabs.com/blog/2021/04/using-bitmasks-in-go.html</link><pubDate>Fri, 09 Apr 2021 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2021/04/using-bitmasks-in-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;You write a server for a massively multiplayer online role-playing game (&lt;a href="https://en.wikipedia.org/wiki/Massively_multiplayer_online_role-playing_game"&gt;MMORPG&lt;/a&gt;).&lt;/p&gt;&#10;&lt;p&gt;In the game, players collect keys and you want to design how to store the set of keys each player has.&lt;/p&gt;&#10;&lt;p&gt;As an example, imagine the set of keys are &lt;code&gt;copper&lt;/code&gt;, &lt;code&gt;jade&lt;/code&gt; and &lt;code&gt;crystal&lt;/code&gt;. You consider the following options for storing a player key sets:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;[]string&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;map[string]bool&lt;/code&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Both options will work, but did you consider a third option of using a &lt;a href="https://en.wikipedia.org/wiki/Mask_(computing)"&gt;bitmask&lt;/a&gt;? Using a bitmask will make storing and processing keys more efficient. Once you learn the mechanics, it will be readable and maintainable as well.&lt;/p&gt;</description></item><item><title>Writing Simulations Using Go</title><link>https://www.ardanlabs.com/blog/2021/01/writing-simulations-using-go.html</link><pubDate>Wed, 13 Jan 2021 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2021/01/writing-simulations-using-go.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;&lt;em&gt;If you can write a for-loop, you can do statistics. - Jake Vanderplas&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;A lot of developers shy away from problems which involve statistics or probability. Which is shameful since in today&amp;rsquo;s data-rich environment, you can gain a lot of insights from data.&lt;/p&gt;&#10;&lt;p&gt;In this blog post, I&amp;rsquo;ll show you how to write a simulation tool which requires no knowledge in statistics or probability. Simulations are easy to write and can be a very effective tool in research. You only need some basic programming skills and a random number generator.&lt;/p&gt;</description></item><item><title>Working with SQLite using Go and Python</title><link>https://www.ardanlabs.com/blog/2020/11/working-with-sqlite-using-go-python.html</link><pubDate>Mon, 30 Nov 2020 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2020/11/working-with-sqlite-using-go-python.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;I prefer to use relational (SQL) databases in general since they provide several features that are very useful when working with data. SQLite is a great choice since the database is a single file, which makes it easier to share data. Even though it&amp;rsquo;s a single file, SQLite can handle up to 281 terabytes of data. SQLite also comes with a command line client called &lt;code&gt;sqlite3&lt;/code&gt; which is great for quick prototyping.&lt;/p&gt;</description></item><item><title>Python and Pandas : First Contact with Data</title><link>https://www.ardanlabs.com/blog/2020/11/python-pandas-first-contact-with-data.html</link><pubDate>Mon, 02 Nov 2020 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2020/11/python-pandas-first-contact-with-data.html</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;&lt;em&gt;Every single company I&amp;rsquo;ve worked at and talked to has the same problem without a single exception so far - poor data quality, especially tracking data. Either there&amp;rsquo;s incomplete data, missing tracking data, duplicative tracking data.&lt;/em&gt; - DJ Patil&lt;/p&gt;&#10;&lt;p&gt;I spend a lot of my time digging into data at various companies. Most of the time I’m surprised by what I see and so are the engineers and analysts that work at these companies. I&amp;rsquo;ve seen missing data, bad data, data nobody knows anything about, and many other oddities.&lt;/p&gt;</description></item><item><title>Python and Go : Part IV - Using Python in Memory</title><link>https://www.ardanlabs.com/blog/2020/09/using-python-memory.html</link><pubDate>Tue, 15 Sep 2020 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2020/09/using-python-memory.html</guid><description>&lt;h3 id="series-index"&gt;Series Index&lt;/h3&gt;&#10;&lt;p&gt;&lt;a href="https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html%22"&gt;Python and Go: Part I - gRPC&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/07/extending-python-with-go.html%22"&gt;Python and Go: Part II - Extending Python With Go&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/08/packaging-python-code.html%22"&gt;Python and Go: Part III - Packaging Python Code&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/09/using-python-memory.html%22"&gt;Python and Go: Part IV - Using Python in Memory&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In &lt;a href="https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html"&gt;a previous post&lt;/a&gt; we used &lt;a href="https://grpc.io/"&gt;gRPC&lt;/a&gt; to call Python code from Go. gRPC is a great framework, but there is a performance cost to it. Every function call needs to marshal the arguments using &lt;a href="https://developers.google.com/protocol-buffers"&gt;protobuf&lt;/a&gt;, make a network call over &lt;a href="https://en.wikipedia.org/wiki/HTTP/2"&gt;HTTP/2&lt;/a&gt;, and then un-marshal the result using &lt;code&gt;protobuf&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Python and Go : Part III - Packaging Python Code</title><link>https://www.ardanlabs.com/blog/2020/08/packaging-python-code.html</link><pubDate>Tue, 11 Aug 2020 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2020/08/packaging-python-code.html</guid><description>&lt;h3 id="series-index"&gt;Series Index&lt;/h3&gt;&#10;&lt;p&gt;&lt;a href="https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html%22"&gt;Python and Go: Part I - gRPC&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/07/extending-python-with-go.html%22"&gt;Python and Go: Part II - Extending Python With Go&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/08/packaging-python-code.html%22"&gt;Python and Go: Part III - Packaging Python Code&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/09/using-python-memory.html%22"&gt;Python and Go: Part IV - Using Python in Memory&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In &lt;a href="https://www.ardanlabs.com/blog/2020/07/extending-python-with-go.html"&gt;the previous post&lt;/a&gt; we compiled Go code to a shared library and used it from the Python interactive shell. In this post we&amp;rsquo;re going to finish the development process by writing a Python module that hides the low level details of working with a shared library and then package this code as a Python package.&lt;/p&gt;</description></item><item><title>Python and Go : Part II - Extending Python With Go</title><link>https://www.ardanlabs.com/blog/2020/07/extending-python-with-go.html</link><pubDate>Mon, 06 Jul 2020 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2020/07/extending-python-with-go.html</guid><description>&lt;h3 id="series-index"&gt;Series Index&lt;/h3&gt;&#10;&lt;p&gt;&lt;a href="https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html%22"&gt;Python and Go: Part I - gRPC&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/07/extending-python-with-go.html%22"&gt;Python and Go: Part II - Extending Python With Go&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/08/packaging-python-code.html%22"&gt;Python and Go: Part III - Packaging Python Code&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/09/using-python-memory.html%22"&gt;Python and Go: Part IV - Using Python in Memory&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In &lt;a href="https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html"&gt;the previous post&lt;/a&gt; we saw how a Go service can call a Python service using gRPC. Using gRPC to connect a Go and Python program together can be a great choice, but there’s a complexity price that goes with it. You need to manage one more service, deployment becomes more complex, and you need monitoring plus alerting for each service. Compared to a monolithic application, there is an order of magnitude more complexity.&lt;/p&gt;</description></item><item><title>Python and Go : Part I - gRPC</title><link>https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html</link><pubDate>Mon, 08 Jun 2020 00:00:00 +0000</pubDate><guid>https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html</guid><description>&lt;h3 id="series-index"&gt;Series Index&lt;/h3&gt;&#10;&lt;p&gt;&lt;a href="https://www.ardanlabs.com/blog/2020/06/python-go-grpc.html%22"&gt;Python and Go: Part I - gRPC&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/07/extending-python-with-go.html%22"&gt;Python and Go: Part II - Extending Python With Go&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/08/packaging-python-code.html%22"&gt;Python and Go: Part III - Packaging Python Code&lt;/a&gt;&lt;br&gt;&#10;&lt;a href="https://www.ardanlabs.com/blog/2020/09/using-python-memory.html%22"&gt;Python and Go: Part IV - Using Python in Memory&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;Like tools, programming languages tend to solve problems they are designed to. You &lt;em&gt;can&lt;/em&gt; use a knife to tighten a screw, but it&amp;rsquo;s better to use a screwdriver. Plus there is less chance of you getting hurt in the process.&lt;/p&gt;</description></item></channel></rss>