Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!

D Bits

Compiling Data into a D Executable

Posted by Aldacron, in D 03 March 2012 · 4,870 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,276 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 · 5,613 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 · 619 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 · 653 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 · 503 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 · 541 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,184 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...

Dolce Progress, Importing D Modules in a Function, and WYSIWYG Strings

Posted by Aldacron, in D, Dolce 31 July 2011 · 556 views

I've made a bit of progress on Dolce, but I realized something while I was doing it. My purpose for starting the project was to work on a game idea I've had for a long, long time. I knew from the get go that graphics were going to be a problem The problem is the open-endedness and complexity of the game experience. To pull it off, I either need very...

D's Default Initializers

Posted by Aldacron, in D, Dolce 02 July 2011 · 532 views
D, Dolce
I've been away from Dolce for a couple of weeks now. Just came back to it last night and realized I don't like it. I've horribly over engineered some of the modules. So from last night I started stripping stuff out and refactoring. In the process, I realized a silly mistake in my resource management code. I'm throwing it out and rewriting it...

June 2015 »

 12 3 456

Recent Entries

Recent Comments