News for hackers. Stuff that matters.
Re:eBPF on Windows by sanxiyn on Monday May 10, 2021 @07:06PM (#27111997)
Re: termination, can't you use Ethereum gas style termination? I always found termination verification strange, because "gas" is usually more practical alternative.
Re:eBPF on Windows by MarkSweep on Monday May 10, 2021 @09:30PM (#27113089)
The ZFS file system supports running Lua programs in Kernel mode. It supports setting a limit on the number of instructions run and the amount of memory used:

https://www.delphix.com/blog/delphix-engineering/zfs-channel...

So it’s been done before. I think traditional BPF programs were really short and ran in performance critical contexts. Disallowing backwards branches and limiting size was preferred to slowing down these code paths with instruction counting.

Re:eBPF on Windows by MichaelMoser123 on Monday May 10, 2021 @10:45PM (#27113651)
How would you maintain the gas cout? Per instruction or per basic block?