Problem with a convoluted templated struct

2011-06-28 Thread Kiith-Sa
Hello. I am trying to implement a templated struct containing a data member created by std.variant.Algebraic instantiated with the struct's template parameters. The problem is, I want to template the struct with e.g. arrays (lists, etc.) of its own type. I don't know any way to do this without

Unable to get Phobos working on Ubuntu x64 (Oneiric)

2011-09-16 Thread Kiith-Sa
I've just installed a new system - Ubuntu 11.10 beta x64 and can't get dmd/phobos 2.055 to work. When I try to compile file hello.d with the following content: import std.stdio; void main() { writeln("Hello World!"); } I get this error: /usr/lib/gcc/x86_64-linux- gnu/4.6.1/../../../../l

Re: Unable to get Phobos working on Ubuntu x64 (Oneiric)

2011-09-16 Thread Kiith-Sa
Jonathan M Davis wrote: > On Friday, September 16, 2011 12:47 Kiith-Sa wrote: >> I've just installed a new system - Ubuntu 11.10 beta x64 and can't get >> dmd/phobos 2.055 to work. >> >> When I try to compile file hello.d with the following content: >

Re: D for game Development

2012-02-15 Thread Kiith-Sa
On Wednesday, 15 February 2012 at 06:51:11 UTC, RedShift wrote: Can I use OpenGL or DirectX with D? If so, where can I find a guide to get everything setup? Derelict provides bindings for OpenGL and SDL (and many other game-related libraries) - these are used exactly the same way they are use

Re: D for game Development

2012-02-15 Thread Kiith-Sa
To clarify, Derelict 2 fully supports up to OpenGL 3.3. 4.x support is partial (but will be fully implemented very soon). Derelict 3 supports all versions of OpenGL, minus features deprecated in 3.x (i.e. core OpenGL profiles only). Does that mean it is not possible to use old OpenGL 2.x style

Re: vim tips for D development

2012-02-19 Thread Kiith-Sa
On Sunday, 19 February 2012 at 13:37:19 UTC, simendsjo wrote: A question for the vim users out there: What plugins etc are you using when writing D code? I'm using the patched ctags, updated d.syntax and snipMate, but are there other good plugins I could use? I use SnipMate with many custom sn

Re: vim tips for D development

2012-02-19 Thread Kiith-Sa
On Sunday, 19 February 2012 at 20:09:58 UTC, simendsjo wrote: On Sun, 19 Feb 2012 17:00:37 +0100, Kiith-Sa <4...@theanswer.com> wrote: Thanks. supertab and autoComplPop seems really nice. A couple of other stuff to add to the list: surround, delimitMate and "smart semicolon

Re: Math Libraries (and vectors, matrices, etc)

2012-03-13 Thread Kiith-Sa
SciD is a scientific math library providing vectors/matrices of arbitrary sizes, but not useful at all for game development. See gl3n for a game-oriented vector/matrix library: https://bitbucket.org/dav1d/gl3n Also, AFAIK, Manu is working on what should end up being a Phobos module for game-ori

Re: struct or class

2014-08-24 Thread Kiith-Sa via Digitalmars-d-learn
On Sunday, 24 August 2014 at 11:56:44 UTC, nikki wrote: I come from languages that don't offer structs, I have this json load function that has to keep some data and intuitively I've written a struct, I've read about the differences, heap vs stack, value vs reference, but know I think i am over

Re: Learning D

2014-08-25 Thread Kiith-Sa via Digitalmars-d-learn
On Monday, 25 August 2014 at 16:46:11 UTC, Ryan wrote: Me: Software developer for 30 years. So perhaps this is old fashion, but I wanted to start using D by whipping together nice little personal utilities. I tried installing MonoDevelop and Mono-D. I can't even figure out the basics, such

Re: Learning D

2014-08-25 Thread Kiith-Sa via Digitalmars-d-learn
On Monday, 25 August 2014 at 17:47:47 UTC, Ryan wrote: Thanks for both responses. This is the information I was looking for. I have DMD, GTK# (For MonoDevelop), MonoDevelop, MonoD, dubs, and GTKD installed. I've got some things to compile... So the crux of my issue is that I can't figure o

Re: Non-GC based List/Set/Map implementation?

2014-08-26 Thread Kiith-Sa via Digitalmars-d-learn
On Tuesday, 26 August 2014 at 10:38:47 UTC, Bienlein wrote: Hello, does anyone know of a List/Set/Map implementation that does not rely on the GC? The would be the last thing I need for D to be really happy with it ;-) Thanks, Bienlein These use the work-in-progress std.allocator and seem

Re: How to get nogc to work with manual memory allocation

2014-09-04 Thread Kiith-Sa via Digitalmars-d-learn
On Sunday, 24 August 2014 at 08:03:11 UTC, Bienlein wrote: Hello, I was having a look at the new nogc annotation and therefore wrote some code that creates an instance on the heap bypassing the GC (code adapted from http://dpaste.dzfl.pl/2377217c7870). Problem is that calls to call the class'

Re: profiling issues

2014-09-11 Thread Kiith-Sa via Digitalmars-d-learn
can only measure execution time (still very useful, down to instruction level). RotateRight Zoom, Intel VTune should also be good, but both are commercial. If you're writing a game or any other real-time interactive application and need to profile occasional lags, you might need a different approach (but in this case you won't avoid manual instrumentation, although it's rather easy to use): http://defenestrate.eu/2014/09/05/frame_based_game_profiling.html https://github.com/kiith-sa/tharsis.prof

Re: Hunting down rogue memory allocations?

2014-10-02 Thread Kiith-Sa via Digitalmars-d-learn
On Thursday, 2 October 2014 at 20:16:56 UTC, Gary Willoughby wrote: Say i have created a program written in D, what tools are available for me to track memory allocations? If you write a program and its performance is slow because you suspect too many allocations are taking place in unrecognis

Re: Hunting down rogue memory allocations?

2014-10-03 Thread Kiith-Sa via Digitalmars-d-learn
On Friday, 3 October 2014 at 08:18:45 UTC, thedeemon wrote: On Thursday, 2 October 2014 at 20:16:56 UTC, Gary Willoughby wrote: Say i have created a program written in D, what tools are available for me to track memory allocations? I wrote a tiny module trackallocs.d that inserts a GC proxy an

Idea/request: If you have a DUB project, add a code.dlang.org badge to README

2014-12-30 Thread Kiith-Sa via Digitalmars-d-learn
age strips showing things like continuous integration status, code coverage, etc. There's also a service generating these: shields.io I generated a simple "listed at| code.dlang.org" shield, and added it to my project READMEs as a link pointing to code.dlang.org for example, see D:Y

Re: Idea/request: If you have a DUB project, add a code.dlang.org badge to README

2014-12-30 Thread Kiith-Sa via Digitalmars-d-learn
On Tuesday, 30 December 2014 at 21:19:52 UTC, jklp wrote: On Tuesday, 30 December 2014 at 21:12:38 UTC, Kiith-Sa wrote: A few weeks/months ago someone here mentioned that it'd be good if DUB projects linked to code.dlang.org to help anyone who runs into such a project quickly discover ot

Re: Idea/request: If you have a DUB project, add a code.dlang.org badge to README

2014-12-30 Thread Kiith-Sa via Digitalmars-d-learn
On Tuesday, 30 December 2014 at 21:19:52 UTC, jklp wrote: On Tuesday, 30 December 2014 at 21:12:38 UTC, Kiith-Sa wrote: A few weeks/months ago someone here mentioned that it'd be good if DUB projects linked to code.dlang.org to help anyone who runs into such a project quickly discover ot