I for one would really like to see Go or TinyGo find a way to target eBPF similar to how it can target WASM.
-Mike > On Aug 14, 2024, at 4:40 PM, twp...@gmail.com <twpa...@gmail.com> wrote: > > For eBPF support in Go, see https://github.com/cilium/ebpf. > > AFAIK at the moment you can't compile Go to eBPF. The most promising approach > is probably to adapt TinyGo to generate eBPF. There's an issue that's been > open for three years with no activity: > https://github.com/tinygo-org/tinygo/issues/2017. > > Regards, > Tom > > On Wednesday, August 14, 2024 at 12:55:30 AM UTC+2 Sharon Mafgaoker wrote: > Hey Everyone, > > Nice to e-meet you all! I'm new here and kindly asking for some advice on a > topic I'm exploring. > > While watching Rob Pike's videos about Go, I noticed he doesn't recommend > using CGO due to potential issues when changing OS/architecture. > > I have an idea to read incoming IPs, perform background checks, and validate > them by harnessing the power of concurrency. To analyze packets faster, I > want to use eBPF. However, I haven't found a way to load Go code directly > into eBPF, and it seems like CGO is the only way. > > Does anyone have advice on how to use pure Go with eBPF? Any insights or > alternative approaches would be greatly appreciated. > > Thank you! > > Best regards, > Sharon > > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/0fd558f3-28aa-45d4-a205-462e350da1c0n%40googlegroups.com > > <https://groups.google.com/d/msgid/golang-nuts/0fd558f3-28aa-45d4-a205-462e350da1c0n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/32F465B9-0341-49C4-9A4A-7F73B4A3A39A%40newclarity.net.