News for hackers. Stuff that matters.
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by jjoonathan on Friday August 08, 2014 @02:00AM (#8151680)
As someone who forcibly steered himself away from the temptation of a toy OS side-project due to the enormous time investment in drivers, syscall handlers, and so on that it would have taken to get working, I can't possibly thank you (or curse you) enough for calling rump kernels to my attention. So instead I offer a minor nitpick:

> If you do the math (and bc did), there are 86400 seconds in a week.

you might want to check bc's math ;)

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by exDM69 on Friday August 08, 2014 @04:46AM (#8151978)
Yes!

There are lots of reasons why my hobby operating system project has been abandoned, but device drivers was one of the biggest reasons.

I've been planning to revive my kernel programming projects and when I do, I'll definitely take a look at rump kernels and the BSD device drivers.

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by huuu on Friday August 08, 2014 @03:01AM (#8151798)
Working 24 hours a week makes you more productive. So he did his math ;)
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by noselasd on Friday August 08, 2014 @03:10AM (#8151816)
There's 86400 seconds in a day. There's 604800 seconds in a week.
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by xenophonf on Saturday August 09, 2014 @10:59AM (#8157002)
And what about the weeks in which a leap second was added?
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by jjoonathan on Friday August 08, 2014 @03:44PM (#8154668)
Read huuu's post again ;)
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by anttiok on Friday August 08, 2014 @07:13AM (#8152281)
Heh, I suspect "the author" missed a digit when inputting the calculation. bc needs a calculate-what-i-meant mode!
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by fluffyllemon on Friday August 08, 2014 @10:57AM (#8153057)
"On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." -Charles Babbage
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by column on Friday August 08, 2014 @07:36AM (#8152319)
60 * 60 * 24 = 86,400

60 * 60 * 24 * 7 = 604,800

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by marcoms on Friday August 08, 2014 @05:45AM (#8152102)
$ bc

bc 1.06.95 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'.

606024*7

604800

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by jingo on Friday August 08, 2014 @10:19PM (#8156035)
Nice to see rump make the front page again.

The author's command of the English language easily trumps any deficiencies in multiplication. His little quips crack me up. "All that and a can of paint."

"Rump" is just a cool name in my opinion. I liked rump(3) before I even knew what it did. Naming and coming up with clever acronyms that are not annoying is difficult. Props to the author for that alone.

Whereas something like "Docker" makes me cringe. No matter how good it is. Some of these names people come up with are just terrible.

Anyway, we know that rump can be used for mounting filesystems (e.g., ones containg applications) that reside on USB sticks or other removable media. By using rump_ffs, there is no kernel panic on errors associated with the mounted filesystem. For that one use alone, nevermind its otherwise enormous potential, I'd say rump is worth the rumpification of the NetBSD source tree. It is not easy to crash the netbsd kernel, but filesystem errors are one way to do it, in my experience.

I think the author should have at least one article about rump that uses a certain song title from Exile on Main Street.

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by girvo on Friday August 08, 2014 @05:30AM (#8152061)
Oh oh oh oh! This is exactly what I've been looking for! And from what I can see it works on ARM too? Amazing! I've been working on a toy kernel in my spare time to learn bare metal stuff, and this will be perfect to give me a leg-up to doing real work with it.
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by anttiok on Friday August 08, 2014 @07:16AM (#8152282)
Yes, works on ARM. The only architecture-specific support that a rump kernel needs is cache-coherent memory operations, and those are necessary only if you want to run on a multiprocessor system. So works on anything to which you can compile C code, really (though you might have to toy with some Makefiles a bit for new architectures).
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by odc on Friday August 08, 2014 @05:23AM (#8152045)
This makes me think of MirageOS but with more drivers and I don't have to learn OCaml.
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by anttiok on Friday August 08, 2014 @07:19AM (#8152291)
MirageOS, at least from my viewpoint, is trying to figure out what the cloud software stacks of tomorrow should look like. Rump kernels give you production quality building blocks for running existing code today in any environment. I wouldn't compare the two projects too much.
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by rjsw on Friday August 08, 2014 @09:33AM (#8152653)
I see MirageOS as an OCaml Machine, it doesn't let you develop applications within itself in the way that a Lisp Machine does but maybe that doesn't make sense for OCaml.
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by avsm on Friday August 08, 2014 @01:39PM (#8154052)
The two projects are very complementary. You could easily write a MirageOS rump kernel backend that linked to the kernel device drivers, and build higher level services (HTTP, TLS, XMPP) in OCaml that use the production-quality NetBSD device drivers.

It's all good fun in library OS land :)

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by m0th87 on Friday August 08, 2014 @08:26AM (#8152446)
You need to expose a hypercall interface for this. Can anyone explain how that would be implemented, and does it restrict the kinds of kernels you can write? e.g. can I create a unikernel or microkernel with this?
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by anttiok on Friday August 08, 2014 @09:05AM (#8152560)
Unikernel: yes, that's what the article mostly describes.

Microkernel: yes, though strictly speaking you'd use rump kernels for the servers in a microkernel OS. (that was actually the first use case back in 2007)

There are multiple example implementations for the hypercall interface ("rumpuser") at http://repo.rumpkernel.org/

You can find full details from http://book.rumpkernel.org/ (it's a bit out of date in describing what has been built using rump kernels, but the parts describing basic functionality are accurate).

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by justincormack on Friday August 08, 2014 @08:56AM (#8152534)
There is a Xen version with a hypercall interface already https://github.com/rumpkernel/rumprun-xen

There are microkernels using the rump kernel code, eg Genode.

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by annnnd on Friday August 08, 2014 @07:30AM (#8152310)
503 Service Unavailable... anyone have a copy? It's not on wayback machine yet.
Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by anttiok on Friday August 08, 2014 @07:35AM (#8152318)
http://www.iki.fi/pooka/private/baremetal/art.html

It doesn't contain the pretty css, and I probably fixed a tyop or two when posting, but the content should be 99.9% same.

Re:An Internet-Ready OS From Scratch in a Week – Rump Kernel... by annnnd on Friday August 08, 2014 @07:48AM (#8152347)
Thanks, much appreciated!