nowfound

Dev tools · June 30, 2025

DW

DotnetEbpf - Write Linux eBPF kernel applications in C#

I've been working for a good 9 months now writing a .net to C transpiler (https://github.com/KallDrexx/dntc) as a "I wonder if I can" type of project (with the intention of eventually being able to do embedded development in C# instead of C). Along the way I was trying to find good milestones to test the transpiler with. As I learned about Linux eBPF I realized that ended up being an interesting use case and created the DotnetEbpf prototype. It allows you to write Linux kernel side eBPF applications fully in C#. While with some of the limitations it may seem like it's…

In plain words

DotnetEbpf is a tool that enables developers to write Linux eBPF kernel applications in C# instead of C. It works by transpiling C# code to C, which is then compiled into eBPF bytecode. The tool is designed for systems programmers and embedded developers who prefer C#'s syntax and features. It supports unit testing of eBPF functions and offers cleaner syntax compared to traditional C development, though with some kernel-level constraints.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

I've been working for a good 9 months now writing a .net to C transpiler (https://github.com/KallDrexx/dntc) as a "I wonder if I can" type of project (with the intention of eventually being able to do embedded development in C# instead of C). Along the way I was trying to find good milestones to test the transpiler with. As I learned about Linux eBPF I realized that ended up being an interesting use case and created the DotnetEbpf prototype. It allows you to write Linux kernel side eBPF applications fully in C#. While with some of the limitations it may seem like it's limiting the usefulness of C#, it does allow for better syntax than C and as well as unit testing capabilities (since each native eBPF function can be populated with C# native code that is ignored when transpiled, in addition to generic capabilities). In the future I'd like to flesh out the ability for correct wiring up of data structures between both the C# kernel side and a C# user space side (and the ability to install an eBPF kernel application from a C# user space application), which would enable writing full stack eBPF security software fully in C#.

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 1d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, June 2025

the whole month →
  • IM

    Hey HN! Pilots everywhere are required to keep a logbook of all their flying hours, aircraft, airports, and so on. Since I track everything digitally (some people still just use paper logbooks!), I put together some data visualizations and a few 3D globes to show my flying history. This globe is probably my favourite so far: https://jameshard.ing/pilot/globes/all If you’ve got ideas for other graphs or ways to show this kind of data, I’d love to hear them!

    Life & fun · 2025 · jameshard.ing

  • Stunning presentations with AI. No design skills required.

    AI · 2025 · chroniclehq.com

  • Build native mobile apps for iOS and Android without code.

    Dev tools · 2025 · bble.io

  • Twenty991

    The #1 open-source CRM

    Dev tools · 2025 · twenty.com

  • All your connections, across all your socials.

    AI · 2025 · pally.com

  • WC

    I was the main contributor to workout.lol, an open-source fitness app to easily build a workout routine. The project had traction (1.4k GitHub stars, 95 forks, ~20K visits/month), but was eventually sold due to video licensing hurdles. The new owner stopped maintaining it, and the repo went abandoned. Over the next 9 months, I sent 15 emails to try to save it : no replies. Feature requests & issues were ignored. The community was left with a "broken" tool let's say. I couldn't just let it die So I built the new version from scratch with the same open-source spirit, but a better…

    Dev tools · 2025 · github.com