News for hackers. Stuff that matters.
Re:Scriptable Operating Systems with Lua [pdf] by gnat on Saturday April 20, 2024 @09:32PM (#40102555)
They embedded Lua into the NetBSD kernel for scripting frequency scaling and network packet filtering. Their packet filtering example ran a 100Mbps connection at 96Mbps, which indicates the performance hit isn't extreme.
Re:Scriptable Operating Systems with Lua [pdf] by etcimon on Saturday April 20, 2024 @09:59PM (#40102643)
Would probably need a few more benchmarks to determine if it scales or if it's a bottleneck
Re:Scriptable Operating Systems with Lua [pdf] by lneto on Sunday April 21, 2024 @07:32AM (#40104837)
This work ran more benchmarks with NPFLua:

https://2018.eurobsdcon.org/static/slides/Fast,%20Flexible%2...

Re:Scriptable Operating Systems with Lua [pdf] by lneto on Sunday April 21, 2024 @07:24AM (#40104787)
We have also integrated Lua with Netfilter and XDP on Linux, filtering up to 5.3 Gbps.

https://netdevconf.info/0x14/session.html?talk-linux-network...

Re:Scriptable Operating Systems with Lua [pdf] by jbverschoor on Sunday April 21, 2024 @08:32AM (#40105213)
It’s just undertaker that lua is such a quirky language. A few things different and it would be better.

1 vs 0 index, tables and arrays. I don’t remember the rest, but those were super annoying 15 years ago