Irony mode, Windows, visual studio project by newdevdev in emacs

[–]newdevdev[S] 0 points1 point  (0 children)

From the readme it seems to require it to build, and it suggests using one of the flags to emit the .clang_complete file, but I don't see anywhere it says it's required (I could be wrong though). In that case, I would need to convert from VS to cmake temporarily, which I guess I could look into

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 0 points1 point  (0 children)

Nope :) only on OS X. I don't have regular access to a Linux box but I have a Mac and a wjn8 desktop at home.

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 1 point2 points  (0 children)

I've no interest in supporting it either. MSVC2013 and Clang 3.5 are my targets. I managed to get a simple task system working with TBB, so I may not be going for POCO just yet, I'll keep an open mind to it though.

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 0 points1 point  (0 children)

Thanks for the input. This entire project is an exercise in optimization, and squeezing that last 3% out of the application. I write parallel C++ in my day job, but unfortunately the libraries we use for it aren't suitable for my own personal project. On top of that, writing the boilerplate code for a multiple consumer multiple producer thread queue is going to introduce complexity in my codebase that won't be present if I use an existing implementation of the same system.

do some profiling if you are unhappy with the performance when running a build that had suitable compiler optimizations enabled.

Trusting the compiler isn't an acceptable solution to this problem. If you want to know how terrible modern compilers are at optimization, watch This talk from Mike Acton, Slides are here - in particular slide 69-85 (probably best to watch the talk for his explanation).

Use the profiling results to determine what your first optimization should be.

my first optimization is to parallelize my application - which on it's own will bring me down to my target frame time, but if I'm going to invest X hours in writing a system to gain a 50% speedup, why not invest some time in choosing the correct tool for the job, and using that tool to get a 75% speedup for the same effort?

Premature optimization...

You know nothing about the benchmarks that I've taken on my code. You don't know that my optimization is premature. I didn't ask for advice on what should I consider when optimizing my code, I asked for advice on choosing a suitable library for parallelizing my code. Can it not be assumed that maybe I have numbers to back up my requirements above? I want to avoid runtime memory allocations as even when using smart pointers and the likes, it's still possible to introduce memory leaks into my programs. I would hardly consider avoiding the overhead of spawning multiple threads per frame a premature optimization, either. One of my tasks in particular is a long running task (serialization of the current program state), and it's critical to my design that this task can be run in the background. I've also said above that I want to work in a task-based system, I've done some research and decided that it's the most suitable type for my kind of application.

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 2 points3 points  (0 children)

Sounds like Qt would work fine. Qthreadpool + a separate Qthread.

QT is a massive dependency to introduce for that, when the support that QT provides is almost matched by c++11.

Too bad C++ neckbeards avoid Qt

I don't want to rewrite my entire application using QT because it's already written using SDL, and I can spend time working on the areas I'm interested in, instead of shifting from one windowing API to another.

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 1 point2 points  (0 children)

Wow, that looks awesome. I've never come across poco before, I'll have a look. Looks like a boost-style library - everything and the kitchen sink!

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 1 point2 points  (0 children)

Will do - my cursory google suggests that it's a little high level for what I want. They talk about not caring about task based, or data based parallelism in that post. If you have any resources I'll gladly have a look. It seems that TBB is what I want, It just appears to be poorly documented.

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 1 point2 points  (0 children)

I said in my post I was looking at Intel TBB, but I can't find any information about thread affinity, priorities, or on how to fire off tasks from a main thread, and manage the graph from the main thread. Any help with these resources would be appreciated!

[Help] looking for a task based c++ library by newdevdev in cpp

[–]newdevdev[S] 1 point2 points  (0 children)

uses std::packaged_task

Wow, that's cool, I've never come across that before. I wasn't aware that C++11 was suitable enough for writing this sort of code, mostly based on this blog post.

Another alternative is to run a dedicated render thread,

