Re:Writing a website in Rust
by OneMoreIdol on Saturday May 30, 2015 @02:51PM
(#9631306)
That's kinda what I was thinking when I commented, and there are sure to be exceptions. But I don't see anything different with your Snabb switch example. You can probably use Java and JNI for that matter to call mmap, but would you be able to write an implementation of mmap in LuaJIT ?
[ Parent
| on HN ]
Re:Writing a website in Rust
by justincormack on Saturday May 30, 2015 @04:04PM
(#9631567)
Yes you can call mmap with the ffi in LuaJIT just fine. It is not very complicated, it just asks the kernel to do it. Implementing what the kernel does, well that does need some assembly.
Re:Writing a website in Rust
by OneMoreIdol on Sunday May 31, 2015 @09:12PM
(#9636320)
Indeed we agree. Using any ffi for that matter.