d

C# ANTLR grammar?

I'm looking for turn-key ANTLR grammar for C# that generates a usable Abstract Syntax Tree (AST) and is either back-end language agnostic or targets C#, C, C++ or D. It doesn't need to support error reporting. P.S. I'm not willing to do hardly any fix-up as the alternative is not very hard. ...

Are there any open source projects in D?

I remember looking at D about 2 years ago, and it looked nice, was actually faster than C for some of the typical language benchmarks, and in general seemed ok, but I didn't find any real projects written in D back then, so I just left as a I came. Now that a few years have passed I was wondering if there have been any projects done in...

Free D tutorials?

Hello, I wondered where I could find any free and preferably good tutorials about the D programming language. The homepage only suggests the following: The D book Learn to Tango with D by Kris Bell, Lars Ivar Igesund, Sean Kelly and Michael Parker is now out. But I don't really want to spend any money on it (yet). So do you have ...

Is there an IDE for D with integrated debugger?

Is there an IDE for D with integrated debugger? ...

STL __merge_without_buffer algorithm?

Where can I get a decent high-level description of the algorithm used in __merge_without_buffer() in the C++ STL? I'm trying to reimplement this code in the D programming language, with some enhancements. I can't seem to grok what it's doing at the algorithmic level from just reading the STL source code because there are too many low-l...

GUI Libraries for D

What is the current status of GUI programming with D Language? Are the language developers planning include GUI in the standard library? The List (compiled from answers) DWT (SWT binding) GtkD (GTK binding) wxD (wxWidgets binding) QtD (Qt binding) ...

Turning off the D garbage collector

I'm a C++ programmer thats considering using D for a personal project I want to play around with. I was wondering if there's a way to completely disable the garbage collector, and what the risks are of doing so. I know I can manage my own memory by overriding new and delete to use malloc and free, but if I did that I'd rather the gar...

Why is thread local storage so slow?

I'm working on a custom mark-release style memory allocator for the D programming language that works by allocating from thread-local regions. It seems that the thread local storage bottleneck is causing a huge (~50%) slowdown in allocating memory from these regions compared to an otherwise identical single threaded version of the code,...

How does memchr() work under the hood?

Background: I'm trying to create a pure D language implementation of functionality that's roughly equivalent to C's memchr but uses arrays and indices instead of pointers. The reason is so that std.string will work with compile time function evaluation. For those of you unfamiliar w/ D, functions can be evaluated at compile time if ce...

Using D programming language in a .NET context

I'm curious: has anyone used D together with .NET languages? Is that even possible? What kind of stuff is easier/makes sense to do in D that's hard to do in, say, C++/CLI? ...

D programming language char arrays

This may sound really stupid. but I've got a strange problem with the D programming language. When I try to create a new array like this: import std.stdio; void main() { char[] variable = "value"; writefln(variable); } The DMD compiler always gives me this error: test.d(5): Error: cannot implicitly convert expression ("...

D programming language IRC library

Hey, I'm searching for a D IRC library. Yes I know there is dirclib, but this one unfortunately doesn't seem to be compatible with version 1 or 2 of the language (anymore). When I try to use it with the 2.014 alpha for Ubuntu it throws several errors. Do you've got any ideas/advises? ...

How to parallelize small pure function?

I have D2 program that, in its current form, is single threaded, and calls the same pure function about 10 to 100 times in an inner loop for each iteration of the outer loop of this program. There is no data dependency among the calls, i.e. no call uses the result from any other call. Overall, this function is called millions of times,...

const vs enum in D

Check out this quote from here, towards the bottom of the page. (I believe the quoted comment about consts apply to invariants as well) Enumerations differ from consts in that they do not consume any space in the final outputted object/library/executable, whereas consts do. So apparently value1 will bloat the executable, while va...

D function using the x86 CMPXCHG Compare-and-swap

I'm looking for a function that presents a high level D interface to an atomic CAS on Intel x86. I know I can do it with inline ASM (and if needed I will), but I'd rather just grab code from someone else if I can. ...

About the non-nullable types debate

I keep hearing people talk about how non-nullable reference types would solve so many bugs and make programming so much easier. Even the creator of null calls it his billion dollar mistake, and Spec# has introduced non-nullable types to combat this problem. EDIT: Ignore my comment about Spec#. I misunderstood how it works. EDIT 2: I m...

Linear algebra library for the D programming language.

I'm looking for a package to do matrix math with matrices of up to about 100 x 100. I need to, at a minimum, do inverses, multiplication and transposition. I'd prefer a more encapsulated interface over higher performance. ...

Platform independent file locking?

I'm running a very computationally intensive scientific job that spits out results every now and then. The job is basically to just simulate the same thing a whole bunch of times, so it's divided among several computers, which use different OSes. I'd like to direct the output from all these instances to the same file, since all the com...

Where to get D for .Net

Hi, Where can I get D for the .Net framework? ...

D standard library

I've decided to learn D, and I'm wondering which standard library I should use. Should I use Phobos or Tango? What are the pros and cons of each? ...