Skip to content

Comment on Show HN: Luakernel – Lua + SQLite + musl libc running on x86

Comments

It would be very interesting if this could be combined with snabbswitch for some truly awesome bare-metal lua networking.

I've never seen snabbswitch before, are there any lua extensions to get it to emulate tcp/ip stack and present the data stream to your lua code??

It basically talks to certain network-cards directly, bypassing the TCP/IP stack. AFAIK it presents raw ethernet packets to the lua code which have to be parsed by the application (i don't know exactly if there isn't some code present in the repo to deal with sockets and such directly). The repo: https://github.com/SnabbCo/snabbswitch Under src/apps there are some examples.

is it a .ko or an user space app?

Userspace, it mmaps that PCI space itself.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.