justincormack/ljsyscall
View on GitHub ↗ ★ 454 Lua
LuaJIT Unix syscall FFI
22 mentions on Hacker News by 6 people: 1 story, 21 comments · first 2011-07-08 · latest 2019-03-03
20082026
-
…here, complete access to the linux/bsd/osx system call interface, including sbrk, from lua: https://github.com/justincormack/ljsyscall Just load libffi ( https://sourceware.org/libffi ) or a similar module in any arbitrary language, and…
comment by neokantian · 2019-03-03 · in Is C# a low-level language? -
I maintain LuaJIT syscall bindings https://github.com/justincormack/ljsyscall - they cover quite a lot, namespaces, netlink and so on. I spent quite a bit of time making them more intuitive than the raw bindings, with consistent error…
comment by justincormack · 2016-04-14 · in Rust and Nix = easier Unix systems programming -
https://github.com/justincormack/ljsyscall is just that, but for Lua. FFI to the kernel on Linux, NetBSD Rump kernels and even bare on Xen.
comment by pygy_ · 2015-04-29 · in Python without an operating system -
Also my project ljsyscall https://github.com/justincormack/ljsyscall - you can run this on bare metal on Xen and other platforms too as well as under Linux/OSX/BSD.
comment by justincormack · 2015-02-19 · in Show HN: Lua/C for mobile devices – Please tell me what you think -
…C or assembler, I wrote a LuaJIT library [1]. You could port it to another language too. [1] https://github.com/justincormack/ljsyscall
comment by justincormack · 2014-12-28 · in The World of Linux System Calls -
…functionality to bring up a system (networking, mounts, namespaces etc) without any other code. [1] https://github.com/justincormack/ljsyscall
comment by justincormack · 2014-10-21 · in Why pro-systemd and anti-systemd people will never get along -
▲ 40
Ljsyscall: Unix system calls for LuaJITstory by lelf · 2014-09-03 · 8 comments
-
yeah, you link to lua.a or lua.so and a very small stub to run the code. There is an example here https://github.com/justincormack/ljsyscall/blob/master/examp...
comment by justincormack · 2014-02-19 · in PH7 – An Embedded Implementation of PHP (C Library) -
…that can bring up enough of a system for containers (networking and so on, still some bits missing) https://github.com/justincormack/ljsyscall
comment by justincormack · 2014-02-11 · in Broken by design: systemd -
…network interfaces are hash tables and you can modify the components to reconfigure etc. [1] https://github.com/justincormack/ljsyscall
comment by justincormack · 2013-12-29 · in The shok command shell -
Yeah have been working on it see https://github.com/justincormack/ljsyscall/
comment by justincormack · 2013-08-11 · in What makes Lua tick? -
…can configure network interfaces, routing etc. Needs some more examples, build scripts etc... [1] https://github.com/justincormack/ljsyscall
comment by justincormack · 2013-07-31 · in Show HN: CoreOS, a Linux distro for containers -
…that are then structured into larger distributed applications this is much simpler. [1] https://github.com/justincormack/ljsyscall [2] http://www.netbsd.org/docs/rump/
comment by justincormack · 2013-07-26 · in Docker, Containers, and the Future of Application Delivery -
…(do have longer term plans to port to Ruby, Pypy one day once it is abstracted out more). [1] https://github.com/justincormack/ljsyscall
comment by justincormack · 2013-06-11 · in Writing a FUSE file system in Go -
…up a bootable system soon. [1] http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/... [2] https://github.com/justincormack/ljsyscall [3] http://www.musl-libc.org/
comment by justincormack · 2013-02-24 · in Boot-to-Guile -
…risk messing about with the real ones. This is part of a fairly comprehensive Linux binding for Lua https://github.com/justincormack/ljsyscall
comment by justincormack · 2013-02-19 · in Linux 3.8 Released -
…debug so you can easily follow what is going on, plus the whole userspace will be BSD licensed. [1] https://github.com/justincormack/ljsyscall [2] http://www.myriabit.com/ljsyscall/ [3] http://www.etalabs.net/musl/
comment by justincormack · 2012-08-17 · in Perl/Linux, a Linux distribution where all programs are written in Perl -
…syscalls. I only used getdents for the first time when I was writing a syscall interface for Lua https://github.com/justincormack/ljsyscall - not tried it on 8m files but you can set the buffer size so it should work. The native aio…
comment by justincormack · 2011-08-15 · in You can list a directory containing 8 million files But not with ls.. -
Another interesting combination would be: https://github.com/justincormack/ljsyscall this would work with LuaJIT: http://luajit.org/ The FFI in LuaJIT is kind of brilliant. Check yourself. EDIT: with FFI in LuaJIT you can jump very…
comment by ay · 2011-07-09 · in Lua/APR - proper standard library for Lua -
…[2] http://neopallium.github.com/nixio/ [3] http://luajit.org/ext_ffi_tutorial.html [4] https://github.com/justincormack/ljsyscall
comment by davidhollander · 2011-07-08 · in Lua/APR - proper standard library for Lua