News for hackers. Stuff that matters.
Re:LuaJIT on Xen by justincormack on Saturday September 14, 2013 @11:01AM (#6385739)
The framework here is fairly general and you should be able to run other code directly under Xen eg Python. Node would be harder as there is no threading which libuv needs.
Re:LuaJIT on Xen by anttiok on Saturday September 14, 2013 @11:44AM (#6385921)
There is threading in the underlying framework. In fact, since there is no VM support, threading is all you have.

However, there is no pthread support which is probably what you are referring to. I don't think pthread support would be difficult to add. Most likely it's trivial in case non-preemptive run-to-block threads are ok. If someone has a use case for pthreads, I'm up for a discussion.

Re:LuaJIT on Xen by justincormack on Saturday September 14, 2013 @11:50AM (#6385947)
Libuv which node.js uses has threads to do non blocking file IO. Haven't looked at the code for ages though so not sure exactly what it needs.
Re:LuaJIT on Xen by gcr on Saturday September 14, 2013 @07:46PM (#6387560)
Is this because asynchronous I/O calls don't work consistently well on all the platforms that libuv targets?
Re:LuaJIT on Xen by justincormack on Saturday September 14, 2013 @07:58PM (#6387598)
Async file IO on Linux is a bit odd, although it is gradually getting better. It only applies to unbuffered IO (I think still). So you have to use a thread to read or write. Windows has a more usable version. There is a Unix standard API but it is just implemented with threads normally anyway.
Re:LuaJIT on Xen by silentOpen on Saturday September 14, 2013 @06:04PM (#6387237)
Re:LuaJIT on Xen by mwcampbell on Saturday September 14, 2013 @04:43PM (#6387007)
What advantage is there to running something like this on Xen rather than running an almost equally self-contained process on a general-purpose OS kernel like Linux or BSD? Is Xen's resource isolation that much better?
Re:LuaJIT on Xen by zhemao on Saturday September 14, 2013 @06:03PM (#6387236)
Perhaps not, but I think the purpose of these Xen exokernels is to run on IaaS platforms which provide Xen VPS, like EC2 or Linode.
Re:LuaJIT on Xen by keeblus on Saturday September 14, 2013 @11:47AM (#6385936)
The limitations seem pretty high. Why would I use this when I could run something like Docker on bare metal?
Re:LuaJIT on Xen by justincormack on Saturday September 14, 2013 @12:04PM (#6386010)
Docker is a way of making config management easy. Here there really is less stuff. You build a binary with your whole application and all its dependencies that actually self hosts. And is smaller than Docker's init process.

And a VM is better isolated than a Linux container.

EDIT: the restrictions are not necessarily permanent either. Its only a first early release...

Re:LuaJIT on Xen by anttiok on Saturday September 14, 2013 @01:46PM (#6386390)
Yes, tiny resource overhead while still providing near-complete isolation is a big benefit. The current memory overhead from using file system drivers and TCP/IP networking is around 8MB, and I'm sure there's a bunch of fat in there that could be trimmed off.

It's going to be interesting to see where the exact set of supported application images converges as use cases arise. For example, I'm pretty sure fork() will never be supported -- would it fork the VM? -- but some of the other things are up for discussion.

Re:LuaJIT on Xen by anonymous on Saturday September 14, 2013 @02:30PM (#6386553)
You wouldn't. You would use Linux and Docker.

This is HN, not a BSD mailing list.