wahern/lunix
View on GitHub ↗ ★ 61 C
Lua Unix Module.
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2016-10-30 · latest 2021-11-19
20082026
-
…conventional API. For example, implementing a single-function iterator using a generator pattern: https://github.com/wahern/lunix/blob/36c2107/src/unix-getopt... IOW, I avoid the urge to encapsulate the magic in a library abstraction so it…
comment by wahern · 2021-11-19 · in Duff’s Device in 2021 -
…runtime cost (though you can trade the latter for the former to some extent). [1] Example: https://github.com/wahern/lunix/blob/master/src/unix-getopt....
comment by wahern · 2021-03-09 · in Debian Running on Rust Coreutils -
…wrote. It's probably the shortest correct implementation of getopt in C or most any other language. https://github.com/wahern/lunix/blob/rel-20161026/src/unix-g...
comment by wahern · 2016-10-30 · in How to Get Fired Using Switch Statements and Statement Expressions