4 ms·
The BPF instruction set architecture is now RFC 9669
- majke 2y agoSo… eBPF is now BPF and old BPF is now cBPF or classic bpf.
- westurner 2y agoAnd there's wasm-bpf: https://github.com/eunomia-bpf/wasm-bpf#how-it-works https://github.com/eunomia-bpf/wasm-bpf#how-it-works But should (browser) WASM processes cross the kernel boundary for BPF performance? FWIW EVM/eWASM opcodes have a cost in gas/particles.
- westurner 2y agoDo you think that BPF opcodes should be costed, too? Why or why not?
- gnabgib 2y agoAre you... asking yourself? What did you decide?
- westurner 2y agoCosting instructions leads to efficiency metrics, which makes it possible to incentivize efficiency. BPF instructions could also each have an abstract relative cost with or without real value. BPF in WASM (unfortunately without the kernel performance advantages or possible side channels) or the fwiu now-defunct eWASM might be an easier place to test the value of costed opcodes. The [e]BPF verifier does not yet rewrite according to opcode costs of candidate programs. "A look inside the BPF verifier [lwn]" https://news.ycombinator.com/item?id=41135478 https://news.ycombinator.com/item?id=41135478
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- throw0101a 2y ago* https://datatracker.ietf.org/doc/html/rfc9669 https://datatracker.ietf.org/doc/html/rfc9669 * https://en.wikipedia.org/wiki/EBPF https://en.wikipedia.org/wiki/EBPF * https://en.wikipedia.org/wiki/Berkeley_Packet_Filter https://en.wikipedia.org/wiki/Berkeley_Packet_Filter
- throw0101a 2y agoSomewhat related: > P4 is a programming language for controlling packet forwarding planes in networking devices, such as routers and switches. In contrast to a general purpose language such as C or Python, P4 is a domain-specific language with a number of constructs optimized for network data forwarding. P4 is distributed as open-source, permissively licensed code, and is maintained by the P4 Project (formerly the P4 Language Consortium), a not-for-profit organization hosted by the Open Networking Foundation. * https://en.wikipedia.org/wiki/P4_(programming_language) https://en.wikipedia.org/wiki/P4_(programming_language)
- princearthur 2y agoNice... timing to get that number.
- karmakaze 2y agoKind of close to ISO 9660 so doubly easy to remember.
- M95D 2y agoIs this going to be like the DeviceTree standard? The kernels devs invent it, it gets an official specification/standard, but the kernel itself doesn't conform to that specification?