News for hackers. Stuff that matters.
Re:Running Rust on the Rumprun Unikernel by hacknat on Monday September 28, 2015 @01:08AM (#10289001)
Well done!

It'll be interesting to see what space unikernels take up in the coming years.

I think there is still a lot of fruitful territory to be explored in this space as traditional multi-user, multi-tenant assumptions can be thrown out the window. I think a big, unexplored advance that unikernels might be able to offer is the ability for the kernel-part to peek into the guts of what its programs are actually doing (at compile or run time) and make broader assumptions about scheduling.

Re:Running Rust on the Rumprun Unikernel by vezzy-fnord on Monday September 28, 2015 @09:12AM (#10290248)
It would probably be the other way around, the programs making their own fine-grained policies from primitive kernel mechanisms. This has been an area of research for decades.

Multi-tenant assumptions probably aren't going away, since mainstream systems have by and large not been able to handle them.

Re:Running Rust on the Rumprun Unikernel by hacknat on Monday September 28, 2015 @09:24AM (#10290309)
In this case I meant that something of a runtime or additional code could be tacked on to programs when the compiler and/or run time sees that a program only computes in response to input, for example. In the case of unikernels, distinguishing parts of the "system" is an arbitrary line.
Re:Running Rust on the Rumprun Unikernel by sgt on Monday September 28, 2015 @04:00AM (#10289337)
Speaking of Rust - is anyone running Rust in production apps yet? Now that Rust has reached 1.3.0, it's perhaps not unlikely.
Re:Running Rust on the Rumprun Unikernel by icebraining on Monday September 28, 2015 @04:25AM (#10289407)
Re:Running Rust on the Rumprun Unikernel by cpach on Monday September 28, 2015 @04:30AM (#10289421)
Re:Running Rust on the Rumprun Unikernel by steveklabnik on Monday September 28, 2015 @10:14AM (#10290539)
We did an interview with our production users a few months back: https://internals.rust-lang.org/t/production-user-research-s...

Names you might have heard of: Dropbox, Skylight.io, Sandstorm.io, Tessel, Terminal.com, Chef, among others.

Re:Running Rust on the Rumprun Unikernel by listic on Monday September 28, 2015 @12:23PM (#10291245)
Thanks! Could you possibly please update the FAQ with all the recent users?
Re:Running Rust on the Rumprun Unikernel by steveklabnik on Monday September 28, 2015 @03:13PM (#10292385)
We're in the middle of COMPLETELY re-doing the FAQ, actually :)
Re:Running Rust on the Rumprun Unikernel by doomrobo on Monday September 28, 2015 @03:34AM (#10289278)
Great work! I'm so glad this has been done. I think seeing OCaml used with Xen made me realize how great Rust could be in this context.
Re:Running Rust on the Rumprun Unikernel by 4ad on Monday September 28, 2015 @07:46AM (#10289910)
I would like to hear more about what things are unsupported. For example, rump kernels do not have fork, so obviously if you expect you application to fork, it will not work. But there are other, more subtle caveats.
Re:Running Rust on the Rumprun Unikernel by anttiok on Monday September 28, 2015 @08:58AM (#10290183)
Your statement "rump kernels do not have fork" is not entirely accurate in the context. Rump kernels do support fork. However, it is not conceptually a rump kernel's business to provide fork. So it's actually the Rumprun unikernel that does not provide fork here. It's a small but quite important distinction, because it means that if you wanted, you could take the upper part of the stack and bolt it on to some other simple bottom layer which does support fork. I certainly don't want to, but maybe someone else does.

Anyway, you are right, not everything is supported. It would be cool to know if a valid program will work on Rust+Rumprun without having to run it, but I can't imagine a simple solution to that problem. I guess if the problem of knowing if something will work without running it were solved, programs wouldn't have bugs ;)

Re:Running Rust on the Rumprun Unikernel by kctess5 on Monday September 28, 2015 @01:38AM (#10289063)
What kind of embedded devices could this be booted with?
Re:Running Rust on the Rumprun Unikernel by gandro on Monday September 28, 2015 @08:10AM (#10289995)
Rumprun doesn't require (or support) virtual memory, so granted enough memory (a few megabytes), it can work on embedded systems.

Rumprun currently runs on x86 and x86-64, support for RISC-V and ARM is in the making. The architecture specific code is quite small, you just need to make sure that NetBSD (and Rust) support your architecture as well.

Re:Running Rust on the Rumprun Unikernel by conceit on Monday September 28, 2015 @07:39AM (#10289888)
Anything that can run FreeBSD and then some? I don't know.
Re:Running Rust on the Rumprun Unikernel by 4ad on Monday September 28, 2015 @07:44AM (#10289901)
NetBSD, not FreeBSD.
Re:Running Rust on the Rumprun Unikernel by softprodigy on Monday September 28, 2015 @01:46AM (#10289081)
Great news!