monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
629 stars 145 forks source link

Add LuaSocket to norns #686

Closed markwheeler closed 4 years ago

markwheeler commented 5 years ago

Would it be possible to add the LuaSocket lib to norns? Or a similar lib that allows network access from scripts. http://w3.impa.br/~diego/software/luasocket/home.html

I had a quick look at installing this but wasn't sure how to go about doing so - happy to make a PR if someone can point me in the right direction.

tehn commented 5 years ago

earlier discussion of luarocks at https://github.com/monome/norns/issues/479

https://luarocks.org/modules/luarocks/luasocket

catfact commented 5 years ago

some of the caveats/reservations on #479 apply especially strongly to anything involving sockets or filesystem access. namely, dont do stuff that will block from a script in realtime (in an event handler.) rethinking the event queue would help make this a little more forgiving (#461)

markwheeler commented 5 years ago

Just to note: It's fairly easy to use util.os_capture() and curl instead for anyone else landing here and looking for network access from scripts.

tehn commented 5 years ago

still worth revisiting possible inclusion of luarocks, if there are any further opinions.