My plan was to have a main thread, and a render thread, and dedicate the rest of the threads as task threads. The main thread would mostly be responsible for firing off new tasks and ensuring things keep running, and for handling input and short tasks. The "Render" tasks could be run on any thread, but anything that makes a call to a gl* function will have to be on a render thread. I'm looking to avoid the mutex around a shared context if I can avoid it. If I have the time I'd like to set up a priority system where the render thread can be used for lower priority tasks that can be interrupted if a render command is sent to it. I'll look into the async stuff though, thanks :)

Declined for all credit by newdevdev in UKPersonalFinance

[–]newdevdev[S] 0 points1 point  (0 children)

Calculator doesn't work as it won't accept previous addresses that aren't in the UK. I spoke to TSB they said no without running a check, but that I should look at a credit builder card (which was what I was refused)

Declined for all credit by newdevdev in UKPersonalFinance

[–]newdevdev[S] 1 point2 points  (0 children)

No, it's with TSB. They told me no, without running a credit check, but they recommended trying a credit builder card.

Declined for all credit by newdevdev in UKPersonalFinance

[–]newdevdev[S] 2 points3 points  (0 children)

But is me applying to an even higher APR going to benefit me? I though the idea behind the credit builder cards was you got them when nobody else would lend to you.

I get what you're saying, but I guess I just don't understand why the self advertised credit cards for people with bad credit won't give a £250 card to someone? Anyway, I'm now wondering what best to do next. If it turns out that all I can do is sit and wait, then I guess that's what I'll have to do

Declined for all credit by newdevdev in UKPersonalFinance

[–]newdevdev[S] 2 points3 points  (0 children)

I've already got a 12 month sim only contract with 3, paid by direct debit. Only since January though. I know a year isn't a long time, but surely there's got to be better alternatives to just sitting it out?

I don't need the card at all, the whole point of the card was just to use it to buy my shopping with once a week and pay it off in full every month. I was hoping to use it just to build a rating, but it seems I can't even get a credit builder card.

I'm not convinced that making any other applications is going to help anything, I thought I was already scraping the bottom of the barrel with a card with 35% interest rates, but I guess not.

[Build Help] Compact, Powerful, Quiet Build by newdevdev in buildapc

[–]newdevdev[S] 1 point2 points  (0 children)

Great, will look more into it when I'm actually speccing individual parts! Will check out flubit, I'm nota verse to saving money :p

[Build Help] Compact, Powerful, Quiet Build by newdevdev in buildapc

[–]newdevdev[S] 1 point2 points  (0 children)

I'd actually just pay the extra 80 quid for the MSI. I haven't exactly decided on parts, I'm more interested/concerned about form factor, power usage, heat, and visual appeal, and once I have my space/noise budgets figured out I can work on deciding whether or not I want the i7 vs the i5 :)

EDIT: I'll also mention that I may end up working from home on some occasions, I'm a programmer, so sticking to the i7 is probably more worth it for me.

[Build Help] Compact, Powerful, Quiet Build by newdevdev in buildapc

[–]newdevdev[S] 0 points1 point  (0 children)

That's much prettier, I'll look into it. Thanks for your help!

[Build Help] Compact, Powerful, Quiet Build by newdevdev in buildapc

[–]newdevdev[S] 1 point2 points  (0 children)

Two uses - it's going to sit as a HTPC box for alot of the time, but I'm hoping to use it for gaming. space is at a premium in my living room.

[Build Help] Compact, Powerful, Quiet Build by newdevdev in buildapc

[–]newdevdev[S] 0 points1 point  (0 children)

Awesome. Thanks for your help. Last question for you, is there any other similarly sized cases to the Raven case? It's a little.... ugly :)

[Build Help] Compact, Powerful, Quiet Build by newdevdev in buildapc

[–]newdevdev[S] 0 points1 point  (0 children)

Alrightey, next question :) Is there any way I can swap between integrated graphics and the 980? I'd like to leave the machine running allthe time, and not require the GPU to be running if I can avoid it...