8 ms·
PowerNex: a kernel written in the D Programming Language
- jordigh 10y agoOther kernels in D: xomb and trinix: http://wiki.xomb.org/ http://wiki.xomb.org/ https://github.com/Rikarin/Trinix https://github.com/Rikarin/Trinix
- steveklabnik 10y agoSadly, XOmB hasn't seen a commit in three years. So it's not going to be representative of contemporary D. (I was originally involved, long ago.)
- yawniek 10y agothere was actually some activity within a fork: https://github.com/xomboverlord/xomb/network https://github.com/xomboverlord/xomb/network
- Wild 10y agoXOMB is D1, while Trinix and PowerNex in D2.
- deleted 10y ago[deleted]
- t892 10y agoWhy is D a good choice for writing a whole OS?
- jordigh 10y agoBecause it's a modern, safer systems language. It fills more or less the same niche as Rust except it's more familiar to C++ programmers, or at least that's been my experience. I know C++ fairly well, and I feel more at home with D than with Rust.
- jerf 10y agoWell, basically, http://dlang.org/ http://dlang.org/ , under the fold with "Why D?".
- gravypod 10y agoWhat's the kernel design here? Is it monolithic like linux?
- valarauca1 10y agoI love how everyone is digging into the D/Rust/C++ flamewar and not discussing the project at hand. It appears monolithic. There's actually very little content about what it's design goals are, what it's trying to accomplish, or even what interfaces it'll support. I'm assuming POSIX because everyone loves to re-write UNIX and there is a boat load of documentation/implementations and most of these are monolithic.
- gravypod 10y agoYea, that's disappointing. I'd assume an Object-Oriented language would be better at implementing a microkernel. Objects, in my mind, really represent the idea of a service well so I'd be excited to see what it would look like. Too bad we're never going to get out 128 core SPARC machines with an open-source microkernel like was prophesied in the Linux-MINIX debate.
- Wild 10y agoI would want to create a microkernel, but that would be really hard so I'm targeting a hybridkernel design.
- gravypod 10y agoHave you checked out the GRUB features to load blob file systems for you into memory? It's one of the best ways to implement that kind of feature (for this sort of hardware). Do you sit on some IRC somewhere? I'd be interested in talking to you about how you're approaching this work. Very cool
- Wild 10y agoI've created #PowerNex on FreeNode. I am not the most active IRC user, but I will have my BNC connected 24/7.
- Grishnakh 10y agoI think it'd be really interesting if someone tried rewriting the Linux kernel in D (or Rust for that matter) and then compared the performance, lines-of-code, etc. Maybe it could even be done with just one small but critical portion and linked, so it isn't such a monumental task.
- pjmlp 10y agoWe don't need more POSIX copies. I would rather see someone take D, Rust, Swift, whateverX and implement something modern, following the concepts explored at Xerox PARC, ETHZ and MSR in terms of OS architectures and development environments.
- DblPlusUngood 10y agoIt sounds you like you asking for more toy OSes. Supporting POSIX is necessary if the designer wants the OS to run real software.
- mindcrime 10y agoThat sounds somewhat defeatist. Taken to it's logical extreme, wouldn't that mean we'll never have anything better than POSIX? Or are you suggesting more of an 'embrace and extend' thing, where a new OS supports POSIX for backwards compatibility but adds whatever new API(s) and then tries to grow adoption of those slowly?
- Grishnakh 10y agoNo, taken to its logical extreme, that means we'll never have anything better than Win32. Basically, if you want to make an OS that's immediately useful, it has to run software that's available right now. That means either Windows (Win32 or .NET) or POSIX or maybe whatever Mac uses. That's it. Now of course, you can try to build an OS that has backwards compatibility for one standard and adds a new one. MacOSX did that to an extent to ease the transition from their older version. Windows does that too, supporting multiple APIs (even POSIX at one point). However, even here, these standards still require an OS to work a certain way underneath, which all current OSes do to a good extent. If you want to do something really, really different, it might not be so easy to build an emulation or compatibility layer. That's just the price of progress; if you want to do a clean-sheet design, you're going to sacrifice compatibility with everything that came before. If you build in backwards compatibility, that's going to limit how different you can be.
- dman 10y agoWill someone with familiarity with both Rust and D talk a bit about the similarities and differences?
- FraaJad 10y agoAndrei Alexandrescu, one of chief architects of D answered this a while ago on Quora [1]. IMO, this is a fair and nuanced answer. [1] https://www.quora.com/Which-language-has-the-brightest-future-in-replacement-of-C-between-D-Go-and-Rust-And-Why?srid=hyT https://www.quora.com/Which-language-has-the-brightest-futur...
- k__ 10y agoHehe, I saw a talk with the creators of Rust, D, C++ and Go. No one of the "older" fellas even knew the Rust guy and I don't even know anymore who he was, was it Hoare? Maybe. C++ was about "We get things fixed, I promise!" D was about "We get shit done!" Go was about "We are good enough!" Rust was about "We try new shiny things!"
- kbenson 10y agoI'm not under the impression that all that much of what Rust does, besides borrow checking, is necessarily all that new. Aren't most the other things from other languages that have used them to good effect?
- k__ 10y agoTrue story. But look at the functional stuff. I mean how much of this is really in broad use? Yes at the moment there seems to be a functional renaissance, but before that 90% of the programmers around the world tought of stuff like Haskell or OCaml as crazy academical experiments.
- kibwen 10y agoWhat "functional stuff" are you referring to? I don't consider Rust a particularly functional language, other than the fact that it has closures and the ability to `map` over iterators. And if closures and `map` are your benchmarks for functional stuff, then Python, Javascript, and Perl have been doing functional stuff for decades now. :)
- Sharonlove230 10y agoDo you need an experienced Hacker to work with? Do you want to become a Hacker and you need someone to put you through with professional hacking skills...Do you need hacking tools. Contact us immediately via mail: Sharonlove230@gmail.com thanks as we await Your Response.
- Wargog 10y agoThe creator of PowerNex, Wild, streams the development on Livecoding as well, if anyone wants to watch. https://www.livecoding.tv/wild/ https://www.livecoding.tv/wild/
- vram22 10y agoSome here are asking about D. I saw this article recently, by a tech company founder (Infognition) using D heavily for his image- and video-related products. It was interesting: Why D? http://www.infognition.com/blog/2014/why_d.html http://www.infognition.com/blog/2014/why_d.html
- Wild 10y agoHey. I'm the developer of this kernel. If you want to read a blog post about how and why I made PowerNex you can read it here. http://dlang.org/blog/2016/06/24/project-highlight-the-powernex-kernel/ http://dlang.org/blog/2016/06/24/project-highlight-the-power... AMA aswell I guess :)
- youdontknowtho 10y agoGood luck with that and I can't wait to try it out. Cheers.