News for hackers. Stuff that matters.
Re:Programming in D by steveklabnik on Sunday May 12, 2013 @07:21AM (#5693884)
D is a fun language, and some friends and I (mostly my friends) have been/were writing an exokernel in it[1], but between the weird licensing, D1 -> D2 transition, dual standard libraries, and a few other things, it's been really rocky.

I hear it's a bit better these days, but my "better C++" interests lie in Rust nowadays. That said, this link is one of the ways D is strictly better: since it's been around a while, there's more educational information out there.

1: https://github.com/xomboverlord/xomb

Re:Programming in D by eco on Sunday May 12, 2013 @02:05PM (#5695177)
I'm curious what the "few other things" are because the things you mention specifically are a few years out of date at this point. I'm not sure what licensing issues you've had but phobos is Boost licensed which is extremely liberal (basically "use for whatever you want just don't remove this license text when copying this source code").

Pretty much everyone uses D2 these days unless they are maintaining a legacy system written in D1 and transitioning to D2 isn't worth the effort in their case.

Phobos versus Tango hasn't been an issue for years. In fact, in D2 you can use Phobos and Tango side by side[1].

Rust is very interesting and I'm excited to see where it is headed but it's still rather immature compared to something like D.

1. https://github.com/SiegeLord/Tango-D2

Re:Programming in D by steveklabnik on Sunday May 12, 2013 @02:59PM (#5695389)
> the things you mention specifically are a few years out of date at this point.

Right, hence the 'I hear it's a bit better these days.' Maybe I should have been more clear.

> I'm not sure what licensing issues you've had

The whole time I was using the language, there was the dual licensed aspect of the compiler, where the front end (I think?) was not open, but the back end was? Or maybe the other way around? I think I heard that Walter ended up OSSing the entire thing. As a strong BSD proponent I find complex licensing requirements tiring.

> but it's still rather immature compared to something like D.

Right, I thought I said this too.

Re:Programming in D by eco on Sunday May 12, 2013 @03:33PM (#5695520)
Yeah, Walter did end up opening up the backend to DMD but the backend is still not Free Software only because Walter is licensing it from Symantec. He accepts patches to fix problems in it but it is less than ideal. The frontend is GPL and has had the copyright assigned to the FSF.

The good news is that GDC (gcc backend) and LDC (LLVM backend) both produce faster binaries than DMD and are completely open source. The only downside is they tend to be a version or two behind DMD (which at DMD's release rate is around 3-6 months or so I'd say). Also, LDC isn't available for Windows primarily because LLVM doesn't yet support SEH exceptions.

In any case, the compiler's licensing doesn't affect software you write in D.

Re:Programming in D by WalterBright on Sunday May 12, 2013 @01:57PM (#5695134)
The dual library thing was resolved several years ago. There's also a fully GPL licensed version (GDC).
Re:Programming in D by steveklabnik on Sunday May 12, 2013 @03:00PM (#5695398)
Oh, GDC is back? Last I saw, it hadn't received commits for a loooong time, and we were using LDC.

Even for a while after the phobos/tango thing 'was resolved,' people were still bitter/split over it.

Like I said, I'm glad things are better nowadays.

Re:Programming in D by WalterBright on Sunday May 12, 2013 @04:52PM (#5695777)
GDC is under intensive active development, led by Iain Buclaw.

http://dconf.org/talks/buclaw.html

There's also LDC led by David Nadlinger:

http://dconf.org/talks/nadlinger.html

Re:Programming in D by steveklabnik on Monday May 13, 2013 @09:35AM (#5698523)
Glad to hear it.
Re:Programming in D by nja on Sunday May 12, 2013 @10:56AM (#5694463)
Do you think you can go into more detail on what you've found to be better in D vs Rust?
Re:Programming in D by steveklabnik on Sunday May 12, 2013 @03:03PM (#5695417)
My D is rusty by now (ha!), but one thing is how different their macro system is.

The biggest thing that D is better at is having been around for a much longer time. There's way more docs and users.

Re:Programming in D by 0b1100110 on Monday May 13, 2013 @04:39PM (#5701250)
I find D to be much less complex than Rust. Rust, even now, is woefully incomplete. Take the 'rust' tool for instance, see how many bugs you can find just in the flags that you can pass to it!

(it's a substantial amount... or it just decides to break conventions, which dmd did also with it's '-offilename' type flags.)

Rust is also harder to learn, and it seems (to me) to also be more difficult to use C libraries from Rust than D. I cut my teeth on D by creating a few bindings, and I really struggle to do the same in Rust.

Just my experiences...

PS - Rereading this it occurs to me that D is probably just as complex as Rust, but it 'feels' less complex due to syntax familiarity.