Which Multithreading Solution?

2018-03-04 Thread Drew Phil via Digitalmars-d-learn
Hey there! I'm trying to figure out which of D's many multithreading options to use for my application. I'm making a game that runs at 60 frames per second that can also run user-made Lua scripts. I would like to have the Lua scripts run in a separate thread so they can't delay frames if

Error when profiling

2015-01-31 Thread Phil via Digitalmars-d-learn
When trying to run my program with profiling enabled it dies before the first line of my main function runs. Everything works fine without profiling. I get the following stack trace: thread #1: tid = 0x38de4, 0x00010008d985 vision_entry`gc_malloc + 49, queue = 'com.apple.main-thread',

Re: vibe.d error

2015-01-27 Thread Phil via Digitalmars-d-learn
Bumping as it's still not possible to install lib event via dub. On Sunday, 25 January 2015 at 17:41:38 UTC, Phil wrote: dub init name vibe.d cd name dub Results in Fetching libevent 2.0.1+2.0.16... Error executing command upgrade: Failed to download

Re: vibe.d error

2015-01-27 Thread Phil via Digitalmars-d-learn
I was using 0.9.21. Upgrading has fixed this issue, thanks to you both.

vibe.d error

2015-01-25 Thread Phil via Digitalmars-d-learn
dub init name vibe.d cd name dub Results in Fetching libevent 2.0.1+2.0.16... Error executing command upgrade: Failed to download http://code.dlang.org/packages/libevent/2.0.1%252B2.0.16.zip: 404 Not Found I'm not sure if the error is the file not being there or dub looking there. Is there

Re: Colour operations using CyberShadow's graphics library

2015-01-19 Thread Phil via Digitalmars-d-learn
Brilliant, thanks a lot. That works a treat, allowing me to use c1 + c2 when c1 :: RGB and c2 :: ChangeChannelType!(RGB, int), say. It's not happy with doubles atm, but presumably this is sorted in your push. Thanks again :-) On Monday, 19 January 2015 at 21:11:34 UTC, Vladimir Panteleev

Re: Colour operations using CyberShadow's graphics library

2015-01-19 Thread Phil via Digitalmars-d-learn
I've done this by declaring a static array of the same length as ViewColor!V.channels, and foreach-ing over the channels in a colour, but this seem uglier than it need to - it would be nice if I could just define + and = appropriately on double[] and colours to do the right thing. On Sunday,

Colour operations using CyberShadow's graphics library

2015-01-18 Thread Phil via Digitalmars-d-learn
Hi, I'm new to D and having a go at writing some image processing stuff using Vladimir's ae.graphics library. To filter (i.e. perform correlations/convolutions) on a view with colour type C, I'd like to perform intermediate calculations using a colour with the same number of channels as C,

Re: RFC on SlidingSplitter Range

2014-10-03 Thread Phil via Digitalmars-d-learn
Is prefix ++ preferred in D because of some specific reason? I recall it, for some containers/iterators, gives smaller/faster codegen in C++? I assume the reason is the same as in C++. As users can provide their own implementations of pre and postfix incrementing, the compiler can't

Re: Opening dub packages in Mono-D

2014-10-01 Thread Phil via Digitalmars-d-learn
mm... is your 'project' a dub package itself? if not, convert it to dub and add it to dependency section in your dub package. then you will be able to open your fresh created project using mono-d with all its dependencies, a bonus you will be able to generate visuald project files too.

Opening dub packages in Mono-D

2014-09-30 Thread Phil via Digitalmars-d-learn
I'm trying to use Mono-D, but can't work out how to do simple things. I've tried looking for tutorials but this http://wiki.dlang.org/Mono-D is all I could find. I want to reference Pegged from a Mono-D project. I can't add its package.json as a project to my solution as I'm told that this

Debugging on OSX

2014-09-27 Thread Phil via Digitalmars-d-learn
I've seen a few old threads mentioning this, but couldn't find anything more recent. What support is there for debugging on OSX? I'm currently trying MonoD, but the option to run with debugger is greyed out.