<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql" -->

---
title: This is Better Than Protobuf | daily.dev
description: ASN.1 is a data serialization standard from 1984 that predates Protocol Buffers and solves similar problems. The libtasn1 library allows parsing ASN.1 schema...
canonical: https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: This is Better Than Protobuf | daily.dev
og:description: ASN.1 is a data serialization standard from 1984 that predates Protocol Buffers and solves similar problems. The libtasn1 library allows parsing ASN.1 schema...
og:url: https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql
og:image: https://api.daily.dev/og/posts/CEADgHwqL.png
og:image:alt: This is Better Than Protobuf
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# This is Better Than Protobuf

**[Tsoding Daily](https://daily.dev/sources/tsoding_daily)** · 103 min read · 30 upvotes · 1 comments

## Summary

ASN.1 is a data serialization standard from 1984 that predates Protocol Buffers and solves similar problems. The libtasn1 library allows parsing ASN.1 schema definitions at runtime to create serializers/deserializers without code generation. The API lets you define data structures in .asn files, parse them into an internal tree representation, create elements, set values, and encode/decode binary data. While the core concept is elegant—runtime schema parsing with dynamic introspection—the implementation has quirks like inconsistent naming conventions, poorly documented APIs, buffer overflow risks, and unusual type handling (booleans as null-terminated strings). Despite rough edges typical of legacy GNU projects, the approach offers more flexibility than Protobuf's code generation model.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=wZQvuILq0xw>

## Community discussion

Top comments from developers on daily.dev.

**@a\_meb\_a** · 0 upvotes

> yeah

## Similar posts on daily.dev

- [Better than JSON](https://daily.dev/posts/better-than-json-d2je9kyed) · Hacker News · 250 upvotes · 22 comments
- [Packing Binary Is Fun, Actually](https://daily.dev/posts/packing-binary-is-fun-actually-mjoiqneoh) · Programming Digest · 0 upvotes · 0 comments
- [An introduction to Compact Binary Object Notation \(CBOR\) in .NET](https://daily.dev/posts/an-introduction-to-compact-binary-object-notation-cbor-in-net-hdpahhhp2) · .NET Escapades · 1 upvotes · 0 comments
- [Protobuf-ES just got a lot faster · Buf](https://daily.dev/posts/protobuf-es-just-got-a-lot-faster-buf-rcovndatq) · Buf Blog · 18 upvotes · 1 comments
- [Evolutionary Data Through Schemaboi: Achieving Forward, Backwards, and Sideways Compatibility](https://daily.dev/posts/evolutionary-data-through-schemaboi-achieving-forward-backwards-and-sideways-compatibility-vnkox1i6x) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#c](https://daily.dev/tags/c)

[View this post on daily.dev](https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"This is Better Than Protobuf","url":"https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql"},"datePublished":"2026-01-16T14:19:06.493Z","dateModified":"2026-01-16T14:19:32.486Z","description":"ASN.1 is a data serialization standard from 1984 that predates Protocol Buffers and solves similar problems. The libtasn1 library allows parsing ASN.1 schema...","image":"https://i.ytimg.com/vi/wZQvuILq0xw/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/wZQvuILq0xw/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Tsoding Daily","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Tsoding Daily","logo":"https://media.daily.dev/image/upload/s--6msWm9pp--/f_auto/v1728806157/logos/tsoding_daily","url":"https://daily.dev/sources/tsoding_daily"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":30},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"backend,c","timeRequired":"PT103M","video":{"@type":"VideoObject","name":"This is Better Than Protobuf","description":"ASN.1 is a data serialization standard from 1984 that predates Protocol Buffers and solves similar problems. The libtasn1 library allows parsing ASN.1 schema...","thumbnailUrl":"https://i.ytimg.com/vi/wZQvuILq0xw/sddefault.jpg","uploadDate":"2026-01-16T14:19:06.493Z","duration":"PT103M","url":"https://api.daily.dev/r/CEADgHwqL","embedUrl":"https://www.youtube.com/embed/wZQvuILq0xw"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tsoding Daily","item":"https://daily.dev/sources/tsoding_daily"},{"@type":"ListItem","position":3,"name":"This is Better Than Protobuf"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/this-is-better-than-protobuf-ceadghwql","comment":[{"@type":"Comment","text":"yeah","datePublished":"2026-02-21T12:04:10.252Z","url":"https://daily.dev/posts/CEADgHwqL#c-0DaTdvpZC","author":{"@type":"Person","name":"Phillippe Michel Weir","url":"https://daily.dev/a_meb_a","image":"https://media.daily.dev/image/upload/s--BwH-uTMq--/f_auto/v1740136991/avatars/avatar_N403VFK9lAHNRwlSAhl1h"}}]}
```

