logoalt Hacker News

sparrcyesterday at 9:52 PM5 repliesview on HN

I'm primarily a Go developer and love the language and will defend it for most use-cases, but to be honest BPF seems like Rust's place to shine.


Replies

nathannaveentoday at 4:45 AM

I'm also primarily a Go developer, and I will also defend the language in almost all use cases, but I personally feel that C is the best for writing eBPF. I just feel that you get all of the original functionality with C, and you don't have to hack your way around weird issues that you would encounter when using Go or Rust.

Note that we at Bomfather have our userspace code written in Golang and our eBPF code written in C.

But, either way, this is a really cool solution/idea and could make writing eBPF code a lot easier.

bluejekyllyesterday at 10:42 PM

I feel like every language has its fans. What invariably happens is that people want their favorite language to work in every situation that they might need to work.

Personally I would choose Rust as well, but I would choose Rust for almost everything I do. I can see why a Go developer would want a similar experience.

Thaxlltoday at 12:00 AM

Rust is in the same boat, ebpf is C.

lelanthrantoday at 12:03 AM

Why? What value does Rust add here?

itsnowandnevertoday at 12:48 AM

spoken like a true go developer ha