Wednesday, February 12, 2014
RVO and more
Often I wonder about what is the best way to code my C++. For example, read the first paragraph of the following (excellent) article:
http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/
In that article, Dave Abrahams suggests that C++0x compliance is sufficient for proper return value optimization. Note also in the comments about the requirement to create a variable in the function definition to guarantee RVO. However the fact remains that many projects are still stuck on VS 2008. I have not seen any detailed comparison of which optimizations are supported by each compiler version.
Monday, February 10, 2014
Microsoft Visual Studio Express + OpenMP
The generalities are clear, that you need a proper <omp.h>, vcomp.lib and vcompd.lib from the SDK, and that the SDK version must match your compiler version.
VS 2005: http://blog.codekills.net/2007/09/20/openmp-and-visual-c++-the-free-way-%28sorta%29/
VS 2008: http://honya8bit.seesaa.net/article/163363596.html
VS 2010: http://www.ssidelnikov.ru/en/2011/05/openmp-visual-studio-2010-express/
VS 2012: OpenMP now supported by express version
Thursday, February 06, 2014
Deepest Sender Fail
Blogilo fail
After some googling, I was able to retrieve the list of posts. A bit of kung-fu was required to do this. See this link:
https://ask.fedoraproject.org/en/question/9909/setting-a-blogger-account/
But in the end, it wasn't enough. The post titles are retrieved but the contents are blank. If I try to make a new post, when I hit "submit", it tells me it that the previous post, which is blank, was submitted (?!).
Wednesday, February 05, 2014
OMFG, Blogger sux
The below will help. It really works great. Thanks Marco!!!
http://thewebthought.blogspot.com/2011/09/blogger-make-your-blog-fluid-fit-any.html
Life after Scribefire
Windows
- Apparently "Windows Live Writer" is the way to go. Now it's called "Windows Essentials". You have to install the "Writer" tool. I don't know what the other tools do. Unfortunately WLW doesn’t have a simple way to add pre-formatted text. The options seem to be to use courier font, use a code syntax highlighter plugin, or edit HTML. Sigh.
Linux
- Stick with scribefire?
- Blogilo?
- Deepest sender?