I have an app that uses this library (actually a direct port to D) for some image processing. I'm looking for some other libraries of a similar style to use to load other file types.
Things I need/want:
Loss less format.
Simple C API.
Loads data into buffers in a raw pixel format.
Open source (as in I can get source files and compile ...
Is there a good, platform-agnostic way to implement a variable that's local to both a thread and a class instance, i.e. if you have T threads and I class instances, you have TxI instances of that variable? I'm using the D programming language, version 2, but a good language-agnostic answer would also be useful.
Here are some constraint...
Hi All,
I am writing an info-screen program. I created a full-screen widget and draw contents onto it.
In order to extend the life cycle of the TFT-display device, I want to implement a pixel-shifting feature. With other words, in every X minutes, I shift the screen to left/right/top/down for Y pixels.
My approach is as follows:
I ...
My question is sort of like this question but I have more constraints:
I know the document's are reasonably sane
they are very regular (they all came from the same source
I want about 99% of the visible text
about 99% of what is viable at all is text (they are more or less RTF converted to HTML)
I don't care about formatting or even pa...
I've just completed a significant revision of my task pool/parallelization library for the D programming language. I'm interested in having the API critiqued, especially by people who are not regular users of D, but know a decent amount about use cases for such a library. I'd like to avoid the groupthink that would be created by asking...
I'm trying to setup directoy structure with dsss:
./proj -- project files
./src -- source
./dev -- dev files, test files
./lib -- source for libraries used
./res -- resource files
./doc -- documentation
./bin -- binary files
./obj -- object files
Not properly working dsss.conf in the ./proj directory.
name=SomeProje...
I'm looking to submit a patch to the D programming language standard library that will allow much of std.math to be evaluated at compile time using the compile-time function evaluation facilities of the language. Compile-time function evaluation has several limitations, the most important ones being:
You can't use assembly language.
Y...
I'm trying to write a function in the D programming language to replace the calls to C's strtold. (Rationale: To use strtold from D, you have to convert D strings to C strings, which is inefficient. Also, strtold can't be executed at compile time.) I've come up with an implementation that mostly works, but I seem to lose some precisi...
I'm working on a project where I need to store a matrix of numbers indexed by two string keys. The matrix is not jagged, i.e. if a column key exists for any row then it should exist for all rows. Similarly, if a row key exists for any column then it should exist for all columns.
The obvious way to express this is with an associative a...
I'm working on a parallelization library for the D programming language. Now that I'm pretty happy with the basic primitives (parallel foreach, map, reduce and tasks/futures), I'm starting to think about some higher level parallel algorithms. Among the more obvious candidates for parallelization is sorting.
My first question is, are p...
On DevMaster.net I found only RealmForge. Is this the only choice? Are C/C++ game engines suitable for D? If yes, what difficulties I need to overcome to work with them?
...
Is there a common portable idiom in numerics code (I'm writing in D, but language-agnostic, C and C++ answers would be useful to me, too) to ensure that all stack-allocated doubles that are accessed frequently are aligned on 8-byte boundaries? I'm currently optimizing some numerics code where misaligned stack-allocated doubles (only ali...
I'd like to try out the D programming language. I have simple pet project I've been meaning to finish and I thought it would be good opportunity to learn D 2.0.
However, my primary OS is kubuntu 64bit dual booting with Windows 7 64bit and I can't seem to get it to work. The project will use SDL and I suspect my 64 bit OS might be the ...
I am very new to D and still battling trying to configure my toolchain.
I am running Ubuntu Karmic and would like to use DSSS with GDC and Tango or TangoBos.
Till now, I installed GDC from Ubuntu repositories, DSSS, Tango and TangoBos from these repositories and I can compile using dsss + gdc + tangobos.
According to DSSS documentatio...
In the D language how I can read all standard input and assign it to a string (with Tango library) ?
...
I've been more or less interested in "D" for a couple years now and recently decided to start actually playing with it. I've been able to grasp the basics quite easily and I completely love the basic feature set of the language and the more I read about it, tho more impressed I get.
Now, I'm very interested in writing a custom web appli...
D2.0 classes have a __monitor class property that "gives access to the class object's monitor" (documentation). I searched around a bit and did not find any information except for this bit of detail. So: what is a monitor? Why is one monitor used for all synchronized member functions? Is it a synchronization primitive used for synchroni...
With D and Tango library can I read and write in the ANSI encoding ?
...
This is so simple I'm embarrassed to ask, but how do you convert a c string to a d string in D2?
I've got two use cases.
string convert( const(char)* c_str );
string convert( const(char)* c_str, size_t length );
...
I am writing D2 bindings for Lua. This is in one of the Lua header files.
typedef int (*lua_CFunction) (lua_State *L);
I assume the equivalent D2 statement would be:
extern(C) alias int function( lua_State* L ) lua_CFunction;
Lua also provides an api function:
void lua_pushcfunction( lua_State* L, string name, lua_CFunction func ...