News for hackers. Stuff that matters.
Re:Reenix: Implementing a Unix-Like Operating System in Rust... by scialex on Monday April 27, 2015 @10:16PM (#9450271)
The actual kernel binary was smaller but the loader s limit was based on the amount of memory the kernel laid out in memory takes, including anonymous sections.

Also turning on optimizations in rust and the linker helped a lot but were not enough in the end.

Re:Reenix: Implementing a Unix-Like Operating System in Rust... by mafribe on Tuesday April 28, 2015 @02:45AM (#9450787)
I guess you are the author of linked paper. Well done.

I wonder if you have any opinions on how useful higher-kinded types (HKTs), one of the most requested features for Rust, would have been in implementing this OS. For example the absence of HKTs means that Rust can't have smooth and general handling of monads that is comparable to Haskell's. Would Haskell-style monads or Arrows have been helpful?

Re:Reenix: Implementing a Unix-Like Operating System in Rust... by scialex on Tuesday April 28, 2015 @10:14AM (#9452478)
Thanks.

I believe HKT would have been useful but am not really sure how much HKT would have helped me overall. They would likely have been most useful (if at all) in the VFS/S5FS/VM stages that I was unable to fully get to.

Honestly, I have not used haskell enough to definitively say whether monads/arrows would have been useful.

Re:Reenix: Implementing a Unix-Like Operating System in Rust... by mafribe on Tuesday April 28, 2015 @10:46AM (#9452717)
I guess the only way to find out is to await the emergence of low-level languages with HKTs and then run suitable experiments.
Re:Reenix: Implementing a Unix-Like Operating System in Rust... by pjc50 on Tuesday April 28, 2015 @04:53AM (#9451082)
Ah, so all memory used by the kernel must be listed in sections loaded by the bootloader? As opposed to the normal situation where the kernel just starts grabbing it from the hardware?
Re:Reenix: Implementing a Unix-Like Operating System in Rust... by keeperofdakeys on Tuesday April 28, 2015 @06:54AM (#9451356)
I know no specifics of the situation, but llvm optimisations can be manually toggled through rustc. Maybe there are more special-case optimisations that could help.