Jump to content

  • Log In with Google      Sign In   
  • Create Account

D Bits

Putting D's Array Slices to Use

Posted by Aldacron, in BorderWatch, D 08 March 2012 - - - - - - · 1,829 views

I've been working on BorderWatch a little bit every day. My focus has been on getting the ASCII engine, Arthur, into a state that will let me get a game up and running. With the few modules that I've implemented so far, I believe I'm there. One of the D features that has...


Posted by Aldacron, in BorderWatch, D 05 March 2012 - - - - - - · 1,602 views

I'm afraid I'm going to be waving goodbye to Dolce. It's been sitting, bit rotting, for a while now. Some time ago I encountered two major issues with my Allegro binding in Derelict 2. One, a random (and I mean...

Compiling Data into a D Executable

Posted by Aldacron, in D 03 March 2012 - - - - - - · 5,642 views

I'm supposed to be posting part three of my series on binding D to C. It's going to be boring to write, so I keep putting it off. But I *will* get to it eventually. In the meantime, I wanted to blog about a neat feature of D that I'd sort of forgotten about until I needed it.

I'm working on an ASCII-based strategy/simulation game in the...

Binding D to C Part Two

Posted by Aldacron, in Binding to C, D 30 January 2012 - - - - - - · 3,936 views

This is part two of a series on creating bindings to C libraries for the D programming language.

In part one, I discussed the difference between dynamic and static bindings and some of the considerations to take into account when deciding which way to go. Here in part two, I'm...

Binding D to C

Posted by Aldacron, in Binding to C, D, Derelict 08 January 2012 - * * * * * · 6,621 views

This is part one of a series on creating bindings to C libraries for the D programming language.

This is a topic that has become near and dear to my heart. Derelict is the first, and only, open source project I've ever maintained. It's not a complicated thing. There's very little...

Dolce and Da5teroids

Posted by Aldacron, in D, Dolce 18 December 2011 - - - - - - · 813 views
D, Dolce, Derelict
So I've finally gotten started on some game code. In order to see if Dolce is actually useful or a waste of time, I decided to start by porting the A5teroids demo that ships with the Allegro 5 package. Here's what I've learned so far.

First, the whole idea of Dolce as a framework on top of Allegro to allow an absolute minimum amount of startup...

On My Job, and Some Big D News

Posted by Aldacron, in D, Dolce, Me 09 October 2011 - - - - - - · 810 views
Dolce, D, Me
Dolce is still very much alive, just getting little attention while I wrap up the second semester at the university. For anyone interested, I'm teaching in a special program where a local university here in Seoul is partnered with a university in America. The students do two semesters here in Korea before moving off to the States for three years. We...

Dolce Refinements

Posted by Aldacron, in D, Dolce 04 September 2011 - - - - - - · 692 views
Dolce, D
In my last post, I showed the minimal amount of code needed to get something up and running with Dolce. And while it's a really small amount of code, something kept bugging me about the implementation. It just wasn't "D" enough.


Dolce and Overriding Methods in D

Posted by Aldacron, in D, Dolce 21 August 2011 - - - - - - · 751 views
D, Dolce
I'm making very slow progress on Dolce, but progress nonetheless. I managed to grab a couple of hours today to refactor event handling and to simplify the framework interface.

In my initial implementation, it was necessary when making a game with Dolce to make all of the initialization and termination calls yourself. All of these calls are found in the...

D Structs vs Classes and a Simple Template Example

Posted by Aldacron, in D, Dolce 02 August 2011 - - - - - - · 1,618 views

D shares a lot of similarities with C++ and Java, but a lot of the sameness is just a bit different. One of the first places new users see this is in the handling of structs and classes.

D's classes have more in common with those of Java than C++. For starters, they're reference types. Whenever you need an instance of a class, you new it and it is...

July 2016 »

242526272829 30

Recent Entries