# Building a Native C# Implementation of the CEL Engine for .NET

Original title: Building a native C# implementation of CEL engine

> Hacker News story 49074842 · language: en · submitted 2026-07-27
> Web version: https://zeli.app/story/49074842
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 58 · by [jackedEngineer](<https://news.ycombinator.com/user?id=jackedEngineer>) · 💬 13
[original](<https://bsid.io/writing/building-a-cel-engine-for-net>) · [HN discussion](<https://news.ycombinator.com/item?id=49074842>)

## Summary

I built Celly, a pure managed C# implementation of Google's Common Expression Language that passes the full conformance suite. By avoiding WebAssembly or native bindings, I created a safe, high-performance policy engine for .NET. This project also enabled the first protovalidate library for the platform, allowing developers to enforce validation rules directly in their applications without redeploying code.

## Key quote

> The trick is that CEL gives you just enough language to express real logic and deliberately withholds everything that would make it dangerous.

## HN discussion (13 comments)

### [akshayshah](<https://news.ycombinator.com/item?id=49112172>)

> I'm surprised (without any particular positive/negative valence) that the article doesn't mention using AI to write the port - especially since both CEL and protovalidate have fairly extensive conformance testing harnesses. The project should be right in the sweet spot for today's tools.
>
> The omission is especially striking since most of the article sounds AI-authored to me. (Pangram agrees, for what that's worth.)

### [nu11ptr](<https://news.ycombinator.com/item?id=49111703>)

> \> It’s the language behind Kubernetes admission policies, Envoy’s RBAC rules, Google Cloud IAM conditions, and gRPC’s protovalidate
>
> Very small nitpick, but AFAIK protovalidate comes from Buf, not Google. While protovalidate DOES work with gRPC via backward compatibility (but also Buf's ConnectRPC), saying "gRPC's protovalidate" probably makes people think it came from Google.
>
> Disclaimer: I have no affiliation with either Buf or Google.

### [xeonax](<https://news.ycombinator.com/item?id=49111545>)

> This seems like it might be good way to guard state transitions in my PLM/PDM project

---

## Cite

- Page: https://zeli.app/story/49074842
- Date: 2026-07-27
- Source: bsid.io (https://bsid.io/writing/building-a-cel-engine-for-net)
- Hacker News: https://news.ycombinator.com/item?id=49074842

## Other languages

- zh: https://zeli.app/zh/story/49074842 · markdown: https://zeli.app/zh/story/49074842.md
- ja: https://zeli.app/ja/story/49074842 · markdown: https://zeli.app/ja/story/49074842.md
