Re:From Python to Lua: Why We Switched
by ovis on Tuesday January 26, 2016 @03:03PM
(#10975605)
The article did mention a desire to use netifaces, but I didn't quite understand why the author thought they couldn't.
[ Parent
| on HN ]
Re:From Python to Lua: Why We Switched
by brimworks on Tuesday January 26, 2016 @03:15PM
(#10975687)
uuid.get_node(): ...and which iface's address will I get if I'm on a multi-interface machine (not to mention that it was added in 2.5 version of Python)?
netifaces: ...would require me to build a C extension which would mean going down the rabbit hole of building and bundling python and this library.
As opposed to shipping LUA with C extensions? Also, there are things like shedskin: https://github.com/shedskin/shedskin - you don't even have to ship python. Or micropython: https://github.com/micropython/micropython with the code embedded. Then you can easily either shell out or include any C extensions you want.