Re: Idiomatic D?

2014-01-30 Thread Kelet
On Thursday, 30 January 2014 at 20:05:11 UTC, Tofu Ninja wrote: I hear it thrown around a lot but what does it actually mean? What does the ideal D code look like? What kind of things should some one think about if they are trying to do idiomatic D? Here is one of the few previous threads on

Re: Multiple while-loops parallelism

2014-01-17 Thread Kelet
edia.org/wiki/Thread_safety [2]: http://dlang.org/phobos/std_parallelism.html#.Task [3]: http://dlang.org/phobos/std_concurrency.html Regards, Kelet

Re: When creating a binding package in the dub repository do you specify the link flags?

2014-01-10 Thread Kelet
you can think of a case that might happen where the link flags may be erroneous or unnecessary, have two configurations: one which has the link flags, and one which does not. Regards, Kelet

Re: Thread Building Blocks

2014-01-09 Thread Kelet
On Thursday, 9 January 2014 at 19:15:50 UTC, Ross Hays wrote: Does anybody know if there is a library like thread building blocks for D? I imagine that it hasn't been ported or anything given it is a C++ library and licensed inconveniently. If not, is there something in Phobos similar to it or

Re: dub and ddox

2014-01-08 Thread Kelet
On Wednesday, 8 January 2014 at 09:47:03 UTC, Sönke Ludwig wrote: In that particular case (dub build --build=ddox), you can just have your own versions of the style files in your docs/styles/ folder (copy and modify from ddox/public/styles). That won't work for "dub run --build=ddox" as it will

Re: segfault when using std.parallelism and std.process.executeShell

2014-01-07 Thread Kelet
On Tuesday, 7 January 2014 at 23:12:09 UTC, Ali Çehreli wrote: don't know the original problem but that program works without any problem with the current dmd on github. Works for me on dmd v2.064 (current stable) on Windows.

Re: dub and ddox

2014-01-07 Thread Kelet
Also, I cannot find any documentation on ddox arguments (ddoxFilterArgs). Is this currently not available? I had to look through the source code and vibe.d to figure them out. Regards, Kelet

dub and ddox

2014-01-07 Thread Kelet
Hello, I'm working on a library, and I'm trying to write the documentation with Sönke's ddox software[1]. As I understand, it works with the Ddoc documentation format[2]. The first problem I came across is that documented unit tests weren't being converted into examples like in [2]. I came t

Re: Generating assembly from dmd

2013-12-22 Thread Kelet
On Sunday, 22 December 2013 at 14:31:44 UTC, Kelet wrote: There is obj2asm by Walter, but it is part of the paid Digital Mars package (AFAIK). Correction: obj2asm actually seems to come with DMD for Linux and Mac, but not Windows, where it seemingly needs to be purchased in the C and C

Re: Generating assembly from dmd

2013-12-22 Thread Kelet
On Sunday, 22 December 2013 at 14:31:44 UTC, Kelet wrote: DMD never discretely generates assembly To clarify, DMD goes straight from its intermediate representation (IR) of the code to the binary opcodes, which is part of the reason why it compiles faster relative to GDC or LDC. Regards

Re: Generating assembly from dmd

2013-12-22 Thread Kelet
On Sunday, 22 December 2013 at 14:17:50 UTC, Joseph Rushton Wakeling wrote: Hi all, Can someone walk me through in a friendly way how to check the assembly produced by dmd? The application in this case is checking some new patches to Phobos. It's something I'm not familiar with doing in gene

Re: Compiling D inside of a D program

2013-12-21 Thread Kelet
]: http://docs.oracle.com/javase/7/docs/api/javax/tools/JavaCompiler.html Regards, Kelet

Re: How to load a derelict program in D?

2013-12-06 Thread Kelet
On Friday, 6 December 2013 at 19:50:52 UTC, Jeroen Bollen wrote: I am using the derelict-sfml2 package in my code. My code: import std.stdio; import derelict.sfml2.window; void main() { DerelictSFML2Window.load(); sfVideoMode videoMode = sfVideoMode(1280, 720); sfWindow* window