Hacker News new | ask | show | jobs
by fb03 2760 days ago
Random Fact: I can't help but smile when I read that D's "STL" is called Phobos because of my Doom 2 nostalgia :)

Have a nice day, everyone o/

3 comments

Well, Walter's company is Digital Mars so that's where he gets his naming scheme from. Nothing to do with Doom except they both are using the same Greco-Roman deity astronomical naming scheme.
Originally D was supposed to be named Mars. The stdlib is named Phobos and there is a project called Deimos which is about providing bindings to C libraries.
Apropos of D and Phobos, two posts from my blog:

Simple parallel processing in D with std.parallelism (it really did speed things up, ~3x (CPU, not I/O), by my unscientific and small test at least):

https://jugad2.blogspot.com/2016/12/simple-parallel-processi...

D language front-end merged with GCC 9; some sample D programs:

https://jugad2.blogspot.com/2018/10/d-language-front-end-mer...

Excerpt from the link above, that says what the post is about:

"Here are a handful of D programs that use various features of the language and some of its libraries, on my blog. Most of them are simple command-line utilities to do various things. Readers may find them of use to get a flavor of the language and to know some of the kinds of things it can be used for."

D's runtime is called Phobos because the language was originally named Mars.
I like how main() can still be found in mars.d[1].

1. https://github.com/dlang/dmd/blob/master/src/dmd/mars.d#L909