Hacker GitHub

← All repos

snabbco/snabb

View on GitHub ↗ ★ 3,032 Lua

Snabb: Simple and fast packet networking

56 mentions on Hacker News by 34 people: 10 stories, 46 comments · first 2013-01-01 · latest 2026-07-17

Mentions per year 56 mentions · busiest year 2014 (18)
20082026
  1. Anyone know if there’s still a community around https://github.com/snabbco/snabb ? This seems like something they would appreciate. Besides that, first use case that comes to mind is that gamedev likes Lua but iOS does not like LuaJit in…
  2. …Snabb has an Intel 10g Ethernet controller driver that appears to use a ring buffer on DMA memory. https://github.com/snabbco/snabb/blob/master/src/apps/intel/...
    comment by jitl · 2025-09-26 · in Fast UDP I/O for Firefox in Rust
  3. A hardware guy might appreciate https://github.com/snabbco/snabb https://blogs.igalia.com/dpino/2017/11/13/snabb-network-tool...
  4. I'm reminded of this using LuaJIT: https://github.com/snabbco/snabb
    comment by abecedarius · 2022-08-25 · in The fall of datacenter software
  5. …it seems that Snabb uses pflua at its core - which claims to be faster than BPF ( https://github.com/snabbco/snabb/blob/b9da7caa1928256a3b4908... )
  6. > I think only Rust really allows you to write really safe and still really fast code though. Snabb ( https://github.com/snabbco/snabb/ ) is written in LuaJIT . I assume an equivalent project in Rust would be a lot more expensive in…
  7. …second go on the same topic, this one here is a brand new topic: it involves Lua, Luajit and Snabb https://github.com/snabbco/snabb the latest also something I've just learned that it even exists, and it's quite interesting to me.
    comment by acqq · 2018-05-17 · in Lightweight Concurrency in Lua
  8. I was thinking of things like https://shader.kaist.edu/mtcp/ , or https://github.com/snabbco/snabb or these kind of things: https://jvns.ca/blog/2016/06/30/why-do-we-use-the-linux-kern...
    comment by pjc50 · 2018-04-02 · in What Color is Your Function? (2015)
  9. From what I can tell snabb might be able to do this, but it bypasses the kernel: https://github.com/snabbco/snabb
    comment by 0xdeadbeefbabe · 2018-02-20 · in BPF comes to firewalls
  10. It's time to move to userspace network drivers like https://github.com/snabbco/snabb/
  11. …with IP checksum in C with automatic vectorization, C with vector intrinsics, and AVX2 assembler: https://github.com/snabbco/snabb/pull/899
    comment by lukego · 2016-11-07 · in A bug story: data alignment on x86
  12. …and used DynASM ( https://luajit.org/dynasm.html ) to refactor it as a much smaller program ( https://github.com/snabbco/snabb/blob/master/src/lib/ipsec/a... ). I see this as highly worthwhile: we are working on making the software…
  13. …[2] http://www.mellanox.com/related-docs/user_manuals/Ethernet_A... [3] https://github.com/snabbco/snabb/blob/mellanox/src/apps/mell...
  14. …re-usable modules written in P4 that can be shared. 0. https://github.com/esbullington/snabbp4 1. https://github.com/snabbco/snabb
  15. …lua code. lua-jit would be an optimizing compiler doing it's magic no ? get the code from here : https://github.com/snabbco/snabb
    comment by signa11 · 2016-05-02 · in Hello Lua
  16. …userspace net stack to avoid interrupt+switch cost ala intel dpdk, an opensource example would be https://github.com/SnabbCo/snabbswitch/blob/master/README.md but tons of others in commercial spaces. ie. as per what bryan said there's…
    comment by kapilvt · 2016-01-23 · in Unikernels are unfit for production
  17. > https://github.com/snabbco/snabbswitch fixed
    comment by losername · 2015-07-24 · in Tracing JITs and modern CPUs
  18. …of LuaJIT so restrictive guidelines are useful for us. Disclaimer: Consulting for Snabb GmbH [1]: https://github.com/snabbco/snabbswitchhttps://github.com/sna...
    comment by mrottenkolber · 2015-07-24 · in Tracing JITs and modern CPUs
  19. That is not strictly true. Look at Snabb switch, written almost entirely in LuaJIT for example https://github.com/SnabbCo/snabbswitch - you need some kind of ffi to mmap device memory, but it is quite possible. (LuaJIT is fast of course…
    comment by justincormack · 2015-05-30 · in Writing a website in Rust
  20. …snabbswitch, which combines a lot of really great technologies to provide superlative performance: https://github.com/SnabbCo/snabbswitch/wiki Hypervisor, Kernel, LuaJIT, Userspace. Amazing!
    comment by fit2rule · 2015-01-23 · in Improving Linux networking performance
  21. …they are offering the full 10G of bandwidth. We could relocate our Snabb Lab to AWS if we got PFs. https://github.com/SnabbCo/snabbswitch/wiki/Snabb-Lab
    comment by lukego · 2015-01-13 · in AWS C4 Instances
  22. Check out snabb switch: http://www.snabb.co/ https://github.com/SnabbCo/snabbswitch/wiki
  23. …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.
  24. …the kernel or purely in user space. In reality pure user space is faster, just look at Snabb switch https://github.com/SnabbCo/snabbswitch/wiki
    comment by darren0 · 2014-09-09 · in Weave – The Docker Network
  25. I can't find the list of supported NICs in the documentation, but I found https://github.com/SnabbCo/snabbswitch/blob/master/src/lib/h... which suggests that only a very small subset of Intel NICs are supported. One of those may be…
  26. You should have a look over here :) https://github.com/SnabbCo/snabbswitch/wiki
  27. …used it yet, but I've read over the documentation and am itching for an opportunity to do so. 0. https://github.com/SnabbCo/snabbswitch
  28. …from a trace file using a negligible amount of CPU. This is practical and being used every day. https://github.com/SnabbCo/snabbswitch/tree/master/src/desig... Here is the driver hack that makes it possible:…
  29. Shouldn't this link directly to GitHub instead? ( https://github.com/SnabbCo/snabbswitch ) Also, just in case the author of Snabb Switch is reading this, it would be really helpful to provide a short example program of how to use this. A…
  30. …Switch[1] is a high performance userspace driver for 10Gb ethernet switches, written in LuaJIT. [1] https://github.com/SnabbCo/snabbswitch
    comment by justincormack · 2014-03-12 · in LuaJIT 2.0.3
  31. …want to code it up in Lua with snabbswitch. Here is our basic trace store/replay library today: https://github.com/SnabbCo/snabbswitch/blob/master/src/lib/p...
    comment by lukego · 2014-02-17 · in The C10M problem
  32. …to remain efficient. Or build off of a project that does that for you, like Snabb Switch[0]. [0] https://github.com/SnabbCo/snabbswitch
    comment by erichocean · 2014-02-17 · in The C10M problem
  33. …ipspace.net/2013/11/deutsche-telekom-terastream-... [2] https://ripe67.ripe.net/archives/video/3/ [3] https://github.com/SnabbCo/snabbswitch/blob/snabbnfv-readme/...
    comment by lukego · 2014-02-17 · in The C10M problem
  34. …I completed that used these principles here: https://news.ycombinator.com/item?id=7231407 [0] https://github.com/SnabbCo/snabbswitch
    comment by erichocean · 2014-02-17 · in The C10M problem
  35. …is less than ideal (we use a UDP-based protocol with full public-key encryption per packet ). [0] https://github.com/SnabbCo/snabbswitch
  36. Or, you could just avoid the OS altogether: https://github.com/SnabbCo/snabbswitch Our current engineering target is 1 million writes/sec and > 10 million reads/sec on top of an architecture similar to that, on a single box, to our fully…
  37. …software defined, layer 2 network appliance. https://cast.switch.ch/vod/clips/26uo9i576i/ https://github.com/SnabbCo/snabbswitch/wiki
  38. Have you looked into Snabb Switch? ( https://github.com/SnabbCo/snabbswitch/wiki )
    comment by daurnimator · 2013-10-20 · in From China, With Love
  39. …operation or crashes. However, there is already proof that device drivers can be written in Lua ( https://github.com/SnabbCo/snabbswitch ), and it's great to see more push in that direction. After all, why use C if you have a working…
    comment by anttiok · 2013-10-17 · in Lua support in the NetBSD kernel
  40. …drivers. http://blog.lukego.com/blog/2013/01/03/snabb-switchs-luajit-... (edit: link to the code https://github.com/SnabbCo/snabbswitch/tree/master/src/apps/... ) btw. there once was a project which added a Scheme interpreter to the Linux…
    comment by fafner · 2013-10-17 · in Lua support in the NetBSD kernel
  41. …program 1G and 10G ethernet cards from userspace if you want to learn how the driver layer works https://github.com/SnabbCo/snabbswitch
    comment by justincormack · 2013-08-08 · in Queueing in the Linux Network Stack
  42. That magic actually comes courtesy of [SnabbSwitch]( https://github.com/SnabbCo/snabbswitch/wiki ), latest project of the inimitable Luke Gorrie. Luke is also publishing SnabbSwitch semi-regularly as a [readable program](…
    comment by redline6561 · 2013-07-06 · in A 6502 emulator in Common Lisp [pdf]
  43. …to this SnabbSwitch is a virtual Ethernet switch for Linux written mostly in Lua (using LuaJIT). https://github.com/SnabbCo/snabbswitch/wiki
    comment by fafner · 2013-02-18 · in Lua in the NetBSD Kernel [pdf]
  44. …this same ethernet controller, the Intel 82574L. I wonder if it's related! Our Github issue: https://github.com/SnabbCo/snabbswitch/issues/39
    comment by lukego · 2013-02-07 · in Packets of Death
  45. …relevant OS-style hacking then you're welcome to get involved. It's called Snabb Switch and it's at https://github.com/SnabbCo/snabbswitch/wiki
    comment by lukego · 2013-01-01 · in We Need More Operating Systems
  46. …with the Snabb Switch project (my baby) and I'm funding this with consulting. Links: Snabb Switch - https://github.com/SnabbCo/snabbswitch/wiki LinkedIn - http://www.linkedin.com/in/lukego My homepage - http://www.lukego.com/ My company -…