Earlier quoted context omitted.
I wouldn't be very sure about the claim that "D can never compete with Rust in performance and real-time or soft-real-time systems" . If anything, due to much better metaprogramming (as you mention), you can have D programs that ARE faster than Rust (eg: see JSON parsing benchmark [1]). You can write programs in D that have ZERO garbage collection. In fact, the core libraries (phobos) are being actively rewritten to…
The D "fastjson" version is not a general solution: > I think it is not necessary to validate data you are not using. So basically > I only scan them so much as to find where they end. Granted it is a bit of > optimization for a benchmark, but is actually handy in real-life as well. > After all you could still raise the validation level to maximum if you really > cared or call one of the validation functions. https:/…
PowerNex: a kernel written in the D Programming Language
51–60 of 79 posts
Re: PowerNex: a kernel written in the D Programming Language
#52Other kernels in D: xomb and trinix: http://wiki.xomb.org/ https://github.com/Rikarin/Trinix
Sadly, 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.)
Re: PowerNex: a kernel written in the D Programming Language
#53What's the kernel design here? Is it monolithic like linux?
I 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.
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.
Re: PowerNex: a kernel written in the D Programming Language
#54Will someone with familiarity with both Rust and D talk a bit about the similarities and differences?
I think this is a valid question. They're pretty different languages in terms of design, but they're definitely worth comparing—their problem domains do overlap in spite of design differences. I've used both, but can't claim to be much of an expert in either. Similarities: • Compile to fast, easy-to-deploy native code • Abstraction continuum ranging from very low-level C-like style to a high-level more functional sty…
Re: PowerNex: a kernel written in the D Programming Language
#55Earlier quoted context omitted.
I think this is a valid question. They're pretty different languages in terms of design, but they're definitely worth comparing—their problem domains do overlap in spite of design differences. I've used both, but can't claim to be much of an expert in either. Similarities: • Compile to fast, easy-to-deploy native code • Abstraction continuum ranging from very low-level C-like style to a high-level more functional sty…
> it means with Rust you will spend more time thinking about memory ownership and other important-but-eliminated-by-GC concerns. Both are easier to deal with than C or C++. I think an important wrinkle here is that Rust's ownership model helps prevent many runtime-errors other than memory safety. I'm not sure how D handles problems like iterator invalidation, but I've found it really nice to always know what's able t…
Re: PowerNex: a kernel written in the D Programming Language
#56Earlier quoted context omitted.
D's GC really could use some love, but they are working on it this year's GSoC. As for using GC in a systems programming language, even last a few days ago we had the links from Xerox Star. Originally developed in Mesa, which eventually became Cedar, that made use of GC. Also the whole set of ETHZ Oberon workstations. And many other experiences. The oldest I can find is a Flex computer system developed by the UK Roya…
I didn't say D wasn't suitable for writing OSes. Might as well throw Singularity into the list of GCed operating systems. I did say D is unsuitable for real-time and soft-real-time programs, OS or otherwise. You can't write an RTOS in D.
Can't is a pretty strong word. You can write C-style code in D that compiles and behaves identically to C, including malloc/free.
Re: PowerNex: a kernel written in the D Programming Language
#57AMA aswell I guess :)
Re: PowerNex: a kernel written in the D Programming Language
#58What's the kernel design here? Is it monolithic like linux?
Re: PowerNex: a kernel written in the D Programming Language
#59What's the kernel design here? Is it monolithic like linux?
I 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.
Re: PowerNex: a kernel written in the D Programming Language
#60Earlier quoted context omitted.
I 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.
Yea, 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.